diff --git a/.eslintrc.js b/.eslintrc.js index 892f6e1db..eaf52949a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,7 +24,8 @@ module.exports = { navigator: false, window: false, require: true, - FileReader: true + FileReader: true, + File: true }, rules: { diff --git a/docs/examples-docs/dialog.md b/docs/examples-docs/dialog.md index a899befdd..4e383a4b0 100644 --- a/docs/examples-docs/dialog.md +++ b/docs/examples-docs/dialog.md @@ -25,6 +25,14 @@ export default { }); }, + handleAlert2Click() { + Dialog.alert({ + message: '无标题alert' + }).then((action) => { + console.log(action); + }); + }, + handleConfirmClick() { Dialog.confirm({ title: 'confirm标题', @@ -58,6 +66,7 @@ import { Dialog } from '@youzan/zanui-vue'; :::demo 消息提示 ```html alert +无标题alert