@element-plus/nightly 0.0.20240402 → 0.0.20240404
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.full.js +65 -30
- 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 +65 -30
- 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.mjs +2 -2
- package/es/components/alert/src/alert.mjs +36 -96
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +96 -36
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +54 -21
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +21 -54
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +60 -23
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +23 -60
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/button/index.d.ts +1 -0
- package/es/components/button/src/button.vue.d.ts +1 -0
- package/es/components/button/src/button2.mjs +15 -14
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/calendar/src/calendar.vue.d.ts +2 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/color-picker/index.d.ts +1 -0
- package/es/components/color-picker/src/color-picker.vue.d.ts +1 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +1 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -0
- package/es/components/date-picker/src/panel-utils.d.ts +2 -0
- package/es/components/index.mjs +6 -6
- package/es/components/popconfirm/index.d.ts +1 -0
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -0
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +6 -67
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +67 -6
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/table-v2/src/composables/use-row.d.ts +7 -4
- package/es/components/table-v2/src/composables/use-row.mjs +20 -4
- package/es/components/table-v2/src/composables/use-row.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/row.d.ts +3 -2
- package/es/components/table-v2/src/renderers/row.mjs +22 -4
- package/es/components/table-v2/src/renderers/row.mjs.map +1 -1
- package/es/components/table-v2/src/table-v2.mjs +0 -3
- package/es/components/table-v2/src/table-v2.mjs.map +1 -1
- package/es/components/table-v2/src/tokens.d.ts +0 -2
- package/es/components/table-v2/src/tokens.mjs.map +1 -1
- package/es/components/table-v2/src/use-table.d.ts +0 -1
- package/es/components/table-v2/src/use-table.mjs +10 -5
- package/es/components/table-v2/src/use-table.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +94 -29
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +29 -94
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +38 -24
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +24 -38
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tour/index.d.ts +2 -0
- package/es/components/tour/src/mask.mjs +78 -19
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +19 -78
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.vue.d.ts +1 -0
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/index.d.ts +1 -0
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +128 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -128
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +1 -0
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +6 -6
- 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.js +2 -2
- package/lib/components/alert/src/alert.js +37 -95
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +95 -37
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +54 -22
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +22 -54
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +60 -23
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +23 -60
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/button/src/button.vue.d.ts +1 -0
- package/lib/components/button/src/button2.js +14 -13
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/calendar/src/calendar.vue.d.ts +2 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/color-picker/index.d.ts +1 -0
- package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +1 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -0
- package/lib/components/date-picker/src/panel-utils.d.ts +2 -0
- package/lib/components/index.js +6 -6
- package/lib/components/popconfirm/index.d.ts +1 -0
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -0
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +6 -67
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +67 -6
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/table-v2/src/composables/use-row.d.ts +7 -4
- package/lib/components/table-v2/src/composables/use-row.js +20 -4
- package/lib/components/table-v2/src/composables/use-row.js.map +1 -1
- package/lib/components/table-v2/src/renderers/row.d.ts +3 -2
- package/lib/components/table-v2/src/renderers/row.js +22 -4
- package/lib/components/table-v2/src/renderers/row.js.map +1 -1
- package/lib/components/table-v2/src/table-v2.js +0 -3
- package/lib/components/table-v2/src/table-v2.js.map +1 -1
- package/lib/components/table-v2/src/tokens.d.ts +0 -2
- package/lib/components/table-v2/src/tokens.js.map +1 -1
- package/lib/components/table-v2/src/use-table.d.ts +0 -1
- package/lib/components/table-v2/src/use-table.js +9 -4
- package/lib/components/table-v2/src/use-table.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +94 -30
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +30 -94
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +38 -24
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +24 -38
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tour/index.d.ts +2 -0
- package/lib/components/tour/src/mask.js +78 -19
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +19 -78
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.vue.d.ts +1 -0
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/index.d.ts +1 -0
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +128 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -128
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +1 -0
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +6 -6
- 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/web-types.json +1 -1
|
@@ -2,27 +2,86 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
var mask = require('./mask2.js');
|
|
8
|
+
var helper = require('./helper.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-lockscreen/index.js');
|
|
7
11
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
const _hoisted_1 = { style: {
|
|
13
|
+
width: "100%",
|
|
14
|
+
height: "100%"
|
|
15
|
+
} };
|
|
16
|
+
const _hoisted_2 = ["d"];
|
|
17
|
+
const __default__ = vue.defineComponent({
|
|
18
|
+
name: "ElTourMask",
|
|
19
|
+
inheritAttrs: false
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
+
...__default__,
|
|
23
|
+
props: mask.maskProps,
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const { ns } = vue.inject(helper.tourKey);
|
|
27
|
+
const radius = vue.computed(() => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
return (_b = (_a = props.pos) == null ? void 0 : _a.radius) != null ? _b : 2;
|
|
30
|
+
});
|
|
31
|
+
const roundInfo = vue.computed(() => {
|
|
32
|
+
const v = radius.value;
|
|
33
|
+
const baseInfo = `a${v},${v} 0 0 1`;
|
|
34
|
+
return {
|
|
35
|
+
topRight: `${baseInfo} ${v},${v}`,
|
|
36
|
+
bottomRight: `${baseInfo} ${-v},${v}`,
|
|
37
|
+
bottomLeft: `${baseInfo} ${-v},${-v}`,
|
|
38
|
+
topLeft: `${baseInfo} ${v},${-v}`
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
const path = vue.computed(() => {
|
|
42
|
+
const width = window.innerWidth;
|
|
43
|
+
const height = window.innerHeight;
|
|
44
|
+
const info = roundInfo.value;
|
|
45
|
+
const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
|
|
46
|
+
const _radius = radius.value;
|
|
47
|
+
return props.pos ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${props.pos.width - _radius * 2} ${info.topRight} v${props.pos.height - _radius * 2} ${info.bottomRight} h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${-props.pos.height + _radius * 2} ${info.topLeft} z` : _path;
|
|
48
|
+
});
|
|
49
|
+
const pathStyle = vue.computed(() => {
|
|
50
|
+
return {
|
|
51
|
+
fill: props.fill,
|
|
52
|
+
pointerEvents: "auto",
|
|
53
|
+
cursor: "auto"
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
index.useLockscreen(vue.toRef(props, "visible"), {
|
|
57
|
+
ns
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return _ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
61
|
+
key: 0,
|
|
62
|
+
class: vue.unref(ns).e("mask"),
|
|
63
|
+
style: {
|
|
64
|
+
position: "fixed",
|
|
65
|
+
left: 0,
|
|
66
|
+
right: 0,
|
|
67
|
+
top: 0,
|
|
68
|
+
bottom: 0,
|
|
69
|
+
zIndex: _ctx.zIndex,
|
|
70
|
+
pointerEvents: _ctx.pos && _ctx.targetAreaClickable ? "none" : "auto"
|
|
71
|
+
}
|
|
72
|
+
}, _ctx.$attrs), [
|
|
73
|
+
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, [
|
|
74
|
+
vue.createElementVNode("path", {
|
|
75
|
+
class: vue.normalizeClass(vue.unref(ns).e("hollow")),
|
|
76
|
+
style: vue.normalizeStyle(vue.unref(pathStyle)),
|
|
77
|
+
d: vue.unref(path)
|
|
78
|
+
}, null, 14, _hoisted_2)
|
|
79
|
+
]))
|
|
80
|
+
], 16)) : vue.createCommentVNode("v-if", true);
|
|
81
|
+
};
|
|
24
82
|
}
|
|
25
83
|
});
|
|
84
|
+
var ElTourMask = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "mask.vue"]]);
|
|
26
85
|
|
|
27
|
-
exports
|
|
86
|
+
exports["default"] = ElTourMask;
|
|
28
87
|
//# sourceMappingURL=mask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mask.js","sources":["../../../../../../packages/components/tour/src/mask.
|
|
1
|
+
{"version":3,"file":"mask.js","sources":["../../../../../../packages/components/tour/src/mask.vue"],"sourcesContent":["<template>\n <div\n v-if=\"visible\"\n :class=\"ns.e('mask')\"\n :style=\"({\n position: 'fixed',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n zIndex,\n pointerEvents: pos && targetAreaClickable ? 'none' : 'auto',\n } as any)\"\n v-bind=\"$attrs\"\n >\n <svg\n :style=\"{\n width: '100%',\n height: '100%',\n }\"\n >\n <path :class=\"ns.e('hollow')\" :style=\"pathStyle\" :d=\"path\" />\n </svg>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, toRef } from 'vue'\nimport { useLockscreen } from '@element-plus/hooks'\nimport { maskProps } from './mask'\nimport { tourKey } from './helper'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElTourMask',\n inheritAttrs: false,\n})\n\nconst props = defineProps(maskProps)\n\nconst { ns } = inject(tourKey)!\nconst radius = computed(() => props.pos?.radius ?? 2)\nconst roundInfo = computed(() => {\n const v = radius.value\n const baseInfo = `a${v},${v} 0 0 1`\n return {\n topRight: `${baseInfo} ${v},${v}`,\n bottomRight: `${baseInfo} ${-v},${v}`,\n bottomLeft: `${baseInfo} ${-v},${-v}`,\n topLeft: `${baseInfo} ${v},${-v}`,\n }\n})\n\nconst path = computed(() => {\n const width = window.innerWidth\n const height = window.innerHeight\n const info = roundInfo.value\n const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`\n const _radius = radius.value\n return props.pos\n ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${\n props.pos.width - _radius * 2\n } ${info.topRight} v${props.pos.height - _radius * 2} ${\n info.bottomRight\n } h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${\n -props.pos.height + _radius * 2\n } ${info.topLeft} z`\n : _path\n})\n\nconst pathStyle = computed<CSSProperties>(() => {\n return {\n fill: props.fill,\n pointerEvents: 'auto',\n cursor: 'auto',\n }\n})\n\nuseLockscreen(toRef(props, 'visible'), {\n ns,\n})\n</script>\n"],"names":["inject","tourKey","computed"],"mappings":";;;;;;;;;;;;;;;;uCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,EAAO,EAAA,GAAAA,UAAA,CAAOC,cAAO,CAAA,CAAA;AAC7B,IAAA,MAAM,SAASC,YAAS,CAAA,MAAM;AAC9B,MAAM,IAAA,EAAA,EAAA,EAAA,CAAA;AACJ,MAAA,UAAU,GAAO,CAAA,EAAA,GAAA,KAAA,CAAA,GAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,MAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,CAAA;AACjB,KAAM,CAAA,CAAA;AACN,IAAO,MAAA,SAAA,GAAAA,YAAA,CAAA,MAAA;AAAA,MACL,MAAA,CAAA,GAAA,MAAa,CAAA,KAAA,CAAA;AAAiB,MAAA,MACjB,QAAA,GAAA,CAAG,CAAY,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,MAAM,CAAA,CAAA;AAAA,MAAA,OACtB;AAAsB,QAClC,QAAS,EAAA,CAAA,EAAe,QAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA;AAAA,QAChC,WAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA;AAAA,QACD,UAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAED,QAAM,OAAA,EAAO,WAAe,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAC1B,OAAA,CAAA;AACA,KAAA,CAAA,CAAA;AACA,IAAA,MAAA,mBAAuB,CAAA,MAAA;AACvB,MAAA,MAAM,KAAQ,GAAA,MAAuB,CAAA,UAAA,CAAA;AACrC,MAAA,MAAM,eAAiB,CAAA,WAAA,CAAA;AACvB,MAAA,MAAA,OAAa,SACN;AAOH,MACL,MAAA,KAAA,GAAA,CAAA,CAAA,EAAA,KAAA,CAAA,WAAA,EAAA,MAAA,CAAA,EAAA,EAAA,KAAA,CAAA,CAAA,EAAA,MAAA,CAAA,EAAA,EAAA,KAAA,CAAA,IAAA,CAAA,CAAA;AAED,MAAM,MAAA,OAAA,GAAY,YAA8B,CAAA;AAC9C,MAAO,OAAA,KAAA,CAAA,GAAA,GAAA,CAAA,EAAA,KAAA,CAAA,EAAA,EAAA,KAAA,CAAA,GAAA,CAAA,IAAA,GAAA,OAAA,CAAA,CAAA,EAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA,EAAA,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,GAAA,OAAA,GAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,QAAA,CAAA,EAAA,EAAA,KAAA,CAAA,GAAA,CAAA,MAAA,GAAA,OAAA,GAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,WAAA,CAAA,EAAA,EAAA,CAAA,KAAA,CAAA,GAAA,CAAA,KAAA,GAAA,OAAA,GAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,UAAA,CAAA,EAAA,EAAA,CAAA,KAAA,CAAA,GAAA,CAAA,MAAA,GAAA,OAAA,GAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,OAAA,CAAA,EAAA,CAAA,GAAA,KAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AACO,IAAA,MACG,SAAA,GAAAA,YAAA,CAAA,MAAA;AAAA,MAAA,OACP;AAAA,QACV,IAAA,EAAA,KAAA,CAAA,IAAA;AAAA,QACD,aAAA,EAAA,MAAA;AAED,QAAc,MAAA,EAAA,MAAA;AAAyB,OACrC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,86 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../
|
|
7
|
-
var mask = require('./mask.js');
|
|
8
|
-
var helper = require('./helper.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-lockscreen/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
7
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _a, _b;
|
|
29
|
-
return (_b = (_a = props.pos) == null ? void 0 : _a.radius) != null ? _b : 2;
|
|
30
|
-
});
|
|
31
|
-
const roundInfo = vue.computed(() => {
|
|
32
|
-
const v = radius.value;
|
|
33
|
-
const baseInfo = `a${v},${v} 0 0 1`;
|
|
34
|
-
return {
|
|
35
|
-
topRight: `${baseInfo} ${v},${v}`,
|
|
36
|
-
bottomRight: `${baseInfo} ${-v},${v}`,
|
|
37
|
-
bottomLeft: `${baseInfo} ${-v},${-v}`,
|
|
38
|
-
topLeft: `${baseInfo} ${v},${-v}`
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
const path = vue.computed(() => {
|
|
42
|
-
const width = window.innerWidth;
|
|
43
|
-
const height = window.innerHeight;
|
|
44
|
-
const info = roundInfo.value;
|
|
45
|
-
const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
|
|
46
|
-
const _radius = radius.value;
|
|
47
|
-
return props.pos ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${props.pos.width - _radius * 2} ${info.topRight} v${props.pos.height - _radius * 2} ${info.bottomRight} h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${-props.pos.height + _radius * 2} ${info.topLeft} z` : _path;
|
|
48
|
-
});
|
|
49
|
-
const pathStyle = vue.computed(() => {
|
|
50
|
-
return {
|
|
51
|
-
fill: props.fill,
|
|
52
|
-
pointerEvents: "auto",
|
|
53
|
-
cursor: "auto"
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
index.useLockscreen(vue.toRef(props, "visible"), {
|
|
57
|
-
ns
|
|
58
|
-
});
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
return _ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
61
|
-
key: 0,
|
|
62
|
-
class: vue.unref(ns).e("mask"),
|
|
63
|
-
style: {
|
|
64
|
-
position: "fixed",
|
|
65
|
-
left: 0,
|
|
66
|
-
right: 0,
|
|
67
|
-
top: 0,
|
|
68
|
-
bottom: 0,
|
|
69
|
-
zIndex: _ctx.zIndex,
|
|
70
|
-
pointerEvents: _ctx.pos && _ctx.targetAreaClickable ? "none" : "auto"
|
|
71
|
-
}
|
|
72
|
-
}, _ctx.$attrs), [
|
|
73
|
-
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, [
|
|
74
|
-
vue.createElementVNode("path", {
|
|
75
|
-
class: vue.normalizeClass(vue.unref(ns).e("hollow")),
|
|
76
|
-
style: vue.normalizeStyle(vue.unref(pathStyle)),
|
|
77
|
-
d: vue.unref(path)
|
|
78
|
-
}, null, 14, _hoisted_2)
|
|
79
|
-
]))
|
|
80
|
-
], 16)) : vue.createCommentVNode("v-if", true);
|
|
81
|
-
};
|
|
8
|
+
const maskProps = runtime.buildProps({
|
|
9
|
+
zIndex: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 1001
|
|
12
|
+
},
|
|
13
|
+
visible: Boolean,
|
|
14
|
+
fill: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "rgba(0,0,0,0.5)"
|
|
17
|
+
},
|
|
18
|
+
pos: {
|
|
19
|
+
type: runtime.definePropType(Object)
|
|
20
|
+
},
|
|
21
|
+
targetAreaClickable: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
82
24
|
}
|
|
83
25
|
});
|
|
84
|
-
var ElTourMask = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "mask.vue"]]);
|
|
85
26
|
|
|
86
|
-
exports
|
|
27
|
+
exports.maskProps = maskProps;
|
|
87
28
|
//# sourceMappingURL=mask2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mask2.js","sources":["../../../../../../packages/components/tour/src/mask.
|
|
1
|
+
{"version":3,"file":"mask2.js","sources":["../../../../../../packages/components/tour/src/mask.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { PosInfo } from './types'\n\nexport const maskProps = buildProps({\n /**\n * @description mask's zIndex\n */\n zIndex: {\n type: Number,\n default: 1001,\n },\n /**\n * @description whether to show the mask\n */\n visible: Boolean,\n /**\n * @description mask's fill\n */\n fill: {\n type: String,\n default: 'rgba(0,0,0,0.5)',\n },\n /***\n * @description mask's transparent space position\n */\n pos: {\n type: definePropType<PosInfo | null>(Object),\n },\n /**\n * @description whether the target element can be clickable, when using mask\n */\n targetAreaClickable: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type MaskProps = ExtractPropTypes<typeof maskProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,iBAAiB;AAC9B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -236,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
236
|
}>;
|
|
237
237
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
238
238
|
handleClick: (evt: MouseEvent) => void;
|
|
239
|
+
buttonKls: import("vue").ComputedRef<string[]>;
|
|
239
240
|
ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
240
241
|
readonly size: {
|
|
241
242
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
@@ -6,7 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
7
|
require('../../../hooks/index.js');
|
|
8
8
|
require('../../../utils/index.js');
|
|
9
|
-
var mask = require('./
|
|
9
|
+
var mask = require('./mask.js');
|
|
10
10
|
var content = require('./content2.js');
|
|
11
11
|
var steps = require('./steps.js');
|
|
12
12
|
var tour = require('./tour.js');
|
|
@@ -5209,6 +5209,7 @@ export declare const ElTransfer: import("@element-plus/nightly/es/utils").SFCWit
|
|
|
5209
5209
|
}>;
|
|
5210
5210
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
5211
5211
|
handleClick: (evt: MouseEvent) => void;
|
|
5212
|
+
buttonKls: import("vue").ComputedRef<string[]>;
|
|
5212
5213
|
ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
5213
5214
|
readonly size: {
|
|
5214
5215
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../../../utils/index.js');
|
|
7
|
-
var transferPanel = require('../transfer-
|
|
7
|
+
var transferPanel = require('../transfer-panel2.js');
|
|
8
8
|
var usePropsAlias = require('./use-props-alias.js');
|
|
9
9
|
var shared = require('@vue/shared');
|
|
10
10
|
|
|
@@ -2,29 +2,136 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
require('../../../utils/index.js');
|
|
6
|
-
|
|
7
|
-
var
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var index$2 = require('../../checkbox/index.js');
|
|
9
|
+
var index$3 = require('../../input/index.js');
|
|
10
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
11
|
+
var transferPanel = require('./transfer-panel2.js');
|
|
12
|
+
require('./composables/index.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
+
var usePropsAlias = require('./composables/use-props-alias.js');
|
|
17
|
+
var useCheck = require('./composables/use-check.js');
|
|
18
|
+
var types = require('../../../utils/types.js');
|
|
8
19
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
data: transfer.transferProps.data,
|
|
12
|
-
optionRender: {
|
|
13
|
-
type: runtime.definePropType(Function)
|
|
14
|
-
},
|
|
15
|
-
placeholder: String,
|
|
16
|
-
title: String,
|
|
17
|
-
filterable: Boolean,
|
|
18
|
-
format: transfer.transferProps.format,
|
|
19
|
-
filterMethod: transfer.transferProps.filterMethod,
|
|
20
|
-
defaultChecked: transfer.transferProps.leftDefaultChecked,
|
|
21
|
-
props: transfer.transferProps.props
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "ElTransferPanel"
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
|
+
...__default__,
|
|
25
|
+
props: transferPanel.transferPanelProps,
|
|
26
|
+
emits: transferPanel.transferPanelEmits,
|
|
27
|
+
setup(__props, { expose, emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const slots = vue.useSlots();
|
|
30
|
+
const OptionContent = ({ option }) => option;
|
|
31
|
+
const { t } = index.useLocale();
|
|
32
|
+
const ns = index$1.useNamespace("transfer");
|
|
33
|
+
const panelState = vue.reactive({
|
|
34
|
+
checked: [],
|
|
35
|
+
allChecked: false,
|
|
36
|
+
query: "",
|
|
37
|
+
checkChangeByUser: true
|
|
38
|
+
});
|
|
39
|
+
const propsAlias = usePropsAlias.usePropsAlias(props);
|
|
40
|
+
const {
|
|
41
|
+
filteredData,
|
|
42
|
+
checkedSummary,
|
|
43
|
+
isIndeterminate,
|
|
44
|
+
handleAllCheckedChange
|
|
45
|
+
} = useCheck.useCheck(props, panelState, emit);
|
|
46
|
+
const hasNoMatch = vue.computed(() => !types.isEmpty(panelState.query) && types.isEmpty(filteredData.value));
|
|
47
|
+
const hasFooter = vue.computed(() => !types.isEmpty(slots.default()[0].children));
|
|
48
|
+
const { checked, allChecked, query } = vue.toRefs(panelState);
|
|
49
|
+
expose({
|
|
50
|
+
query
|
|
51
|
+
});
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
+
class: vue.normalizeClass(vue.unref(ns).b("panel"))
|
|
55
|
+
}, [
|
|
56
|
+
vue.createElementVNode("p", {
|
|
57
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "header"))
|
|
58
|
+
}, [
|
|
59
|
+
vue.createVNode(vue.unref(index$2.ElCheckbox), {
|
|
60
|
+
modelValue: vue.unref(allChecked),
|
|
61
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(allChecked) ? allChecked.value = $event : null),
|
|
62
|
+
indeterminate: vue.unref(isIndeterminate),
|
|
63
|
+
"validate-event": false,
|
|
64
|
+
onChange: vue.unref(handleAllCheckedChange)
|
|
65
|
+
}, {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
68
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(checkedSummary)), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["modelValue", "indeterminate", "onChange"])
|
|
72
|
+
], 2),
|
|
73
|
+
vue.createElementVNode("div", {
|
|
74
|
+
class: vue.normalizeClass([vue.unref(ns).be("panel", "body"), vue.unref(ns).is("with-footer", vue.unref(hasFooter))])
|
|
75
|
+
}, [
|
|
76
|
+
_ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElInput), {
|
|
77
|
+
key: 0,
|
|
78
|
+
modelValue: vue.unref(query),
|
|
79
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(query) ? query.value = $event : null),
|
|
80
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "filter")),
|
|
81
|
+
size: "default",
|
|
82
|
+
placeholder: _ctx.placeholder,
|
|
83
|
+
"prefix-icon": vue.unref(iconsVue.Search),
|
|
84
|
+
clearable: "",
|
|
85
|
+
"validate-event": false
|
|
86
|
+
}, null, 8, ["modelValue", "class", "placeholder", "prefix-icon"])) : vue.createCommentVNode("v-if", true),
|
|
87
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$2.ElCheckboxGroup), {
|
|
88
|
+
modelValue: vue.unref(checked),
|
|
89
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(checked) ? checked.value = $event : null),
|
|
90
|
+
"validate-event": false,
|
|
91
|
+
class: vue.normalizeClass([vue.unref(ns).is("filterable", _ctx.filterable), vue.unref(ns).be("panel", "list")])
|
|
92
|
+
}, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(filteredData), (item) => {
|
|
95
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElCheckbox), {
|
|
96
|
+
key: item[vue.unref(propsAlias).key],
|
|
97
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "item")),
|
|
98
|
+
value: item[vue.unref(propsAlias).key],
|
|
99
|
+
disabled: item[vue.unref(propsAlias).disabled],
|
|
100
|
+
"validate-event": false
|
|
101
|
+
}, {
|
|
102
|
+
default: vue.withCtx(() => {
|
|
103
|
+
var _a;
|
|
104
|
+
return [
|
|
105
|
+
vue.createVNode(OptionContent, {
|
|
106
|
+
option: (_a = _ctx.optionRender) == null ? void 0 : _a.call(_ctx, item)
|
|
107
|
+
}, null, 8, ["option"])
|
|
108
|
+
];
|
|
109
|
+
}),
|
|
110
|
+
_: 2
|
|
111
|
+
}, 1032, ["class", "value", "disabled"]);
|
|
112
|
+
}), 128))
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["modelValue", "class"]), [
|
|
116
|
+
[vue.vShow, !vue.unref(hasNoMatch) && !vue.unref(types.isEmpty)(_ctx.data)]
|
|
117
|
+
]),
|
|
118
|
+
vue.withDirectives(vue.createElementVNode("p", {
|
|
119
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "empty"))
|
|
120
|
+
}, vue.toDisplayString(vue.unref(hasNoMatch) ? vue.unref(t)("el.transfer.noMatch") : vue.unref(t)("el.transfer.noData")), 3), [
|
|
121
|
+
[vue.vShow, vue.unref(hasNoMatch) || vue.unref(types.isEmpty)(_ctx.data)]
|
|
122
|
+
])
|
|
123
|
+
], 2),
|
|
124
|
+
vue.unref(hasFooter) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "footer"))
|
|
127
|
+
}, [
|
|
128
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
129
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
130
|
+
], 2);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
var TransferPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer-panel.vue"]]);
|
|
26
135
|
|
|
27
|
-
exports
|
|
28
|
-
exports.transferPanelEmits = transferPanelEmits;
|
|
29
|
-
exports.transferPanelProps = transferPanelProps;
|
|
136
|
+
exports["default"] = TransferPanel;
|
|
30
137
|
//# sourceMappingURL=transfer-panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-panel.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.
|
|
1
|
+
{"version":3,"file":"transfer-panel.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b('panel')\">\n <p :class=\"ns.be('panel', 'header')\">\n <el-checkbox\n v-model=\"allChecked\"\n :indeterminate=\"isIndeterminate\"\n :validate-event=\"false\"\n @change=\"handleAllCheckedChange\"\n >\n {{ title }}\n <span>{{ checkedSummary }}</span>\n </el-checkbox>\n </p>\n\n <div :class=\"[ns.be('panel', 'body'), ns.is('with-footer', hasFooter)]\">\n <el-input\n v-if=\"filterable\"\n v-model=\"query\"\n :class=\"ns.be('panel', 'filter')\"\n size=\"default\"\n :placeholder=\"placeholder\"\n :prefix-icon=\"Search\"\n clearable\n :validate-event=\"false\"\n />\n <el-checkbox-group\n v-show=\"!hasNoMatch && !isEmpty(data)\"\n v-model=\"checked\"\n :validate-event=\"false\"\n :class=\"[ns.is('filterable', filterable), ns.be('panel', 'list')]\"\n >\n <el-checkbox\n v-for=\"item in filteredData\"\n :key=\"item[propsAlias.key]\"\n :class=\"ns.be('panel', 'item')\"\n :value=\"item[propsAlias.key]\"\n :disabled=\"item[propsAlias.disabled]\"\n :validate-event=\"false\"\n >\n <option-content :option=\"optionRender?.(item)\" />\n </el-checkbox>\n </el-checkbox-group>\n <p v-show=\"hasNoMatch || isEmpty(data)\" :class=\"ns.be('panel', 'empty')\">\n {{ hasNoMatch ? t('el.transfer.noMatch') : t('el.transfer.noData') }}\n </p>\n </div>\n <p v-if=\"hasFooter\" :class=\"ns.be('panel', 'footer')\">\n <slot />\n </p>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, reactive, toRefs, useSlots } from 'vue'\nimport { isEmpty } from '@element-plus/utils'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElInput } from '@element-plus/components/input'\nimport { Search } from '@element-plus/icons-vue'\nimport { transferPanelEmits, transferPanelProps } from './transfer-panel'\nimport { useCheck, usePropsAlias } from './composables'\n\nimport type { VNode } from 'vue'\nimport type { TransferPanelState } from './transfer-panel'\n\ndefineOptions({\n name: 'ElTransferPanel',\n})\n\nconst props = defineProps(transferPanelProps)\nconst emit = defineEmits(transferPanelEmits)\nconst slots = useSlots()\n\nconst OptionContent = ({ option }: { option: VNode | VNode[] }) => option\n\nconst { t } = useLocale()\nconst ns = useNamespace('transfer')\n\nconst panelState = reactive<TransferPanelState>({\n checked: [],\n allChecked: false,\n query: '',\n checkChangeByUser: true,\n})\n\nconst propsAlias = usePropsAlias(props)\n\nconst {\n filteredData,\n checkedSummary,\n isIndeterminate,\n handleAllCheckedChange,\n} = useCheck(props, panelState, emit)\n\nconst hasNoMatch = computed(\n () => !isEmpty(panelState.query) && isEmpty(filteredData.value)\n)\n\nconst hasFooter = computed(() => !isEmpty(slots.default!()[0].children))\n\nconst { checked, allChecked, query } = toRefs(panelState)\n\ndefineExpose({\n /** @description filter keyword */\n query,\n})\n</script>\n"],"names":["useSlots","useLocale","useNamespace","reactive","usePropsAlias","useCheck","computed","isEmpty","toRefs"],"mappings":";;;;;;;;;;;;;;;;;;;uCAiEc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,aAAA,GAAgB,CAAC,EAAE,MAA0C,EAAA,KAAA,MAAA,CAAA;AAEnE,IAAM,MAAA,EAAE,MAAMC,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,UAAU,CAAA,CAAA;AAElC,IAAA,MAAM,aAAaC,YAA6B,CAAA;AAAA,MAC9C,SAAS,EAAC;AAAA,MACV,UAAY,EAAA,KAAA;AAAA,MACZ,KAAO,EAAA,EAAA;AAAA,MACP,iBAAmB,EAAA,IAAA;AAAA,KACpB,CAAA,CAAA;AAED,IAAM,MAAA,UAAA,GAAaC,4BAAc,KAAK,CAAA,CAAA;AAEtC,IAAM,MAAA;AAAA,MACJ,YAAA;AAAA,MACA,cAAA;AAAA,MACA,eAAA;AAAA,MACA,sBAAA;AAAA,KACE,GAAAC,iBAAA,CAAS,KAAO,EAAA,UAAA,EAAY,IAAI,CAAA,CAAA;AAEpC,IAAM,MAAA,UAAA,GAAaC,YACjB,CAAA,MAAM,CAACC,aAAA,CAAQ,UAAW,CAAA,KAAK,CAAK,IAAAA,aAAA,CAAQ,YAAa,CAAA,KAAK,CAChE,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAYD,YAAS,CAAA,MAAM,CAACC,aAAA,CAAQ,MAAM,OAAS,EAAA,CAAE,CAAG,CAAA,CAAA,QAAQ,CAAC,CAAA,CAAA;AAEvE,IAAA,MAAM,EAAE,OAAA,EAAS,UAAY,EAAA,KAAA,EAAA,GAAUC,WAAO,UAAU,CAAA,CAAA;AAExD,IAAa,MAAA,CAAA;AAAA,MAEX,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,136 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
5
|
require('../../../utils/index.js');
|
|
7
|
-
require('
|
|
8
|
-
var
|
|
9
|
-
var index$3 = require('../../input/index.js');
|
|
10
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
11
|
-
var transferPanel = require('./transfer-panel.js');
|
|
12
|
-
require('./composables/index.js');
|
|
13
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
-
var usePropsAlias = require('./composables/use-props-alias.js');
|
|
17
|
-
var useCheck = require('./composables/use-check.js');
|
|
18
|
-
var types = require('../../../utils/types.js');
|
|
6
|
+
var transfer = require('./transfer.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
19
8
|
|
|
20
|
-
const
|
|
21
|
-
|
|
9
|
+
const CHECKED_CHANGE_EVENT = "checked-change";
|
|
10
|
+
const transferPanelProps = runtime.buildProps({
|
|
11
|
+
data: transfer.transferProps.data,
|
|
12
|
+
optionRender: {
|
|
13
|
+
type: runtime.definePropType(Function)
|
|
14
|
+
},
|
|
15
|
+
placeholder: String,
|
|
16
|
+
title: String,
|
|
17
|
+
filterable: Boolean,
|
|
18
|
+
format: transfer.transferProps.format,
|
|
19
|
+
filterMethod: transfer.transferProps.filterMethod,
|
|
20
|
+
defaultChecked: transfer.transferProps.leftDefaultChecked,
|
|
21
|
+
props: transfer.transferProps.props
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
emits: transferPanel.transferPanelEmits,
|
|
27
|
-
setup(__props, { expose, emit }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const slots = vue.useSlots();
|
|
30
|
-
const OptionContent = ({ option }) => option;
|
|
31
|
-
const { t } = index.useLocale();
|
|
32
|
-
const ns = index$1.useNamespace("transfer");
|
|
33
|
-
const panelState = vue.reactive({
|
|
34
|
-
checked: [],
|
|
35
|
-
allChecked: false,
|
|
36
|
-
query: "",
|
|
37
|
-
checkChangeByUser: true
|
|
38
|
-
});
|
|
39
|
-
const propsAlias = usePropsAlias.usePropsAlias(props);
|
|
40
|
-
const {
|
|
41
|
-
filteredData,
|
|
42
|
-
checkedSummary,
|
|
43
|
-
isIndeterminate,
|
|
44
|
-
handleAllCheckedChange
|
|
45
|
-
} = useCheck.useCheck(props, panelState, emit);
|
|
46
|
-
const hasNoMatch = vue.computed(() => !types.isEmpty(panelState.query) && types.isEmpty(filteredData.value));
|
|
47
|
-
const hasFooter = vue.computed(() => !types.isEmpty(slots.default()[0].children));
|
|
48
|
-
const { checked, allChecked, query } = vue.toRefs(panelState);
|
|
49
|
-
expose({
|
|
50
|
-
query
|
|
51
|
-
});
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
-
class: vue.normalizeClass(vue.unref(ns).b("panel"))
|
|
55
|
-
}, [
|
|
56
|
-
vue.createElementVNode("p", {
|
|
57
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "header"))
|
|
58
|
-
}, [
|
|
59
|
-
vue.createVNode(vue.unref(index$2.ElCheckbox), {
|
|
60
|
-
modelValue: vue.unref(allChecked),
|
|
61
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(allChecked) ? allChecked.value = $event : null),
|
|
62
|
-
indeterminate: vue.unref(isIndeterminate),
|
|
63
|
-
"validate-event": false,
|
|
64
|
-
onChange: vue.unref(handleAllCheckedChange)
|
|
65
|
-
}, {
|
|
66
|
-
default: vue.withCtx(() => [
|
|
67
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
68
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(checkedSummary)), 1)
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
}, 8, ["modelValue", "indeterminate", "onChange"])
|
|
72
|
-
], 2),
|
|
73
|
-
vue.createElementVNode("div", {
|
|
74
|
-
class: vue.normalizeClass([vue.unref(ns).be("panel", "body"), vue.unref(ns).is("with-footer", vue.unref(hasFooter))])
|
|
75
|
-
}, [
|
|
76
|
-
_ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElInput), {
|
|
77
|
-
key: 0,
|
|
78
|
-
modelValue: vue.unref(query),
|
|
79
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(query) ? query.value = $event : null),
|
|
80
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "filter")),
|
|
81
|
-
size: "default",
|
|
82
|
-
placeholder: _ctx.placeholder,
|
|
83
|
-
"prefix-icon": vue.unref(iconsVue.Search),
|
|
84
|
-
clearable: "",
|
|
85
|
-
"validate-event": false
|
|
86
|
-
}, null, 8, ["modelValue", "class", "placeholder", "prefix-icon"])) : vue.createCommentVNode("v-if", true),
|
|
87
|
-
vue.withDirectives(vue.createVNode(vue.unref(index$2.ElCheckboxGroup), {
|
|
88
|
-
modelValue: vue.unref(checked),
|
|
89
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(checked) ? checked.value = $event : null),
|
|
90
|
-
"validate-event": false,
|
|
91
|
-
class: vue.normalizeClass([vue.unref(ns).is("filterable", _ctx.filterable), vue.unref(ns).be("panel", "list")])
|
|
92
|
-
}, {
|
|
93
|
-
default: vue.withCtx(() => [
|
|
94
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(filteredData), (item) => {
|
|
95
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElCheckbox), {
|
|
96
|
-
key: item[vue.unref(propsAlias).key],
|
|
97
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "item")),
|
|
98
|
-
value: item[vue.unref(propsAlias).key],
|
|
99
|
-
disabled: item[vue.unref(propsAlias).disabled],
|
|
100
|
-
"validate-event": false
|
|
101
|
-
}, {
|
|
102
|
-
default: vue.withCtx(() => {
|
|
103
|
-
var _a;
|
|
104
|
-
return [
|
|
105
|
-
vue.createVNode(OptionContent, {
|
|
106
|
-
option: (_a = _ctx.optionRender) == null ? void 0 : _a.call(_ctx, item)
|
|
107
|
-
}, null, 8, ["option"])
|
|
108
|
-
];
|
|
109
|
-
}),
|
|
110
|
-
_: 2
|
|
111
|
-
}, 1032, ["class", "value", "disabled"]);
|
|
112
|
-
}), 128))
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["modelValue", "class"]), [
|
|
116
|
-
[vue.vShow, !vue.unref(hasNoMatch) && !vue.unref(types.isEmpty)(_ctx.data)]
|
|
117
|
-
]),
|
|
118
|
-
vue.withDirectives(vue.createElementVNode("p", {
|
|
119
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "empty"))
|
|
120
|
-
}, vue.toDisplayString(vue.unref(hasNoMatch) ? vue.unref(t)("el.transfer.noMatch") : vue.unref(t)("el.transfer.noData")), 3), [
|
|
121
|
-
[vue.vShow, vue.unref(hasNoMatch) || vue.unref(types.isEmpty)(_ctx.data)]
|
|
122
|
-
])
|
|
123
|
-
], 2),
|
|
124
|
-
vue.unref(hasFooter) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "footer"))
|
|
127
|
-
}, [
|
|
128
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
129
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
130
|
-
], 2);
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var TransferPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer-panel.vue"]]);
|
|
23
|
+
const transferPanelEmits = {
|
|
24
|
+
[CHECKED_CHANGE_EVENT]: transfer.transferCheckedChangeFn
|
|
25
|
+
};
|
|
135
26
|
|
|
136
|
-
exports
|
|
27
|
+
exports.CHECKED_CHANGE_EVENT = CHECKED_CHANGE_EVENT;
|
|
28
|
+
exports.transferPanelEmits = transferPanelEmits;
|
|
29
|
+
exports.transferPanelProps = transferPanelProps;
|
|
137
30
|
//# sourceMappingURL=transfer-panel2.js.map
|