@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,114 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _sfc_main$2 from "../tip/tip.js";
|
|
3
|
-
import { ActionDIKey } from "./di.js";
|
|
4
|
-
import _sfc_main$3 from "./action.js";
|
|
5
|
-
import { Fragment, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, provide, renderList, resolveDynamicComponent, unref, useSlots, withCtx } from "vue";
|
|
6
|
-
import { bem, extractNormalVNodes } from "@veltra/utils";
|
|
7
|
-
import { ArrowDown, MoreFilled } from "@veltra/icons/normal";
|
|
1
|
+
import action_group_vue_vue_type_script_setup_true_lang_default from "./action-group.vue_vue_type_script_setup_true_lang.js";
|
|
8
2
|
//#region src/components/action/action-group.vue
|
|
9
|
-
|
|
10
|
-
name: "ActionGroup",
|
|
11
|
-
inheritAttrs: false,
|
|
12
|
-
__name: "action-group",
|
|
13
|
-
props: {
|
|
14
|
-
loading: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
},
|
|
18
|
-
circle: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
max: { default: 3 },
|
|
23
|
-
hover: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: false
|
|
26
|
-
},
|
|
27
|
-
size: { default: "small" },
|
|
28
|
-
text: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: true
|
|
31
|
-
},
|
|
32
|
-
type: { default: "primary" }
|
|
33
|
-
},
|
|
34
|
-
setup(__props) {
|
|
35
|
-
const props = __props;
|
|
36
|
-
const cls = bem("action-group");
|
|
37
|
-
const slots = useSlots();
|
|
38
|
-
const rootCls = computed(() => [cls.b, bem.is("hover", props.hover)]);
|
|
39
|
-
function isInDropdownNode(node) {
|
|
40
|
-
const p = node.props;
|
|
41
|
-
if (!p) return false;
|
|
42
|
-
const v = p.inDropdown ?? p["in-dropdown"];
|
|
43
|
-
return v === true || v === "" || v === "true";
|
|
44
|
-
}
|
|
45
|
-
const partitioned = computed(() => {
|
|
46
|
-
const nodes = slots.default?.();
|
|
47
|
-
if (!nodes) return {
|
|
48
|
-
visible: [],
|
|
49
|
-
hidden: []
|
|
50
|
-
};
|
|
51
|
-
const extracted = extractNormalVNodes(nodes).filter((node) => node.type?.name === "Action");
|
|
52
|
-
const visible = [];
|
|
53
|
-
const fixedHidden = [];
|
|
54
|
-
extracted.forEach((node) => {
|
|
55
|
-
if (isInDropdownNode(node)) fixedHidden.push(node);
|
|
56
|
-
else visible.push(node);
|
|
57
|
-
});
|
|
58
|
-
return {
|
|
59
|
-
visible,
|
|
60
|
-
hidden: [...visible.length > props.max ? visible.splice(props.max - 1) : [], ...fixedHidden]
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
const normalNodes = computed(() => partitioned.value.visible);
|
|
64
|
-
const dropdownNodes = computed(() => {
|
|
65
|
-
return partitioned.value.hidden.map((node) => cloneVNode(node, {
|
|
66
|
-
inDropdown: true,
|
|
67
|
-
circle: false
|
|
68
|
-
}));
|
|
69
|
-
});
|
|
70
|
-
provide(ActionDIKey, { groupProps: props });
|
|
71
|
-
return (_ctx, _cache) => {
|
|
72
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(rootCls.value) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(normalNodes.value, (node) => {
|
|
73
|
-
return openBlock(), createBlock(resolveDynamicComponent(node), { key: node.key });
|
|
74
|
-
}), 128)), dropdownNodes.value.length ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
75
|
-
key: 0,
|
|
76
|
-
class: normalizeClass(unref(cls).e("dropdown")),
|
|
77
|
-
direction: "bottom",
|
|
78
|
-
alignment: "end",
|
|
79
|
-
trigger: "click"
|
|
80
|
-
}, {
|
|
81
|
-
content: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(dropdownNodes.value, (node) => {
|
|
82
|
-
return openBlock(), createBlock(resolveDynamicComponent(node), { key: node.key });
|
|
83
|
-
}), 128))]),
|
|
84
|
-
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
85
|
-
class: normalizeClass(unref(cls).e("more")),
|
|
86
|
-
type: __props.type,
|
|
87
|
-
size: __props.size,
|
|
88
|
-
text: __props.text,
|
|
89
|
-
circle: __props.hover,
|
|
90
|
-
icon: __props.hover ? unref(MoreFilled) : void 0,
|
|
91
|
-
title: "更多"
|
|
92
|
-
}, {
|
|
93
|
-
default: withCtx(() => [!__props.hover ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[0] || (_cache[0] = createTextVNode(" 更多 ", -1)), createVNode(unref(_sfc_main$1), null, {
|
|
94
|
-
default: withCtx(() => [createVNode(unref(ArrowDown))]),
|
|
95
|
-
_: 1
|
|
96
|
-
})], 64)) : createCommentVNode("v-if", true)]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 8, [
|
|
99
|
-
"class",
|
|
100
|
-
"type",
|
|
101
|
-
"size",
|
|
102
|
-
"text",
|
|
103
|
-
"circle",
|
|
104
|
-
"icon"
|
|
105
|
-
])]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)], 2);
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
});
|
|
3
|
+
var action_group_default = action_group_vue_vue_type_script_setup_true_lang_default;
|
|
111
4
|
//#endregion
|
|
112
|
-
export {
|
|
5
|
+
export { action_group_default as default };
|
|
113
6
|
|
|
114
7
|
//# sourceMappingURL=action-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-group.js","names":[],"sources":["../../../src/components/action/action-group.vue"],"sourcesContent":["<template>\n <
|
|
1
|
+
{"version":3,"file":"action-group.js","names":[],"sources":["../../../src/components/action/action-group.vue"],"sourcesContent":["<template>\n <component v-for=\"node of getSlotsNodes()\" :key=\"node.key\" :is=\"node\" />\n</template>\n\n<script lang=\"tsx\" setup>\nimport { MoreFilled } from '@veltra/icons/normal'\nimport { bem, extractNormalVNodes } from '@veltra/utils'\nimport { cloneVNode, provide, shallowRef, type VNode } from 'vue'\n\nimport type { _ActionGroupExposed, ActionGroupProps } from '../../types'\nimport { UButton } from '../button'\nimport { UTip } from '../tip'\nimport { ActionDIKey } from './di'\n\ndefineOptions({\n name: 'ActionGroup',\n inheritAttrs: false\n})\n\nconst props = withDefaults(defineProps<ActionGroupProps>(), {\n max: 3,\n loading: false,\n circle: false,\n size: 'small',\n text: true,\n type: 'primary'\n})\n\nconst cls = bem('action-group')\n\nconst slots = defineSlots<{\n default?: () => VNode[]\n}>()\n\nfunction isInDropdownNode(node: VNode): boolean {\n const p = node.props as Record<string, unknown> | null\n if (!p) return false\n const v = p.inDropdown ?? p['in-dropdown']\n return v === true || v === '' || v === 'true'\n}\n\nconst tipVisible = shallowRef(false)\n\nfunction closeTip() {\n tipVisible.value = false\n}\n\nfunction withSeparators(nodes: VNode[]) {\n return nodes.flatMap((node, index) => {\n if (index === 0) return [node]\n\n return [\n <i\n key={`separator-${index}`}\n class={cls.e('separator')}\n aria-hidden=\"true\"\n />,\n node\n ]\n })\n}\n\nfunction getSlotsNodes() {\n const nodes = slots.default?.()\n if (!nodes) return []\n\n const extracted = extractNormalVNodes(nodes).filter(\n (node) => (node.type as { name?: string } | null | undefined)?.name === 'Action'\n )\n\n const visible: VNode[] = []\n const fixedHidden: VNode[] = []\n\n extracted.forEach((node) => {\n if (isInDropdownNode(node)) {\n fixedHidden.push(node)\n } else {\n visible.push(node)\n }\n })\n\n const willOverflow = visible.length > props.max\n const overflow = willOverflow ? visible.splice(props.max - 1) : []\n\n const hiddenNodes = [...overflow, ...fixedHidden]\n\n const dropdownNodes = hiddenNodes.map((node) =>\n cloneVNode(node, { inDropdown: true, circle: false })\n )\n\n const dropdown = hiddenNodes.length ? (\n <UTip\n direction=\"bottom\"\n alignment=\"end\"\n trigger=\"click\"\n class={cls.e('dropdown')}\n visible={tipVisible.value}\n onUpdate:visible={(val: boolean) => {\n tipVisible.value = val\n }}\n >\n {{\n content: () => dropdownNodes,\n default: () => (\n <UButton\n class={cls.e('more')}\n type={props.type}\n size={props.size}\n text={props.text}\n circle\n icon={MoreFilled}\n />\n )\n }}\n </UTip>\n ) : null\n\n return withSeparators(dropdown ? [...visible, dropdown] : visible)\n}\n\nprovide(ActionDIKey, {\n groupProps: props,\n closeTip\n})\n\ndefineExpose<_ActionGroupExposed>({\n closeTip\n})\n</script>\n"],"mappings":""}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
+
import { ActionGroupProps, _ActionGroupExposed } from "../../types/action.js";
|
|
1
2
|
import * as _$vue from "vue";
|
|
2
3
|
import { VNode } from "vue";
|
|
3
|
-
import
|
|
4
|
+
import * as _$_veltra_utils0 from "@veltra/utils";
|
|
4
5
|
|
|
5
6
|
//#region src/components/action/action-group.vue.d.ts
|
|
6
|
-
interface _Props {
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
circle?: boolean;
|
|
9
|
-
max?: number;
|
|
10
|
-
hover?: boolean;
|
|
11
|
-
size?: 'small' | 'default' | 'large';
|
|
12
|
-
text?: boolean;
|
|
13
|
-
type?: ColorType;
|
|
14
|
-
}
|
|
15
7
|
type __VLS_Slots = {
|
|
16
8
|
default?: () => VNode[];
|
|
17
9
|
};
|
|
18
|
-
declare const __VLS_base: _$vue.DefineComponent<
|
|
19
|
-
type: ColorType;
|
|
20
|
-
max: number;
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ActionGroupProps, _ActionGroupExposed, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ActionGroupProps> & Readonly<{}>, {
|
|
11
|
+
type: _$_veltra_utils0.ColorType;
|
|
21
12
|
size: "small" | "default" | "large";
|
|
22
13
|
text: boolean;
|
|
23
|
-
hover: boolean;
|
|
24
14
|
circle: boolean;
|
|
15
|
+
max: number;
|
|
25
16
|
loading: boolean;
|
|
26
17
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
27
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import _sfc_main from "../tip/tip.js";
|
|
2
|
+
import _sfc_main$1 from "../button/button.js";
|
|
3
|
+
import { ActionDIKey } from "./di.js";
|
|
4
|
+
import { Fragment, cloneVNode, createBlock, createElementBlock, createVNode, defineComponent, openBlock, provide, renderList, resolveDynamicComponent, shallowRef, useSlots } from "vue";
|
|
5
|
+
import { bem, extractNormalVNodes } from "@veltra/utils";
|
|
6
|
+
import { MoreFilled } from "@veltra/icons/normal";
|
|
7
|
+
//#region src/components/action/action-group.vue?vue&type=script&setup=true&lang.tsx
|
|
8
|
+
var action_group_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ActionGroup",
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
__name: "action-group",
|
|
12
|
+
props: {
|
|
13
|
+
loading: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
circle: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
max: { default: 3 },
|
|
22
|
+
size: { default: "small" },
|
|
23
|
+
text: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
type: { default: "primary" }
|
|
28
|
+
},
|
|
29
|
+
setup(__props, { expose: __expose }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const cls = bem("action-group");
|
|
32
|
+
const slots = useSlots();
|
|
33
|
+
function isInDropdownNode(node) {
|
|
34
|
+
const p = node.props;
|
|
35
|
+
if (!p) return false;
|
|
36
|
+
const v = p.inDropdown ?? p["in-dropdown"];
|
|
37
|
+
return v === true || v === "" || v === "true";
|
|
38
|
+
}
|
|
39
|
+
const tipVisible = shallowRef(false);
|
|
40
|
+
function closeTip() {
|
|
41
|
+
tipVisible.value = false;
|
|
42
|
+
}
|
|
43
|
+
function withSeparators(nodes) {
|
|
44
|
+
return nodes.flatMap((node, index) => {
|
|
45
|
+
if (index === 0) return [node];
|
|
46
|
+
return [createVNode("i", {
|
|
47
|
+
"key": `separator-${index}`,
|
|
48
|
+
"class": cls.e("separator"),
|
|
49
|
+
"aria-hidden": "true"
|
|
50
|
+
}, null), node];
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function getSlotsNodes() {
|
|
54
|
+
const nodes = slots.default?.();
|
|
55
|
+
if (!nodes) return [];
|
|
56
|
+
const extracted = extractNormalVNodes(nodes).filter((node) => node.type?.name === "Action");
|
|
57
|
+
const visible = [];
|
|
58
|
+
const fixedHidden = [];
|
|
59
|
+
extracted.forEach((node) => {
|
|
60
|
+
if (isInDropdownNode(node)) fixedHidden.push(node);
|
|
61
|
+
else visible.push(node);
|
|
62
|
+
});
|
|
63
|
+
const hiddenNodes = [...visible.length > props.max ? visible.splice(props.max - 1) : [], ...fixedHidden];
|
|
64
|
+
const dropdownNodes = hiddenNodes.map((node) => cloneVNode(node, {
|
|
65
|
+
inDropdown: true,
|
|
66
|
+
circle: false
|
|
67
|
+
}));
|
|
68
|
+
const dropdown = hiddenNodes.length ? createVNode(_sfc_main, {
|
|
69
|
+
"direction": "bottom",
|
|
70
|
+
"alignment": "end",
|
|
71
|
+
"trigger": "click",
|
|
72
|
+
"class": cls.e("dropdown"),
|
|
73
|
+
"visible": tipVisible.value,
|
|
74
|
+
"onUpdate:visible": (val) => {
|
|
75
|
+
tipVisible.value = val;
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
content: () => dropdownNodes,
|
|
79
|
+
default: () => createVNode(_sfc_main$1, {
|
|
80
|
+
"class": cls.e("more"),
|
|
81
|
+
"type": props.type,
|
|
82
|
+
"size": props.size,
|
|
83
|
+
"text": props.text,
|
|
84
|
+
"circle": true,
|
|
85
|
+
"icon": MoreFilled
|
|
86
|
+
}, null)
|
|
87
|
+
}) : null;
|
|
88
|
+
return withSeparators(dropdown ? [...visible, dropdown] : visible);
|
|
89
|
+
}
|
|
90
|
+
provide(ActionDIKey, {
|
|
91
|
+
groupProps: props,
|
|
92
|
+
closeTip
|
|
93
|
+
});
|
|
94
|
+
__expose({ closeTip });
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(getSlotsNodes(), (node) => {
|
|
97
|
+
return openBlock(), createBlock(resolveDynamicComponent(node), { key: node.key });
|
|
98
|
+
}), 128);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
export { action_group_vue_vue_type_script_setup_true_lang_default as default };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=action-group.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-group.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/action/action-group.vue"],"sourcesContent":["<template>\n <component v-for=\"node of getSlotsNodes()\" :key=\"node.key\" :is=\"node\" />\n</template>\n\n<script lang=\"tsx\" setup>\nimport { MoreFilled } from '@veltra/icons/normal'\nimport { bem, extractNormalVNodes } from '@veltra/utils'\nimport { cloneVNode, provide, shallowRef, type VNode } from 'vue'\n\nimport type { _ActionGroupExposed, ActionGroupProps } from '../../types'\nimport { UButton } from '../button'\nimport { UTip } from '../tip'\nimport { ActionDIKey } from './di'\n\ndefineOptions({\n name: 'ActionGroup',\n inheritAttrs: false\n})\n\nconst props = withDefaults(defineProps<ActionGroupProps>(), {\n max: 3,\n loading: false,\n circle: false,\n size: 'small',\n text: true,\n type: 'primary'\n})\n\nconst cls = bem('action-group')\n\nconst slots = defineSlots<{\n default?: () => VNode[]\n}>()\n\nfunction isInDropdownNode(node: VNode): boolean {\n const p = node.props as Record<string, unknown> | null\n if (!p) return false\n const v = p.inDropdown ?? p['in-dropdown']\n return v === true || v === '' || v === 'true'\n}\n\nconst tipVisible = shallowRef(false)\n\nfunction closeTip() {\n tipVisible.value = false\n}\n\nfunction withSeparators(nodes: VNode[]) {\n return nodes.flatMap((node, index) => {\n if (index === 0) return [node]\n\n return [\n <i\n key={`separator-${index}`}\n class={cls.e('separator')}\n aria-hidden=\"true\"\n />,\n node\n ]\n })\n}\n\nfunction getSlotsNodes() {\n const nodes = slots.default?.()\n if (!nodes) return []\n\n const extracted = extractNormalVNodes(nodes).filter(\n (node) => (node.type as { name?: string } | null | undefined)?.name === 'Action'\n )\n\n const visible: VNode[] = []\n const fixedHidden: VNode[] = []\n\n extracted.forEach((node) => {\n if (isInDropdownNode(node)) {\n fixedHidden.push(node)\n } else {\n visible.push(node)\n }\n })\n\n const willOverflow = visible.length > props.max\n const overflow = willOverflow ? visible.splice(props.max - 1) : []\n\n const hiddenNodes = [...overflow, ...fixedHidden]\n\n const dropdownNodes = hiddenNodes.map((node) =>\n cloneVNode(node, { inDropdown: true, circle: false })\n )\n\n const dropdown = hiddenNodes.length ? (\n <UTip\n direction=\"bottom\"\n alignment=\"end\"\n trigger=\"click\"\n class={cls.e('dropdown')}\n visible={tipVisible.value}\n onUpdate:visible={(val: boolean) => {\n tipVisible.value = val\n }}\n >\n {{\n content: () => dropdownNodes,\n default: () => (\n <UButton\n class={cls.e('more')}\n type={props.type}\n size={props.size}\n text={props.text}\n circle\n icon={MoreFilled}\n />\n )\n }}\n </UTip>\n ) : null\n\n return withSeparators(dropdown ? [...visible, dropdown] : visible)\n}\n\nprovide(ActionDIKey, {\n groupProps: props,\n closeTip\n})\n\ndefineExpose<_ActionGroupExposed>({\n closeTip\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EASd,MAAM,MAAM,IAAI,eAAc;EAE9B,MAAM,QAAQ,UAAA;EAId,SAAS,iBAAiB,MAAsB;GAC9C,MAAM,IAAI,KAAK;AACf,OAAI,CAAC,EAAG,QAAO;GACf,MAAM,IAAI,EAAE,cAAc,EAAE;AAC5B,UAAO,MAAM,QAAQ,MAAM,MAAM,MAAM;;EAGzC,MAAM,aAAa,WAAW,MAAK;EAEnC,SAAS,WAAW;AAClB,cAAW,QAAQ;;EAGrB,SAAS,eAAe,OAAgB;AACtC,UAAO,MAAM,SAAS,MAAM,UAAU;AACpC,QAAI,UAAU,EAAG,QAAO,CAAC,KAAI;AAE7B,WAAO,CAAA,YAAA,KAAA;KAAA,OAEE,aAAa;KAAO,SAClB,IAAI,EAAE,YAAY;KAAA,eAAA;KAAA,EAAA,KAAA,EAG3B,KACF;KACD;;EAGH,SAAS,gBAAgB;GACvB,MAAM,QAAQ,MAAM,WAAU;AAC9B,OAAI,CAAC,MAAO,QAAO,EAAC;GAEpB,MAAM,YAAY,oBAAoB,MAAM,CAAC,QAC1C,SAAU,KAAK,MAA+C,SAAS,SAC1E;GAEA,MAAM,UAAmB,EAAC;GAC1B,MAAM,cAAuB,EAAC;AAE9B,aAAU,SAAS,SAAS;AAC1B,QAAI,iBAAiB,KAAK,CACxB,aAAY,KAAK,KAAI;QAErB,SAAQ,KAAK,KAAI;KAEpB;GAKD,MAAM,cAAc,CAAC,GAHA,QAAQ,SAAS,MAAM,MACZ,QAAQ,OAAO,MAAM,MAAM,EAAE,GAAG,EAAC,EAE/B,GAAG,YAAW;GAEhD,MAAM,gBAAgB,YAAY,KAAK,SACrC,WAAW,MAAM;IAAE,YAAY;IAAM,QAAQ;IAAO,CACtD,CAAA;GAEA,MAAM,WAAW,YAAY,SAAM,YAAA,WAAA;IAAA,aAAA;IAAA,aAAA;IAAA,WAAA;IAAA,SAKxB,IAAI,EAAE,WAAW;IAAA,WACf,WAAW;IAAK,qBACN,QAAiB;AAClC,gBAAW,QAAQ;;IACpB,EAAA;IAGC,eAAe;IACf,eAAS,YAAA,aAAA;KAAA,SAEE,IAAI,EAAE,OAAO;KAAA,QACd,MAAM;KAAI,QACV,MAAM;KAAI,QACV,MAAM;KAAI,UAAA;KAAA,QAEV;KAAU,EAAA,KAAA;IAEpB,CAAA,GAGF;AAEJ,UAAO,eAAe,WAAW,CAAC,GAAG,SAAS,SAAS,GAAG,QAAO;;AAGnE,UAAQ,aAAa;GACnB,YAAY;GACZ;GACD,CAAA;AAED,WAAkC,EAChC,UACD,CAAA;;2BA9HC,mBAAwE,UAAA,MAAA,WAA9C,eAAa,GAArB,SAAI;wBAAtB,YAAwE,wBAAR,KAAI,EAAA,EAAxB,KAAK,KAAK,KAAA,CAAA"}
|
|
@@ -71,7 +71,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
const emit = __emit;
|
|
72
72
|
const cls = bem("action");
|
|
73
73
|
function handleConfirm() {
|
|
74
|
+
handleRun();
|
|
75
|
+
}
|
|
76
|
+
function handleRun() {
|
|
74
77
|
emit("run");
|
|
78
|
+
if (props.inDropdown) ctx?.closeTip();
|
|
75
79
|
}
|
|
76
80
|
return (_ctx, _cache) => {
|
|
77
81
|
return __props.needConfirm ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
@@ -107,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
111
|
}, {
|
|
108
112
|
...buttonProps.value,
|
|
109
113
|
..._ctx.$attrs
|
|
110
|
-
}, { onClick:
|
|
114
|
+
}, { onClick: handleRun }), {
|
|
111
115
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
112
116
|
_: 3
|
|
113
117
|
}, 16, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","names":["$attrs"],"sources":["../../../src/components/action/action.vue"],"sourcesContent":["<template>\n <u-pop-confirm\n v-if=\"needConfirm\"\n title=\"确认执行此操作吗?\"\n style=\"display: inline-block\"\n direction=\"left\"\n @confirm=\"handleConfirm\"\n >\n <template #reference>\n <u-button\n :class=\"cls.b\"\n :loading\n :circle\n :propagate=\"false\"\n v-bind=\"{ ...buttonProps, ...$attrs }\"\n >\n <slot />\n </u-button>\n </template>\n </u-pop-confirm>\n\n <u-button\n v-else\n :class=\"cls.b\"\n :loading\n :circle\n :propagate=\"false\"\n v-bind=\"{ ...buttonProps, ...$attrs }\"\n @click=\"
|
|
1
|
+
{"version":3,"file":"action.js","names":["$attrs"],"sources":["../../../src/components/action/action.vue"],"sourcesContent":["<template>\n <u-pop-confirm\n v-if=\"needConfirm\"\n title=\"确认执行此操作吗?\"\n style=\"display: inline-block\"\n direction=\"left\"\n @confirm=\"handleConfirm\"\n >\n <template #reference>\n <u-button\n :class=\"cls.b\"\n :loading\n :circle\n :propagate=\"false\"\n v-bind=\"{ ...buttonProps, ...$attrs }\"\n >\n <slot />\n </u-button>\n </template>\n </u-pop-confirm>\n\n <u-button\n v-else\n :class=\"cls.b\"\n :loading\n :circle\n :propagate=\"false\"\n v-bind=\"{ ...buttonProps, ...$attrs }\"\n @click=\"handleRun\"\n >\n <slot />\n </u-button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { o } from '@cat-kit/core'\nimport { bem } from '@veltra/utils'\nimport { computed, inject } from 'vue'\n\nimport type { ActionEmits, ActionProps } from '../../types'\nimport { UButton } from '../button'\nimport { UPopConfirm } from '../pop-confirm'\nimport { ActionDIKey } from './di'\n\ndefineOptions({\n name: 'Action',\n inheritAttrs: false\n})\n\n// 这里所有可继承自 `<u-action-group>` 的默认值都强制为 `undefined`,\n// 否则 Vue 对 Boolean 类型 prop 的默认值(false)会让 `??` 兜底始终失效\nconst props = withDefaults(defineProps<ActionProps>(), {\n inDropdown: false,\n loading: undefined,\n circle: undefined,\n text: undefined,\n size: undefined,\n type: undefined\n})\n\nconst ctx = inject(ActionDIKey, undefined)\n\nconst size = computed(() => props.size ?? ctx?.groupProps.size ?? 'small')\nconst text = computed(() => props.text ?? ctx?.groupProps.text ?? true)\nconst type = computed(() => props.type ?? ctx?.groupProps.type ?? 'primary')\n\nconst loading = computed(() => {\n return props.loading ?? ctx?.groupProps.loading\n})\n\n// 下拉菜单中的操作项强制非圆形以呈现完整文本,否则跟随用户/分组配置\nconst circle = computed(() => {\n if (props.inDropdown) return false\n return props.circle ?? ctx?.groupProps.circle\n})\n\nconst buttonProps = computed(() => {\n return {\n ...o(props as Record<string, any>).omit([\n 'needConfirm',\n 'loading',\n 'circle',\n 'propagate',\n 'size',\n 'text',\n 'type',\n 'inDropdown'\n ]),\n size: size.value,\n text: text.value,\n type: type.value\n }\n})\n\nconst emit = defineEmits<ActionEmits>()\n\nconst cls = bem('action')\n\nfunction handleConfirm() {\n handleRun()\n}\n\nfunction handleRun() {\n emit('run')\n\n if (props.inDropdown) {\n ctx?.closeTip()\n }\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDA,MAAM,QAAQ;EASd,MAAM,MAAM,OAAO,aAAa,KAAA,EAAS;EAEzC,MAAM,OAAO,eAAe,MAAM,QAAQ,KAAK,WAAW,QAAQ,QAAO;EACzE,MAAM,OAAO,eAAe,MAAM,QAAQ,KAAK,WAAW,QAAQ,KAAI;EACtE,MAAM,OAAO,eAAe,MAAM,QAAQ,KAAK,WAAW,QAAQ,UAAS;EAE3E,MAAM,UAAU,eAAe;AAC7B,UAAO,MAAM,WAAW,KAAK,WAAW;IACzC;EAGD,MAAM,SAAS,eAAe;AAC5B,OAAI,MAAM,WAAY,QAAO;AAC7B,UAAO,MAAM,UAAU,KAAK,WAAW;IACxC;EAED,MAAM,cAAc,eAAe;AACjC,UAAO;IACL,GAAG,EAAE,MAA6B,CAAC,KAAK;KACtC;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD,CAAC;IACF,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACb;IACD;EAED,MAAM,OAAO;EAEb,MAAM,MAAM,IAAI,SAAQ;EAExB,SAAS,gBAAgB;AACvB,cAAU;;EAGZ,SAAS,YAAY;AACnB,QAAK,MAAK;AAEV,OAAI,MAAM,WACR,MAAK,UAAS;;;UAxGR,QAAA,eAAA,WAAA,EADR,YAkBgB,MAAA,YAAA,EAAA;;IAhBd,OAAM;IACN,OAAA,EAAA,WAAA,gBAA6B;IAC7B,WAAU;IACT,WAAS;;IAEC,WAAS,cASP,CARX,YAQW,MAAA,YAAA,EARX,WAQW;KAPR,OAAO,MAAA,IAAG,CAAC;KACX,SAAA,QAAA;KACA,QAAA,OAAA;KACA,WAAW;;QACC,YAAA;KAAW,GAAKA,KAAAA;KAAM,CAAA,EAAA;4BAE3B,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA;;;;;;;;uBAKd,YAUW,MAAA,YAAA,EAVX,WAUW;;IARR,OAAO,MAAA,IAAG,CAAC;IACX,SAAA,QAAA;IACA,QAAA,OAAA;IACA,WAAW;;OACC,YAAA;IAAW,GAAKA,KAAAA;IAAM,EAAA,EAClC,SAAO,WAAS,CAAA,EAAA;2BAET,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.js","names":[],"sources":["../../../src/components/action/di.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nimport type { ActionGroupProps } from '../../types'\n\nexport const ActionDIKey: InjectionKey<{ groupProps: ActionGroupProps }>
|
|
1
|
+
{"version":3,"file":"di.js","names":[],"sources":["../../../src/components/action/di.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nimport type { ActionGroupProps } from '../../types'\n\nexport const ActionDIKey: InjectionKey<{ groupProps: ActionGroupProps; closeTip: () => void }> =\n Symbol('ActionDIKey')\n"],"mappings":";AAIA,MAAa,cACX,OAAO,cAAc"}
|
|
@@ -19,28 +19,27 @@
|
|
|
19
19
|
display: inline-flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
vertical-align: middle;
|
|
22
|
-
gap: 6px;
|
|
23
|
-
}
|
|
24
|
-
.u-action-group__more {
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
}
|
|
27
|
-
.u-action-group.is-hover {
|
|
28
22
|
gap: 2px;
|
|
29
23
|
padding: 2px 4px;
|
|
30
24
|
border-radius: 999px;
|
|
31
|
-
opacity: 0.45;
|
|
32
|
-
transition: opacity 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
|
|
33
|
-
}
|
|
34
|
-
.u-action-group.is-hover:hover, .u-action-group.is-hover:focus-within {
|
|
35
|
-
opacity: 1;
|
|
36
25
|
background-color: color-mix(in srgb, var(--u-bg-color-top) 70%, transparent);
|
|
37
26
|
backdrop-filter: var(--u-bg-filter);
|
|
38
27
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
39
28
|
box-shadow: 0 1px 4px color-mix(in srgb, var(--u-shadow-color) 35%, transparent);
|
|
40
29
|
}
|
|
30
|
+
.u-action-group__more {
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
.u-action-group__separator {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
width: 1px;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
height: 0.8em;
|
|
39
|
+
margin: 0 4px;
|
|
40
|
+
background-color: var(--u-border-color);
|
|
41
|
+
}
|
|
41
42
|
.u-action-group__dropdown {
|
|
42
|
-
padding: 4px;
|
|
43
|
-
min-width: 140px;
|
|
44
43
|
display: flex;
|
|
45
44
|
flex-direction: column;
|
|
46
45
|
gap: 2px;
|
|
@@ -48,12 +47,16 @@
|
|
|
48
47
|
.u-action-group__dropdown .u-button {
|
|
49
48
|
width: 100%;
|
|
50
49
|
justify-content: flex-start;
|
|
51
|
-
padding: 0
|
|
50
|
+
padding: 0 10px;
|
|
52
51
|
}
|
|
53
52
|
.u-action-group__dropdown .u-button + .u-action-group__dropdown .u-button {
|
|
54
53
|
margin-left: 0;
|
|
55
54
|
}
|
|
56
55
|
|
|
56
|
+
.u-action-group__dropdownu-tip__content {
|
|
57
|
+
padding: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
57
60
|
.u-action {
|
|
58
61
|
flex-shrink: 0;
|
|
59
62
|
}
|
|
@@ -4,8 +4,8 @@ import input_default from "../input/input.js";
|
|
|
4
4
|
import { useKeyboard } from "./use-keyboard.js";
|
|
5
5
|
import { useSuggestions } from "./use-suggestions.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, useSlots, watch, withCtx, withDirectives } from "vue";
|
|
7
|
-
import { FORM_EMPTY_CONTENT, bem, injectFormContext, scrollIntoContainerView } from "@veltra/utils";
|
|
8
7
|
import { useFormFallbackProps } from "@veltra/compositions";
|
|
8
|
+
import { FORM_EMPTY_CONTENT, bem, injectFormContext, scrollIntoContainerView } from "@veltra/utils";
|
|
9
9
|
import { vRipple } from "@veltra/directives";
|
|
10
10
|
//#region src/components/auto-complete/auto-complete.vue
|
|
11
11
|
const _hoisted_1 = ["data-key"];
|
|
@@ -24,10 +24,10 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
|
|
|
24
24
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
25
|
onSelect?: ((value: string) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
clearable: boolean;
|
|
28
|
-
placeholder: string;
|
|
29
27
|
disabled: boolean;
|
|
30
28
|
readonly: boolean;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
clearable: boolean;
|
|
31
31
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createCommentVNode, createElementBlock, defineComponent, nextTick, normalizeClass, onMounted, openBlock, renderSlot, shallowRef, toDisplayString, unref, watch } from "vue";
|
|
2
|
-
import { bem, setStyles, zIndex } from "@veltra/utils";
|
|
3
2
|
import { useFallbackProps } from "@veltra/compositions";
|
|
3
|
+
import { bem, setStyles, zIndex } from "@veltra/utils";
|
|
4
4
|
//#region src/components/badge/badge.vue
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "Badge",
|