@element-plus/nightly 0.0.20220130 → 0.0.20220203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +336 -228
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +337 -230
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/cascader/index.d.ts +44 -0
- package/es/components/cascader/src/index.mjs +1 -7
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +22 -0
- package/es/components/dialog/index.d.ts +4 -0
- package/es/components/dialog/src/dialog.d.ts +1 -0
- package/es/components/dialog/src/dialog.mjs +4 -0
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -0
- package/es/components/dialog/src/dialog2.mjs +12 -3
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +3 -0
- package/es/components/drawer/src/drawer.d.ts +1 -0
- package/es/components/drawer/src/drawer.vue.d.ts +3 -0
- package/es/components/message-box/src/index.mjs +133 -113
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +14 -4
- package/es/components/message-box/src/message-box.type.d.ts +2 -0
- package/es/components/popover/index.d.ts +4 -0
- package/es/components/popover/src/index.mjs +14 -4
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popover/src/index.vue.d.ts +2 -0
- package/es/components/scrollbar/index.d.ts +11 -0
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +11 -0
- package/es/components/scrollbar/src/scrollbar2.mjs +13 -10
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.vue.d.ts +11 -0
- package/es/components/scrollbar/src/thumb2.mjs +11 -5
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/skeleton/index.d.ts +37 -2
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +13 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +10 -2
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +11 -0
- package/es/components/skeleton/src/skeleton2.mjs +11 -8
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-draggable/index.d.ts +2 -0
- package/es/hooks/use-draggable/index.mjs +65 -0
- package/es/hooks/use-draggable/index.mjs.map +1 -0
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/cascader/index.d.ts +44 -0
- package/lib/components/cascader/src/index.js +1 -7
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +22 -0
- package/lib/components/dialog/index.d.ts +4 -0
- package/lib/components/dialog/src/dialog.d.ts +1 -0
- package/lib/components/dialog/src/dialog.js +4 -0
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -0
- package/lib/components/dialog/src/dialog2.js +11 -2
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +3 -0
- package/lib/components/drawer/src/drawer.d.ts +1 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +3 -0
- package/lib/components/message-box/src/index.js +140 -120
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +14 -4
- package/lib/components/message-box/src/message-box.type.d.ts +2 -0
- package/lib/components/popover/index.d.ts +4 -0
- package/lib/components/popover/src/index.js +14 -4
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popover/src/index.vue.d.ts +2 -0
- package/lib/components/scrollbar/index.d.ts +11 -0
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +11 -0
- package/lib/components/scrollbar/src/scrollbar2.js +12 -9
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.vue.d.ts +11 -0
- package/lib/components/scrollbar/src/thumb2.js +11 -5
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/skeleton/index.d.ts +37 -2
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +13 -1
- package/lib/components/skeleton/src/skeleton-item2.js +10 -2
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +11 -0
- package/lib/components/skeleton/src/skeleton2.js +12 -9
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +60 -58
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-draggable/index.d.ts +2 -0
- package/lib/hooks/use-draggable/index.js +69 -0
- package/lib/hooks/use-draggable/index.js.map +1 -0
- package/lib/index.js +60 -58
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dialog.scss +7 -0
- package/theme-chalk/src/message-box.scss +26 -15
- package/theme-chalk/src/popper.scss +6 -6
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils/props'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'\n\nimport type { ExtractPropTypes, Component } from 'vue'\n\nexport const dialogProps = buildProps({\n appendToBody: {\n type: Boolean,\n default: false,\n },\n beforeClose: {\n type: definePropType<(...args: any[]) => void>(Function),\n },\n destroyOnClose: {\n type: Boolean,\n default: false,\n },\n center: {\n type: Boolean,\n default: false,\n },\n customClass: {\n type: String,\n default: '',\n },\n closeIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n fullscreen: {\n type: Boolean,\n default: false,\n },\n lockScroll: {\n type: Boolean,\n default: true,\n },\n modal: {\n type: Boolean,\n default: true,\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n openDelay: {\n type: Number,\n default: 0,\n },\n closeDelay: {\n type: Number,\n default: 0,\n },\n top: {\n type: String,\n },\n modelValue: {\n type: Boolean,\n required: true,\n },\n modalClass: String,\n width: {\n type: [String, Number],\n },\n zIndex: {\n type: Number,\n },\n} as const)\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => typeof value === 'boolean',\n}\nexport type DialogEmits = typeof dialogEmits\n"],"names":["buildProps","definePropType","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;AAEY,MAAC,WAAW,GAAGA,gBAAU,CAAC;AACtC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,oBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,4BAAkB,GAAG,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,SAAS;AAC7D;;;;;"}
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils/props'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'\n\nimport type { ExtractPropTypes, Component } from 'vue'\n\nexport const dialogProps = buildProps({\n appendToBody: {\n type: Boolean,\n default: false,\n },\n beforeClose: {\n type: definePropType<(...args: any[]) => void>(Function),\n },\n destroyOnClose: {\n type: Boolean,\n default: false,\n },\n center: {\n type: Boolean,\n default: false,\n },\n customClass: {\n type: String,\n default: '',\n },\n closeIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n fullscreen: {\n type: Boolean,\n default: false,\n },\n draggable: {\n type: Boolean,\n default: false,\n },\n lockScroll: {\n type: Boolean,\n default: true,\n },\n modal: {\n type: Boolean,\n default: true,\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n openDelay: {\n type: Number,\n default: 0,\n },\n closeDelay: {\n type: Number,\n default: 0,\n },\n top: {\n type: String,\n },\n modelValue: {\n type: Boolean,\n required: true,\n },\n modalClass: String,\n width: {\n type: [String, Number],\n },\n zIndex: {\n type: Number,\n },\n} as const)\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => typeof value === 'boolean',\n}\nexport type DialogEmits = typeof dialogEmits\n"],"names":["buildProps","definePropType","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;AAEY,MAAC,WAAW,GAAGA,gBAAU,CAAC;AACtC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,oBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,4BAAkB,GAAG,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,SAAS;AAC7D;;;;;"}
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
readonly closeOnClickModal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
9
9
|
readonly closeOnPressEscape: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
10
10
|
readonly fullscreen: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
11
|
+
readonly draggable: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
11
12
|
readonly lockScroll: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
12
13
|
readonly modal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
13
14
|
readonly showClose: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -33,6 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
visible: import("vue").Ref<boolean>;
|
|
34
35
|
zIndex: import("vue").Ref<number>;
|
|
35
36
|
dialogRef: import("vue").Ref<HTMLElement | undefined>;
|
|
37
|
+
headerRef: import("vue").Ref<HTMLElement | undefined>;
|
|
36
38
|
overlayEvent: {
|
|
37
39
|
onClick: (e: MouseEvent) => void;
|
|
38
40
|
onMousedown: (e: MouseEvent) => void;
|
|
@@ -54,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
56
|
readonly closeOnClickModal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
55
57
|
readonly closeOnPressEscape: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
56
58
|
readonly fullscreen: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
59
|
+
readonly draggable: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
57
60
|
readonly lockScroll: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
58
61
|
readonly modal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
59
62
|
readonly showClose: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -77,6 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
80
|
title: string;
|
|
78
81
|
width: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
79
82
|
center: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
83
|
+
draggable: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
80
84
|
openDelay: number;
|
|
81
85
|
showClose: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
82
86
|
appendToBody: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
@@ -13,6 +13,7 @@ var useDialog = require('./use-dialog.js');
|
|
|
13
13
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
14
|
var index$2 = require('../../../directives/trap-focus/index.js');
|
|
15
15
|
var index$3 = require('../../../hooks/use-same-target/index.js');
|
|
16
|
+
var index$4 = require('../../../hooks/use-draggable/index.js');
|
|
16
17
|
|
|
17
18
|
const _sfc_main = vue.defineComponent({
|
|
18
19
|
name: "ElDialog",
|
|
@@ -28,17 +29,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
29
|
emits: dialog.dialogEmits,
|
|
29
30
|
setup(props, ctx) {
|
|
30
31
|
const dialogRef = vue.ref();
|
|
32
|
+
const headerRef = vue.ref();
|
|
31
33
|
const dialog = useDialog.useDialog(props, ctx, dialogRef);
|
|
32
34
|
const overlayEvent = index$3.useSameTarget(dialog.onModalClick);
|
|
35
|
+
const draggable = vue.computed(() => props.draggable && !props.fullscreen);
|
|
36
|
+
index$4.useDraggable(dialogRef, headerRef, draggable);
|
|
33
37
|
return {
|
|
34
38
|
dialogRef,
|
|
39
|
+
headerRef,
|
|
35
40
|
overlayEvent,
|
|
36
41
|
...dialog
|
|
37
42
|
};
|
|
38
43
|
}
|
|
39
44
|
});
|
|
40
45
|
const _hoisted_1 = ["aria-label"];
|
|
41
|
-
const _hoisted_2 = {
|
|
46
|
+
const _hoisted_2 = {
|
|
47
|
+
ref: "headerRef",
|
|
48
|
+
class: "el-dialog__header"
|
|
49
|
+
};
|
|
42
50
|
const _hoisted_3 = { class: "el-dialog__title" };
|
|
43
51
|
const _hoisted_4 = {
|
|
44
52
|
key: 0,
|
|
@@ -82,6 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82
90
|
"el-dialog",
|
|
83
91
|
{
|
|
84
92
|
"is-fullscreen": _ctx.fullscreen,
|
|
93
|
+
"is-draggable": _ctx.draggable,
|
|
85
94
|
"el-dialog--center": _ctx.center
|
|
86
95
|
},
|
|
87
96
|
_ctx.customClass
|
|
@@ -111,7 +120,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
120
|
_: 1
|
|
112
121
|
})
|
|
113
122
|
])) : vue.createCommentVNode("v-if", true)
|
|
114
|
-
]),
|
|
123
|
+
], 512),
|
|
115
124
|
_ctx.rendered ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
116
125
|
vue.renderSlot(_ctx.$slots, "default")
|
|
117
126
|
])) : vue.createCommentVNode("v-if", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog2.js","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n name=\"dialog-fade\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n class=\"el-overlay-dialog\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <div\n ref=\"dialogRef\"\n v-trap-focus\n :class=\"[\n 'el-dialog',\n {\n 'is-fullscreen': fullscreen,\n 'el-dialog--center': center,\n },\n customClass,\n ]\"\n aria-modal=\"true\"\n role=\"dialog\"\n :aria-label=\"title || 'dialog'\"\n :style=\"style\"\n @click.stop=\"\"\n >\n <div class=\"el-dialog__header\">\n <slot name=\"title\">\n <span class=\"el-dialog__title\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n aria-label=\"close\"\n class=\"el-dialog__headerbtn\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon class=\"el-dialog__close\">\n <component :is=\"closeIcon || 'close'\" />\n </el-icon>\n </button>\n </div>\n <template v-if=\"rendered\">\n <div class=\"el-dialog__body\">\n <slot></slot>\n </div>\n </template>\n <div v-if=\"$slots.footer\" class=\"el-dialog__footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n </div>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue'\nimport { TrapFocus } from '@element-plus/directives'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents } from '@element-plus/utils/icon'\nimport { useSameTarget } from '@element-plus/hooks'\nimport { dialogProps, dialogEmits } from './dialog'\nimport { useDialog } from './use-dialog'\n\nexport default defineComponent({\n name: 'ElDialog',\n components: {\n ElOverlay,\n ElIcon,\n ...CloseComponents,\n },\n directives: {\n TrapFocus,\n },\n\n props: dialogProps,\n emits: dialogEmits,\n\n setup(props, ctx) {\n const dialogRef = ref<HTMLElement>()\n const dialog = useDialog(props, ctx, dialogRef)\n const overlayEvent = useSameTarget(dialog.onModalClick)\n\n return {\n dialogRef,\n overlayEvent,\n ...dialog,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElOverlay","ElIcon","CloseComponents","TrapFocus","dialogProps","dialogEmits","ref","useDialog","useSameTarget","_openBlock","_createBlock","_Transition","_createVNode","_withCtx","_createElementBlock","_normalizeStyle","_createCommentVNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog2.js","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n name=\"dialog-fade\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n class=\"el-overlay-dialog\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <div\n ref=\"dialogRef\"\n v-trap-focus\n :class=\"[\n 'el-dialog',\n {\n 'is-fullscreen': fullscreen,\n 'is-draggable': draggable,\n 'el-dialog--center': center,\n },\n customClass,\n ]\"\n aria-modal=\"true\"\n role=\"dialog\"\n :aria-label=\"title || 'dialog'\"\n :style=\"style\"\n @click.stop=\"\"\n >\n <div ref=\"headerRef\" class=\"el-dialog__header\">\n <slot name=\"title\">\n <span class=\"el-dialog__title\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n aria-label=\"close\"\n class=\"el-dialog__headerbtn\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon class=\"el-dialog__close\">\n <component :is=\"closeIcon || 'close'\" />\n </el-icon>\n </button>\n </div>\n <template v-if=\"rendered\">\n <div class=\"el-dialog__body\">\n <slot></slot>\n </div>\n </template>\n <div v-if=\"$slots.footer\" class=\"el-dialog__footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n </div>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue'\nimport { TrapFocus } from '@element-plus/directives'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents } from '@element-plus/utils/icon'\nimport { useDraggable, useSameTarget } from '@element-plus/hooks'\nimport { dialogProps, dialogEmits } from './dialog'\nimport { useDialog } from './use-dialog'\n\nexport default defineComponent({\n name: 'ElDialog',\n components: {\n ElOverlay,\n ElIcon,\n ...CloseComponents,\n },\n directives: {\n TrapFocus,\n },\n\n props: dialogProps,\n emits: dialogEmits,\n\n setup(props, ctx) {\n const dialogRef = ref<HTMLElement>()\n const headerRef = ref<HTMLElement>()\n const dialog = useDialog(props, ctx, dialogRef)\n const overlayEvent = useSameTarget(dialog.onModalClick)\n\n const draggable = computed(() => props.draggable && !props.fullscreen)\n useDraggable(dialogRef, headerRef, draggable)\n\n return {\n dialogRef,\n headerRef,\n overlayEvent,\n ...dialog,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElOverlay","ElIcon","CloseComponents","TrapFocus","dialogProps","dialogEmits","ref","useDialog","useSameTarget","computed","_openBlock","_createBlock","_Transition","_createVNode","_withCtx","_createElementBlock","_normalizeStyle","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;AAkFA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,eACVC;AAAA,YACAC;AAAA,OACGC;AAAA;AAAA,EAEL,YAAY;AAAA,eACVC;AAAA;AAAA,EAGF,OAAOC;AAAA,EACP,OAAOC;AAAA,EAEP,MAAM,OAAO,KAAK;AAChB,UAAM,YAAYC;AAClB,UAAM,YAAYA;AAClB,UAAM,SAASC,oBAAU,OAAO,KAAK;AACrC,UAAM,eAAeC,sBAAc,OAAO;AAE1C,UAAM,YAAYC,aAAS,MAAM,MAAM,aAAa,CAAC,MAAM;AAC3D,yBAAa,WAAW,WAAW;AAEnC,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,SACG;AAAA;AAAA;AAAA;;MAtEW,aAAY;AAAA,EAAC,KAAK;AAAA;;;;EAmBnB,KAAK;AAAA;;;EAIc,KAAK;AAAA;;;;;;SA7D5BC,iBAAMC;AAAA,IAAE;AAAA;KACnB;AAAA,oBACOC,gBAAa;AAAA,MACjB;AAAA,MACA,cAAa;AAAA,MACb,cAAY,KAAE;AAAA;;2BAEf;AAAA,2BAEEC,gBAAiB;AAAA,UAChB,qBAAW;AAAA,UACX;AAAA,UACA,iBAAS,KAAM;AAAA;;mBAEhBC,kBAmDM;AAAA,mCAlDE;AAAA,cACL,OAAK;AAAA,cACL,gBAAS,qCAAE,wBAAa,KAAW,aAAxB,QAAa;AAAA,cACxB,aAAO,uCAAE,kBAAa,eAAb,kBAAa,YAAS;AAAA;;mDAGfC;AAAA,gBAEd,KAAK;AAAA;;;qCAA4H;AAAA,yCAAgD;AAAA;;;;gBAUlL,cAAa;AAAA,gBACZ;AAAA,gBACA,cAAK,cAAE;AAAA,gBACP,OAAKC;AAAA;;iBAEN;AAAA,uCAKS;AAAA,iCAHL,aAEO,SAFP,UAEO;AAAA;;;oBAIP;AAAA,oBACA,cAAM;AAAA,oBACN,OAAK;AAAA,oBACJ;AAAA;qBAED;AAAA,wDAC0C;AAAA,2CAAxC;AAAA;;;;;mBAIU;AAAA,kDAECD;AAAA;sBAGNE,uBAAa;AAAA,uDACKF;AAAA;;;;;;;;cAtDzB,SAAO;AAAA;;;;;;;;;;;"}
|
|
@@ -12,6 +12,7 @@ export declare const ElDrawer: import("../../utils/types").SFCWithInstall<import
|
|
|
12
12
|
readonly closeOnClickModal: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
13
13
|
readonly closeOnPressEscape: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
14
14
|
readonly fullscreen: import("../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
15
|
+
readonly draggable: import("../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
15
16
|
readonly lockScroll: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
16
17
|
readonly modal: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
17
18
|
readonly showClose: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -70,6 +71,7 @@ export declare const ElDrawer: import("../../utils/types").SFCWithInstall<import
|
|
|
70
71
|
readonly closeOnClickModal: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
71
72
|
readonly closeOnPressEscape: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
72
73
|
readonly fullscreen: import("../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
74
|
+
readonly draggable: import("../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
73
75
|
readonly lockScroll: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
74
76
|
readonly modal: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
75
77
|
readonly showClose: import("../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -95,6 +97,7 @@ export declare const ElDrawer: import("../../utils/types").SFCWithInstall<import
|
|
|
95
97
|
width: import("../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
96
98
|
center: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
97
99
|
direction: import("../../utils/props").BuildPropType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
100
|
+
draggable: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
98
101
|
openDelay: number;
|
|
99
102
|
showClose: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
100
103
|
appendToBody: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
@@ -13,6 +13,7 @@ export declare const drawerProps: {
|
|
|
13
13
|
readonly closeOnClickModal: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
14
14
|
readonly closeOnPressEscape: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
15
15
|
readonly fullscreen: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
16
|
+
readonly draggable: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
16
17
|
readonly lockScroll: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
17
18
|
readonly modal: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
18
19
|
readonly showClose: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
readonly closeOnClickModal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
13
13
|
readonly closeOnPressEscape: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
14
14
|
readonly fullscreen: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
15
|
+
readonly draggable: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
15
16
|
readonly lockScroll: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
16
17
|
readonly modal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
17
18
|
readonly showClose: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -70,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
71
|
readonly closeOnClickModal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
71
72
|
readonly closeOnPressEscape: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
72
73
|
readonly fullscreen: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
74
|
+
readonly draggable: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
73
75
|
readonly lockScroll: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
74
76
|
readonly modal: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
75
77
|
readonly showClose: import("../../../utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
@@ -95,6 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
97
|
width: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
96
98
|
center: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
97
99
|
direction: import("../../../utils/props").BuildPropType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
100
|
+
draggable: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
98
101
|
openDelay: number;
|
|
99
102
|
showClose: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
100
103
|
appendToBody: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
@@ -18,10 +18,12 @@ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper
|
|
|
18
18
|
var index = require('../../../directives/trap-focus/index.js');
|
|
19
19
|
var index$5 = require('../../../hooks/use-locale/index.js');
|
|
20
20
|
var index$6 = require('../../../hooks/use-common-props/index.js');
|
|
21
|
-
var index$7 = require('../../../hooks/use-
|
|
22
|
-
var index$8 = require('../../../hooks/use-
|
|
23
|
-
var index$9 = require('../../../hooks/use-
|
|
24
|
-
var index$a = require('../../../hooks/use-
|
|
21
|
+
var index$7 = require('../../../hooks/use-draggable/index.js');
|
|
22
|
+
var index$8 = require('../../../hooks/use-same-target/index.js');
|
|
23
|
+
var index$9 = require('../../../hooks/use-modal/index.js');
|
|
24
|
+
var index$a = require('../../../hooks/use-prevent-global/index.js');
|
|
25
|
+
var index$b = require('../../../hooks/use-lockscreen/index.js');
|
|
26
|
+
var index$c = require('../../../hooks/use-restore-active/index.js');
|
|
25
27
|
|
|
26
28
|
const _sfc_main = vue.defineComponent({
|
|
27
29
|
name: "ElMessageBox",
|
|
@@ -66,6 +68,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
68
|
default: true
|
|
67
69
|
},
|
|
68
70
|
center: Boolean,
|
|
71
|
+
draggable: Boolean,
|
|
69
72
|
roundButton: {
|
|
70
73
|
default: false,
|
|
71
74
|
type: Boolean
|
|
@@ -124,8 +127,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
124
127
|
const btnSize = index$6.useSize(vue.computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
125
128
|
const iconComponent = vue.computed(() => state.icon || icon.TypeComponentsMap[state.type] || "");
|
|
126
129
|
const hasMessage = vue.computed(() => !!state.message);
|
|
127
|
-
const
|
|
128
|
-
const
|
|
130
|
+
const rootRef = vue.ref();
|
|
131
|
+
const headerRef = vue.ref();
|
|
132
|
+
const inputRef = vue.ref();
|
|
133
|
+
const confirmRef = vue.ref();
|
|
129
134
|
const confirmButtonClasses = vue.computed(() => state.confirmButtonClass);
|
|
130
135
|
vue.watch(() => state.inputValue, async (val) => {
|
|
131
136
|
await vue.nextTick();
|
|
@@ -156,6 +161,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
156
161
|
state.validateError = false;
|
|
157
162
|
}
|
|
158
163
|
});
|
|
164
|
+
const draggable = vue.computed(() => props.draggable);
|
|
165
|
+
index$7.useDraggable(rootRef, headerRef, draggable);
|
|
159
166
|
vue.onMounted(async () => {
|
|
160
167
|
await vue.nextTick();
|
|
161
168
|
if (props.closeOnHashChange) {
|
|
@@ -181,6 +188,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
181
188
|
handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
|
|
182
189
|
}
|
|
183
190
|
};
|
|
191
|
+
const overlayEvent = index$8.useSameTarget(handleWrapperClick);
|
|
184
192
|
const handleInputEnter = () => {
|
|
185
193
|
if (state.inputType !== "textarea") {
|
|
186
194
|
return handleAction("confirm");
|
|
@@ -233,24 +241,27 @@ const _sfc_main = vue.defineComponent({
|
|
|
233
241
|
handleAction("close");
|
|
234
242
|
};
|
|
235
243
|
if (props.closeOnPressEscape) {
|
|
236
|
-
index$
|
|
244
|
+
index$9.useModal({
|
|
237
245
|
handleClose
|
|
238
246
|
}, visible);
|
|
239
247
|
} else {
|
|
240
|
-
index$
|
|
248
|
+
index$a.usePreventGlobal(visible, "keydown", (e) => e.code === aria.EVENT_CODE.esc);
|
|
241
249
|
}
|
|
242
250
|
if (props.lockScroll) {
|
|
243
|
-
index$
|
|
251
|
+
index$b.useLockscreen(visible);
|
|
244
252
|
}
|
|
245
|
-
index$
|
|
253
|
+
index$c.useRestoreActive(visible);
|
|
246
254
|
return {
|
|
247
255
|
...vue.toRefs(state),
|
|
256
|
+
overlayEvent,
|
|
248
257
|
visible,
|
|
249
258
|
hasMessage,
|
|
250
259
|
typeClass,
|
|
251
260
|
btnSize,
|
|
252
261
|
iconComponent,
|
|
253
262
|
confirmButtonClasses,
|
|
263
|
+
rootRef,
|
|
264
|
+
headerRef,
|
|
254
265
|
inputRef,
|
|
255
266
|
confirmRef,
|
|
256
267
|
doClose,
|
|
@@ -265,6 +276,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
265
276
|
const _hoisted_1 = ["aria-label"];
|
|
266
277
|
const _hoisted_2 = {
|
|
267
278
|
key: 0,
|
|
279
|
+
ref: "headerRef",
|
|
268
280
|
class: "el-message-box__header"
|
|
269
281
|
};
|
|
270
282
|
const _hoisted_3 = { class: "el-message-box__title" };
|
|
@@ -287,137 +299,145 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
287
299
|
const _directive_trap_focus = vue.resolveDirective("trap-focus");
|
|
288
300
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
289
301
|
name: "fade-in-linear",
|
|
290
|
-
onAfterLeave: _cache[
|
|
302
|
+
onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish"))
|
|
291
303
|
}, {
|
|
292
304
|
default: vue.withCtx(() => [
|
|
293
305
|
vue.withDirectives(vue.createVNode(_component_el_overlay, {
|
|
294
306
|
"z-index": _ctx.zIndex,
|
|
295
307
|
"overlay-class": ["is-message-box", _ctx.modalClass],
|
|
296
|
-
mask: _ctx.modal
|
|
297
|
-
onClick: vue.withModifiers(_ctx.handleWrapperClick, ["self"])
|
|
308
|
+
mask: _ctx.modal
|
|
298
309
|
}, {
|
|
299
310
|
default: vue.withCtx(() => [
|
|
300
|
-
vue.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
class: vue.normalizeClass([
|
|
306
|
-
"el-message-box",
|
|
307
|
-
_ctx.customClass,
|
|
308
|
-
{ "el-message-box--center": _ctx.center }
|
|
309
|
-
]),
|
|
310
|
-
style: vue.normalizeStyle(_ctx.customStyle)
|
|
311
|
+
vue.createElementVNode("div", {
|
|
312
|
+
class: "el-overlay-message-box",
|
|
313
|
+
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
|
|
314
|
+
onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
|
|
315
|
+
onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
|
|
311
316
|
}, [
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
317
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
318
|
+
ref: "rootRef",
|
|
319
|
+
role: "dialog",
|
|
320
|
+
"aria-label": _ctx.title || "dialog",
|
|
321
|
+
"aria-modal": "true",
|
|
322
|
+
class: vue.normalizeClass([
|
|
323
|
+
"el-message-box",
|
|
324
|
+
_ctx.customClass,
|
|
325
|
+
{ "el-message-box--center": _ctx.center, "is-draggable": _ctx.draggable }
|
|
326
|
+
]),
|
|
327
|
+
style: vue.normalizeStyle(_ctx.customStyle),
|
|
328
|
+
onClick: _cache[7] || (_cache[7] = vue.withModifiers(() => {
|
|
329
|
+
}, ["stop"]))
|
|
330
|
+
}, [
|
|
331
|
+
_ctx.title !== null && _ctx.title !== void 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
332
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
333
|
+
_ctx.iconComponent && _ctx.center ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
334
|
+
key: 0,
|
|
335
|
+
class: vue.normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
336
|
+
}, {
|
|
337
|
+
default: vue.withCtx(() => [
|
|
338
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
342
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.title), 1)
|
|
343
|
+
]),
|
|
344
|
+
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
315
345
|
key: 0,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
]),
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
346
|
+
type: "button",
|
|
347
|
+
class: "el-message-box__headerbtn",
|
|
348
|
+
"aria-label": "Close",
|
|
349
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
|
|
350
|
+
onKeydown: _cache[1] || (_cache[1] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
351
|
+
}, [
|
|
352
|
+
vue.createVNode(_component_el_icon, { class: "el-message-box__close" }, {
|
|
353
|
+
default: vue.withCtx(() => [
|
|
354
|
+
vue.createVNode(_component_close)
|
|
355
|
+
]),
|
|
356
|
+
_: 1
|
|
357
|
+
})
|
|
358
|
+
], 32)) : vue.createCommentVNode("v-if", true)
|
|
359
|
+
], 512)) : vue.createCommentVNode("v-if", true),
|
|
360
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
361
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
362
|
+
_ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
363
|
+
key: 0,
|
|
364
|
+
class: vue.normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
365
|
+
}, {
|
|
366
|
+
default: vue.withCtx(() => [
|
|
367
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
371
|
+
_ctx.hasMessage ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
372
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
373
|
+
!_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_7, vue.toDisplayString(_ctx.message), 1)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
374
|
+
key: 1,
|
|
375
|
+
innerHTML: _ctx.message
|
|
376
|
+
}, null, 8, _hoisted_8))
|
|
377
|
+
])
|
|
378
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
379
|
+
]),
|
|
380
|
+
vue.withDirectives(vue.createElementVNode("div", _hoisted_9, [
|
|
381
|
+
vue.createVNode(_component_el_input, {
|
|
382
|
+
ref: "inputRef",
|
|
383
|
+
modelValue: _ctx.inputValue,
|
|
384
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
385
|
+
type: _ctx.inputType,
|
|
386
|
+
placeholder: _ctx.inputPlaceholder,
|
|
387
|
+
class: vue.normalizeClass({ invalid: _ctx.validateError }),
|
|
388
|
+
onKeydown: vue.withKeys(vue.withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
389
|
+
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
390
|
+
vue.createElementVNode("div", {
|
|
391
|
+
class: "el-message-box__errormsg",
|
|
392
|
+
style: vue.normalizeStyle({
|
|
393
|
+
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
394
|
+
})
|
|
395
|
+
}, vue.toDisplayString(_ctx.editorErrorMessage), 5)
|
|
396
|
+
], 512), [
|
|
397
|
+
[vue.vShow, _ctx.showInput]
|
|
398
|
+
])
|
|
324
399
|
]),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
400
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
401
|
+
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
402
|
+
key: 0,
|
|
403
|
+
loading: _ctx.cancelButtonLoading,
|
|
404
|
+
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
405
|
+
round: _ctx.roundButton,
|
|
406
|
+
size: _ctx.btnSize,
|
|
407
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
408
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
409
|
+
}, {
|
|
334
410
|
default: vue.withCtx(() => [
|
|
335
|
-
vue.
|
|
411
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
336
412
|
]),
|
|
337
413
|
_: 1
|
|
338
|
-
})
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
414
|
+
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
415
|
+
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
416
|
+
ref: "confirmRef",
|
|
417
|
+
type: "primary",
|
|
418
|
+
loading: _ctx.confirmButtonLoading,
|
|
419
|
+
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
420
|
+
round: _ctx.roundButton,
|
|
421
|
+
disabled: _ctx.confirmButtonDisabled,
|
|
422
|
+
size: _ctx.btnSize,
|
|
423
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
424
|
+
onKeydown: _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
346
425
|
}, {
|
|
347
426
|
default: vue.withCtx(() => [
|
|
348
|
-
|
|
427
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
349
428
|
]),
|
|
350
429
|
_: 1
|
|
351
|
-
}, 8, ["class"
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
!_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_7, vue.toDisplayString(_ctx.message), 1)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
355
|
-
key: 1,
|
|
356
|
-
innerHTML: _ctx.message
|
|
357
|
-
}, null, 8, _hoisted_8))
|
|
358
|
-
])
|
|
359
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
360
|
-
]),
|
|
361
|
-
vue.withDirectives(vue.createElementVNode("div", _hoisted_9, [
|
|
362
|
-
vue.createVNode(_component_el_input, {
|
|
363
|
-
ref: "inputRef",
|
|
364
|
-
modelValue: _ctx.inputValue,
|
|
365
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
366
|
-
type: _ctx.inputType,
|
|
367
|
-
placeholder: _ctx.inputPlaceholder,
|
|
368
|
-
class: vue.normalizeClass({ invalid: _ctx.validateError }),
|
|
369
|
-
onKeydown: vue.withKeys(vue.withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
370
|
-
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
371
|
-
vue.createElementVNode("div", {
|
|
372
|
-
class: "el-message-box__errormsg",
|
|
373
|
-
style: vue.normalizeStyle({
|
|
374
|
-
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
375
|
-
})
|
|
376
|
-
}, vue.toDisplayString(_ctx.editorErrorMessage), 5)
|
|
377
|
-
], 512), [
|
|
378
|
-
[vue.vShow, _ctx.showInput]
|
|
379
|
-
])
|
|
380
|
-
]),
|
|
381
|
-
vue.createElementVNode("div", _hoisted_10, [
|
|
382
|
-
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
383
|
-
key: 0,
|
|
384
|
-
loading: _ctx.cancelButtonLoading,
|
|
385
|
-
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
386
|
-
round: _ctx.roundButton,
|
|
387
|
-
size: _ctx.btnSize,
|
|
388
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
389
|
-
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
390
|
-
}, {
|
|
391
|
-
default: vue.withCtx(() => [
|
|
392
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
396
|
-
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
397
|
-
ref: "confirmRef",
|
|
398
|
-
type: "primary",
|
|
399
|
-
loading: _ctx.confirmButtonLoading,
|
|
400
|
-
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
401
|
-
round: _ctx.roundButton,
|
|
402
|
-
disabled: _ctx.confirmButtonDisabled,
|
|
403
|
-
size: _ctx.btnSize,
|
|
404
|
-
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
405
|
-
onKeydown: _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
406
|
-
}, {
|
|
407
|
-
default: vue.withCtx(() => [
|
|
408
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
409
|
-
]),
|
|
410
|
-
_: 1
|
|
411
|
-
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
412
|
-
[vue.vShow, _ctx.showConfirmButton]
|
|
430
|
+
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
431
|
+
[vue.vShow, _ctx.showConfirmButton]
|
|
432
|
+
])
|
|
413
433
|
])
|
|
434
|
+
], 14, _hoisted_1)), [
|
|
435
|
+
[_directive_trap_focus]
|
|
414
436
|
])
|
|
415
|
-
],
|
|
416
|
-
[_directive_trap_focus]
|
|
417
|
-
])
|
|
437
|
+
], 32)
|
|
418
438
|
]),
|
|
419
439
|
_: 3
|
|
420
|
-
}, 8, ["z-index", "overlay-class", "mask"
|
|
440
|
+
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
421
441
|
[vue.vShow, _ctx.visible]
|
|
422
442
|
])
|
|
423
443
|
]),
|