@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,34 +1,183 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, TransitionGroup, normalizeClass, unref, withCtx, createElementBlock, Fragment, renderList, withKeys, renderSlot, createCommentVNode, createElementVNode, withModifiers, createVNode, toDisplayString, normalizeStyle } from 'vue';
|
|
2
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
3
|
+
import { Document, CircleCheck, Check, Close, ZoomIn, Delete } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import { ElProgress } from '../../progress/index.mjs';
|
|
6
|
+
import '../../form/index.mjs';
|
|
7
|
+
import { uploadListProps, uploadListEmits } from './upload-list.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';
|
|
6
12
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
const _hoisted_1 = ["onKeydown"];
|
|
14
|
+
const _hoisted_2 = ["src", "crossorigin"];
|
|
15
|
+
const _hoisted_3 = ["onClick"];
|
|
16
|
+
const _hoisted_4 = ["title"];
|
|
17
|
+
const _hoisted_5 = ["onClick"];
|
|
18
|
+
const _hoisted_6 = ["onClick"];
|
|
19
|
+
const __default__ = defineComponent({
|
|
20
|
+
name: "ElUploadList"
|
|
21
|
+
});
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
|
+
...__default__,
|
|
24
|
+
props: uploadListProps,
|
|
25
|
+
emits: uploadListEmits,
|
|
26
|
+
setup(__props, { emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const { t } = useLocale();
|
|
29
|
+
const nsUpload = useNamespace("upload");
|
|
30
|
+
const nsIcon = useNamespace("icon");
|
|
31
|
+
const nsList = useNamespace("list");
|
|
32
|
+
const disabled = useFormDisabled();
|
|
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
|
+
};
|
|
27
178
|
}
|
|
28
179
|
});
|
|
29
|
-
|
|
30
|
-
remove: (file) => !!file
|
|
31
|
-
};
|
|
180
|
+
var UploadList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "upload-list.vue"]]);
|
|
32
181
|
|
|
33
|
-
export {
|
|
182
|
+
export { UploadList as default };
|
|
34
183
|
//# sourceMappingURL=upload-list2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list2.mjs","sources":["../../../../../../packages/components/upload/src/upload-list.
|
|
1
|
+
{"version":3,"file":"upload-list2.mjs","sources":["../../../../../../packages/components/upload/src/upload-list.vue"],"sourcesContent":["<template>\n <transition-group tag=\"ul\" :class=\"containerKls\" :name=\"nsList.b()\">\n <li\n v-for=\"file in files\"\n :key=\"file.uid || file.name\"\n :class=\"[\n nsUpload.be('list', 'item'),\n nsUpload.is(file.status),\n { focusing },\n ]\"\n tabindex=\"0\"\n @keydown.delete=\"!disabled && handleRemove(file)\"\n @focus=\"focusing = true\"\n @blur=\"focusing = false\"\n @click=\"focusing = false\"\n >\n <slot :file=\"file\">\n <img\n v-if=\"\n listType === 'picture' ||\n (file.status !== 'uploading' && listType === 'picture-card')\n \"\n :class=\"nsUpload.be('list', 'item-thumbnail')\"\n :src=\"file.url\"\n :crossorigin=\"crossorigin\"\n alt=\"\"\n />\n <div\n v-if=\"file.status === 'uploading' || listType !== 'picture-card'\"\n :class=\"nsUpload.be('list', 'item-info')\"\n >\n <a\n :class=\"nsUpload.be('list', 'item-name')\"\n @click.prevent=\"handlePreview(file)\"\n >\n <el-icon :class=\"nsIcon.m('document')\">\n <Document />\n </el-icon>\n <span\n :class=\"nsUpload.be('list', 'item-file-name')\"\n :title=\"file.name\"\n >\n {{ file.name }}\n </span>\n </a>\n <el-progress\n v-if=\"file.status === 'uploading'\"\n :type=\"listType === 'picture-card' ? 'circle' : 'line'\"\n :stroke-width=\"listType === 'picture-card' ? 6 : 2\"\n :percentage=\"Number(file.percentage)\"\n :style=\"listType === 'picture-card' ? '' : 'margin-top: 0.5rem'\"\n />\n </div>\n\n <label :class=\"nsUpload.be('list', 'item-status-label')\">\n <el-icon\n v-if=\"listType === 'text'\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('circle-check')]\"\n >\n <circle-check />\n </el-icon>\n <el-icon\n v-else-if=\"['picture-card', 'picture'].includes(listType)\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('check')]\"\n >\n <Check />\n </el-icon>\n </label>\n <el-icon\n v-if=\"!disabled\"\n :class=\"nsIcon.m('close')\"\n @click=\"handleRemove(file)\"\n >\n <Close />\n </el-icon>\n <!-- Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn-->\n <!-- This is a bug which needs to be fixed -->\n <!-- TODO: Fix the incorrect navigation interaction -->\n <i v-if=\"!disabled\" :class=\"nsIcon.m('close-tip')\">{{\n t('el.upload.deleteTip')\n }}</i>\n <span\n v-if=\"listType === 'picture-card'\"\n :class=\"nsUpload.be('list', 'item-actions')\"\n >\n <span\n :class=\"nsUpload.be('list', 'item-preview')\"\n @click=\"handlePreview(file)\"\n >\n <el-icon :class=\"nsIcon.m('zoom-in')\"><zoom-in /></el-icon>\n </span>\n <span\n v-if=\"!disabled\"\n :class=\"nsUpload.be('list', 'item-delete')\"\n @click=\"handleRemove(file)\"\n >\n <el-icon :class=\"nsIcon.m('delete')\">\n <Delete />\n </el-icon>\n </span>\n </span>\n </slot>\n </li>\n <slot name=\"append\" />\n </transition-group>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n Check,\n CircleCheck,\n Close,\n Delete,\n Document,\n ZoomIn,\n} from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElProgress from '@element-plus/components/progress'\nimport { useFormDisabled } from '@element-plus/components/form'\n\nimport { uploadListEmits, uploadListProps } from './upload-list'\nimport type { UploadFile } from './upload'\n\ndefineOptions({\n name: 'ElUploadList',\n})\n\nconst props = defineProps(uploadListProps)\nconst emit = defineEmits(uploadListEmits)\n\nconst { t } = useLocale()\nconst nsUpload = useNamespace('upload')\nconst nsIcon = useNamespace('icon')\nconst nsList = useNamespace('list')\nconst disabled = useFormDisabled()\n\nconst focusing = ref(false)\n\nconst containerKls = computed(() => [\n nsUpload.b('list'),\n nsUpload.bm('list', props.listType),\n nsUpload.is('disabled', props.disabled),\n])\n\nconst handleRemove = (file: UploadFile) => {\n emit('remove', file)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;mCA4Hc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,QAAA,GAAW,aAAa,QAAQ,CAAA,CAAA;AACtC,IAAM,MAAA,MAAA,GAAS,aAAa,MAAM,CAAA,CAAA;AAClC,IAAM,MAAA,MAAA,GAAS,aAAa,MAAM,CAAA,CAAA;AAClC,IAAA,MAAM,WAAW,eAAgB,EAAA,CAAA;AAEjC,IAAM,MAAA,QAAA,GAAW,IAAI,KAAK,CAAA,CAAA;AAE1B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAAA,MAClC,QAAA,CAAS,EAAE,MAAM,CAAA;AAAA,MACjB,QAAS,CAAA,EAAA,CAAG,MAAQ,EAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MAClC,QAAS,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,KACvC,CAAA,CAAA;AAED,IAAM,MAAA,YAAA,GAAe,CAAC,IAAqB,KAAA;AACzC,MAAA,IAAA,CAAK,UAAU,IAAI,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, shallowRef, computed, onBeforeUnmount, provide, toRef, openBlock, createElementBlock, unref, createBlock, createSlots, withCtx, createVNode, mergeProps, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import '../../form/index.mjs';
|
|
3
3
|
import { uploadContextKey } from './constants.mjs';
|
|
4
|
-
import UploadList from './upload-
|
|
4
|
+
import UploadList from './upload-list2.mjs';
|
|
5
5
|
import UploadContent from './upload-content2.mjs';
|
|
6
6
|
import { useHandlers } from './use-handlers.mjs';
|
|
7
7
|
import { uploadProps } from './upload.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ export { ElBacktop } from './components/backtop/index.mjs';
|
|
|
19
19
|
export { badgeProps } from './components/badge/src/badge.mjs';
|
|
20
20
|
export { ElBadge } from './components/badge/index.mjs';
|
|
21
21
|
export { breadcrumbProps } from './components/breadcrumb/src/breadcrumb.mjs';
|
|
22
|
-
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-
|
|
22
|
+
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-item.mjs';
|
|
23
23
|
export { breadcrumbKey } from './components/breadcrumb/src/constants.mjs';
|
|
24
24
|
export { ElBreadcrumb, ElBreadcrumbItem } from './components/breadcrumb/index.mjs';
|
|
25
25
|
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './components/button/src/button.mjs';
|
|
@@ -51,7 +51,7 @@ export { collapseItemProps } from './components/collapse/src/collapse-item.mjs';
|
|
|
51
51
|
export { collapseContextKey } from './components/collapse/src/constants.mjs';
|
|
52
52
|
export { ElCollapse, ElCollapseItem } from './components/collapse/index.mjs';
|
|
53
53
|
export { ElCollapseTransition } from './components/collapse-transition/index.mjs';
|
|
54
|
-
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './components/color-picker/src/color-
|
|
54
|
+
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './components/color-picker/src/color-picker.mjs';
|
|
55
55
|
export { ElColorPicker } from './components/color-picker/index.mjs';
|
|
56
56
|
export { messageConfig } from './components/config-provider/src/config-provider.mjs';
|
|
57
57
|
export { configProviderProps } from './components/config-provider/src/config-provider-props.mjs';
|
|
@@ -59,7 +59,7 @@ export { configProviderContextKey } from './components/config-provider/src/const
|
|
|
59
59
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './components/config-provider/src/hooks/use-global-config.mjs';
|
|
60
60
|
export { ElConfigProvider } from './components/config-provider/index.mjs';
|
|
61
61
|
export { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from './components/container/index.mjs';
|
|
62
|
-
export { countdownEmits, countdownProps } from './components/countdown/src/
|
|
62
|
+
export { countdownEmits, countdownProps } from './components/countdown/src/countdown.mjs';
|
|
63
63
|
export { ElCountdown } from './components/countdown/index.mjs';
|
|
64
64
|
export { ROOT_PICKER_INJECTION_KEY } from './components/date-picker/src/constants.mjs';
|
|
65
65
|
export { datePickerProps } from './components/date-picker/src/props/date-picker.mjs';
|
|
@@ -74,13 +74,13 @@ export { dividerProps } from './components/divider/src/divider.mjs';
|
|
|
74
74
|
export { ElDivider } from './components/divider/index.mjs';
|
|
75
75
|
export { drawerEmits, drawerProps } from './components/drawer/src/drawer.mjs';
|
|
76
76
|
export { ElDrawer } from './components/drawer/index.mjs';
|
|
77
|
-
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/
|
|
77
|
+
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown2.mjs';
|
|
78
78
|
export { DROPDOWN_INJECTION_KEY } from './components/dropdown/src/tokens.mjs';
|
|
79
79
|
export { ElDropdown, ElDropdownItem, ElDropdownMenu } from './components/dropdown/index.mjs';
|
|
80
80
|
export { emptyProps } from './components/empty/src/empty.mjs';
|
|
81
81
|
export { ElEmpty } from './components/empty/index.mjs';
|
|
82
82
|
export { formEmits, formProps } from './components/form/src/form.mjs';
|
|
83
|
-
export { formItemProps, formItemValidateStates } from './components/form/src/form-
|
|
83
|
+
export { formItemProps, formItemValidateStates } from './components/form/src/form-item.mjs';
|
|
84
84
|
export { formContextKey, formItemContextKey } from './components/form/src/constants.mjs';
|
|
85
85
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './components/form/src/hooks/use-form-common-props.mjs';
|
|
86
86
|
export { useFormItem, useFormItemInputId } from './components/form/src/hooks/use-form-item.mjs';
|
|
@@ -95,7 +95,7 @@ export { inputEmits, inputProps } from './components/input/src/input.mjs';
|
|
|
95
95
|
export { ElInput } from './components/input/index.mjs';
|
|
96
96
|
export { inputNumberEmits, inputNumberProps } from './components/input-number/src/input-number.mjs';
|
|
97
97
|
export { ElInputNumber } from './components/input-number/index.mjs';
|
|
98
|
-
export { linkEmits, linkProps } from './components/link/src/
|
|
98
|
+
export { linkEmits, linkProps } from './components/link/src/link2.mjs';
|
|
99
99
|
export { ElLink } from './components/link/index.mjs';
|
|
100
100
|
export { menuEmits, menuProps } from './components/menu/src/menu.mjs';
|
|
101
101
|
export { menuItemEmits, menuItemProps } from './components/menu/src/menu-item.mjs';
|
|
@@ -127,7 +127,7 @@ export { radioGroupEmits, radioGroupProps } from './components/radio/src/radio-g
|
|
|
127
127
|
export { radioButtonProps } from './components/radio/src/radio-button.mjs';
|
|
128
128
|
export { radioGroupKey } from './components/radio/src/constants.mjs';
|
|
129
129
|
export { ElRadio, ElRadioButton, ElRadioGroup } from './components/radio/index.mjs';
|
|
130
|
-
export { rateEmits, rateProps } from './components/rate/src/
|
|
130
|
+
export { rateEmits, rateProps } from './components/rate/src/rate2.mjs';
|
|
131
131
|
export { ElRate } from './components/rate/index.mjs';
|
|
132
132
|
export { IconComponentMap, IconMap, resultProps } from './components/result/src/result.mjs';
|
|
133
133
|
export { ElResult } from './components/result/index.mjs';
|
|
@@ -155,7 +155,7 @@ export { ElSpace } from './components/space/index.mjs';
|
|
|
155
155
|
export { statisticProps } from './components/statistic/src/statistic.mjs';
|
|
156
156
|
export { ElStatistic } from './components/statistic/index.mjs';
|
|
157
157
|
export { stepProps } from './components/steps/src/item.mjs';
|
|
158
|
-
export { stepsEmits, stepsProps } from './components/steps/src/
|
|
158
|
+
export { stepsEmits, stepsProps } from './components/steps/src/steps2.mjs';
|
|
159
159
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
|
160
160
|
export { switchEmits, switchProps } from './components/switch/src/switch.mjs';
|
|
161
161
|
export { ElSwitch } from './components/switch/index.mjs';
|
|
@@ -198,7 +198,7 @@ export { ElTreeSelect } from './components/tree-select/index.mjs';
|
|
|
198
198
|
export { ElTreeV2 } from './components/tree-v2/index.mjs';
|
|
199
199
|
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './components/upload/src/upload.mjs';
|
|
200
200
|
export { uploadContentProps } from './components/upload/src/upload-content.mjs';
|
|
201
|
-
export { uploadListEmits, uploadListProps } from './components/upload/src/upload-
|
|
201
|
+
export { uploadListEmits, uploadListProps } from './components/upload/src/upload-list.mjs';
|
|
202
202
|
export { uploadDraggerEmits, uploadDraggerProps } from './components/upload/src/upload-dragger.mjs';
|
|
203
203
|
export { uploadContextKey } from './components/upload/src/constants.mjs';
|
|
204
204
|
export { ElUpload } from './components/upload/index.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20240224";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240224'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -48,8 +48,8 @@ export declare const ElAlert: import("@element-plus/nightly/es/utils").SFCWithIn
|
|
|
48
48
|
iconClass: import("vue").ComputedRef<(string | {
|
|
49
49
|
[x: string]: boolean;
|
|
50
50
|
})[]>;
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
withDescription: import("vue").ComputedRef<{
|
|
52
|
+
'with-description': string | import("vue").Slot | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
close: (evt: MouseEvent) => void;
|
|
55
55
|
ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -48,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
iconClass: import("vue").ComputedRef<(string | {
|
|
49
49
|
[x: string]: boolean;
|
|
50
50
|
})[]>;
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
withDescription: import("vue").ComputedRef<{
|
|
52
|
+
'with-description': string | import("vue").Slot | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
close: (evt: MouseEvent) => void;
|
|
55
55
|
ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -29,8 +29,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
29
29
|
ns.e("icon"),
|
|
30
30
|
{ [ns.is("big")]: !!props.description || !!slots.default }
|
|
31
31
|
]);
|
|
32
|
-
const
|
|
33
|
-
return {
|
|
32
|
+
const withDescription = vue.computed(() => {
|
|
33
|
+
return { "with-description": props.description || slots.default };
|
|
34
34
|
});
|
|
35
35
|
const close = (evt) => {
|
|
36
36
|
visible.value = false;
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
60
|
}, [
|
|
61
61
|
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
62
62
|
key: 0,
|
|
63
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(
|
|
63
|
+
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(withDescription)])
|
|
64
64
|
}, [
|
|
65
65
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
66
66
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'),
|
|
1
|
+
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), withDescription]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"$slots.default || description\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst iconClass = computed(() => [\n ns.e('icon'),\n { [ns.is('big')]: !!props.description || !!slots.default },\n])\n\nconst withDescription = computed(() => {\n return { 'with-description': props.description || slots.default }\n})\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;;;uCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAA,MAAM,EAAE,KAAU,EAAA,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,aAAgB,GAAAC,YAAA,CAAS,MAAMC,sBAAA,CAAkB,MAAM,IAAK,CAAA,CAAA,CAAA;AAElE,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAAA,MAC/B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,KAAK,CAAA,GAAI,CAAC,CAAC,KAAM,CAAA,WAAA,IAAe,CAAC,CAAC,MAAM,OAAQ,EAAA;AAAA,KAC1D,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkBA,aAAS,MAAM;AACrC,MAAA,OAAO,EAAE,kBAAA,EAAoB,KAAM,CAAA,WAAA,IAAe,MAAM,OAAQ,EAAA,CAAA;AAAA,KACjE,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var breadcrumb$1 = require('./src/breadcrumb2.js');
|
|
7
|
-
var breadcrumbItem$1 = require('./src/breadcrumb-
|
|
7
|
+
var breadcrumbItem$1 = require('./src/breadcrumb-item2.js');
|
|
8
8
|
var breadcrumb = require('./src/breadcrumb.js');
|
|
9
|
-
var breadcrumbItem = require('./src/breadcrumb-
|
|
9
|
+
var breadcrumbItem = require('./src/breadcrumb-item.js');
|
|
10
10
|
var constants = require('./src/constants.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|
|
12
12
|
|
|
@@ -2,64 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
require('../../../hooks/index.js');
|
|
8
|
-
var constants = require('./constants.js');
|
|
9
|
-
var breadcrumbItem = require('./breadcrumb-item2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
12
7
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const instance = vue.getCurrentInstance();
|
|
22
|
-
const breadcrumbContext = vue.inject(constants.breadcrumbKey, void 0);
|
|
23
|
-
const ns = index.useNamespace("breadcrumb");
|
|
24
|
-
const router = instance.appContext.config.globalProperties.$router;
|
|
25
|
-
const link = vue.ref();
|
|
26
|
-
const onClick = () => {
|
|
27
|
-
if (!props.to || !router)
|
|
28
|
-
return;
|
|
29
|
-
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
30
|
-
};
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
-
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
|
35
|
-
}, [
|
|
36
|
-
vue.createElementVNode("span", {
|
|
37
|
-
ref_key: "link",
|
|
38
|
-
ref: link,
|
|
39
|
-
class: vue.normalizeClass([vue.unref(ns).e("inner"), vue.unref(ns).is("link", !!_ctx.to)]),
|
|
40
|
-
role: "link",
|
|
41
|
-
onClick
|
|
42
|
-
}, [
|
|
43
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
44
|
-
], 2),
|
|
45
|
-
((_a = vue.unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: vue.normalizeClass(vue.unref(ns).e("separator"))
|
|
48
|
-
}, {
|
|
49
|
-
default: vue.withCtx(() => [
|
|
50
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(breadcrumbContext).separatorIcon)))
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
54
|
-
key: 1,
|
|
55
|
-
class: vue.normalizeClass(vue.unref(ns).e("separator")),
|
|
56
|
-
role: "presentation"
|
|
57
|
-
}, vue.toDisplayString((_b = vue.unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
58
|
-
], 2);
|
|
59
|
-
};
|
|
8
|
+
const breadcrumbItemProps = runtime.buildProps({
|
|
9
|
+
to: {
|
|
10
|
+
type: runtime.definePropType([String, Object]),
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
replace: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
60
16
|
}
|
|
61
17
|
});
|
|
62
|
-
var BreadcrumbItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "breadcrumb-item.vue"]]);
|
|
63
18
|
|
|
64
|
-
exports
|
|
19
|
+
exports.breadcrumbItemProps = breadcrumbItemProps;
|
|
65
20
|
//# sourceMappingURL=breadcrumb-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,19 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var constants = require('./constants.js');
|
|
9
|
+
var breadcrumbItem = require('./breadcrumb-item.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
12
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const __default__ = vue.defineComponent({
|
|
14
|
+
name: "ElBreadcrumbItem"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: breadcrumbItem.breadcrumbItemProps,
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const instance = vue.getCurrentInstance();
|
|
22
|
+
const breadcrumbContext = vue.inject(constants.breadcrumbKey, void 0);
|
|
23
|
+
const ns = index.useNamespace("breadcrumb");
|
|
24
|
+
const router = instance.appContext.config.globalProperties.$router;
|
|
25
|
+
const link = vue.ref();
|
|
26
|
+
const onClick = () => {
|
|
27
|
+
if (!props.to || !router)
|
|
28
|
+
return;
|
|
29
|
+
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
30
|
+
};
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
+
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
|
35
|
+
}, [
|
|
36
|
+
vue.createElementVNode("span", {
|
|
37
|
+
ref_key: "link",
|
|
38
|
+
ref: link,
|
|
39
|
+
class: vue.normalizeClass([vue.unref(ns).e("inner"), vue.unref(ns).is("link", !!_ctx.to)]),
|
|
40
|
+
role: "link",
|
|
41
|
+
onClick
|
|
42
|
+
}, [
|
|
43
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
44
|
+
], 2),
|
|
45
|
+
((_a = vue.unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: vue.normalizeClass(vue.unref(ns).e("separator"))
|
|
48
|
+
}, {
|
|
49
|
+
default: vue.withCtx(() => [
|
|
50
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(breadcrumbContext).separatorIcon)))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
54
|
+
key: 1,
|
|
55
|
+
class: vue.normalizeClass(vue.unref(ns).e("separator")),
|
|
56
|
+
role: "presentation"
|
|
57
|
+
}, vue.toDisplayString((_b = vue.unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
58
|
+
], 2);
|
|
59
|
+
};
|
|
16
60
|
}
|
|
17
61
|
});
|
|
62
|
+
var BreadcrumbItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "breadcrumb-item.vue"]]);
|
|
18
63
|
|
|
19
|
-
exports
|
|
64
|
+
exports["default"] = BreadcrumbItem;
|
|
20
65
|
//# sourceMappingURL=breadcrumb-item2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item2.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.
|
|
1
|
+
{"version":3,"file":"breadcrumb-item2.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":["getCurrentInstance","inject","breadcrumbKey","useNamespace","ref"],"mappings":";;;;;;;;;;;;uCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAWA,sBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoBC,UAAO,CAAAC,uBAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAKC,mBAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAOC,OAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|