Files
JayuCloud/JC-Salon-WeChat/components/action-modal/index.wxml
T
xiaowang 1482bda1fa
自动发布开发环境 Nacos 配置 / publish (push) Successful in 27s
小程序浮层动作项按钮化并统一按钮样式
2026-11-07 00:38:22 +08:00

13 lines
860 B
Plaintext

<view wx:if="{{visible}}" class="action-modal-mask" catchtouchmove="stopEvent">
<view class="action-modal-card">
<view wx:if="{{icon}}" class="action-modal-icon {{icon}}">{{icon === 'warning' ? '!' : 'i'}}</view>
<text class="action-modal-title">{{title}}</text>
<text wx:if="{{content}}" class="action-modal-content">{{content}}</text>
<input wx:if="{{editable}}" class="action-modal-input" value="{{inputValue}}" maxlength="60" placeholder="{{placeholderText}}" bindinput="onInput" />
<view class="action-modal-actions {{layout === 'row' ? 'row' : ''}}">
<button wx:if="{{cancelText}}" class="action-modal-btn secondary" bindtap="onCancel">{{cancelText}}</button>
<button class="action-modal-btn {{confirmType === 'danger' ? 'danger' : 'primary'}}" bindtap="onConfirm">{{confirmText}}</button>
</view>
</view>
</view>