13 lines
881 B
Plaintext
13 lines
881 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" type="{{inputType}}" 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>
|