wong1988 1 year ago
parent
commit
5b95cf0296
  1. 10
      uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue

10
uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue

@ -5,12 +5,14 @@
</view> </view>
<view v-if="mode === 'base'" class="uni-dialog-content"> <view v-if="mode === 'base'" class="uni-dialog-content">
<slot> <slot>
<text class="uni-dialog-content-text">{{content}}</text> <textarea class="uni-dialog-content-text" :value="content" :auto-height="false"
style="max-height: 200px;"></textarea>
</slot> </slot>
</view> </view>
<view v-else class="uni-dialog-content"> <view v-else class="uni-dialog-content">
<slot> <slot>
<input class="uni-dialog-input" v-model="val" :type="inputType" :placeholder="placeholderText" :focus="focus" > <input class="uni-dialog-input" v-model="val" :type="inputType" :placeholder="placeholderText"
:focus="focus">
</slot> </slot>
</view> </view>
<view class="uni-dialog-button-group" v-if="!showConfirm"> <view class="uni-dialog-button-group" v-if="!showConfirm">
@ -38,7 +40,9 @@
initVueI18n initVueI18n
} from '@dcloudio/uni-i18n' } from '@dcloudio/uni-i18n'
import messages from '../uni-popup/i18n/index.js' import messages from '../uni-popup/i18n/index.js'
const { t } = initVueI18n(messages) const {
t
} = initVueI18n(messages)
/** /**
* PopUp 弹出层-对话框样式 * PopUp 弹出层-对话框样式
* @description 弹出层-对话框样式 * @description 弹出层-对话框样式

Loading…
Cancel
Save