@element-plus/nightly 0.0.20220209 → 0.0.20220210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +866 -780
- 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 +866 -780
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/dialog/src/use-dialog.mjs +11 -0
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/slider/src/index.mjs +3 -1
- package/es/components/slider/src/index.mjs.map +1 -1
- package/es/components/table/index.d.ts +10 -0
- package/es/components/table/src/h-helper.d.ts +4 -2
- package/es/components/table/src/h-helper.mjs +25 -7
- package/es/components/table/src/h-helper.mjs.map +1 -1
- package/es/components/table/src/table/defaults.d.ts +6 -0
- package/es/components/table/src/table/defaults.mjs +4 -0
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +1 -0
- package/es/components/table/src/table/style-helper.mjs +7 -1
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs +5 -15
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-header/index.d.ts +0 -1
- package/es/components/table/src/table-header/index.mjs +56 -68
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/table-layout.mjs +6 -4
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.mjs +58 -22
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +11 -3
- package/es/components/tabs/index.d.ts +26 -26
- package/es/components/tabs/src/tab-bar.d.ts +2 -2
- package/es/components/tabs/src/tab-bar.vue.d.ts +6 -6
- package/es/components/tabs/src/tab-nav.d.ts +28 -28
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +4 -4
- package/es/components/tabs/src/tabs.d.ts +24 -24
- package/es/components/tabs/src/tabs.mjs +4 -4
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +8 -4
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.vue.d.ts +11 -0
- package/es/components/transfer/index.d.ts +110 -0
- package/es/components/transfer/src/index.mjs +19 -14
- package/es/components/transfer/src/index.mjs.map +1 -1
- package/es/components/transfer/src/index.vue.d.ts +55 -0
- package/es/components/transfer/src/transfer-panel.mjs +26 -20
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +11 -0
- package/es/components/tree-v2/index.d.ts +11 -0
- package/es/components/tree-v2/src/tree-node-content.mjs +4 -1
- package/es/components/tree-v2/src/tree-node-content.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.mjs +16 -11
- package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +11 -0
- package/es/components/tree-v2/src/tree.mjs +13 -12
- package/es/components/tree-v2/src/tree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +11 -0
- package/es/components/upload/src/upload-dragger.mjs +5 -4
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger.vue.d.ts +11 -0
- package/es/components/upload/src/upload-list.mjs +57 -45
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list.vue.d.ts +33 -0
- package/es/components/upload/src/upload.mjs +7 -3
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +11 -0
- package/es/tokens/tabs.d.ts +2 -2
- package/es/tokens/tabs.mjs.map +1 -1
- package/es/utils-v2/vue/style.d.ts +1 -1
- package/es/utils-v2/vue/style.mjs +2 -1
- package/es/utils-v2/vue/style.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/dialog/src/use-dialog.js +11 -0
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/slider/src/index.js +3 -1
- package/lib/components/slider/src/index.js.map +1 -1
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/src/h-helper.d.ts +4 -2
- package/lib/components/table/src/h-helper.js +25 -7
- package/lib/components/table/src/h-helper.js.map +1 -1
- package/lib/components/table/src/table/defaults.d.ts +6 -0
- package/lib/components/table/src/table/defaults.js +4 -0
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +1 -0
- package/lib/components/table/src/table/style-helper.js +7 -1
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.js +5 -15
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-header/index.d.ts +0 -1
- package/lib/components/table/src/table-header/index.js +56 -68
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/table-layout.js +6 -4
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.js +57 -21
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +11 -3
- package/lib/components/tabs/index.d.ts +26 -26
- package/lib/components/tabs/src/tab-bar.d.ts +2 -2
- package/lib/components/tabs/src/tab-bar.vue.d.ts +6 -6
- package/lib/components/tabs/src/tab-nav.d.ts +28 -28
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.js +1 -1
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +4 -4
- package/lib/components/tabs/src/tabs.d.ts +24 -24
- package/lib/components/tabs/src/tabs.js +4 -4
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +7 -3
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger.vue.d.ts +11 -0
- package/lib/components/transfer/index.d.ts +110 -0
- package/lib/components/transfer/src/index.js +18 -13
- package/lib/components/transfer/src/index.js.map +1 -1
- package/lib/components/transfer/src/index.vue.d.ts +55 -0
- package/lib/components/transfer/src/transfer-panel.js +25 -19
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +11 -0
- package/lib/components/tree-v2/index.d.ts +11 -0
- package/lib/components/tree-v2/src/tree-node-content.js +4 -1
- package/lib/components/tree-v2/src/tree-node-content.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.js +16 -11
- package/lib/components/tree-v2/src/tree-node.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +11 -0
- package/lib/components/tree-v2/src/tree.js +13 -12
- package/lib/components/tree-v2/src/tree.js.map +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +11 -0
- package/lib/components/upload/src/upload-dragger.js +5 -4
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger.vue.d.ts +11 -0
- package/lib/components/upload/src/upload-list.js +57 -45
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list.vue.d.ts +33 -0
- package/lib/components/upload/src/upload.js +7 -3
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +11 -0
- package/lib/tokens/tabs.d.ts +2 -2
- package/lib/tokens/tabs.js.map +1 -1
- package/lib/utils-v2/vue/style.d.ts +1 -1
- package/lib/utils-v2/vue/style.js +2 -1
- package/lib/utils-v2/vue/style.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, unref, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, inject, ref, unref, toRef, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import '../../popper/index.mjs';
|
|
3
3
|
import { EVENT_CODE } from '../../../utils/aria.mjs';
|
|
4
4
|
import { composeEventHandlers } from '../../../utils/dom.mjs';
|
|
5
|
+
import '../../../hooks/index.mjs';
|
|
5
6
|
import { TOOLTIP_INJECTION_KEY } from './tokens.mjs';
|
|
6
7
|
import { useTooltipTriggerProps } from './tooltip.mjs';
|
|
7
8
|
import { whenTrigger } from './utils.mjs';
|
|
8
9
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
9
10
|
import ElPopperTrigger from '../../popper/src/trigger.mjs';
|
|
11
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
10
12
|
|
|
11
13
|
const _sfc_main = defineComponent({
|
|
12
14
|
name: "ElTooltipTrigger",
|
|
@@ -15,6 +17,7 @@ const _sfc_main = defineComponent({
|
|
|
15
17
|
},
|
|
16
18
|
props: useTooltipTriggerProps,
|
|
17
19
|
setup(props) {
|
|
20
|
+
const ns = useNamespace("tooltip");
|
|
18
21
|
const { controlled, id, open, onOpen, onClose, onToggle } = inject(TOOLTIP_INJECTION_KEY, void 0);
|
|
19
22
|
const triggerRef = ref(null);
|
|
20
23
|
const stopWhenControlledOrDisabled = () => {
|
|
@@ -52,7 +55,8 @@ const _sfc_main = defineComponent({
|
|
|
52
55
|
onKeydown,
|
|
53
56
|
open,
|
|
54
57
|
id,
|
|
55
|
-
triggerRef
|
|
58
|
+
triggerRef,
|
|
59
|
+
ns
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
});
|
|
@@ -63,7 +67,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63
67
|
"virtual-ref": _ctx.virtualRef,
|
|
64
68
|
open: _ctx.open,
|
|
65
69
|
"virtual-triggering": _ctx.virtualTriggering,
|
|
66
|
-
class: "
|
|
70
|
+
class: normalizeClass(_ctx.ns.e("trigger")),
|
|
67
71
|
onBlur: _ctx.onBlur,
|
|
68
72
|
onClick: _ctx.onClick,
|
|
69
73
|
onContextmenu: _ctx.onContextMenu,
|
|
@@ -76,7 +80,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
80
|
renderSlot(_ctx.$slots, "default")
|
|
77
81
|
]),
|
|
78
82
|
_: 3
|
|
79
|
-
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
|
83
|
+
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
|
80
84
|
}
|
|
81
85
|
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
82
86
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.vue"],"sourcesContent":["<template>\n <el-popper-trigger\n :id=\"id\"\n :virtual-ref=\"virtualRef\"\n :open=\"open\"\n :virtual-triggering=\"virtualTriggering\"\n class=\"
|
|
1
|
+
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.vue"],"sourcesContent":["<template>\n <el-popper-trigger\n :id=\"id\"\n :virtual-ref=\"virtualRef\"\n :open=\"open\"\n :virtual-triggering=\"virtualTriggering\"\n :class=\"ns.e('trigger')\"\n @blur=\"onBlur\"\n @click=\"onClick\"\n @contextmenu=\"onContextMenu\"\n @focus=\"onFocus\"\n @mouseenter=\"onMouseenter\"\n @mouseleave=\"onMouseleave\"\n @keydown=\"onKeydown\"\n >\n <slot />\n </el-popper-trigger>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, ref, unref, toRef } from 'vue'\nimport { ElPopperTrigger } from '@element-plus/components/popper'\nimport { EVENT_CODE } from '@element-plus/utils/aria'\nimport { composeEventHandlers } from '@element-plus/utils/dom'\nimport { useNamespace } from '@element-plus/hooks'\nimport { TOOLTIP_INJECTION_KEY } from './tokens'\nimport { useTooltipTriggerProps } from './tooltip'\nimport { whenTrigger } from './utils'\n\nimport type { ElOnlyChildExpose } from '@element-plus/components/slot'\n\nexport default defineComponent({\n name: 'ElTooltipTrigger',\n components: {\n ElPopperTrigger,\n },\n props: useTooltipTriggerProps,\n setup(props) {\n const ns = useNamespace('tooltip')\n const { controlled, id, open, onOpen, onClose, onToggle } = inject(\n TOOLTIP_INJECTION_KEY,\n undefined\n )!\n const triggerRef = ref<ElOnlyChildExpose | null>(null)\n\n const stopWhenControlledOrDisabled = () => {\n if (unref(controlled) || props.disabled) {\n return true\n }\n }\n const trigger = toRef(props, 'trigger')\n const onMouseenter = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'hover', onOpen)\n )\n const onMouseleave = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'hover', onClose)\n )\n const onClick = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'click', (e) => {\n // distinguish left click\n if ((e as MouseEvent).button === 0) {\n onToggle(e)\n }\n })\n )\n\n const onFocus = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'focus', onOpen)\n )\n\n const onBlur = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'focus', onClose)\n )\n\n const onContextMenu = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'contextmenu', (e: Event) => {\n e.preventDefault()\n onToggle(e)\n })\n )\n\n const onKeydown = composeEventHandlers(\n stopWhenControlledOrDisabled,\n (e: KeyboardEvent) => {\n const { code } = e\n if (code === EVENT_CODE.enter || code === EVENT_CODE.space) {\n onToggle(e)\n }\n }\n )\n\n return {\n onBlur,\n onContextMenu,\n onFocus,\n onMouseenter,\n onMouseleave,\n onClick,\n onKeydown,\n open,\n id,\n triggerRef,\n ns,\n }\n },\n})\n</script>\n"],"names":["_openBlock","_createBlock","_normalizeClass","_withCtx"],"mappings":";;;;;;;;;;;;AA+BA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA;AAAA,EAEF,OAAO;AAAA,EACP,MAAM,OAAO;AACX,UAAM,KAAK,aAAa;AACxB,UAAM,EAAE,YAAY,IAAI,MAAM,QAAQ,SAAS,aAAa,OAC1D,uBACA;AAEF,UAAM,aAAa,IAA8B;AAEjD,UAAM,+BAA+B,MAAM;AACzC,UAAI,MAAM,eAAe,MAAM,UAAU;AACvC,eAAO;AAAA;AAAA;AAGX,UAAM,UAAU,MAAM,OAAO;AAC7B,UAAM,eAAe,qBACnB,8BACA,YAAY,SAAS,SAAS;AAEhC,UAAM,eAAe,qBACnB,8BACA,YAAY,SAAS,SAAS;AAEhC,UAAM,UAAU,qBACd,8BACA,YAAY,SAAS,SAAS,CAAC,MAAM;AAEnC,UAAK,EAAiB,WAAW,GAAG;AAClC,iBAAS;AAAA;AAAA;AAKf,UAAM,UAAU,qBACd,8BACA,YAAY,SAAS,SAAS;AAGhC,UAAM,SAAS,qBACb,8BACA,YAAY,SAAS,SAAS;AAGhC,UAAM,gBAAgB,qBACpB,8BACA,YAAY,SAAS,eAAe,CAAC,MAAa;AAChD,QAAE;AACF,eAAS;AAAA;AAIb,UAAM,YAAY,qBAChB,8BACA,CAAC,MAAqB;AACpB,YAAM,EAAE,SAAS;AACjB,UAAI,SAAS,WAAW,SAAS,SAAS,WAAW,OAAO;AAC1D,iBAAS;AAAA;AAAA;AAKf,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAAA;;;SA1GGA,aAAEC;AAAA,IACN;AAAA,IACA,eAAU;AAAA,IACV;AAAA,IACA,sBAAK,KAAE;AAAA,IACP,OAAIC,eAAQ;AAAA,IACZ,QAAK,KAAE;AAAA,IACP,cAAW;AAAA,IACX,eAAO;AAAA,IACP,cAAY;AAAA,IACZ,cAAY;AAAA,IACZ,cAAS;AAAA;;aAEVC,QAAQ;AAAA;;;;;;;;;"}
|
|
@@ -19,6 +19,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
triggerRef: import("vue").Ref<{
|
|
20
20
|
forwardRef: HTMLElement;
|
|
21
21
|
} | null>;
|
|
22
|
+
ns: {
|
|
23
|
+
namespace: import("vue").ComputedRef<string>;
|
|
24
|
+
b: (blockSuffix?: string) => string;
|
|
25
|
+
e: (element?: string | undefined) => string;
|
|
26
|
+
m: (modifier?: string | undefined) => string;
|
|
27
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
28
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
29
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
30
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
31
|
+
is: (name: string, state?: boolean) => string;
|
|
32
|
+
};
|
|
22
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
34
|
disabled: BooleanConstructor;
|
|
24
35
|
trigger: {
|
|
@@ -110,6 +110,17 @@ declare const _Transfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
110
110
|
}>> & {
|
|
111
111
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
112
112
|
}, {
|
|
113
|
+
ns: {
|
|
114
|
+
namespace: import("vue").ComputedRef<string>;
|
|
115
|
+
b: (blockSuffix?: string) => string;
|
|
116
|
+
e: (element?: string | undefined) => string;
|
|
117
|
+
m: (modifier?: string | undefined) => string;
|
|
118
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
119
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
120
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
121
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
122
|
+
is: (name: string, state?: boolean) => string;
|
|
123
|
+
};
|
|
113
124
|
labelProp: import("vue").ComputedRef<any>;
|
|
114
125
|
keyProp: import("vue").ComputedRef<any>;
|
|
115
126
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -165,6 +176,17 @@ declare const _Transfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
165
176
|
}>> & {
|
|
166
177
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
167
178
|
} & import("vue").ShallowUnwrapRef<{
|
|
179
|
+
ns: {
|
|
180
|
+
namespace: import("vue").ComputedRef<string>;
|
|
181
|
+
b: (blockSuffix?: string) => string;
|
|
182
|
+
e: (element?: string | undefined) => string;
|
|
183
|
+
m: (modifier?: string | undefined) => string;
|
|
184
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
185
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
186
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
187
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
188
|
+
is: (name: string, state?: boolean) => string;
|
|
189
|
+
};
|
|
168
190
|
labelProp: import("vue").ComputedRef<any>;
|
|
169
191
|
keyProp: import("vue").ComputedRef<any>;
|
|
170
192
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -233,6 +255,17 @@ declare const _Transfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
233
255
|
}>> & {
|
|
234
256
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
235
257
|
}, {
|
|
258
|
+
ns: {
|
|
259
|
+
namespace: import("vue").ComputedRef<string>;
|
|
260
|
+
b: (blockSuffix?: string) => string;
|
|
261
|
+
e: (element?: string | undefined) => string;
|
|
262
|
+
m: (modifier?: string | undefined) => string;
|
|
263
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
264
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
265
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
266
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
267
|
+
is: (name: string, state?: boolean) => string;
|
|
268
|
+
};
|
|
236
269
|
labelProp: import("vue").ComputedRef<any>;
|
|
237
270
|
keyProp: import("vue").ComputedRef<any>;
|
|
238
271
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -288,6 +321,17 @@ declare const _Transfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
288
321
|
}>> & {
|
|
289
322
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
290
323
|
} & import("vue").ShallowUnwrapRef<{
|
|
324
|
+
ns: {
|
|
325
|
+
namespace: import("vue").ComputedRef<string>;
|
|
326
|
+
b: (blockSuffix?: string) => string;
|
|
327
|
+
e: (element?: string | undefined) => string;
|
|
328
|
+
m: (modifier?: string | undefined) => string;
|
|
329
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
330
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
331
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
332
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
333
|
+
is: (name: string, state?: boolean) => string;
|
|
334
|
+
};
|
|
291
335
|
labelProp: import("vue").ComputedRef<any>;
|
|
292
336
|
keyProp: import("vue").ComputedRef<any>;
|
|
293
337
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -312,6 +356,17 @@ declare const _Transfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
312
356
|
}>[]>;
|
|
313
357
|
leftChecked: import("vue").Ref<never[]>;
|
|
314
358
|
rightChecked: import("vue").Ref<never[]>;
|
|
359
|
+
ns: {
|
|
360
|
+
namespace: import("vue").ComputedRef<string>;
|
|
361
|
+
b: (blockSuffix?: string) => string;
|
|
362
|
+
e: (element?: string | undefined) => string;
|
|
363
|
+
m: (modifier?: string | undefined) => string;
|
|
364
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
365
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
366
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
367
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
368
|
+
is: (name: string, state?: boolean) => string;
|
|
369
|
+
};
|
|
315
370
|
sourceData: import("vue").ComputedRef<import("./src/transfer").DataItem[]>;
|
|
316
371
|
targetData: import("vue").ComputedRef<import("./src/transfer").DataItem[]>;
|
|
317
372
|
onSourceCheckedChange: (val: import("./src/transfer").Key[], movedKeys: import("./src/transfer").Key[]) => void;
|
|
@@ -502,6 +557,17 @@ export declare const ElTransfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
502
557
|
}>> & {
|
|
503
558
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
504
559
|
}, {
|
|
560
|
+
ns: {
|
|
561
|
+
namespace: import("vue").ComputedRef<string>;
|
|
562
|
+
b: (blockSuffix?: string) => string;
|
|
563
|
+
e: (element?: string | undefined) => string;
|
|
564
|
+
m: (modifier?: string | undefined) => string;
|
|
565
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
566
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
567
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
568
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
569
|
+
is: (name: string, state?: boolean) => string;
|
|
570
|
+
};
|
|
505
571
|
labelProp: import("vue").ComputedRef<any>;
|
|
506
572
|
keyProp: import("vue").ComputedRef<any>;
|
|
507
573
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -557,6 +623,17 @@ export declare const ElTransfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
557
623
|
}>> & {
|
|
558
624
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
559
625
|
} & import("vue").ShallowUnwrapRef<{
|
|
626
|
+
ns: {
|
|
627
|
+
namespace: import("vue").ComputedRef<string>;
|
|
628
|
+
b: (blockSuffix?: string) => string;
|
|
629
|
+
e: (element?: string | undefined) => string;
|
|
630
|
+
m: (modifier?: string | undefined) => string;
|
|
631
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
632
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
633
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
634
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
635
|
+
is: (name: string, state?: boolean) => string;
|
|
636
|
+
};
|
|
560
637
|
labelProp: import("vue").ComputedRef<any>;
|
|
561
638
|
keyProp: import("vue").ComputedRef<any>;
|
|
562
639
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -625,6 +702,17 @@ export declare const ElTransfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
625
702
|
}>> & {
|
|
626
703
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
627
704
|
}, {
|
|
705
|
+
ns: {
|
|
706
|
+
namespace: import("vue").ComputedRef<string>;
|
|
707
|
+
b: (blockSuffix?: string) => string;
|
|
708
|
+
e: (element?: string | undefined) => string;
|
|
709
|
+
m: (modifier?: string | undefined) => string;
|
|
710
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
711
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
712
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
713
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
714
|
+
is: (name: string, state?: boolean) => string;
|
|
715
|
+
};
|
|
628
716
|
labelProp: import("vue").ComputedRef<any>;
|
|
629
717
|
keyProp: import("vue").ComputedRef<any>;
|
|
630
718
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -680,6 +768,17 @@ export declare const ElTransfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
680
768
|
}>> & {
|
|
681
769
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
682
770
|
} & import("vue").ShallowUnwrapRef<{
|
|
771
|
+
ns: {
|
|
772
|
+
namespace: import("vue").ComputedRef<string>;
|
|
773
|
+
b: (blockSuffix?: string) => string;
|
|
774
|
+
e: (element?: string | undefined) => string;
|
|
775
|
+
m: (modifier?: string | undefined) => string;
|
|
776
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
777
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
778
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
779
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
780
|
+
is: (name: string, state?: boolean) => string;
|
|
781
|
+
};
|
|
683
782
|
labelProp: import("vue").ComputedRef<any>;
|
|
684
783
|
keyProp: import("vue").ComputedRef<any>;
|
|
685
784
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -704,6 +803,17 @@ export declare const ElTransfer: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
704
803
|
}>[]>;
|
|
705
804
|
leftChecked: import("vue").Ref<never[]>;
|
|
706
805
|
rightChecked: import("vue").Ref<never[]>;
|
|
806
|
+
ns: {
|
|
807
|
+
namespace: import("vue").ComputedRef<string>;
|
|
808
|
+
b: (blockSuffix?: string) => string;
|
|
809
|
+
e: (element?: string | undefined) => string;
|
|
810
|
+
m: (modifier?: string | undefined) => string;
|
|
811
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
812
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
813
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
814
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
815
|
+
is: (name: string, state?: boolean) => string;
|
|
816
|
+
};
|
|
707
817
|
sourceData: import("vue").ComputedRef<import("./src/transfer").DataItem[]>;
|
|
708
818
|
targetData: import("vue").ComputedRef<import("./src/transfer").DataItem[]>;
|
|
709
819
|
onSourceCheckedChange: (val: import("./src/transfer").Key[], movedKeys: import("./src/transfer").Key[]) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, inject, reactive, ref, computed, watch, h, toRefs, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, renderSlot, createElementVNode,
|
|
1
|
+
import { defineComponent, inject, reactive, ref, computed, watch, h, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
2
|
import { ElButton } from '../../button/index.mjs';
|
|
3
3
|
import { ElIcon } from '../../icon/index.mjs';
|
|
4
4
|
import '../../../tokens/index.mjs';
|
|
5
|
-
import '../../../hooks/index.mjs';
|
|
6
5
|
import '../../../constants/index.mjs';
|
|
6
|
+
import '../../../hooks/index.mjs';
|
|
7
7
|
import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue';
|
|
8
8
|
import TransferPanel from './transfer-panel.mjs';
|
|
9
9
|
import { useComputedData } from './useComputedData.mjs';
|
|
@@ -13,6 +13,7 @@ import './transfer.mjs';
|
|
|
13
13
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
14
14
|
import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
|
15
15
|
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
16
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
16
17
|
import { elFormItemKey } from '../../../tokens/form.mjs';
|
|
17
18
|
|
|
18
19
|
const _sfc_main = defineComponent({
|
|
@@ -87,6 +88,7 @@ const _sfc_main = defineComponent({
|
|
|
87
88
|
],
|
|
88
89
|
setup(props, { emit, slots }) {
|
|
89
90
|
const { t } = useLocale();
|
|
91
|
+
const ns = useNamespace("transfer");
|
|
90
92
|
const elFormItem = inject(elFormItemKey, {});
|
|
91
93
|
const checkedState = reactive({
|
|
92
94
|
leftChecked: [],
|
|
@@ -123,6 +125,7 @@ const _sfc_main = defineComponent({
|
|
|
123
125
|
return h("span", option[props.props.label] || option[props.props.key]);
|
|
124
126
|
});
|
|
125
127
|
return {
|
|
128
|
+
ns,
|
|
126
129
|
sourceData,
|
|
127
130
|
targetData,
|
|
128
131
|
onSourceCheckedChange,
|
|
@@ -141,17 +144,17 @@ const _sfc_main = defineComponent({
|
|
|
141
144
|
};
|
|
142
145
|
}
|
|
143
146
|
});
|
|
144
|
-
const _hoisted_1 = {
|
|
145
|
-
const _hoisted_2 = {
|
|
146
|
-
const _hoisted_3 = { key: 0 };
|
|
147
|
-
const _hoisted_4 = { key: 0 };
|
|
147
|
+
const _hoisted_1 = { key: 0 };
|
|
148
|
+
const _hoisted_2 = { key: 0 };
|
|
148
149
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149
150
|
const _component_transfer_panel = resolveComponent("transfer-panel");
|
|
150
151
|
const _component_arrow_left = resolveComponent("arrow-left");
|
|
151
152
|
const _component_el_icon = resolveComponent("el-icon");
|
|
152
153
|
const _component_el_button = resolveComponent("el-button");
|
|
153
154
|
const _component_arrow_right = resolveComponent("arrow-right");
|
|
154
|
-
return openBlock(), createElementBlock("div",
|
|
155
|
+
return openBlock(), createElementBlock("div", {
|
|
156
|
+
class: normalizeClass(_ctx.ns.b())
|
|
157
|
+
}, [
|
|
155
158
|
createVNode(_component_transfer_panel, {
|
|
156
159
|
ref: "leftPanel",
|
|
157
160
|
data: _ctx.sourceData,
|
|
@@ -170,10 +173,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
173
|
]),
|
|
171
174
|
_: 3
|
|
172
175
|
}, 8, ["data", "option-render", "placeholder", "title", "filterable", "format", "filter-method", "default-checked", "props", "onCheckedChange"]),
|
|
173
|
-
createElementVNode("div",
|
|
176
|
+
createElementVNode("div", {
|
|
177
|
+
class: normalizeClass(_ctx.ns.e("buttons"))
|
|
178
|
+
}, [
|
|
174
179
|
createVNode(_component_el_button, {
|
|
175
180
|
type: "primary",
|
|
176
|
-
class: normalizeClass(["
|
|
181
|
+
class: normalizeClass([_ctx.ns.e("button"), _ctx.ns.is("with-texts", _ctx.hasButtonTexts)]),
|
|
177
182
|
disabled: _ctx.rightChecked.length === 0,
|
|
178
183
|
onClick: _ctx.addToLeft
|
|
179
184
|
}, {
|
|
@@ -184,18 +189,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
189
|
]),
|
|
185
190
|
_: 1
|
|
186
191
|
}),
|
|
187
|
-
_ctx.buttonTexts[0] !== void 0 ? (openBlock(), createElementBlock("span",
|
|
192
|
+
_ctx.buttonTexts[0] !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.buttonTexts[0]), 1)) : createCommentVNode("v-if", true)
|
|
188
193
|
]),
|
|
189
194
|
_: 1
|
|
190
195
|
}, 8, ["class", "disabled", "onClick"]),
|
|
191
196
|
createVNode(_component_el_button, {
|
|
192
197
|
type: "primary",
|
|
193
|
-
class: normalizeClass(["
|
|
198
|
+
class: normalizeClass([_ctx.ns.e("button"), _ctx.ns.is("with-texts", _ctx.hasButtonTexts)]),
|
|
194
199
|
disabled: _ctx.leftChecked.length === 0,
|
|
195
200
|
onClick: _ctx.addToRight
|
|
196
201
|
}, {
|
|
197
202
|
default: withCtx(() => [
|
|
198
|
-
_ctx.buttonTexts[1] !== void 0 ? (openBlock(), createElementBlock("span",
|
|
203
|
+
_ctx.buttonTexts[1] !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.buttonTexts[1]), 1)) : createCommentVNode("v-if", true),
|
|
199
204
|
createVNode(_component_el_icon, null, {
|
|
200
205
|
default: withCtx(() => [
|
|
201
206
|
createVNode(_component_arrow_right)
|
|
@@ -205,7 +210,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
205
210
|
]),
|
|
206
211
|
_: 1
|
|
207
212
|
}, 8, ["class", "disabled", "onClick"])
|
|
208
|
-
]),
|
|
213
|
+
], 2),
|
|
209
214
|
createVNode(_component_transfer_panel, {
|
|
210
215
|
ref: "rightPanel",
|
|
211
216
|
data: _ctx.targetData,
|
|
@@ -224,7 +229,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
229
|
]),
|
|
225
230
|
_: 3
|
|
226
231
|
}, 8, ["data", "option-render", "placeholder", "filterable", "format", "filter-method", "title", "default-checked", "props", "onCheckedChange"])
|
|
227
|
-
]);
|
|
232
|
+
], 2);
|
|
228
233
|
}
|
|
229
234
|
var Transfer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
230
235
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/transfer/src/index.vue"],"sourcesContent":["<template>\n <div class=\"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/transfer/src/index.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <transfer-panel\n ref=\"leftPanel\"\n :data=\"sourceData\"\n :option-render=\"optionRender\"\n :placeholder=\"panelFilterPlaceholder\"\n :title=\"leftPanelTitle\"\n :filterable=\"filterable\"\n :format=\"format\"\n :filter-method=\"filterMethod\"\n :default-checked=\"leftDefaultChecked\"\n :props=\"props\"\n @checked-change=\"onSourceCheckedChange\"\n >\n <slot name=\"left-footer\"></slot>\n </transfer-panel>\n <div :class=\"ns.e('buttons')\">\n <el-button\n type=\"primary\"\n :class=\"[ns.e('button'), ns.is('with-texts', hasButtonTexts)]\"\n :disabled=\"rightChecked.length === 0\"\n @click=\"addToLeft\"\n >\n <el-icon><arrow-left /></el-icon>\n <span v-if=\"buttonTexts[0] !== undefined\">{{ buttonTexts[0] }}</span>\n </el-button>\n <el-button\n type=\"primary\"\n :class=\"[ns.e('button'), ns.is('with-texts', hasButtonTexts)]\"\n :disabled=\"leftChecked.length === 0\"\n @click=\"addToRight\"\n >\n <span v-if=\"buttonTexts[1] !== undefined\">{{ buttonTexts[1] }}</span>\n <el-icon><arrow-right /></el-icon>\n </el-button>\n </div>\n <transfer-panel\n ref=\"rightPanel\"\n :data=\"targetData\"\n :option-render=\"optionRender\"\n :placeholder=\"panelFilterPlaceholder\"\n :filterable=\"filterable\"\n :format=\"format\"\n :filter-method=\"filterMethod\"\n :title=\"rightPanelTitle\"\n :default-checked=\"rightDefaultChecked\"\n :props=\"props\"\n @checked-change=\"onTargetCheckedChange\"\n >\n <slot name=\"right-footer\"></slot>\n </transfer-panel>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n inject,\n h,\n reactive,\n ref,\n toRefs,\n watch,\n} from 'vue'\nimport ElButton from '@element-plus/components/button'\nimport ElIcon from '@element-plus/components/icon'\nimport { elFormItemKey } from '@element-plus/tokens'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport TransferPanel from './transfer-panel.vue'\nimport { useComputedData } from './useComputedData'\nimport {\n useCheckedChange,\n LEFT_CHECK_CHANGE_EVENT,\n RIGHT_CHECK_CHANGE_EVENT,\n} from './useCheckedChange'\nimport { useMove } from './useMove'\nimport { CHANGE_EVENT } from './transfer'\n\nimport type { PropType, VNode } from 'vue'\nimport type { ElFormItemContext } from '@element-plus/tokens'\nimport type { DataItem, Format, Key, Props, TargetOrder } from './transfer'\n\ntype TransferType = InstanceType<typeof TransferPanel>\n\nexport default defineComponent({\n name: 'ElTransfer',\n\n components: {\n TransferPanel,\n ElButton,\n ElIcon,\n ArrowLeft,\n ArrowRight,\n },\n\n props: {\n data: {\n type: Array as PropType<DataItem[]>,\n default: () => [],\n },\n titles: {\n type: Array as PropType<any> as PropType<[string, string]>,\n default: () => [],\n },\n buttonTexts: {\n type: Array as PropType<any> as PropType<[string, string]>,\n default: () => [],\n },\n filterPlaceholder: {\n type: String,\n default: '',\n },\n filterMethod: Function as PropType<\n (query: string, item: DataItem) => boolean\n >,\n leftDefaultChecked: {\n type: Array as PropType<Key[]>,\n default: () => [],\n },\n rightDefaultChecked: {\n type: Array as PropType<Key[]>,\n default: () => [],\n },\n renderContent: Function as PropType<(h, option) => VNode>,\n modelValue: {\n type: Array as PropType<Key[]>,\n default: () => [],\n },\n format: {\n type: Object as PropType<Format>,\n default: () => ({}),\n },\n filterable: {\n type: Boolean,\n default: false,\n },\n props: {\n type: Object as PropType<Props>,\n default: () => ({\n label: 'label',\n key: 'key',\n disabled: 'disabled',\n }),\n },\n targetOrder: {\n type: String as PropType<TargetOrder>,\n default: 'original',\n validator: (val: string) => {\n return ['original', 'push', 'unshift'].includes(val)\n },\n },\n },\n\n emits: [\n UPDATE_MODEL_EVENT,\n CHANGE_EVENT,\n LEFT_CHECK_CHANGE_EVENT,\n RIGHT_CHECK_CHANGE_EVENT,\n ],\n\n setup(props, { emit, slots }) {\n const { t } = useLocale()\n const ns = useNamespace('transfer')\n const elFormItem = inject(elFormItemKey, {} as ElFormItemContext)\n\n const checkedState = reactive({\n leftChecked: [],\n rightChecked: [],\n })\n\n const { propsKey, sourceData, targetData } = useComputedData(props)\n\n const { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange(\n checkedState,\n emit\n )\n\n const { addToLeft, addToRight } = useMove(\n props,\n checkedState,\n propsKey,\n emit\n )\n\n const leftPanel = ref<TransferType>()\n const rightPanel = ref<TransferType>()\n\n const clearQuery = (which: 'left' | 'right') => {\n switch (which) {\n case 'left':\n leftPanel.value!.query = ''\n break\n case 'right':\n rightPanel.value!.query = ''\n break\n }\n }\n\n const hasButtonTexts = computed(() => props.buttonTexts.length === 2)\n\n const leftPanelTitle = computed(\n () => props.titles[0] || t('el.transfer.titles.0')\n )\n\n const rightPanelTitle = computed(\n () => props.titles[1] || t('el.transfer.titles.1')\n )\n\n const panelFilterPlaceholder = computed(\n () => props.filterPlaceholder || t('el.transfer.filterPlaceholder')\n )\n\n watch(\n () => props.modelValue,\n () => {\n elFormItem.validate?.('change')\n }\n )\n\n const optionRender = computed(() => (option) => {\n if (props.renderContent) return props.renderContent(h, option)\n\n if (slots.default) return slots.default({ option })\n\n return h('span', option[props.props.label] || option[props.props.key])\n })\n\n return {\n ns,\n sourceData,\n targetData,\n onSourceCheckedChange,\n onTargetCheckedChange,\n addToLeft,\n addToRight,\n\n ...toRefs(checkedState),\n\n hasButtonTexts,\n leftPanelTitle,\n rightPanelTitle,\n panelFilterPlaceholder,\n clearQuery,\n leftPanel,\n rightPanel,\n\n optionRender,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAwFA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EAEN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAGF,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,SAAS;AAAA;AAAA,IAEX,cAAc;AAAA,IAGd,oBAAoB;AAAA,MAClB,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,qBAAqB;AAAA,MACnB,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,eAAe;AAAA,IACf,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS,MAAM;AAAA;AAAA,IAEjB,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAO;AAAA,IAElB,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA;AAAA,IAEX,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAO,QACd,OAAO;AAAA,QACP,KAAK;AAAA,QACL,UAAU;AAAA;AAAA;AAAA,IAGd,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW,CAAC,QAAgB;AAC1B,eAAO,CAAC,YAAY,QAAQ,WAAW,SAAS;AAAA;AAAA;AAAA;AAAA,EAKtD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAGF,MAAM,OAAO,EAAE,MAAM,SAAS;AAC5B,UAAM,EAAE,MAAM;AACd,UAAM,KAAK,aAAa;AACxB,UAAM,aAAa,OAAO,eAAe;AAEzC,UAAM,eAAe,SAAS;AAAA,MAC5B,aAAa;AAAA,MACb,cAAc;AAAA;AAGhB,UAAM,EAAE,UAAU,YAAY,eAAe,gBAAgB;AAE7D,UAAM,EAAE,uBAAuB,0BAA0B,iBACvD,cACA;AAGF,UAAM,EAAE,WAAW,eAAe,QAChC,OACA,cACA,UACA;AAGF,UAAM,YAAY;AAClB,UAAM,aAAa;AAEnB,UAAM,aAAa,CAAC,UAA4B;AAC9C,cAAQ;AAAA,aACD;AACH,oBAAU,MAAO,QAAQ;AACzB;AAAA,aACG;AACH,qBAAW,MAAO,QAAQ;AAC1B;AAAA;AAAA;AAIN,UAAM,iBAAiB,SAAS,MAAM,MAAM,YAAY,WAAW;AAEnE,UAAM,iBAAiB,SACrB,MAAM,MAAM,OAAO,MAAM,EAAE;AAG7B,UAAM,kBAAkB,SACtB,MAAM,MAAM,OAAO,MAAM,EAAE;AAG7B,UAAM,yBAAyB,SAC7B,MAAM,MAAM,qBAAqB,EAAE;AAGrC,UACE,MAAM,MAAM,YACZ,MAAM;AACJ;AAAsB;AAI1B;AACE,UAAI;AAAqB,eAAO;AAEhC;AAAmB,eAAO;AAE1B,eAAS;AAAwD;AAGnE;AAAO;AACL,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,gBAEU;AAAA,MAEV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA;AAAA;AAAA;;;;;;;;;;AAzPa;;AACf;AACiB;AACV,MACJ;AAAA,MACA;AAAa,MACb;AAAO,MACP;AAAY,MACZ,YAAQ;AAAA,MACR;AAAA,MACA;AAAiB,MACjB;AAAY,MACZ;AAAA;;;AAE+B;;;OAElC;AAmBM;AAnBO;;AACX;AACgB;AACR,QACL;AAA6B,QAC7B,2BAAgB;AAAA;;;AAEgB;AAAV;AAAA;;;;;;;SAGzB,GAQY;AAAA;AAPI;AACR,QACL;AAA4B,QAC5B;AAAiB;;;AAEK;AACW;AAAV;AAAA;;;;;;;OAG5B;AAAA;AACkB;AACX,MACJ;AAAA,MACA;AAAa,MACb;AAAY,MACZ;AAAQ,MACR;AAAA,MACA;AAAO,MACP;AAAA,MACA;AAAY,MACZ;AAAA;;;AAEgC;;;;;;;;;;;"}
|
|
@@ -109,6 +109,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
}>> & {
|
|
110
110
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}, {
|
|
112
|
+
ns: {
|
|
113
|
+
namespace: import("vue").ComputedRef<string>;
|
|
114
|
+
b: (blockSuffix?: string) => string;
|
|
115
|
+
e: (element?: string | undefined) => string;
|
|
116
|
+
m: (modifier?: string | undefined) => string;
|
|
117
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
118
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
119
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
120
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
121
|
+
is: (name: string, state?: boolean) => string;
|
|
122
|
+
};
|
|
112
123
|
labelProp: import("vue").ComputedRef<any>;
|
|
113
124
|
keyProp: import("vue").ComputedRef<any>;
|
|
114
125
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -164,6 +175,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
175
|
}>> & {
|
|
165
176
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
166
177
|
} & import("vue").ShallowUnwrapRef<{
|
|
178
|
+
ns: {
|
|
179
|
+
namespace: import("vue").ComputedRef<string>;
|
|
180
|
+
b: (blockSuffix?: string) => string;
|
|
181
|
+
e: (element?: string | undefined) => string;
|
|
182
|
+
m: (modifier?: string | undefined) => string;
|
|
183
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
184
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
185
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
186
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
187
|
+
is: (name: string, state?: boolean) => string;
|
|
188
|
+
};
|
|
167
189
|
labelProp: import("vue").ComputedRef<any>;
|
|
168
190
|
keyProp: import("vue").ComputedRef<any>;
|
|
169
191
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -232,6 +254,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
254
|
}>> & {
|
|
233
255
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
234
256
|
}, {
|
|
257
|
+
ns: {
|
|
258
|
+
namespace: import("vue").ComputedRef<string>;
|
|
259
|
+
b: (blockSuffix?: string) => string;
|
|
260
|
+
e: (element?: string | undefined) => string;
|
|
261
|
+
m: (modifier?: string | undefined) => string;
|
|
262
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
263
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
264
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
265
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
266
|
+
is: (name: string, state?: boolean) => string;
|
|
267
|
+
};
|
|
235
268
|
labelProp: import("vue").ComputedRef<any>;
|
|
236
269
|
keyProp: import("vue").ComputedRef<any>;
|
|
237
270
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -287,6 +320,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
320
|
}>> & {
|
|
288
321
|
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
289
322
|
} & import("vue").ShallowUnwrapRef<{
|
|
323
|
+
ns: {
|
|
324
|
+
namespace: import("vue").ComputedRef<string>;
|
|
325
|
+
b: (blockSuffix?: string) => string;
|
|
326
|
+
e: (element?: string | undefined) => string;
|
|
327
|
+
m: (modifier?: string | undefined) => string;
|
|
328
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
329
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
330
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
331
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
332
|
+
is: (name: string, state?: boolean) => string;
|
|
333
|
+
};
|
|
290
334
|
labelProp: import("vue").ComputedRef<any>;
|
|
291
335
|
keyProp: import("vue").ComputedRef<any>;
|
|
292
336
|
disabledProp: import("vue").ComputedRef<any>;
|
|
@@ -311,6 +355,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
355
|
}>[]>;
|
|
312
356
|
leftChecked: import("vue").Ref<never[]>;
|
|
313
357
|
rightChecked: import("vue").Ref<never[]>;
|
|
358
|
+
ns: {
|
|
359
|
+
namespace: import("vue").ComputedRef<string>;
|
|
360
|
+
b: (blockSuffix?: string) => string;
|
|
361
|
+
e: (element?: string | undefined) => string;
|
|
362
|
+
m: (modifier?: string | undefined) => string;
|
|
363
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
364
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
365
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
366
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
367
|
+
is: (name: string, state?: boolean) => string;
|
|
368
|
+
};
|
|
314
369
|
sourceData: import("vue").ComputedRef<DataItem[]>;
|
|
315
370
|
targetData: import("vue").ComputedRef<DataItem[]>;
|
|
316
371
|
onSourceCheckedChange: (val: Key[], movedKeys: Key[]) => void;
|