|
|
@ -5,12 +5,14 @@ |
|
|
|
</view> |
|
|
|
<view v-if="mode === 'base'" class="uni-dialog-content"> |
|
|
|
<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> |
|
|
|
</view> |
|
|
|
<view v-else class="uni-dialog-content"> |
|
|
|
<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> |
|
|
|
</view> |
|
|
|
<view class="uni-dialog-button-group" v-if="!showConfirm"> |
|
|
@ -38,7 +40,9 @@ |
|
|
|
initVueI18n |
|
|
|
} from '@dcloudio/uni-i18n' |
|
|
|
import messages from '../uni-popup/i18n/index.js' |
|
|
|
const { t } = initVueI18n(messages) |
|
|
|
const { |
|
|
|
t |
|
|
|
} = initVueI18n(messages) |
|
|
|
/** |
|
|
|
* PopUp 弹出层-对话框样式 |
|
|
|
* @description 弹出层-对话框样式 |
|
|
|