@element-plus/nightly 0.0.20240220 → 0.0.20240222
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/dist/index.css +1 -1
- package/dist/index.full.js +4 -3
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4 -3
- 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-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.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/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.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/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.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/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +116 -209
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +209 -116
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +40 -402
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +402 -40
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -74
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +74 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +1 -0
- package/es/components/drawer/src/drawer.vue.d.ts +1 -0
- package/es/components/drawer/src/drawer2.mjs +2 -1
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item.mjs +43 -318
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +318 -43
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/index.mjs +5 -5
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip.mjs +20 -73
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +73 -20
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +29 -178
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +178 -29
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +5 -5
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +116 -209
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +209 -116
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +40 -400
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +400 -40
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -74
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +74 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +1 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -0
- package/lib/components/drawer/src/drawer2.js +2 -1
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item.js +44 -322
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +322 -44
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip.js +20 -73
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +73 -20
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +30 -178
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +178 -30
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +5 -5
- 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/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +1 -0
- package/theme-chalk/src/select.scss +4 -0
- package/web-types.json +1 -1
|
@@ -2,83 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var lodashUnified = require('lodash-unified');
|
|
7
|
-
var arrow = require('./arrow.js');
|
|
8
|
-
var content = require('./content.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
9
6
|
var root = require('./root.js');
|
|
10
|
-
var tooltip = require('./tooltip2.js');
|
|
11
7
|
var trigger = require('./trigger.js');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var trigger$1 = require('./trigger2.js');
|
|
16
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
|
+
var arrow = require('./arrow.js');
|
|
9
|
+
var content = require('./content.js');
|
|
10
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
17
11
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
default: vue.withCtx(({ open }) => [
|
|
34
|
-
vue.createVNode(trigger$1["default"], vue.mergeProps(triggerProps, { nowrap: "" }), {
|
|
35
|
-
default: vue.withCtx(() => [
|
|
36
|
-
vue.renderSlot(_ctx.$slots, "trigger")
|
|
37
|
-
]),
|
|
38
|
-
_: 3
|
|
39
|
-
}, 16),
|
|
40
|
-
(vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
41
|
-
to: _ctx.to,
|
|
42
|
-
disabled: !_ctx.teleported
|
|
43
|
-
}, [
|
|
44
|
-
_ctx.fullTransition ? (vue.openBlock(), vue.createBlock(vue.Transition, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
45
|
-
default: vue.withCtx(() => [
|
|
46
|
-
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
47
|
-
arrow: vue.withCtx(({ style, side }) => [
|
|
48
|
-
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
49
|
-
style,
|
|
50
|
-
side
|
|
51
|
-
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
52
|
-
]),
|
|
53
|
-
default: vue.withCtx(() => [
|
|
54
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
-
]),
|
|
56
|
-
_: 3
|
|
57
|
-
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
58
|
-
]),
|
|
59
|
-
_: 2
|
|
60
|
-
}, 1040)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
61
|
-
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
62
|
-
arrow: vue.withCtx(({ style, side }) => [
|
|
63
|
-
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
64
|
-
style,
|
|
65
|
-
side
|
|
66
|
-
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
67
|
-
]),
|
|
68
|
-
default: vue.withCtx(() => [
|
|
69
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
70
|
-
]),
|
|
71
|
-
_: 3
|
|
72
|
-
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
73
|
-
], 64))
|
|
74
|
-
], 8, ["to", "disabled"]))
|
|
75
|
-
]),
|
|
76
|
-
_: 3
|
|
77
|
-
}, 16);
|
|
78
|
-
};
|
|
12
|
+
const tooltipV2Props = runtime.buildProps({
|
|
13
|
+
...root.tooltipV2RootProps,
|
|
14
|
+
...arrow.tooltipV2ArrowProps,
|
|
15
|
+
...trigger.tooltipV2TriggerProps,
|
|
16
|
+
...content.tooltipV2ContentProps,
|
|
17
|
+
alwaysOn: Boolean,
|
|
18
|
+
fullTransition: Boolean,
|
|
19
|
+
transitionProps: {
|
|
20
|
+
type: runtime.definePropType(Object),
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
teleported: Boolean,
|
|
24
|
+
to: {
|
|
25
|
+
type: runtime.definePropType(String),
|
|
26
|
+
default: "body"
|
|
79
27
|
}
|
|
80
28
|
});
|
|
81
|
-
var TooltipV2 = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tooltip.vue"]]);
|
|
82
29
|
|
|
83
|
-
exports
|
|
30
|
+
exports.tooltipV2Props = tooltipV2Props;
|
|
84
31
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2TriggerProps } from './trigger'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\n\nimport type { ExtractPropTypes, TeleportProps, TransitionProps } from 'vue'\n\nexport const tooltipV2Props = buildProps({\n ...tooltipV2RootProps,\n ...tooltipV2ArrowProps,\n ...tooltipV2TriggerProps,\n ...tooltipV2ContentProps,\n alwaysOn: Boolean,\n fullTransition: Boolean,\n transitionProps: {\n type: definePropType<TransitionProps | null>(Object),\n default: null,\n },\n teleported: Boolean,\n to: {\n type: definePropType<TeleportProps['to']>(String),\n default: 'body',\n },\n} as const)\n\nexport type TooltipV2Props = ExtractPropTypes<typeof tooltipV2Props>\n"],"names":["buildProps","tooltipV2RootProps","tooltipV2ArrowProps","tooltipV2TriggerProps","tooltipV2ContentProps","definePropType"],"mappings":";;;;;;;;;;;AAKY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,GAAGC,uBAAkB;AACvB,EAAE,GAAGC,yBAAmB;AACxB,EAAE,GAAGC,6BAAqB;AAC1B,EAAE,GAAGC,6BAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,30 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
7
|
-
var trigger = require('./trigger.js');
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var lodashUnified = require('lodash-unified');
|
|
8
7
|
var arrow = require('./arrow.js');
|
|
9
8
|
var content = require('./content.js');
|
|
10
|
-
var
|
|
9
|
+
var root = require('./root.js');
|
|
10
|
+
var tooltip = require('./tooltip.js');
|
|
11
|
+
var trigger = require('./trigger.js');
|
|
12
|
+
var root$1 = require('./root2.js');
|
|
13
|
+
var arrow$1 = require('./arrow2.js');
|
|
14
|
+
var content$1 = require('./content2.js');
|
|
15
|
+
var trigger$1 = require('./trigger2.js');
|
|
16
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
17
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "ElTooltipV2"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
+
...__default__,
|
|
23
|
+
props: tooltip.tooltipV2Props,
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const refedProps = vue.toRefs(props);
|
|
27
|
+
const arrowProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(arrow.tooltipV2ArrowProps)));
|
|
28
|
+
const contentProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(content.tooltipV2ContentProps)));
|
|
29
|
+
const rootProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(root.tooltipV2RootProps)));
|
|
30
|
+
const triggerProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(trigger.tooltipV2TriggerProps)));
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return vue.openBlock(), vue.createBlock(root$1["default"], vue.normalizeProps(vue.guardReactiveProps(rootProps)), {
|
|
33
|
+
default: vue.withCtx(({ open }) => [
|
|
34
|
+
vue.createVNode(trigger$1["default"], vue.mergeProps(triggerProps, { nowrap: "" }), {
|
|
35
|
+
default: vue.withCtx(() => [
|
|
36
|
+
vue.renderSlot(_ctx.$slots, "trigger")
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16),
|
|
40
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
41
|
+
to: _ctx.to,
|
|
42
|
+
disabled: !_ctx.teleported
|
|
43
|
+
}, [
|
|
44
|
+
_ctx.fullTransition ? (vue.openBlock(), vue.createBlock(vue.Transition, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
45
|
+
default: vue.withCtx(() => [
|
|
46
|
+
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
47
|
+
arrow: vue.withCtx(({ style, side }) => [
|
|
48
|
+
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
49
|
+
style,
|
|
50
|
+
side
|
|
51
|
+
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
52
|
+
]),
|
|
53
|
+
default: vue.withCtx(() => [
|
|
54
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1040)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
61
|
+
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
62
|
+
arrow: vue.withCtx(({ style, side }) => [
|
|
63
|
+
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
64
|
+
style,
|
|
65
|
+
side
|
|
66
|
+
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
67
|
+
]),
|
|
68
|
+
default: vue.withCtx(() => [
|
|
69
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
70
|
+
]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
73
|
+
], 64))
|
|
74
|
+
], 8, ["to", "disabled"]))
|
|
75
|
+
]),
|
|
76
|
+
_: 3
|
|
77
|
+
}, 16);
|
|
78
|
+
};
|
|
27
79
|
}
|
|
28
80
|
});
|
|
81
|
+
var TooltipV2 = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tooltip.vue"]]);
|
|
29
82
|
|
|
30
|
-
exports
|
|
83
|
+
exports["default"] = TooltipV2;
|
|
31
84
|
//# sourceMappingURL=tooltip2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip2.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip2.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.vue"],"sourcesContent":["<template>\n <tooltip-v2-root v-bind=\"rootProps\">\n <template #default=\"{ open }\">\n <tooltip-v2-trigger v-bind=\"triggerProps\" nowrap>\n <slot name=\"trigger\" />\n </tooltip-v2-trigger>\n <teleport :to=\"to\" :disabled=\"!teleported\">\n <template v-if=\"fullTransition\">\n <transition v-bind=\"transitionProps\">\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </transition>\n </template>\n <template v-else>\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </template>\n </teleport>\n </template>\n </tooltip-v2-root>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport { reactive, toRefs } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2Props } from './tooltip'\nimport { tooltipV2TriggerProps } from './trigger'\nimport TooltipV2Root from './root.vue'\nimport TooltipV2Arrow from './arrow.vue'\nimport TooltipV2Content from './content.vue'\nimport TooltipV2Trigger from './trigger.vue'\n\ndefineOptions({\n name: 'ElTooltipV2',\n})\n\nconst props = defineProps(tooltipV2Props)\n\nconst refedProps = toRefs(props)\n\nconst arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)))\n\nconst contentProps = reactive(\n pick(refedProps, Object.keys(tooltipV2ContentProps))\n)\n\nconst rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)))\n\nconst triggerProps = reactive(\n pick(refedProps, Object.keys(tooltipV2TriggerProps))\n)\n</script>\n"],"names":["toRefs","reactive","pick","tooltipV2ArrowProps","tooltipV2ContentProps","tooltipV2RootProps","tooltipV2TriggerProps"],"mappings":";;;;;;;;;;;;;;;;;uCAsDc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,UAAA,GAAaA,WAAO,KAAK,CAAA,CAAA;AAE/B,IAAM,MAAA,UAAA,GAAaC,aAASC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAC,yBAAmB,CAAC,CAAC,CAAA,CAAA;AAE9E,IAAM,MAAA,YAAA,GAAeF,aACnBC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAE,6BAAqB,CAAC,CACrD,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAYH,aAASC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAG,uBAAkB,CAAC,CAAC,CAAA,CAAA;AAE5E,IAAM,MAAA,YAAA,GAAeJ,aACnBC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAI,6BAAqB,CAAC,CACrD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ require('../../utils/index.js');
|
|
|
6
6
|
var upload$1 = require('./src/upload2.js');
|
|
7
7
|
var upload = require('./src/upload.js');
|
|
8
8
|
var uploadContent = require('./src/upload-content.js');
|
|
9
|
-
var uploadList = require('./src/upload-
|
|
9
|
+
var uploadList = require('./src/upload-list.js');
|
|
10
10
|
var uploadDragger = require('./src/upload-dragger.js');
|
|
11
11
|
var constants = require('./src/constants.js');
|
|
12
12
|
var install = require('../../utils/vue/install.js');
|
|
@@ -2,186 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
require('../../../
|
|
9
|
-
var
|
|
10
|
-
require('../../form/index.js');
|
|
11
|
-
var uploadList = require('./upload-list2.js');
|
|
12
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
14
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
15
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
5
|
+
var shared = require('@vue/shared');
|
|
6
|
+
require('../../../utils/index.js');
|
|
7
|
+
var upload = require('./upload.js');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
9
|
+
var typescript = require('../../../utils/typescript.js');
|
|
16
10
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const focusing = vue.ref(false);
|
|
38
|
-
const containerKls = vue.computed(() => [
|
|
39
|
-
nsUpload.b("list"),
|
|
40
|
-
nsUpload.bm("list", props.listType),
|
|
41
|
-
nsUpload.is("disabled", props.disabled)
|
|
42
|
-
]);
|
|
43
|
-
const handleRemove = (file) => {
|
|
44
|
-
emit("remove", file);
|
|
45
|
-
};
|
|
46
|
-
return (_ctx, _cache) => {
|
|
47
|
-
return vue.openBlock(), vue.createBlock(vue.TransitionGroup, {
|
|
48
|
-
tag: "ul",
|
|
49
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
|
50
|
-
name: vue.unref(nsList).b()
|
|
51
|
-
}, {
|
|
52
|
-
default: vue.withCtx(() => [
|
|
53
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.files, (file) => {
|
|
54
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
55
|
-
key: file.uid || file.name,
|
|
56
|
-
class: vue.normalizeClass([
|
|
57
|
-
vue.unref(nsUpload).be("list", "item"),
|
|
58
|
-
vue.unref(nsUpload).is(file.status),
|
|
59
|
-
{ focusing: focusing.value }
|
|
60
|
-
]),
|
|
61
|
-
tabindex: "0",
|
|
62
|
-
onKeydown: vue.withKeys(($event) => !vue.unref(disabled) && handleRemove(file), ["delete"]),
|
|
63
|
-
onFocus: _cache[0] || (_cache[0] = ($event) => focusing.value = true),
|
|
64
|
-
onBlur: _cache[1] || (_cache[1] = ($event) => focusing.value = false),
|
|
65
|
-
onClick: _cache[2] || (_cache[2] = ($event) => focusing.value = false)
|
|
66
|
-
}, [
|
|
67
|
-
vue.renderSlot(_ctx.$slots, "default", { file }, () => [
|
|
68
|
-
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
69
|
-
key: 0,
|
|
70
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-thumbnail")),
|
|
71
|
-
src: file.url,
|
|
72
|
-
crossorigin: _ctx.crossorigin,
|
|
73
|
-
alt: ""
|
|
74
|
-
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
75
|
-
file.status === "uploading" || _ctx.listType !== "picture-card" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
76
|
-
key: 1,
|
|
77
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-info"))
|
|
78
|
-
}, [
|
|
79
|
-
vue.createElementVNode("a", {
|
|
80
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-name")),
|
|
81
|
-
onClick: vue.withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
|
|
82
|
-
}, [
|
|
83
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
84
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("document"))
|
|
85
|
-
}, {
|
|
86
|
-
default: vue.withCtx(() => [
|
|
87
|
-
vue.createVNode(vue.unref(iconsVue.Document))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["class"]),
|
|
91
|
-
vue.createElementVNode("span", {
|
|
92
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-file-name")),
|
|
93
|
-
title: file.name
|
|
94
|
-
}, vue.toDisplayString(file.name), 11, _hoisted_4)
|
|
95
|
-
], 10, _hoisted_3),
|
|
96
|
-
file.status === "uploading" ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElProgress), {
|
|
97
|
-
key: 0,
|
|
98
|
-
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
99
|
-
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
100
|
-
percentage: Number(file.percentage),
|
|
101
|
-
style: vue.normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
102
|
-
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : vue.createCommentVNode("v-if", true)
|
|
103
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
104
|
-
vue.createElementVNode("label", {
|
|
105
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-status-label"))
|
|
106
|
-
}, [
|
|
107
|
-
_ctx.listType === "text" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
108
|
-
key: 0,
|
|
109
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("circle-check")])
|
|
110
|
-
}, {
|
|
111
|
-
default: vue.withCtx(() => [
|
|
112
|
-
vue.createVNode(vue.unref(iconsVue.CircleCheck))
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
116
|
-
key: 1,
|
|
117
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("check")])
|
|
118
|
-
}, {
|
|
119
|
-
default: vue.withCtx(() => [
|
|
120
|
-
vue.createVNode(vue.unref(iconsVue.Check))
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
124
|
-
], 2),
|
|
125
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
126
|
-
key: 2,
|
|
127
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close")),
|
|
128
|
-
onClick: ($event) => handleRemove(file)
|
|
129
|
-
}, {
|
|
130
|
-
default: vue.withCtx(() => [
|
|
131
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1032, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
|
|
135
|
-
vue.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
136
|
-
vue.createCommentVNode(" This is a bug which needs to be fixed "),
|
|
137
|
-
vue.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
138
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
139
|
-
key: 3,
|
|
140
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close-tip"))
|
|
141
|
-
}, vue.toDisplayString(vue.unref(t)("el.upload.deleteTip")), 3)) : vue.createCommentVNode("v-if", true),
|
|
142
|
-
_ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
143
|
-
key: 4,
|
|
144
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-actions"))
|
|
145
|
-
}, [
|
|
146
|
-
vue.createElementVNode("span", {
|
|
147
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-preview")),
|
|
148
|
-
onClick: ($event) => _ctx.handlePreview(file)
|
|
149
|
-
}, [
|
|
150
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
151
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("zoom-in"))
|
|
152
|
-
}, {
|
|
153
|
-
default: vue.withCtx(() => [
|
|
154
|
-
vue.createVNode(vue.unref(iconsVue.ZoomIn))
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["class"])
|
|
158
|
-
], 10, _hoisted_5),
|
|
159
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-delete")),
|
|
162
|
-
onClick: ($event) => handleRemove(file)
|
|
163
|
-
}, [
|
|
164
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
165
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("delete"))
|
|
166
|
-
}, {
|
|
167
|
-
default: vue.withCtx(() => [
|
|
168
|
-
vue.createVNode(vue.unref(iconsVue.Delete))
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["class"])
|
|
172
|
-
], 10, _hoisted_6)) : vue.createCommentVNode("v-if", true)
|
|
173
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
174
|
-
])
|
|
175
|
-
], 42, _hoisted_1);
|
|
176
|
-
}), 128)),
|
|
177
|
-
vue.renderSlot(_ctx.$slots, "append")
|
|
178
|
-
]),
|
|
179
|
-
_: 3
|
|
180
|
-
}, 8, ["class", "name"]);
|
|
181
|
-
};
|
|
11
|
+
const uploadListProps = runtime.buildProps({
|
|
12
|
+
files: {
|
|
13
|
+
type: runtime.definePropType(Array),
|
|
14
|
+
default: () => typescript.mutable([])
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
handlePreview: {
|
|
21
|
+
type: runtime.definePropType(Function),
|
|
22
|
+
default: shared.NOOP
|
|
23
|
+
},
|
|
24
|
+
listType: {
|
|
25
|
+
type: String,
|
|
26
|
+
values: upload.uploadListTypes,
|
|
27
|
+
default: "text"
|
|
28
|
+
},
|
|
29
|
+
crossorigin: {
|
|
30
|
+
type: runtime.definePropType(String)
|
|
182
31
|
}
|
|
183
32
|
});
|
|
184
|
-
|
|
33
|
+
const uploadListEmits = {
|
|
34
|
+
remove: (file) => !!file
|
|
35
|
+
};
|
|
185
36
|
|
|
186
|
-
exports
|
|
37
|
+
exports.uploadListEmits = uploadListEmits;
|
|
38
|
+
exports.uploadListProps = uploadListProps;
|
|
187
39
|
//# sourceMappingURL=upload-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list.js","sources":["../../../../../../packages/components/upload/src/upload-list.
|
|
1
|
+
{"version":3,"file":"upload-list.js","sources":["../../../../../../packages/components/upload/src/upload-list.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\nimport { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { uploadListTypes } from './upload'\nimport type { ExtractPropTypes } from 'vue'\nimport type { UploadFile, UploadFiles, UploadHooks } from './upload'\nimport type UploadList from './upload-list.vue'\n\nexport const uploadListProps = buildProps({\n files: {\n type: definePropType<UploadFiles>(Array),\n default: () => mutable([]),\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n handlePreview: {\n type: definePropType<UploadHooks['onPreview']>(Function),\n default: NOOP,\n },\n listType: {\n type: String,\n values: uploadListTypes,\n default: 'text',\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\n\nexport type UploadListProps = ExtractPropTypes<typeof uploadListProps>\nexport const uploadListEmits = {\n remove: (file: UploadFile) => !!file,\n}\nexport type UploadListEmits = typeof uploadListEmits\nexport type UploadListInstance = InstanceType<typeof UploadList>\n"],"names":["buildProps","definePropType","mutable","NOOP","uploadListTypes"],"mappings":";;;;;;;;;;AAGY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEE,WAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,sBAAe;AAC3B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEH,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,MAAM,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AAC1B;;;;;"}
|