@element-plus/nightly 0.0.20240220 → 0.0.20240224
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 +8 -7
- 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 +8 -7
- 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/alert/index.d.ts +2 -2
- package/es/components/alert/src/alert.vue.d.ts +2 -2
- package/es/components/alert/src/alert2.mjs +3 -3
- package/es/components/alert/src/alert2.mjs.map +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/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +306 -97
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +97 -306
- package/es/components/dropdown/src/dropdown2.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 +9 -9
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +51 -25
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +25 -51
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/message/src/instance.mjs +1 -1
- package/es/components/message/src/instance.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +260 -87
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +87 -260
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +39 -36
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +36 -39
- package/es/components/steps/src/steps2.mjs.map +1 -1
- 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 +9 -9
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +2 -2
- package/lib/components/alert/src/alert.vue.d.ts +2 -2
- package/lib/components/alert/src/alert2.js +3 -3
- package/lib/components/alert/src/alert2.js.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/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +306 -106
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +106 -306
- package/lib/components/dropdown/src/dropdown2.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 +9 -9
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +51 -26
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +26 -51
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/message/src/instance.js +1 -1
- package/lib/components/message/src/instance.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +259 -87
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +87 -259
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +39 -37
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +37 -39
- package/lib/components/steps/src/steps2.js.map +1 -1
- 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 +9 -9
- 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-alert.css +1 -1
- package/theme-chalk/el-message.css +1 -1
- 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/alert.scss +13 -9
- package/theme-chalk/src/common/var.scss +7 -5
- package/theme-chalk/src/message.scss +1 -14
- package/theme-chalk/src/select.scss +4 -0
- package/web-types.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import TooltipV2 from './src/
|
|
2
|
+
import TooltipV2 from './src/tooltip2.mjs';
|
|
3
3
|
export { tooltipV2ArrowProps, tooltipV2ArrowSpecialProps } from './src/arrow.mjs';
|
|
4
4
|
export { tooltipV2ContentProps } from './src/content.mjs';
|
|
5
5
|
export { tooltipV2RootProps } from './src/root.mjs';
|
|
6
|
-
export { tooltipV2Props } from './src/
|
|
6
|
+
export { tooltipV2Props } from './src/tooltip.mjs';
|
|
7
7
|
export { tooltipV2TriggerProps } from './src/trigger.mjs';
|
|
8
8
|
export { TOOLTIP_V2_OPEN, tooltipV2ContentKey, tooltipV2RootKey } from './src/constants.mjs';
|
|
9
9
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
@@ -1,80 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { pick } from 'lodash-unified';
|
|
3
|
-
import { tooltipV2ArrowProps } from './arrow.mjs';
|
|
4
|
-
import { tooltipV2ContentProps } from './content.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
5
2
|
import { tooltipV2RootProps } from './root.mjs';
|
|
6
|
-
import { tooltipV2Props } from './tooltip2.mjs';
|
|
7
3
|
import { tooltipV2TriggerProps } from './trigger.mjs';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import TooltipV2Trigger from './trigger2.mjs';
|
|
12
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { tooltipV2ArrowProps } from './arrow.mjs';
|
|
5
|
+
import { tooltipV2ContentProps } from './content.mjs';
|
|
6
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
13
7
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
default: withCtx(({ open }) => [
|
|
30
|
-
createVNode(TooltipV2Trigger, mergeProps(triggerProps, { nowrap: "" }), {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
renderSlot(_ctx.$slots, "trigger")
|
|
33
|
-
]),
|
|
34
|
-
_: 3
|
|
35
|
-
}, 16),
|
|
36
|
-
(openBlock(), createBlock(Teleport, {
|
|
37
|
-
to: _ctx.to,
|
|
38
|
-
disabled: !_ctx.teleported
|
|
39
|
-
}, [
|
|
40
|
-
_ctx.fullTransition ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
41
|
-
default: withCtx(() => [
|
|
42
|
-
_ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
|
|
43
|
-
arrow: withCtx(({ style, side }) => [
|
|
44
|
-
_ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
|
|
45
|
-
style,
|
|
46
|
-
side
|
|
47
|
-
}), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
|
|
48
|
-
]),
|
|
49
|
-
default: withCtx(() => [
|
|
50
|
-
renderSlot(_ctx.$slots, "default")
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
}, 16)) : createCommentVNode("v-if", true)
|
|
54
|
-
]),
|
|
55
|
-
_: 2
|
|
56
|
-
}, 1040)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
57
|
-
_ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
|
|
58
|
-
arrow: withCtx(({ style, side }) => [
|
|
59
|
-
_ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
|
|
60
|
-
style,
|
|
61
|
-
side
|
|
62
|
-
}), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
|
|
63
|
-
]),
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
renderSlot(_ctx.$slots, "default")
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 16)) : createCommentVNode("v-if", true)
|
|
69
|
-
], 64))
|
|
70
|
-
], 8, ["to", "disabled"]))
|
|
71
|
-
]),
|
|
72
|
-
_: 3
|
|
73
|
-
}, 16);
|
|
74
|
-
};
|
|
8
|
+
const tooltipV2Props = buildProps({
|
|
9
|
+
...tooltipV2RootProps,
|
|
10
|
+
...tooltipV2ArrowProps,
|
|
11
|
+
...tooltipV2TriggerProps,
|
|
12
|
+
...tooltipV2ContentProps,
|
|
13
|
+
alwaysOn: Boolean,
|
|
14
|
+
fullTransition: Boolean,
|
|
15
|
+
transitionProps: {
|
|
16
|
+
type: definePropType(Object),
|
|
17
|
+
default: null
|
|
18
|
+
},
|
|
19
|
+
teleported: Boolean,
|
|
20
|
+
to: {
|
|
21
|
+
type: definePropType(String),
|
|
22
|
+
default: "body"
|
|
75
23
|
}
|
|
76
24
|
});
|
|
77
|
-
var TooltipV2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tooltip.vue"]]);
|
|
78
25
|
|
|
79
|
-
export {
|
|
26
|
+
export { tooltipV2Props };
|
|
80
27
|
//# sourceMappingURL=tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip.mjs","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":[],"mappings":";;;;;;;AAKY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,GAAG,kBAAkB;AACvB,EAAE,GAAG,mBAAmB;AACxB,EAAE,GAAG,qBAAqB;AAC1B,EAAE,GAAG,qBAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,27 +1,80 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import {
|
|
3
|
-
import { tooltipV2TriggerProps } from './trigger.mjs';
|
|
1
|
+
import { defineComponent, toRefs, reactive, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, renderSlot, Teleport, Transition, createCommentVNode, createElementBlock, Fragment } from 'vue';
|
|
2
|
+
import { pick } from 'lodash-unified';
|
|
4
3
|
import { tooltipV2ArrowProps } from './arrow.mjs';
|
|
5
4
|
import { tooltipV2ContentProps } from './content.mjs';
|
|
6
|
-
import {
|
|
5
|
+
import { tooltipV2RootProps } from './root.mjs';
|
|
6
|
+
import { tooltipV2Props } from './tooltip.mjs';
|
|
7
|
+
import { tooltipV2TriggerProps } from './trigger.mjs';
|
|
8
|
+
import TooltipV2Root from './root2.mjs';
|
|
9
|
+
import TooltipV2Arrow from './arrow2.mjs';
|
|
10
|
+
import TooltipV2Content from './content2.mjs';
|
|
11
|
+
import TooltipV2Trigger from './trigger2.mjs';
|
|
12
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
13
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "ElTooltipV2"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: tooltipV2Props,
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const refedProps = toRefs(props);
|
|
23
|
+
const arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)));
|
|
24
|
+
const contentProps = reactive(pick(refedProps, Object.keys(tooltipV2ContentProps)));
|
|
25
|
+
const rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)));
|
|
26
|
+
const triggerProps = reactive(pick(refedProps, Object.keys(tooltipV2TriggerProps)));
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createBlock(TooltipV2Root, normalizeProps(guardReactiveProps(rootProps)), {
|
|
29
|
+
default: withCtx(({ open }) => [
|
|
30
|
+
createVNode(TooltipV2Trigger, mergeProps(triggerProps, { nowrap: "" }), {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
renderSlot(_ctx.$slots, "trigger")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16),
|
|
36
|
+
(openBlock(), createBlock(Teleport, {
|
|
37
|
+
to: _ctx.to,
|
|
38
|
+
disabled: !_ctx.teleported
|
|
39
|
+
}, [
|
|
40
|
+
_ctx.fullTransition ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
41
|
+
default: withCtx(() => [
|
|
42
|
+
_ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
|
|
43
|
+
arrow: withCtx(({ style, side }) => [
|
|
44
|
+
_ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
|
|
45
|
+
style,
|
|
46
|
+
side
|
|
47
|
+
}), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
|
|
48
|
+
]),
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
renderSlot(_ctx.$slots, "default")
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16)) : createCommentVNode("v-if", true)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1040)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
57
|
+
_ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
|
|
58
|
+
arrow: withCtx(({ style, side }) => [
|
|
59
|
+
_ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
|
|
60
|
+
style,
|
|
61
|
+
side
|
|
62
|
+
}), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
|
|
63
|
+
]),
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
renderSlot(_ctx.$slots, "default")
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16)) : createCommentVNode("v-if", true)
|
|
69
|
+
], 64))
|
|
70
|
+
], 8, ["to", "disabled"]))
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 16);
|
|
74
|
+
};
|
|
23
75
|
}
|
|
24
76
|
});
|
|
77
|
+
var TooltipV2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tooltip.vue"]]);
|
|
25
78
|
|
|
26
|
-
export {
|
|
79
|
+
export { TooltipV2 as default };
|
|
27
80
|
//# sourceMappingURL=tooltip2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip2.mjs","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":[],"mappings":";;;;;;;;;;;;;mCAsDc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,UAAA,GAAa,OAAO,KAAK,CAAA,CAAA;AAE/B,IAAM,MAAA,UAAA,GAAa,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,mBAAmB,CAAC,CAAC,CAAA,CAAA;AAE9E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAY,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,kBAAkB,CAAC,CAAC,CAAA,CAAA;AAE5E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import '../../utils/index.mjs';
|
|
|
2
2
|
import Upload from './src/upload2.mjs';
|
|
3
3
|
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './src/upload.mjs';
|
|
4
4
|
export { uploadContentProps } from './src/upload-content.mjs';
|
|
5
|
-
export { uploadListEmits, uploadListProps } from './src/upload-
|
|
5
|
+
export { uploadListEmits, uploadListProps } from './src/upload-list.mjs';
|
|
6
6
|
export { uploadDraggerEmits, uploadDraggerProps } from './src/upload-dragger.mjs';
|
|
7
7
|
export { uploadContextKey } from './src/constants.mjs';
|
|
8
8
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
@@ -1,183 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import '../../../
|
|
5
|
-
import {
|
|
6
|
-
import '../../form/index.mjs';
|
|
7
|
-
import { uploadListProps, uploadListEmits } from './upload-list2.mjs';
|
|
8
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
9
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
10
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
11
|
-
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
1
|
+
import { NOOP } from '@vue/shared';
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
3
|
+
import { uploadListTypes } from './upload.mjs';
|
|
4
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
|
12
6
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const focusing = ref(false);
|
|
34
|
-
const containerKls = computed(() => [
|
|
35
|
-
nsUpload.b("list"),
|
|
36
|
-
nsUpload.bm("list", props.listType),
|
|
37
|
-
nsUpload.is("disabled", props.disabled)
|
|
38
|
-
]);
|
|
39
|
-
const handleRemove = (file) => {
|
|
40
|
-
emit("remove", file);
|
|
41
|
-
};
|
|
42
|
-
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createBlock(TransitionGroup, {
|
|
44
|
-
tag: "ul",
|
|
45
|
-
class: normalizeClass(unref(containerKls)),
|
|
46
|
-
name: unref(nsList).b()
|
|
47
|
-
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.files, (file) => {
|
|
50
|
-
return openBlock(), createElementBlock("li", {
|
|
51
|
-
key: file.uid || file.name,
|
|
52
|
-
class: normalizeClass([
|
|
53
|
-
unref(nsUpload).be("list", "item"),
|
|
54
|
-
unref(nsUpload).is(file.status),
|
|
55
|
-
{ focusing: focusing.value }
|
|
56
|
-
]),
|
|
57
|
-
tabindex: "0",
|
|
58
|
-
onKeydown: withKeys(($event) => !unref(disabled) && handleRemove(file), ["delete"]),
|
|
59
|
-
onFocus: _cache[0] || (_cache[0] = ($event) => focusing.value = true),
|
|
60
|
-
onBlur: _cache[1] || (_cache[1] = ($event) => focusing.value = false),
|
|
61
|
-
onClick: _cache[2] || (_cache[2] = ($event) => focusing.value = false)
|
|
62
|
-
}, [
|
|
63
|
-
renderSlot(_ctx.$slots, "default", { file }, () => [
|
|
64
|
-
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("img", {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-thumbnail")),
|
|
67
|
-
src: file.url,
|
|
68
|
-
crossorigin: _ctx.crossorigin,
|
|
69
|
-
alt: ""
|
|
70
|
-
}, null, 10, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
71
|
-
file.status === "uploading" || _ctx.listType !== "picture-card" ? (openBlock(), createElementBlock("div", {
|
|
72
|
-
key: 1,
|
|
73
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-info"))
|
|
74
|
-
}, [
|
|
75
|
-
createElementVNode("a", {
|
|
76
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-name")),
|
|
77
|
-
onClick: withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
|
|
78
|
-
}, [
|
|
79
|
-
createVNode(unref(ElIcon), {
|
|
80
|
-
class: normalizeClass(unref(nsIcon).m("document"))
|
|
81
|
-
}, {
|
|
82
|
-
default: withCtx(() => [
|
|
83
|
-
createVNode(unref(Document))
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["class"]),
|
|
87
|
-
createElementVNode("span", {
|
|
88
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-file-name")),
|
|
89
|
-
title: file.name
|
|
90
|
-
}, toDisplayString(file.name), 11, _hoisted_4)
|
|
91
|
-
], 10, _hoisted_3),
|
|
92
|
-
file.status === "uploading" ? (openBlock(), createBlock(unref(ElProgress), {
|
|
93
|
-
key: 0,
|
|
94
|
-
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
95
|
-
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
96
|
-
percentage: Number(file.percentage),
|
|
97
|
-
style: normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
98
|
-
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)
|
|
99
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
100
|
-
createElementVNode("label", {
|
|
101
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-status-label"))
|
|
102
|
-
}, [
|
|
103
|
-
_ctx.listType === "text" ? (openBlock(), createBlock(unref(ElIcon), {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("circle-check")])
|
|
106
|
-
}, {
|
|
107
|
-
default: withCtx(() => [
|
|
108
|
-
createVNode(unref(CircleCheck))
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
112
|
-
key: 1,
|
|
113
|
-
class: normalizeClass([unref(nsIcon).m("upload-success"), unref(nsIcon).m("check")])
|
|
114
|
-
}, {
|
|
115
|
-
default: withCtx(() => [
|
|
116
|
-
createVNode(unref(Check))
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
120
|
-
], 2),
|
|
121
|
-
!unref(disabled) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
122
|
-
key: 2,
|
|
123
|
-
class: normalizeClass(unref(nsIcon).m("close")),
|
|
124
|
-
onClick: ($event) => handleRemove(file)
|
|
125
|
-
}, {
|
|
126
|
-
default: withCtx(() => [
|
|
127
|
-
createVNode(unref(Close))
|
|
128
|
-
]),
|
|
129
|
-
_: 2
|
|
130
|
-
}, 1032, ["class", "onClick"])) : createCommentVNode("v-if", true),
|
|
131
|
-
createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
132
|
-
createCommentVNode(" This is a bug which needs to be fixed "),
|
|
133
|
-
createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
134
|
-
!unref(disabled) ? (openBlock(), createElementBlock("i", {
|
|
135
|
-
key: 3,
|
|
136
|
-
class: normalizeClass(unref(nsIcon).m("close-tip"))
|
|
137
|
-
}, toDisplayString(unref(t)("el.upload.deleteTip")), 3)) : createCommentVNode("v-if", true),
|
|
138
|
-
_ctx.listType === "picture-card" ? (openBlock(), createElementBlock("span", {
|
|
139
|
-
key: 4,
|
|
140
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-actions"))
|
|
141
|
-
}, [
|
|
142
|
-
createElementVNode("span", {
|
|
143
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-preview")),
|
|
144
|
-
onClick: ($event) => _ctx.handlePreview(file)
|
|
145
|
-
}, [
|
|
146
|
-
createVNode(unref(ElIcon), {
|
|
147
|
-
class: normalizeClass(unref(nsIcon).m("zoom-in"))
|
|
148
|
-
}, {
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
createVNode(unref(ZoomIn))
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["class"])
|
|
154
|
-
], 10, _hoisted_5),
|
|
155
|
-
!unref(disabled) ? (openBlock(), createElementBlock("span", {
|
|
156
|
-
key: 0,
|
|
157
|
-
class: normalizeClass(unref(nsUpload).be("list", "item-delete")),
|
|
158
|
-
onClick: ($event) => handleRemove(file)
|
|
159
|
-
}, [
|
|
160
|
-
createVNode(unref(ElIcon), {
|
|
161
|
-
class: normalizeClass(unref(nsIcon).m("delete"))
|
|
162
|
-
}, {
|
|
163
|
-
default: withCtx(() => [
|
|
164
|
-
createVNode(unref(Delete))
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["class"])
|
|
168
|
-
], 10, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
169
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
170
|
-
])
|
|
171
|
-
], 42, _hoisted_1);
|
|
172
|
-
}), 128)),
|
|
173
|
-
renderSlot(_ctx.$slots, "append")
|
|
174
|
-
]),
|
|
175
|
-
_: 3
|
|
176
|
-
}, 8, ["class", "name"]);
|
|
177
|
-
};
|
|
7
|
+
const uploadListProps = buildProps({
|
|
8
|
+
files: {
|
|
9
|
+
type: definePropType(Array),
|
|
10
|
+
default: () => mutable([])
|
|
11
|
+
},
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
handlePreview: {
|
|
17
|
+
type: definePropType(Function),
|
|
18
|
+
default: NOOP
|
|
19
|
+
},
|
|
20
|
+
listType: {
|
|
21
|
+
type: String,
|
|
22
|
+
values: uploadListTypes,
|
|
23
|
+
default: "text"
|
|
24
|
+
},
|
|
25
|
+
crossorigin: {
|
|
26
|
+
type: definePropType(String)
|
|
178
27
|
}
|
|
179
28
|
});
|
|
180
|
-
|
|
29
|
+
const uploadListEmits = {
|
|
30
|
+
remove: (file) => !!file
|
|
31
|
+
};
|
|
181
32
|
|
|
182
|
-
export {
|
|
33
|
+
export { uploadListEmits, uploadListProps };
|
|
183
34
|
//# sourceMappingURL=upload-list.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list.mjs","sources":["../../../../../../packages/components/upload/src/upload-list.
|
|
1
|
+
{"version":3,"file":"upload-list.mjs","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":[],"mappings":";;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,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,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,eAAe;AAC3B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,MAAM,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AAC1B;;;;"}
|