@veltra/desktop 1.1.3 → 1.1.5
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/components/action/action-group.js +3 -110
- package/dist/components/action/action-group.js.map +1 -1
- package/dist/components/action/action-group.vue.d.ts +5 -14
- package/dist/components/action/action-group.vue_vue_type_script_setup_true_lang.js +105 -0
- package/dist/components/action/action-group.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/action/action.js +5 -1
- package/dist/components/action/action.js.map +1 -1
- package/dist/components/action/di.js.map +1 -1
- package/dist/components/action/style2.css +17 -14
- package/dist/components/auto-complete/auto-complete.js +1 -1
- package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -2
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/batch-edit/batch-edit-form.js +94 -101
- package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
- package/dist/components/batch-edit/batch-edit-list.js +52 -68
- package/dist/components/batch-edit/batch-edit-list.js.map +1 -1
- package/dist/components/batch-edit/style2.css +13 -89
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/cascade/cascade-panel-item.js +4 -4
- package/dist/components/cascade/cascade.js +2 -2
- package/dist/components/cascade/cascade.vue.d.ts +5 -5
- package/dist/components/checkbox/checkbox-button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.js +1 -1
- package/dist/components/code-editor/code-editor.js +1 -1
- package/dist/components/collapse/collapse.js +1 -1
- package/dist/components/condition-editor/components/condition-group.js +152 -0
- package/dist/components/condition-editor/components/condition-group.js.map +1 -0
- package/dist/components/condition-editor/components/condition-row.js +217 -0
- package/dist/components/condition-editor/components/condition-row.js.map +1 -0
- package/dist/components/condition-editor/condition-editor.js +134 -5
- package/dist/components/condition-editor/condition-editor.js.map +1 -1
- package/dist/components/condition-editor/condition-editor.vue.d.ts +10 -2
- package/dist/components/condition-editor/core/evaluator.js +75 -0
- package/dist/components/condition-editor/core/evaluator.js.map +1 -0
- package/dist/components/condition-editor/core/operators.js +123 -0
- package/dist/components/condition-editor/core/operators.js.map +1 -0
- package/dist/components/condition-editor/style.js +7 -0
- package/dist/components/condition-editor/style2.css +186 -0
- package/dist/components/context-menu/context-menu.js +1 -1
- package/dist/components/date-picker/date-picker.js +2 -2
- package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker.js +2 -2
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/dialog/style2.css +8 -0
- package/dist/components/dialog/use-maximum.js +1 -1
- package/dist/components/drawer/style2.css +8 -0
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/expression-editor/components/variable-picker.js +8 -8
- package/dist/components/expression-editor/expression-editor.js +1 -1
- package/dist/components/expression-editor/style2.css +1 -0
- package/dist/components/file-viewer/file-viewer.js +13 -13
- package/dist/components/form-item/form-item.js.map +1 -1
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/grid-input/grid-input.js +1 -1
- package/dist/components/group-input/group-input.js +2 -1
- package/dist/components/group-input/group-input.js.map +1 -1
- package/dist/components/group-input/style.js +1 -0
- package/dist/components/index.js +154 -154
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/layout/layout-resizer.js +1 -1
- package/dist/components/layout/layout.js +1 -1
- package/dist/components/list/list.js +1 -1
- package/dist/components/loading/loading.js +1 -1
- package/dist/components/menu/menu-sub-collapsed.js +4 -4
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/message/message.js +1 -1
- package/dist/components/message-confirm/message-confirm.js +1 -1
- package/dist/components/multi-select/multi-select-option.js +19 -14
- package/dist/components/multi-select/multi-select-option.js.map +1 -1
- package/dist/components/multi-select/multi-select.js +15 -15
- package/dist/components/multi-select/multi-select.vue.d.ts +4 -4
- package/dist/components/multi-tree-select/multi-tree-select.js +8 -8
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +6 -6
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/number/number.vue.d.ts +1 -1
- package/dist/components/number-input/number-input.js +2 -2
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/number-range-input/number-range-input.js +1 -1
- package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
- package/dist/components/number-range-input/style2.css +1 -0
- package/dist/components/paginator/paginator.js +6 -6
- package/dist/components/paginator/style.js +1 -1
- package/dist/components/palette/palette.js +1 -1
- package/dist/components/password-input/password-input.js +2 -2
- package/dist/components/password-input/password-input.vue.d.ts +1 -1
- package/dist/components/pop-confirm/pop-confirm.js +1 -1
- package/dist/components/pop-confirm/pop-confirm.vue.d.ts +1 -1
- package/dist/components/progress-nodes/progress-nodes.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
- package/dist/components/scroll/scroll-bar.js +1 -1
- package/dist/components/scroll/scroll.js +1 -1
- package/dist/components/select/select.js +10 -10
- package/dist/components/select/select.vue.d.ts +2 -2
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/steps/steps.js +2 -2
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/table/style2.css +4 -1
- package/dist/components/table/table.js +2 -2
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table/use-columns.js +1 -1
- package/dist/components/table/use-fixed-columns.js +8 -31
- package/dist/components/table/use-fixed-columns.js.map +1 -1
- package/dist/components/table-editor/table-editor.js +1 -1
- package/dist/components/tabs/tabs-horizontal.js +1 -1
- package/dist/components/tabs/tabs-horizontal.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-vertical.js +1 -1
- package/dist/components/tabs/tabs-vertical.vue.d.ts +3 -3
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +4 -4
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/theme/style.js +1 -1
- package/dist/components/theme/theme.js +11 -11
- package/dist/components/tip/tip.js +1 -1
- package/dist/components/tree/tree-node.js +1 -1
- package/dist/components/tree/tree.js +5 -5
- package/dist/components/tree-select/tree-select.js +6 -6
- package/dist/components/tree-select/tree-select.vue.d.ts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +83 -83
- package/dist/style.js +2 -2
- package/dist/types/action.d.ts +5 -11
- package/dist/types/condition-editor.d.ts +41 -8
- package/dist/types/index.d.ts +4 -4
- package/package.json +11 -11
- package/src/components/action/action-group.vue +68 -82
- package/src/components/action/action.vue +9 -1
- package/src/components/action/di.ts +2 -1
- package/src/components/action/style.scss +22 -27
- package/src/components/batch-edit/batch-edit-form.vue +65 -70
- package/src/components/batch-edit/batch-edit-list.vue +35 -41
- package/src/components/batch-edit/style.scss +19 -118
- package/src/components/condition-editor/components/condition-group.vue +131 -0
- package/src/components/condition-editor/components/condition-row.vue +208 -0
- package/src/components/condition-editor/condition-editor.vue +145 -6
- package/src/components/condition-editor/core/evaluator.ts +93 -0
- package/src/components/condition-editor/core/operators.ts +57 -0
- package/src/components/condition-editor/style.scss +239 -1
- package/src/components/condition-editor/style.ts +7 -0
- package/src/components/dialog/style.scss +13 -0
- package/src/components/drawer/style.scss +13 -0
- package/src/components/expression-editor/style.scss +1 -0
- package/src/components/form-item/form-item.vue +1 -1
- package/src/components/group-input/group-input.vue +8 -1
- package/src/components/group-input/style.ts +1 -0
- package/src/components/multi-select/multi-select-option.vue +19 -13
- package/src/components/number-range-input/style.scss +1 -0
- package/src/components/table/style.scss +9 -1
- package/src/components/table/table.vue +1 -3
- package/src/components/table/use-fixed-columns.ts +5 -49
- package/src/types/action.ts +6 -11
- package/src/types/condition-editor.ts +39 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-input.js","names":[],"sources":["../../../src/components/group-input/group-input.vue"],"sourcesContent":["<template>\n <ul :class=\"[cls.b, cls.m(size)]\" v-if=\"!readonly\">\n <li v-if=\"isEmpty && creatable\">\n <u-button style=\"width: 100%\" :icon=\"Plus\" @click=\"handleAdd(0)\" :size=\"size\">\n 新增\n </u-button>\n </li>\n <li v-for=\"(item, index) of items\" :key=\"item.id\" :class=\"cls.e('item')\" :style=\"itemStyle\">\n <slot v-bind=\"{ item: item.data, index }\" />\n <span :class=\"cls.e('actions')\">\n <u-button\n :icon=\"Minus\"\n circle\n :disabled=\"disabled\"\n :size=\"size\"\n @click=\"handleRemove(index)\"\n />\n <u-button
|
|
1
|
+
{"version":3,"file":"group-input.js","names":[],"sources":["../../../src/components/group-input/group-input.vue"],"sourcesContent":["<template>\n <ul :class=\"[cls.b, cls.m(size)]\" v-if=\"!readonly\">\n <li v-if=\"isEmpty && creatable\">\n <u-button style=\"width: 100%\" :icon=\"Plus\" @click=\"handleAdd(0)\" :size=\"size\">\n 新增\n </u-button>\n </li>\n <li v-for=\"(item, index) of items\" :key=\"item.id\" :class=\"cls.e('item')\" :style=\"itemStyle\">\n <slot v-bind=\"{ item: item.data, index }\" />\n <span :class=\"cls.e('actions')\">\n <u-button\n :icon=\"Minus\"\n circle\n :disabled=\"disabled\"\n :size=\"size\"\n @click=\"handleRemove(index)\"\n />\n <u-button\n :icon=\"Plus\"\n circle\n :disabled=\"disabled\"\n :size=\"size\"\n type=\"primary\"\n @click=\"handleAdd(index)\"\n />\n </span>\n </li>\n </ul>\n\n <template v-else-if=\"items?.length\">\n <ul :class=\"[cls.b, cls.m(size)]\">\n <li v-for=\"item of items\" :key=\"item.id\" :class=\"cls.e('item')\">\n <span v-for=\"v in item.data\">{{ v }}</span>\n </li>\n </ul>\n </template>\n\n <template v-else>\n {{ FORM_EMPTY_CONTENT }}\n </template>\n</template>\n\n<script lang=\"ts\" setup generic=\"GroupItem extends Record<string, any>\">\nimport { useFormFallbackProps } from '@veltra/compositions'\nimport { Minus, Plus } from '@veltra/icons/normal'\nimport { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'\nimport { injectFormContext } from '@veltra/utils'\nimport { computed } from 'vue'\n\nimport type { GroupInputEmits, GroupInputProps } from '../../types'\nimport { UButton } from '../button'\nimport { useGroupItems } from './use-group-items'\n\ndefineOptions({\n name: 'GroupInput'\n})\n\nconst props = withDefaults(defineProps<GroupInputProps<GroupItem>>(), {\n modelValue: () => [],\n disabled: undefined,\n readonly: undefined,\n creatable: true\n})\n\nconst emit = defineEmits<GroupInputEmits>()\n\nconst cls = bem('group-input')\n\nconst { formProps } = injectFormContext()\nconst { disabled, size, readonly } = useFormFallbackProps([formProps ?? {}, props], {\n size: 'default',\n disabled: false,\n readonly: false\n})\n\nconst { items, createItem, runByEvent } = useGroupItems({\n props,\n emit\n})\n\nconst isEmpty = computed(() => {\n return !items.value.length\n})\n\nfunction handleAdd(index: number) {\n runByEvent(() => {\n items.value = [\n ...items.value.slice(0, index + 1),\n createItem({}),\n ...items.value.slice(index + 1)\n ]\n })\n}\n\nfunction handleRemove(index: number) {\n runByEvent(() => {\n items.value = [...items.value.slice(0, index), ...items.value.slice(index + 1)]\n })\n}\n</script>\n"],"mappings":"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"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import _sfc_main from "./
|
|
3
|
-
import _sfc_main$1 from "./
|
|
4
|
-
import _sfc_main$2 from "./
|
|
5
|
-
import _sfc_main$3 from "./tabs/tabs-horizontal.js";
|
|
6
|
-
import _sfc_main$4 from "./tabs/tabs-vertical.js";
|
|
7
|
-
import _sfc_main$5 from "./tabs/tabs.js";
|
|
8
|
-
import _sfc_main$6 from "./empty/empty.js";
|
|
9
|
-
import _sfc_main$7 from "./checkbox/checkbox.js";
|
|
2
|
+
import _sfc_main from "./icon/icon.js";
|
|
3
|
+
import _sfc_main$1 from "./empty/empty.js";
|
|
4
|
+
import _sfc_main$2 from "./scroll/scroll.js";
|
|
10
5
|
import NodeRender from "./node-render/node-render.js";
|
|
11
|
-
import _sfc_main$
|
|
12
|
-
import _sfc_main$
|
|
6
|
+
import _sfc_main$3 from "./tip/tip.js";
|
|
7
|
+
import _sfc_main$4 from "./dropdown/dropdown.js";
|
|
13
8
|
import input_default from "./input/input.js";
|
|
14
|
-
import _sfc_main$
|
|
15
|
-
import _sfc_main$
|
|
16
|
-
import _sfc_main$
|
|
17
|
-
import _sfc_main$
|
|
18
|
-
import _sfc_main$
|
|
19
|
-
import _sfc_main$
|
|
9
|
+
import _sfc_main$5 from "./select/select.js";
|
|
10
|
+
import _sfc_main$6 from "./condition-editor/condition-editor.js";
|
|
11
|
+
import _sfc_main$7 from "./tabs/tabs-horizontal.js";
|
|
12
|
+
import _sfc_main$8 from "./tabs/tabs-vertical.js";
|
|
13
|
+
import _sfc_main$9 from "./tabs/tabs.js";
|
|
14
|
+
import _sfc_main$10 from "./checkbox/checkbox.js";
|
|
15
|
+
import _sfc_main$11 from "./tree/tree.js";
|
|
16
|
+
import _sfc_main$12 from "./tree-select/tree-select.js";
|
|
17
|
+
import _sfc_main$13 from "./code-editor/code-editor.js";
|
|
18
|
+
import _sfc_main$14 from "./drawer/drawer.js";
|
|
19
|
+
import _sfc_main$15 from "./grid/grid.js";
|
|
20
|
+
import _sfc_main$16 from "./grid/grid-item.js";
|
|
20
21
|
import form_item_default from "./form-item/form-item.js";
|
|
21
22
|
import form_default from "./form/form.js";
|
|
22
23
|
import { formField } from "./form/helper.js";
|
|
23
24
|
import { FormModel } from "./form/form-model.js";
|
|
24
25
|
import { DynamicFormModel } from "./form/dynamic-form-model.js";
|
|
25
|
-
import _sfc_main$
|
|
26
|
-
import _sfc_main$
|
|
27
|
-
import _sfc_main$
|
|
26
|
+
import _sfc_main$17 from "./button/button.js";
|
|
27
|
+
import _sfc_main$18 from "./button/button-group.js";
|
|
28
|
+
import _sfc_main$19 from "./message-confirm/message-confirm.js";
|
|
28
29
|
import MessageConfirm from "./message-confirm/message-confirm2.js";
|
|
29
|
-
import _sfc_main$
|
|
30
|
-
import _sfc_main$
|
|
31
|
-
import _sfc_main$
|
|
32
|
-
import _sfc_main$
|
|
33
|
-
import _sfc_main$
|
|
34
|
-
import _sfc_main$
|
|
35
|
-
import _sfc_main$
|
|
36
|
-
import _sfc_main$
|
|
37
|
-
import _sfc_main$
|
|
38
|
-
import _sfc_main$
|
|
30
|
+
import _sfc_main$20 from "./calendar/calendar.js";
|
|
31
|
+
import _sfc_main$21 from "./radio/radio.js";
|
|
32
|
+
import _sfc_main$22 from "./card/card.js";
|
|
33
|
+
import _sfc_main$23 from "./card/card-header.js";
|
|
34
|
+
import _sfc_main$24 from "./card/card-cover.js";
|
|
35
|
+
import _sfc_main$25 from "./card/card-content.js";
|
|
36
|
+
import _sfc_main$26 from "./card/card-action.js";
|
|
37
|
+
import _sfc_main$27 from "./date-panel/date-panel.js";
|
|
38
|
+
import _sfc_main$28 from "./date-range-picker/date-range-picker.js";
|
|
39
|
+
import _sfc_main$29 from "./loading/loading.js";
|
|
39
40
|
import { vLoading } from "./loading/directive.js";
|
|
40
|
-
import _sfc_main$
|
|
41
|
-
import _sfc_main$
|
|
42
|
-
import _sfc_main$
|
|
43
|
-
import _sfc_main$
|
|
41
|
+
import _sfc_main$30 from "./progress-nodes/progress-nodes.js";
|
|
42
|
+
import _sfc_main$31 from "./auto-complete/auto-complete.js";
|
|
43
|
+
import _sfc_main$32 from "./progress/progress.js";
|
|
44
|
+
import _sfc_main$33 from "./notification/notification.js";
|
|
44
45
|
import { Notification } from "./notification/index.js";
|
|
45
|
-
import _sfc_main$
|
|
46
|
-
import _sfc_main$
|
|
47
|
-
import _sfc_main$
|
|
48
|
-
import _sfc_main$
|
|
49
|
-
import _sfc_main$
|
|
50
|
-
import _sfc_main$
|
|
51
|
-
import _sfc_main$
|
|
46
|
+
import _sfc_main$34 from "./layout/layout.js";
|
|
47
|
+
import _sfc_main$35 from "./tag/tag.js";
|
|
48
|
+
import _sfc_main$36 from "./checkbox/checkbox-button.js";
|
|
49
|
+
import _sfc_main$37 from "./multi-select/multi-select.js";
|
|
50
|
+
import _sfc_main$38 from "./slider/slider.js";
|
|
51
|
+
import _sfc_main$39 from "./gantt-chart/gantt-chart.js";
|
|
52
|
+
import _sfc_main$40 from "./message/message.js";
|
|
52
53
|
import { message } from "./message/message2.js";
|
|
53
|
-
import _sfc_main$
|
|
54
|
-
import _sfc_main$
|
|
55
|
-
import _sfc_main$
|
|
56
|
-
import _sfc_main$
|
|
57
|
-
import _sfc_main$
|
|
54
|
+
import _sfc_main$41 from "./file-picker/file-picker.js";
|
|
55
|
+
import _sfc_main$42 from "./number-input/number-input.js";
|
|
56
|
+
import _sfc_main$43 from "./number-range-input/number-range-input.js";
|
|
57
|
+
import _sfc_main$44 from "./collapse/collapse.js";
|
|
58
|
+
import _sfc_main$45 from "./collapse/collapse-item.js";
|
|
58
59
|
import { defineTableColumns } from "./table/use-columns.js";
|
|
59
|
-
import _sfc_main$
|
|
60
|
-
import _sfc_main$
|
|
61
|
-
import _sfc_main$
|
|
62
|
-
import _sfc_main$
|
|
60
|
+
import _sfc_main$46 from "./table/table.js";
|
|
61
|
+
import _sfc_main$47 from "./table-editor/table-editor.js";
|
|
62
|
+
import _sfc_main$48 from "./check-tag/check-tag.js";
|
|
63
|
+
import _sfc_main$49 from "./context-menu/context-menu.js";
|
|
63
64
|
import { contextmenu } from "./context-menu/api.js";
|
|
64
|
-
import _sfc_main$
|
|
65
|
-
import _sfc_main$
|
|
66
|
-
import _sfc_main$
|
|
67
|
-
import _sfc_main$
|
|
68
|
-
import _sfc_main$
|
|
69
|
-
import _sfc_main$
|
|
70
|
-
import _sfc_main$
|
|
71
|
-
import
|
|
65
|
+
import _sfc_main$50 from "./password-input/password-input.js";
|
|
66
|
+
import _sfc_main$51 from "./number/number.js";
|
|
67
|
+
import _sfc_main$52 from "./dialog/dialog.js";
|
|
68
|
+
import _sfc_main$53 from "./expression-editor/expression-editor.js";
|
|
69
|
+
import _sfc_main$54 from "./watermark/watermark.js";
|
|
70
|
+
import _sfc_main$55 from "./pop-confirm/pop-confirm.js";
|
|
71
|
+
import _sfc_main$56 from "./action/action.js";
|
|
72
|
+
import action_group_default from "./action/action-group.js";
|
|
72
73
|
import _sfc_main$57 from "./batch-edit/batch-edit.js";
|
|
73
74
|
import { defineBatchEditColumns } from "./batch-edit/helper.js";
|
|
74
75
|
import _sfc_main$58 from "./textarea/textarea.js";
|
|
@@ -76,119 +77,118 @@ import _sfc_main$59 from "./cascade/cascade.js";
|
|
|
76
77
|
import _sfc_main$60 from "./steps/steps.js";
|
|
77
78
|
import _sfc_main$61 from "./date-picker/date-picker.js";
|
|
78
79
|
import _sfc_main$62 from "./palette/palette.js";
|
|
79
|
-
import _sfc_main$63 from "./
|
|
80
|
-
import _sfc_main$64 from "./
|
|
81
|
-
import _sfc_main$65 from "./
|
|
82
|
-
import _sfc_main$66 from "./
|
|
83
|
-
import _sfc_main$67 from "./list/list.js";
|
|
84
|
-
import _sfc_main$68 from "./
|
|
85
|
-
import _sfc_main$69 from "./
|
|
86
|
-
import _sfc_main$70 from "./menu/menu-
|
|
87
|
-
import _sfc_main$71 from "./menu/menu
|
|
88
|
-
import _sfc_main$72 from "./
|
|
89
|
-
import _sfc_main$73 from "./
|
|
90
|
-
import _sfc_main$74 from "./
|
|
91
|
-
import _sfc_main$75 from "./
|
|
92
|
-
import _sfc_main$76 from "./
|
|
93
|
-
import _sfc_main$77 from "./
|
|
94
|
-
import _sfc_main$78 from "./
|
|
95
|
-
import _sfc_main$79 from "./
|
|
96
|
-
import _sfc_main$80 from "./
|
|
97
|
-
import _sfc_main$81 from "./
|
|
98
|
-
import _sfc_main$82 from "./badge/badge.js";
|
|
80
|
+
import _sfc_main$63 from "./theme/theme.js";
|
|
81
|
+
import _sfc_main$64 from "./multi-tree-select/multi-tree-select.js";
|
|
82
|
+
import _sfc_main$65 from "./group-input/group-input.js";
|
|
83
|
+
import _sfc_main$66 from "./list/list.js";
|
|
84
|
+
import _sfc_main$67 from "./list/list-item.js";
|
|
85
|
+
import _sfc_main$68 from "./rich-text-editor/rich-text-editor.js";
|
|
86
|
+
import _sfc_main$69 from "./menu/menu-item.js";
|
|
87
|
+
import _sfc_main$70 from "./menu/menu-sub.js";
|
|
88
|
+
import _sfc_main$71 from "./menu/menu.js";
|
|
89
|
+
import _sfc_main$72 from "./grid-input/grid-input.js";
|
|
90
|
+
import _sfc_main$73 from "./switch/switch.js";
|
|
91
|
+
import _sfc_main$74 from "./radio-group/radio-group.js";
|
|
92
|
+
import _sfc_main$75 from "./checkbox-group/checkbox-group.js";
|
|
93
|
+
import _sfc_main$76 from "./file-viewer/file-viewer.js";
|
|
94
|
+
import _sfc_main$77 from "./text/text.js";
|
|
95
|
+
import _sfc_main$78 from "./breadcrumb/breadcrumb.js";
|
|
96
|
+
import _sfc_main$79 from "./paginator/paginator.js";
|
|
97
|
+
import _sfc_main$80 from "./float-button/float-button.js";
|
|
98
|
+
import _sfc_main$81 from "./badge/badge.js";
|
|
99
99
|
//#region src/components/index.ts
|
|
100
100
|
var components_exports = /* @__PURE__ */ __exportAll({
|
|
101
101
|
DynamicFormModel: () => DynamicFormModel,
|
|
102
102
|
FormModel: () => FormModel,
|
|
103
103
|
MessageConfirm: () => MessageConfirm,
|
|
104
104
|
Notification: () => Notification,
|
|
105
|
-
UAction: () => _sfc_main$
|
|
106
|
-
UActionGroup: () =>
|
|
107
|
-
UAutoComplete: () => _sfc_main$
|
|
108
|
-
UBadge: () => _sfc_main$
|
|
105
|
+
UAction: () => _sfc_main$56,
|
|
106
|
+
UActionGroup: () => action_group_default,
|
|
107
|
+
UAutoComplete: () => _sfc_main$31,
|
|
108
|
+
UBadge: () => _sfc_main$81,
|
|
109
109
|
UBatchEdit: () => _sfc_main$57,
|
|
110
|
-
UBreadcrumb: () => _sfc_main$
|
|
111
|
-
UButton: () => _sfc_main$
|
|
112
|
-
UButtonGroup: () => _sfc_main$
|
|
113
|
-
UCalendar: () => _sfc_main$
|
|
114
|
-
UCard: () => _sfc_main$
|
|
115
|
-
UCardAction: () => _sfc_main$
|
|
116
|
-
UCardContent: () => _sfc_main$
|
|
117
|
-
UCardCover: () => _sfc_main$
|
|
118
|
-
UCardHeader: () => _sfc_main$
|
|
110
|
+
UBreadcrumb: () => _sfc_main$78,
|
|
111
|
+
UButton: () => _sfc_main$17,
|
|
112
|
+
UButtonGroup: () => _sfc_main$18,
|
|
113
|
+
UCalendar: () => _sfc_main$20,
|
|
114
|
+
UCard: () => _sfc_main$22,
|
|
115
|
+
UCardAction: () => _sfc_main$26,
|
|
116
|
+
UCardContent: () => _sfc_main$25,
|
|
117
|
+
UCardCover: () => _sfc_main$24,
|
|
118
|
+
UCardHeader: () => _sfc_main$23,
|
|
119
119
|
UCascade: () => _sfc_main$59,
|
|
120
|
-
UCheckTag: () => _sfc_main$
|
|
121
|
-
UCheckbox: () => _sfc_main$
|
|
122
|
-
UCheckboxButton: () => _sfc_main$
|
|
123
|
-
UCheckboxGroup: () => _sfc_main$
|
|
124
|
-
UCodeEditor: () => _sfc_main$
|
|
125
|
-
UCollapse: () => _sfc_main$
|
|
126
|
-
UCollapseItem: () => _sfc_main$
|
|
127
|
-
UConditionEditor: () => _sfc_main,
|
|
128
|
-
UContextMenu: () => _sfc_main$
|
|
129
|
-
UDatePanel: () => _sfc_main$
|
|
120
|
+
UCheckTag: () => _sfc_main$48,
|
|
121
|
+
UCheckbox: () => _sfc_main$10,
|
|
122
|
+
UCheckboxButton: () => _sfc_main$36,
|
|
123
|
+
UCheckboxGroup: () => _sfc_main$75,
|
|
124
|
+
UCodeEditor: () => _sfc_main$13,
|
|
125
|
+
UCollapse: () => _sfc_main$44,
|
|
126
|
+
UCollapseItem: () => _sfc_main$45,
|
|
127
|
+
UConditionEditor: () => _sfc_main$6,
|
|
128
|
+
UContextMenu: () => _sfc_main$49,
|
|
129
|
+
UDatePanel: () => _sfc_main$27,
|
|
130
130
|
UDatePicker: () => _sfc_main$61,
|
|
131
|
-
UDateRangePicker: () => _sfc_main$
|
|
132
|
-
UDialog: () => _sfc_main$
|
|
133
|
-
UDrawer: () => _sfc_main$
|
|
134
|
-
UDropdown: () => _sfc_main$
|
|
135
|
-
UEmpty: () => _sfc_main$
|
|
136
|
-
UExpressionEditor: () => _sfc_main$
|
|
137
|
-
UFilePicker: () => _sfc_main$
|
|
138
|
-
UFileViewer: () => _sfc_main$
|
|
139
|
-
UFloatButton: () => _sfc_main$
|
|
131
|
+
UDateRangePicker: () => _sfc_main$28,
|
|
132
|
+
UDialog: () => _sfc_main$52,
|
|
133
|
+
UDrawer: () => _sfc_main$14,
|
|
134
|
+
UDropdown: () => _sfc_main$4,
|
|
135
|
+
UEmpty: () => _sfc_main$1,
|
|
136
|
+
UExpressionEditor: () => _sfc_main$53,
|
|
137
|
+
UFilePicker: () => _sfc_main$41,
|
|
138
|
+
UFileViewer: () => _sfc_main$76,
|
|
139
|
+
UFloatButton: () => _sfc_main$80,
|
|
140
140
|
UForm: () => form_default,
|
|
141
141
|
UFormItem: () => form_item_default,
|
|
142
|
-
UGanttChart: () => _sfc_main$
|
|
143
|
-
UGrid: () => _sfc_main$
|
|
144
|
-
UGridInput: () => _sfc_main$
|
|
145
|
-
UGridItem: () => _sfc_main$
|
|
146
|
-
UGroupInput: () => _sfc_main$
|
|
147
|
-
UIcon: () => _sfc_main
|
|
142
|
+
UGanttChart: () => _sfc_main$39,
|
|
143
|
+
UGrid: () => _sfc_main$15,
|
|
144
|
+
UGridInput: () => _sfc_main$72,
|
|
145
|
+
UGridItem: () => _sfc_main$16,
|
|
146
|
+
UGroupInput: () => _sfc_main$65,
|
|
147
|
+
UIcon: () => _sfc_main,
|
|
148
148
|
UInput: () => input_default,
|
|
149
|
-
ULayout: () => _sfc_main$
|
|
150
|
-
UList: () => _sfc_main$
|
|
151
|
-
UListItem: () => _sfc_main$
|
|
152
|
-
ULoading: () => _sfc_main$
|
|
153
|
-
UMenu: () => _sfc_main$
|
|
154
|
-
UMenuItem: () => _sfc_main$
|
|
155
|
-
UMenuSub: () => _sfc_main$
|
|
156
|
-
UMessage: () => _sfc_main$
|
|
157
|
-
UMessageConfirm: () => _sfc_main$
|
|
158
|
-
UMultiSelect: () => _sfc_main$
|
|
159
|
-
UMultiTreeSelect: () => _sfc_main$
|
|
149
|
+
ULayout: () => _sfc_main$34,
|
|
150
|
+
UList: () => _sfc_main$66,
|
|
151
|
+
UListItem: () => _sfc_main$67,
|
|
152
|
+
ULoading: () => _sfc_main$29,
|
|
153
|
+
UMenu: () => _sfc_main$71,
|
|
154
|
+
UMenuItem: () => _sfc_main$69,
|
|
155
|
+
UMenuSub: () => _sfc_main$70,
|
|
156
|
+
UMessage: () => _sfc_main$40,
|
|
157
|
+
UMessageConfirm: () => _sfc_main$19,
|
|
158
|
+
UMultiSelect: () => _sfc_main$37,
|
|
159
|
+
UMultiTreeSelect: () => _sfc_main$64,
|
|
160
160
|
UNodeRender: () => NodeRender,
|
|
161
|
-
UNotification: () => _sfc_main$
|
|
162
|
-
UNumber: () => _sfc_main$
|
|
163
|
-
UNumberInput: () => _sfc_main$
|
|
164
|
-
UNumberRangeInput: () => _sfc_main$
|
|
165
|
-
UPaginator: () => _sfc_main$
|
|
161
|
+
UNotification: () => _sfc_main$33,
|
|
162
|
+
UNumber: () => _sfc_main$51,
|
|
163
|
+
UNumberInput: () => _sfc_main$42,
|
|
164
|
+
UNumberRangeInput: () => _sfc_main$43,
|
|
165
|
+
UPaginator: () => _sfc_main$79,
|
|
166
166
|
UPalette: () => _sfc_main$62,
|
|
167
|
-
UPasswordInput: () => _sfc_main$
|
|
168
|
-
UPopConfirm: () => _sfc_main$
|
|
169
|
-
UProgress: () => _sfc_main$
|
|
170
|
-
UProgressNodes: () => _sfc_main$
|
|
171
|
-
URadio: () => _sfc_main$
|
|
172
|
-
URadioGroup: () => _sfc_main$
|
|
173
|
-
URichTextEditor: () => _sfc_main$
|
|
174
|
-
UScroll: () => _sfc_main$
|
|
175
|
-
USelect: () => _sfc_main$
|
|
176
|
-
USlider: () => _sfc_main$
|
|
167
|
+
UPasswordInput: () => _sfc_main$50,
|
|
168
|
+
UPopConfirm: () => _sfc_main$55,
|
|
169
|
+
UProgress: () => _sfc_main$32,
|
|
170
|
+
UProgressNodes: () => _sfc_main$30,
|
|
171
|
+
URadio: () => _sfc_main$21,
|
|
172
|
+
URadioGroup: () => _sfc_main$74,
|
|
173
|
+
URichTextEditor: () => _sfc_main$68,
|
|
174
|
+
UScroll: () => _sfc_main$2,
|
|
175
|
+
USelect: () => _sfc_main$5,
|
|
176
|
+
USlider: () => _sfc_main$38,
|
|
177
177
|
USteps: () => _sfc_main$60,
|
|
178
|
-
USwitch: () => _sfc_main$
|
|
179
|
-
UTable: () => _sfc_main$
|
|
180
|
-
UTableEditor: () => _sfc_main$
|
|
181
|
-
UTabs: () => _sfc_main$
|
|
182
|
-
UTabsHorizontal: () => _sfc_main$
|
|
183
|
-
UTabsVertical: () => _sfc_main$
|
|
184
|
-
UTag: () => _sfc_main$
|
|
185
|
-
UText: () => _sfc_main$
|
|
178
|
+
USwitch: () => _sfc_main$73,
|
|
179
|
+
UTable: () => _sfc_main$46,
|
|
180
|
+
UTableEditor: () => _sfc_main$47,
|
|
181
|
+
UTabs: () => _sfc_main$9,
|
|
182
|
+
UTabsHorizontal: () => _sfc_main$7,
|
|
183
|
+
UTabsVertical: () => _sfc_main$8,
|
|
184
|
+
UTag: () => _sfc_main$35,
|
|
185
|
+
UText: () => _sfc_main$77,
|
|
186
186
|
UTextarea: () => _sfc_main$58,
|
|
187
|
-
UTheme: () => _sfc_main$
|
|
188
|
-
UTip: () => _sfc_main$
|
|
189
|
-
UTree: () => _sfc_main$
|
|
190
|
-
UTreeSelect: () => _sfc_main$
|
|
191
|
-
UWatermark: () => _sfc_main$
|
|
187
|
+
UTheme: () => _sfc_main$63,
|
|
188
|
+
UTip: () => _sfc_main$3,
|
|
189
|
+
UTree: () => _sfc_main$11,
|
|
190
|
+
UTreeSelect: () => _sfc_main$12,
|
|
191
|
+
UWatermark: () => _sfc_main$54,
|
|
192
192
|
contextmenu: () => contextmenu,
|
|
193
193
|
defineBatchEditColumns: () => defineBatchEditColumns,
|
|
194
194
|
defineTableColumns: () => defineTableColumns,
|
|
@@ -17,27 +17,27 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, _InputExposed
|
|
|
17
17
|
"update:modelValue": (value: string | undefined) => any;
|
|
18
18
|
} & {
|
|
19
19
|
"update:modelValue": (value: string) => any;
|
|
20
|
+
clear: () => any;
|
|
20
21
|
change: (value: string) => any;
|
|
21
22
|
"suffix:click": (value?: string | undefined) => any;
|
|
22
23
|
"prefix:click": (value?: string | undefined) => any;
|
|
23
24
|
focus: (value?: string | undefined) => any;
|
|
24
|
-
clear: () => any;
|
|
25
25
|
blur: (value?: string | undefined) => any;
|
|
26
26
|
"native:input": (ev: Event) => any;
|
|
27
27
|
}, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
28
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
29
|
+
onClear?: (() => any) | undefined;
|
|
29
30
|
onChange?: ((value: string) => any) | undefined;
|
|
30
31
|
"onSuffix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
31
32
|
"onPrefix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
32
33
|
onFocus?: ((value?: string | undefined) => any) | undefined;
|
|
33
|
-
onClear?: (() => any) | undefined;
|
|
34
34
|
onBlur?: ((value?: string | undefined) => any) | undefined;
|
|
35
35
|
"onNative:input"?: ((ev: Event) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
clearable: boolean;
|
|
38
|
-
placeholder: string;
|
|
39
37
|
disabled: boolean;
|
|
40
38
|
readonly: boolean;
|
|
39
|
+
placeholder: string;
|
|
40
|
+
clearable: boolean;
|
|
41
41
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
43
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "../icon/icon.js";
|
|
2
2
|
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeModels, nextTick, normalizeClass, openBlock, ref, renderSlot, shallowRef, toDisplayString, unref, useModel, withCtx, withModifiers } from "vue";
|
|
3
|
-
import { FORM_EMPTY_CONTENT, bem, injectFormContext } from "@veltra/utils";
|
|
4
3
|
import { useFocus, useFormFallbackProps } from "@veltra/compositions";
|
|
4
|
+
import { FORM_EMPTY_CONTENT, bem, injectFormContext } from "@veltra/utils";
|
|
5
5
|
import { Close } from "@veltra/icons/normal";
|
|
6
6
|
//#region src/components/input/input.vue?vue&type=script&setup=true&lang.tsx
|
|
7
7
|
const _hoisted_1 = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main$1 from "../icon/icon.js";
|
|
2
2
|
import { LayoutDIKey } from "./di.js";
|
|
3
3
|
import { computed, createElementBlock, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, shallowReactive, shallowRef, unref, withCtx } from "vue";
|
|
4
|
-
import { bem } from "@veltra/utils";
|
|
5
4
|
import { useDrag } from "@veltra/compositions";
|
|
5
|
+
import { bem } from "@veltra/utils";
|
|
6
6
|
import { Move } from "@veltra/icons/normal";
|
|
7
7
|
//#region src/components/layout/layout-resizer.vue
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutDIKey } from "./di.js";
|
|
2
2
|
import _sfc_main$1 from "./layout-resizer.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, unref, watch, watchEffect, withCtx } from "vue";
|
|
4
|
-
import { bem, withUnit } from "@veltra/utils";
|
|
5
4
|
import { useResizeObserver } from "@veltra/compositions";
|
|
5
|
+
import { bem, withUnit } from "@veltra/utils";
|
|
6
6
|
//#region src/components/layout/layout.vue
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
name: "Layout",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main$1 from "../scroll/scroll.js";
|
|
2
2
|
import { Fragment, createBlock, createElementBlock, defineComponent, mergeProps, normalizeClass, openBlock, renderList, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
import { bem } from "@veltra/utils";
|
|
4
3
|
import { useFallbackProps } from "@veltra/compositions";
|
|
4
|
+
import { bem } from "@veltra/utils";
|
|
5
5
|
//#region src/components/list/list.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
name: "List",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Transition, computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
2
|
-
import { bem, zIndex } from "@veltra/utils";
|
|
3
2
|
import { useFallbackProps } from "@veltra/compositions";
|
|
3
|
+
import { bem, zIndex } from "@veltra/utils";
|
|
4
4
|
//#region src/components/loading/loading.vue
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "Loading",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _sfc_main$1 from "../
|
|
2
|
-
import _sfc_main$2 from "../
|
|
1
|
+
import _sfc_main$1 from "../icon/icon.js";
|
|
2
|
+
import _sfc_main$2 from "../scroll/scroll.js";
|
|
3
3
|
import _sfc_main$3 from "../tip/tip.js";
|
|
4
4
|
import { MenuDIKey } from "./di.js";
|
|
5
5
|
import _sfc_main$4 from "./menu-icon.js";
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
visible: visible.value,
|
|
36
36
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event)
|
|
37
37
|
}, {
|
|
38
|
-
content: withCtx(() => [createVNode(unref(_sfc_main$
|
|
38
|
+
content: withCtx(() => [createVNode(unref(_sfc_main$2), {
|
|
39
39
|
tag: "ul",
|
|
40
40
|
class: normalizeClass(unref(collapsedCls).e("sub-list"))
|
|
41
41
|
}, {
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
}, null, 8, ["icon", "class"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(__props.menu.title[0]), 1)), __props.depth !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
66
66
|
createElementVNode("span", { class: normalizeClass(unref(collapsedCls).e("sub-title")) }, toDisplayString(__props.menu.title), 3),
|
|
67
67
|
createCommentVNode(" 展开图标 "),
|
|
68
|
-
createVNode(unref(_sfc_main$
|
|
68
|
+
createVNode(unref(_sfc_main$1), { class: normalizeClass([unref(collapsedCls).e("sub-expand")]) }, {
|
|
69
69
|
default: withCtx(() => [createVNode(unref(ArrowRight))]),
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["class"])
|
|
@@ -6,8 +6,8 @@ import _sfc_main$4 from "./menu-sub-collapsed.js";
|
|
|
6
6
|
import _sfc_main$5 from "./menu-sub.js";
|
|
7
7
|
import { walkMenuWithPath } from "./walk-menu-path.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, provide, renderList, shallowReactive, unref, watch, withCtx } from "vue";
|
|
9
|
-
import { ExpandTransition, bem } from "@veltra/utils";
|
|
10
9
|
import { useFallbackProps } from "@veltra/compositions";
|
|
10
|
+
import { ExpandTransition, bem } from "@veltra/utils";
|
|
11
11
|
//#region src/components/menu/menu.vue
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
name: "Menu",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main$1 from "../icon/icon.js";
|
|
2
2
|
import { getTypeColor, getTypeIcon } from "./helper.js";
|
|
3
3
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, onMounted, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
|
-
import { bem } from "@veltra/utils";
|
|
5
4
|
import { useFallbackProps } from "@veltra/compositions";
|
|
5
|
+
import { bem } from "@veltra/utils";
|
|
6
6
|
import { Close } from "@veltra/icons/normal";
|
|
7
7
|
//#region src/components/message/message.vue
|
|
8
8
|
const _hoisted_1 = ["innerHTML"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main$1 from "../button/button.js";
|
|
2
2
|
import { Transition, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
|
|
3
|
-
import { bem, zIndex } from "@veltra/utils";
|
|
4
3
|
import { useFallbackProps } from "@veltra/compositions";
|
|
4
|
+
import { bem, zIndex } from "@veltra/utils";
|
|
5
5
|
//#region src/components/message-confirm/message-confirm.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
name: "MessageConfirm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _sfc_main$1 from "../checkbox/checkbox.js";
|
|
2
2
|
import { MultiSelectDIKey } from "./di.js";
|
|
3
|
-
import { createElementBlock, createVNode, defineComponent, inject, normalizeClass, onBeforeUnmount, openBlock, renderSlot, unref, withModifiers } from "vue";
|
|
3
|
+
import { createElementBlock, createVNode, defineComponent, inject, normalizeClass, onBeforeUnmount, openBlock, renderSlot, shallowRef, unref, withModifiers } from "vue";
|
|
4
4
|
import { Ripple } from "@veltra/directives";
|
|
5
5
|
//#region src/components/multi-select/multi-select-option.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,32 +16,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
emits: ["check"],
|
|
17
17
|
setup(__props, { emit: __emit }) {
|
|
18
18
|
const props = __props;
|
|
19
|
-
const { disabled = false, checked } = props;
|
|
20
19
|
function measureRef(el) {
|
|
21
20
|
if (typeof props.index !== "number" || !props.measureElement) return;
|
|
22
21
|
props.measureElement(props.index, el);
|
|
23
22
|
}
|
|
24
23
|
const emit = __emit;
|
|
25
24
|
const { optionClass, rippleClass, checkboxClass } = inject(MultiSelectDIKey);
|
|
26
|
-
|
|
25
|
+
const rippleRef = shallowRef(null);
|
|
27
26
|
function handleClick(e) {
|
|
28
|
-
if (disabled) return;
|
|
29
|
-
emit("check", !checked);
|
|
27
|
+
if (props.disabled) return;
|
|
28
|
+
emit("check", !props.checked);
|
|
30
29
|
}
|
|
31
30
|
function handleMousedown(e) {
|
|
32
|
-
if (disabled) return;
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
if (props.disabled) return;
|
|
32
|
+
if (rippleRef.value) {
|
|
33
|
+
rippleRef.value.remove();
|
|
34
|
+
rippleRef.value = null;
|
|
35
|
+
}
|
|
36
|
+
rippleRef.value = new Ripple(e.currentTarget, { rippleClass });
|
|
37
|
+
rippleRef.value.showByEvent(e);
|
|
35
38
|
}
|
|
36
39
|
function handleMouseleave() {
|
|
37
|
-
|
|
40
|
+
rippleRef.value?.remove();
|
|
41
|
+
rippleRef.value = null;
|
|
38
42
|
}
|
|
39
43
|
function handleMouseup() {
|
|
40
|
-
|
|
44
|
+
rippleRef.value?.remove();
|
|
45
|
+
rippleRef.value = null;
|
|
41
46
|
}
|
|
42
47
|
onBeforeUnmount(() => {
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
rippleRef.value?.remove();
|
|
49
|
+
rippleRef.value = null;
|
|
45
50
|
});
|
|
46
51
|
return (_ctx, _cache) => {
|
|
47
52
|
return openBlock(), createElementBlock("li", {
|
|
@@ -53,10 +58,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
58
|
ref: measureRef
|
|
54
59
|
}, [createVNode(unref(_sfc_main$1), {
|
|
55
60
|
class: normalizeClass(unref(checkboxClass)),
|
|
56
|
-
"model-value":
|
|
61
|
+
"model-value": __props.checked,
|
|
57
62
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("check", $event)),
|
|
58
63
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
59
|
-
disabled:
|
|
64
|
+
disabled: __props.disabled
|
|
60
65
|
}, null, 8, [
|
|
61
66
|
"class",
|
|
62
67
|
"model-value",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-select-option.js","names":[],"sources":["../../../src/components/multi-select/multi-select-option.vue"],"sourcesContent":["<template>\n <li\n :class=\"optionClass\"\n @click=\"handleClick\"\n @mousedown=\"handleMousedown\"\n @mouseup=\"handleMouseup\"\n @mouseleave=\"handleMouseleave\"\n :ref=\"measureRef\"\n >\n <u-checkbox\n :class=\"checkboxClass\"\n :model-value=\"checked\"\n @update:model-value=\"emit('check', $event)\"\n @click.stop\n :disabled=\"disabled\"\n />\n\n <slot />\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { Ripple } from '@veltra/directives'\nimport { inject, onBeforeUnmount } from 'vue'\n\nimport { UCheckbox } from '../checkbox'\nimport { MultiSelectDIKey } from './di'\n\ndefineOptions({\n name: 'MultiSelectOption'\n})\n\nconst props = defineProps<{\n option: Record<string, any>\n disabled?: boolean\n checked: boolean\n /**\n * 虚拟项索引:对应 `options` 数组中的绝对位置。\n * 非虚拟模式下可省略;虚拟模式下必须传入,否则元素卸载时 Virtualizer 无法及时解绑,\n * 会因为 ResizeObserver 对脱离 DOM 的元素回调 size=0 而污染尺寸缓存。\n */\n index?: number\n measureElement?: (index: number, el: Element | null) => void\n}>()\n\
|
|
1
|
+
{"version":3,"file":"multi-select-option.js","names":[],"sources":["../../../src/components/multi-select/multi-select-option.vue"],"sourcesContent":["<template>\n <li\n :class=\"optionClass\"\n @click=\"handleClick\"\n @mousedown=\"handleMousedown\"\n @mouseup=\"handleMouseup\"\n @mouseleave=\"handleMouseleave\"\n :ref=\"measureRef\"\n >\n <u-checkbox\n :class=\"checkboxClass\"\n :model-value=\"checked\"\n @update:model-value=\"emit('check', $event)\"\n @click.stop\n :disabled=\"disabled\"\n />\n\n <slot />\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { Ripple } from '@veltra/directives'\nimport { inject, onBeforeUnmount, shallowRef } from 'vue'\n\nimport { UCheckbox } from '../checkbox'\nimport { MultiSelectDIKey } from './di'\n\ndefineOptions({\n name: 'MultiSelectOption'\n})\n\nconst props = defineProps<{\n option: Record<string, any>\n disabled?: boolean\n checked: boolean\n /**\n * 虚拟项索引:对应 `options` 数组中的绝对位置。\n * 非虚拟模式下可省略;虚拟模式下必须传入,否则元素卸载时 Virtualizer 无法及时解绑,\n * 会因为 ResizeObserver 对脱离 DOM 的元素回调 size=0 而污染尺寸缓存。\n */\n index?: number\n measureElement?: (index: number, el: Element | null) => void\n}>()\n\nfunction measureRef(el: unknown) {\n if (typeof props.index !== 'number' || !props.measureElement) return\n props.measureElement(props.index, el as Element | null)\n}\n\nconst emit = defineEmits<{\n (e: 'check', checked: boolean): void\n}>()\n\nconst { optionClass, rippleClass, checkboxClass } = inject(MultiSelectDIKey)!\n\nconst rippleRef = shallowRef<Ripple | null>(null)\n\nfunction handleClick(e) {\n if (props.disabled) return\n emit('check', !props.checked)\n}\n\nfunction handleMousedown(e: MouseEvent) {\n if (props.disabled) return\n\n // 清理旧实例,避免同一元素上多个 Ripple 实例同时修改样式\n if (rippleRef.value) {\n rippleRef.value.remove()\n rippleRef.value = null\n }\n\n rippleRef.value = new Ripple(e.currentTarget as HTMLElement, {\n rippleClass\n })\n\n rippleRef.value.showByEvent(e)\n}\n\nfunction handleMouseleave() {\n rippleRef.value?.remove()\n rippleRef.value = null\n}\n\nfunction handleMouseup() {\n rippleRef.value?.remove()\n rippleRef.value = null\n}\n\nonBeforeUnmount(() => {\n rippleRef.value?.remove()\n rippleRef.value = null\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;EAgCA,MAAM,QAAQ;EAad,SAAS,WAAW,IAAa;AAC/B,OAAI,OAAO,MAAM,UAAU,YAAY,CAAC,MAAM,eAAgB;AAC9D,SAAM,eAAe,MAAM,OAAO,GAAoB;;EAGxD,MAAM,OAAO;EAIb,MAAM,EAAE,aAAa,aAAa,kBAAkB,OAAO,iBAAiB;EAE5E,MAAM,YAAY,WAA0B,KAAI;EAEhD,SAAS,YAAY,GAAG;AACtB,OAAI,MAAM,SAAU;AACpB,QAAK,SAAS,CAAC,MAAM,QAAO;;EAG9B,SAAS,gBAAgB,GAAe;AACtC,OAAI,MAAM,SAAU;AAGpB,OAAI,UAAU,OAAO;AACnB,cAAU,MAAM,QAAO;AACvB,cAAU,QAAQ;;AAGpB,aAAU,QAAQ,IAAI,OAAO,EAAE,eAA8B,EAC3D,aACD,CAAA;AAED,aAAU,MAAM,YAAY,EAAC;;EAG/B,SAAS,mBAAmB;AAC1B,aAAU,OAAO,QAAO;AACxB,aAAU,QAAQ;;EAGpB,SAAS,gBAAgB;AACvB,aAAU,OAAO,QAAO;AACxB,aAAU,QAAQ;;AAGpB,wBAAsB;AACpB,aAAU,OAAO,QAAO;AACxB,aAAU,QAAQ;IACnB;;uBA3FC,mBAiBK,MAAA;IAhBF,OAAK,eAAE,MAAA,YAAW,CAAA;IAClB,SAAO;IACP,aAAW;IACX,WAAS;IACT,cAAY;IACZ,KAAK;OAEN,YAME,MAAA,YAAA,EAAA;IALC,OAAK,eAAE,MAAA,cAAa,CAAA;IACpB,eAAa,QAAA;IACb,uBAAkB,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,SAAU,OAAM;IACxC,SAAK,OAAA,OAAA,OAAA,KAAA,oBAAN,IAAW,CAAA,OAAA,CAAA;IACV,UAAU,QAAA;;;;;OAGb,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,GAAA"}
|