diff --git a/build/bin/build-entry.js b/build/bin/build-entry.js index 4f4122395..0ceccbc1c 100644 --- a/build/bin/build-entry.js +++ b/build/bin/build-entry.js @@ -9,7 +9,6 @@ function buildVantEntry() { const uninstallComponents = [ 'Lazyload', 'Waterfall', - 'Dialog', 'Toast', 'ImagePreview', 'Locale' diff --git a/docs/demos/common.js b/docs/demos/common.js index 0ad3d5a11..21757d521 100644 --- a/docs/demos/common.js +++ b/docs/demos/common.js @@ -45,11 +45,15 @@ Locale.add({ search: '搜索', content: '内容', custom: '自定义', + username: '用户名', + password: '密码', loading: '加载状态', disabled: '禁用状态', uneditable: '不可编辑', basicUsage: '基础用法', - advancedUsage: '高级用法' + advancedUsage: '高级用法', + usernamePlaceholder: '请输入用户名', + passwordPlaceholder: '请输入密码' }, 'en-US': { red: 'Red', @@ -66,10 +70,14 @@ Locale.add({ search: 'Search', content: 'Content', custom: 'Custom', + username: 'Username', + password: 'Password', loading: 'Loading', disabled: 'Disabled', uneditable: 'Uneditable', basicUsage: 'Basic Usage', - advancedUsage: 'Advanced Usage' + advancedUsage: 'Advanced Usage', + usernamePlaceholder: 'Username', + passwordPlaceholder: 'Password' } }); diff --git a/docs/demos/views/dialog.vue b/docs/demos/views/dialog.vue index 00c189baf..7fab3808b 100644 --- a/docs/demos/views/dialog.vue +++ b/docs/demos/views/dialog.vue @@ -8,6 +8,26 @@ Confirm + + + {{ $t('advancedUsage') }} + + + + + @@ -26,6 +46,14 @@ export default { } }, + data() { + return { + show: false, + username: '', + password: '' + }; + }, + methods: { onClickAlert() { Dialog.alert({ @@ -52,7 +80,7 @@ export default {