@wfrog/vc-ui 1.5.3 → 1.6.1
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/es/chunk/CL65DvCP.mjs +25 -0
- package/dist/es/chunk/DRLHgORP.mjs +26 -0
- package/dist/es/chunk/Mq_fqKb4.mjs +41 -0
- package/dist/es/components/explorer-container/explorer-container.mjs +4 -4
- package/dist/es/components/explorer-container/index.css +7 -5
- package/dist/es/components/explorer-form/explorer-form.d.ts +2 -2
- package/dist/es/components/explorer-form/explorer-form.mjs +23 -10
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +5 -3
- package/dist/es/components/explorer-form/index.css +9 -7
- package/dist/es/components/explorer-list/explorer-list.d.ts +3 -1
- package/dist/es/components/explorer-list/explorer-list.mjs +65 -69
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +5 -1
- package/dist/es/components/explorer-list/index.css +15 -11
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +3 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +34 -42
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +5 -1
- package/dist/es/components/explorer-tree/index.css +18 -13
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +1 -0
- package/dist/es/components/input/input.mjs +6 -4
- package/dist/es/components/input/input.vue.d.ts +1 -0
- package/dist/es/components/tags/tags.mjs +3 -21
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -35
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -2
- package/dist/es/directives/cleave/index.mjs +4 -0
- package/dist/es/directives/focus/index.mjs +1 -0
- package/dist/es/directives/index.mjs +16 -0
- package/dist/es/directives/thousand/index.mjs +4 -0
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.mjs +4 -1
- package/dist/global.d.ts +5 -0
- package/dist/index.css +50 -37
- package/package.json +10 -1
|
@@ -3,7 +3,7 @@ import '../../chunk/By7FMB3I.mjs';
|
|
|
3
3
|
import { E as ElTree } from '../../chunk/DYKOYbzT.mjs';
|
|
4
4
|
import '../../chunk/DSt2uDNE.mjs';
|
|
5
5
|
import '../../chunk/DTbnchOm.mjs';
|
|
6
|
-
import { defineComponent, useTemplateRef, computed, watch, createBlock, openBlock, withCtx, withDirectives, createElementBlock, createCommentVNode, createVNode, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
6
|
+
import { defineComponent, useTemplateRef, computed, watch, createBlock, openBlock, withCtx, withDirectives, createElementBlock, createCommentVNode, createVNode, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, vShow } from 'vue';
|
|
7
7
|
import { Loading } from '@element-plus/icons-vue';
|
|
8
8
|
import { C as Component$3 } from '../button/button.mjs';
|
|
9
9
|
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
@@ -28,12 +28,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
filterMethod: {},
|
|
29
29
|
highlightCurrent: { type: Boolean, default: true }
|
|
30
30
|
},
|
|
31
|
-
emits: ["nodeClick", "create", "modify", "remove"],
|
|
31
|
+
emits: ["nodeClick", "create", "modify", "remove", "up", "down"],
|
|
32
32
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
33
33
|
const props = __props;
|
|
34
34
|
const emits = __emit;
|
|
35
35
|
const treeRef = useTemplateRef("treeRef");
|
|
36
36
|
const { filterKeyword } = injectExplorerPanelState();
|
|
37
|
+
const actionsMapping = {
|
|
38
|
+
create: { title: "新增", type: "primary", icon: "Plus" },
|
|
39
|
+
modify: { title: "修改", type: "primary", icon: "Edit" },
|
|
40
|
+
remove: { title: "删除", type: "danger", icon: "Delete" },
|
|
41
|
+
up: { title: "上移", type: "success", icon: "Top" },
|
|
42
|
+
down: { title: "下移", type: "success", icon: "Bottom" }
|
|
43
|
+
};
|
|
37
44
|
const treeProps = computed(() => ({
|
|
38
45
|
data: props.data,
|
|
39
46
|
emptyText: props.emptyText,
|
|
@@ -98,39 +105,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
105
|
key: 0,
|
|
99
106
|
class: normalizeClass(["vc-actions", [_ctx.$style.actions]])
|
|
100
107
|
}, [
|
|
101
|
-
|
|
102
|
-
key:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
renderSlot(_ctx.$slots, "action", {
|
|
120
|
-
data: node.data,
|
|
121
|
-
index: node.index
|
|
122
|
-
}),
|
|
123
|
-
__props.actions.includes("remove") ? (openBlock(), createBlock(Component$3, {
|
|
124
|
-
key: 2,
|
|
125
|
-
confirm: __props.confirmParams(node),
|
|
126
|
-
title: "删除",
|
|
127
|
-
type: "danger",
|
|
128
|
-
link: "",
|
|
129
|
-
icon: { type: "el", name: "Delete" },
|
|
130
|
-
stop: "",
|
|
131
|
-
class: normalizeClass(_ctx.$style.remove),
|
|
132
|
-
onClick: ($event) => emits("remove", node.data.value, node)
|
|
133
|
-
}, null, 8, ["confirm", "class", "onClick"])) : createCommentVNode("", true)
|
|
108
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action) => {
|
|
109
|
+
return openBlock(), createElementBlock(Fragment, { key: action }, [
|
|
110
|
+
action === "action" ? renderSlot(_ctx.$slots, "action", {
|
|
111
|
+
key: 0,
|
|
112
|
+
data: node.data,
|
|
113
|
+
index: node.index
|
|
114
|
+
}) : (openBlock(), createBlock(Component$3, mergeProps({
|
|
115
|
+
key: 1,
|
|
116
|
+
ref_for: true
|
|
117
|
+
}, actionsMapping[action], {
|
|
118
|
+
confirm: action === "remove" ? __props.confirmParams(node) : void 0,
|
|
119
|
+
link: "",
|
|
120
|
+
icon: { type: "el", name: actionsMapping[action].icon },
|
|
121
|
+
stop: "",
|
|
122
|
+
onClick: ($event) => emits(action, node.data.value, node)
|
|
123
|
+
}), null, 16, ["confirm", "icon", "onClick"]))
|
|
124
|
+
], 64);
|
|
125
|
+
}), 128))
|
|
134
126
|
], 2)) : createCommentVNode("", true)
|
|
135
127
|
], 2)
|
|
136
128
|
]),
|
|
@@ -157,13 +149,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
149
|
}
|
|
158
150
|
});
|
|
159
151
|
|
|
160
|
-
/* unplugin-vue-components disabled */const tree = "
|
|
161
|
-
const node = "
|
|
162
|
-
const label = "
|
|
163
|
-
const icon = "
|
|
164
|
-
const actions = "
|
|
165
|
-
const remove = "
|
|
166
|
-
const loading = "
|
|
152
|
+
/* unplugin-vue-components disabled */const tree = "_tree_bglx3_1";
|
|
153
|
+
const node = "_node_bglx3_24";
|
|
154
|
+
const label = "_label_bglx3_34";
|
|
155
|
+
const icon = "_icon_bglx3_41";
|
|
156
|
+
const actions = "_actions_bglx3_45";
|
|
157
|
+
const remove = "_remove_bglx3_58";
|
|
158
|
+
const loading = "_loading_bglx3_62";
|
|
167
159
|
const style0 = {
|
|
168
160
|
tree: tree,
|
|
169
161
|
node: node,
|
|
@@ -2037,18 +2037,22 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerTreeProps,
|
|
|
2037
2037
|
create: (value: string | number, node: Node) => any;
|
|
2038
2038
|
modify: (value: string | number, node: Node) => any;
|
|
2039
2039
|
remove: (value: string | number, node: Node) => any;
|
|
2040
|
+
up: (value: string | number, node: Node) => any;
|
|
2041
|
+
down: (value: string | number, node: Node) => any;
|
|
2040
2042
|
nodeClick: (value: string | number, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any;
|
|
2041
2043
|
}, string, import('vue').PublicProps, Readonly<IExplorerTreeProps> & Readonly<{
|
|
2042
2044
|
onCreate?: ((value: string | number, node: Node) => any) | undefined;
|
|
2043
2045
|
onModify?: ((value: string | number, node: Node) => any) | undefined;
|
|
2044
2046
|
onRemove?: ((value: string | number, node: Node) => any) | undefined;
|
|
2047
|
+
onUp?: ((value: string | number, node: Node) => any) | undefined;
|
|
2048
|
+
onDown?: ((value: string | number, node: Node) => any) | undefined;
|
|
2045
2049
|
onNodeClick?: ((value: string | number, node: Node, instance: ComponentInternalInstance | null, event: MouseEvent) => any) | undefined;
|
|
2046
2050
|
}>, {
|
|
2047
2051
|
loadingText: string;
|
|
2048
2052
|
emptyText: string;
|
|
2049
2053
|
highlightCurrent: boolean;
|
|
2050
2054
|
defaultExpandAll: boolean;
|
|
2051
|
-
actions: ("create" | "modify" | "remove")[];
|
|
2055
|
+
actions: ("create" | "modify" | "remove" | "up" | "down" | "action")[];
|
|
2052
2056
|
confirmParams: (node: Node) => import('../button/button').IButtonProps["confirm"];
|
|
2053
2057
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2054
2058
|
treeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* source: src/components/explorer-tree/explorer-tree.vue */
|
|
2
|
-
.
|
|
2
|
+
._tree_bglx3_1 .el-tree-node__content {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
._tree_bglx3_1 .el-tree-node__content:hover {
|
|
7
7
|
background-color: var(--el-color-primary-light-9);
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
._tree_bglx3_1 .el-tree-node__content:hover .vc-actions {
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
._tree_bglx3_1 .is-current > .el-tree-node__content {
|
|
13
13
|
color: var(--el-color-primary);
|
|
14
14
|
background-color: var(--el-color-primary-light-9);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
._tree_bglx3_1 .el-tree__empty-block {
|
|
17
17
|
text-align: left;
|
|
18
18
|
min-height: unset;
|
|
19
19
|
padding: 4px 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
._tree_bglx3_1 .el-tree__empty-text {
|
|
22
22
|
position: static;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
._node_bglx3_24 {
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: space-between;
|
|
27
27
|
align-items: center;
|
|
@@ -30,26 +30,31 @@
|
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
width: 100px;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._label_bglx3_34 {
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
text-overflow: ellipsis;
|
|
36
36
|
white-space: nowrap;
|
|
37
|
+
transform: translateY(-1px);
|
|
37
38
|
}
|
|
38
|
-
.
|
|
39
|
+
._icon_bglx3_41 {
|
|
39
40
|
margin-right: 4px;
|
|
40
41
|
}
|
|
41
|
-
.
|
|
42
|
+
._actions_bglx3_45 {
|
|
42
43
|
display: none;
|
|
43
44
|
column-gap: 4px;
|
|
44
45
|
}
|
|
45
|
-
.
|
|
46
|
+
._actions_bglx3_45 > button {
|
|
46
47
|
margin-left: 0 !important;
|
|
47
48
|
font-size: 1.2em;
|
|
49
|
+
border: 1px solid var(--el-border-color-light) !important;
|
|
50
|
+
}
|
|
51
|
+
._actions_bglx3_45 > button:hover {
|
|
52
|
+
border-color: var(--el-border-color-dark) !important;
|
|
48
53
|
}
|
|
49
|
-
.
|
|
54
|
+
._remove_bglx3_58 {
|
|
50
55
|
transform: translateY(-1px);
|
|
51
56
|
}
|
|
52
|
-
.
|
|
57
|
+
._loading_bglx3_62 {
|
|
53
58
|
padding: 4px 8px;
|
|
54
59
|
display: flex;
|
|
55
60
|
align-items: center;
|
|
@@ -10,11 +10,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
props: {
|
|
11
11
|
block: { type: Boolean, default: false },
|
|
12
12
|
width: {},
|
|
13
|
-
disabled: { type: Boolean, default: void 0 }
|
|
13
|
+
disabled: { type: Boolean, default: void 0 },
|
|
14
|
+
clearable: { type: Boolean, default: true }
|
|
14
15
|
},
|
|
15
16
|
setup(__props, { expose: __expose }) {
|
|
16
17
|
useCssVars((_ctx) => ({
|
|
17
|
-
"
|
|
18
|
+
"v5b821c9b": unref(myWidth)
|
|
18
19
|
}));
|
|
19
20
|
const props = __props;
|
|
20
21
|
const $style = useCssModule();
|
|
@@ -34,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
35
|
ref_key: "inputRef",
|
|
35
36
|
ref: inputRef,
|
|
36
37
|
class: normalizeClass(unref(className)),
|
|
37
|
-
disabled: unref(formDisabled)
|
|
38
|
+
disabled: unref(formDisabled),
|
|
39
|
+
clearable: __props.clearable
|
|
38
40
|
}, createSlots({ _: 2 }, [
|
|
39
41
|
_ctx.$slots.prefix ? {
|
|
40
42
|
name: "prefix",
|
|
@@ -64,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
66
|
]),
|
|
65
67
|
key: "3"
|
|
66
68
|
} : void 0
|
|
67
|
-
]), 1032, ["class", "disabled"]);
|
|
69
|
+
]), 1032, ["class", "disabled", "clearable"]);
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
72
|
});
|
|
@@ -825,6 +825,7 @@ declare const __VLS_component: import('vue').DefineComponent<IInputProps, {
|
|
|
825
825
|
}) | null>>;
|
|
826
826
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IInputProps> & Readonly<{}>, {
|
|
827
827
|
disabled: boolean;
|
|
828
|
+
clearable: boolean;
|
|
828
829
|
block: boolean;
|
|
829
830
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
830
831
|
inputRef: ({
|
|
@@ -9,30 +9,12 @@ import { E as ElSpace } from '../../chunk/w7VqVeWU.mjs';
|
|
|
9
9
|
import { defineComponent, ref, computed, watch, createBlock, unref, openBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
|
|
10
10
|
import { useFormDisabled } from 'element-plus';
|
|
11
11
|
import Draggable from 'vuedraggable-es-fix';
|
|
12
|
+
import { v as vFocus } from '../../chunk/CL65DvCP.mjs';
|
|
12
13
|
import { C as Component$1 } from '../button/button.mjs';
|
|
13
14
|
import { E as ElTag } from '../../chunk/DhGcJR5p.mjs';
|
|
14
15
|
import { E as ElPopover } from '../../chunk/DQK0ezHm.mjs';
|
|
15
16
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
16
17
|
|
|
17
|
-
const vFocus = {
|
|
18
|
-
mounted: (el) => {
|
|
19
|
-
let input;
|
|
20
|
-
if (el.tagName === "input") {
|
|
21
|
-
input = el;
|
|
22
|
-
} else {
|
|
23
|
-
const elInput = el.getElementsByTagName("input");
|
|
24
|
-
if (elInput.length > 0) {
|
|
25
|
-
input = elInput[0];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if (input) {
|
|
29
|
-
setTimeout(() => input.focus(), 0);
|
|
30
|
-
const len = input.value.length;
|
|
31
|
-
input.setSelectionRange(len, len);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
19
|
__name: "tags",
|
|
38
20
|
props: {
|
|
@@ -298,8 +280,8 @@ const cssModules = {
|
|
|
298
280
|
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
299
281
|
|
|
300
282
|
const __vite_glob_0_50 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
301
|
-
|
|
302
|
-
|
|
283
|
+
__proto__: null,
|
|
284
|
+
default: Component
|
|
303
285
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
304
286
|
|
|
305
287
|
export { Component as C, __vite_glob_0_50 as _ };
|
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { defineComponent, useTemplateRef, computed, ref, watch, nextTick, withDirectives, createCommentVNode, unref, createBlock, openBlock, mergeProps, isRef, createSlots, withCtx, renderSlot } from 'vue';
|
|
3
|
-
import {
|
|
4
|
-
import '../../chunk/D9iEroQw.mjs';
|
|
3
|
+
import { t as thousand } from '../../chunk/Mq_fqKb4.mjs';
|
|
5
4
|
import { C as Component$1 } from '../input/input.mjs';
|
|
6
5
|
import { i as isEqual } from '../../chunk/q2jRgbir.mjs';
|
|
7
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
8
7
|
|
|
9
|
-
const thousand = {
|
|
10
|
-
mounted: async (el, binding) => {
|
|
11
|
-
const elInput = el.getElementsByTagName("input")[binding.value?.elInputIndex || 0] || el.getElementsByTagName("input")[0];
|
|
12
|
-
elInput.style.textAlign = "right";
|
|
13
|
-
elInput.style.fontFamily = "Pathway Gothic One";
|
|
14
|
-
const disabled = elInput.disabled;
|
|
15
|
-
elInput.disabled = true;
|
|
16
|
-
const Cleave = await index.loadCdnSingle("cleave");
|
|
17
|
-
const option = { decimalScale: 2, integerScale: 0, prefix: "", ...binding.value };
|
|
18
|
-
elInput.cleave = new Cleave(elInput, {
|
|
19
|
-
numeral: true,
|
|
20
|
-
numeralThousandsGroupStyle: "thousand",
|
|
21
|
-
numeralDecimalScale: option.decimalScale,
|
|
22
|
-
numeralIntegerScale: option.integerScale,
|
|
23
|
-
prefix: option.prefix
|
|
24
|
-
});
|
|
25
|
-
elInput.value = elInput.cleave?.properties?.result || "";
|
|
26
|
-
elInput.disabled = disabled;
|
|
27
|
-
},
|
|
28
|
-
updated: (el, binding) => {
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
const event = new Event("input", { bubbles: true });
|
|
31
|
-
const elInput = el.getElementsByTagName("input")[binding.value?.elInputIndex || 0] || el.getElementsByTagName("input")[0];
|
|
32
|
-
elInput.dispatchEvent(event);
|
|
33
|
-
if (elInput.cleave) {
|
|
34
|
-
elInput.value = elInput.cleave?.properties?.result || "";
|
|
35
|
-
}
|
|
36
|
-
}, 0);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
9
|
__name: "thousand-input",
|
|
42
10
|
props: {
|
|
@@ -153,8 +121,8 @@ const cssModules = {
|
|
|
153
121
|
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
154
122
|
|
|
155
123
|
const __vite_glob_0_52 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
156
|
-
|
|
157
|
-
|
|
124
|
+
__proto__: null,
|
|
125
|
+
default: Component
|
|
158
126
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
159
127
|
|
|
160
128
|
export { Component as C, __vite_glob_0_52 as _ };
|
|
@@ -13,6 +13,7 @@ declare function __VLS_template(): {
|
|
|
13
13
|
readonly block?: boolean | undefined;
|
|
14
14
|
readonly width?: string | undefined;
|
|
15
15
|
readonly disabled?: boolean | undefined;
|
|
16
|
+
readonly clearable?: boolean | undefined;
|
|
16
17
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
17
18
|
$attrs: {
|
|
18
19
|
[x: string]: unknown;
|
|
@@ -842,6 +843,7 @@ declare function __VLS_template(): {
|
|
|
842
843
|
}) | null>>;
|
|
843
844
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
844
845
|
disabled: boolean;
|
|
846
|
+
clearable: boolean;
|
|
845
847
|
block: boolean;
|
|
846
848
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
847
849
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -865,8 +867,9 @@ declare function __VLS_template(): {
|
|
|
865
867
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
866
868
|
} & Readonly<{
|
|
867
869
|
disabled: boolean;
|
|
870
|
+
clearable: boolean;
|
|
868
871
|
block: boolean;
|
|
869
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
872
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "clearable" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
870
873
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
871
874
|
$: import('vue').ComponentInternalInstance;
|
|
872
875
|
$data: {};
|
|
@@ -1305,6 +1308,7 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
1305
1308
|
readonly block?: boolean | undefined;
|
|
1306
1309
|
readonly width?: string | undefined;
|
|
1307
1310
|
readonly disabled?: boolean | undefined;
|
|
1311
|
+
readonly clearable?: boolean | undefined;
|
|
1308
1312
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1309
1313
|
$attrs: {
|
|
1310
1314
|
[x: string]: unknown;
|
|
@@ -2134,6 +2138,7 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2134
2138
|
}) | null>>;
|
|
2135
2139
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
2136
2140
|
disabled: boolean;
|
|
2141
|
+
clearable: boolean;
|
|
2137
2142
|
block: boolean;
|
|
2138
2143
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
2139
2144
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -2157,8 +2162,9 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2157
2162
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
2158
2163
|
} & Readonly<{
|
|
2159
2164
|
disabled: boolean;
|
|
2165
|
+
clearable: boolean;
|
|
2160
2166
|
block: boolean;
|
|
2161
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
2167
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "clearable" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
2162
2168
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
2163
2169
|
$: import('vue').ComponentInternalInstance;
|
|
2164
2170
|
$data: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { v as default } from '../../chunk/CL65DvCP.mjs';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { _ as __vite_glob_0_0 } from '../chunk/DRLHgORP.mjs';
|
|
2
|
+
import { _ as __vite_glob_0_1 } from '../chunk/CL65DvCP.mjs';
|
|
3
|
+
import { _ as __vite_glob_0_2 } from '../chunk/Mq_fqKb4.mjs';
|
|
4
|
+
|
|
5
|
+
const modules = /* #__PURE__ */ Object.assign({"./cleave/index.ts": __vite_glob_0_0,"./focus/index.ts": __vite_glob_0_1,"./thousand/index.ts": __vite_glob_0_2});
|
|
6
|
+
function setupDirectives(app) {
|
|
7
|
+
Object.keys(modules).forEach((key) => {
|
|
8
|
+
const [, name] = key.match(/\/([a-z\-\d]+)\//) || [];
|
|
9
|
+
if (!name) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
app.directive(name, modules[key].default);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { setupDirectives as default };
|
package/dist/es/index.d.ts
CHANGED
|
@@ -54,6 +54,9 @@ export { default as VcThousandInput } from './components/thousand-input/thousand
|
|
|
54
54
|
export { default as VcTinymce } from './components/tinymce/tinymce.vue';
|
|
55
55
|
export { default as VcTreePicker } from './components/tree-picker/tree-picker.vue';
|
|
56
56
|
export { default as VcUploadFile } from './components/upload-file/upload-file.vue';
|
|
57
|
+
export { default as VcVCleave } from './directives/cleave';
|
|
58
|
+
export { default as VcVFocus } from './directives/focus';
|
|
59
|
+
export { default as VcVThousand } from './directives/thousand';
|
|
57
60
|
declare function install(Vue: any): void;
|
|
58
61
|
declare const _default: {
|
|
59
62
|
version: string;
|
package/dist/es/index.mjs
CHANGED
|
@@ -101,6 +101,9 @@ import { _ as __vite_glob_0_54 } from './components/tree-picker/tree-picker.mjs'
|
|
|
101
101
|
export { C as VcTreePicker } from './components/tree-picker/tree-picker.mjs';
|
|
102
102
|
import { _ as __vite_glob_0_55 } from './components/upload-file/upload-file.mjs';
|
|
103
103
|
export { C as VcUploadFile } from './components/upload-file/upload-file.mjs';
|
|
104
|
+
export { c as VcVCleave } from './chunk/DRLHgORP.mjs';
|
|
105
|
+
export { v as VcVFocus } from './chunk/CL65DvCP.mjs';
|
|
106
|
+
export { t as VcVThousand } from './chunk/Mq_fqKb4.mjs';
|
|
104
107
|
|
|
105
108
|
const __vite_glob_0_0 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
106
109
|
__proto__: null,
|
|
@@ -147,7 +150,7 @@ const __vite_glob_0_46 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
|
|
|
147
150
|
default: _sfc_main$8
|
|
148
151
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
149
152
|
|
|
150
|
-
const version = "1.
|
|
153
|
+
const version = "1.6.1";
|
|
151
154
|
|
|
152
155
|
const modules = /* #__PURE__ */ Object.assign({"./components/awesome-icon/awesome-icon.vue": __vite_glob_0_0,"./components/backbottom/backbottom.vue": __vite_glob_0_1,"./components/button/button.vue": __vite_glob_0_2,"./components/chat-container/chat-container.vue": __vite_glob_0_3,"./components/choice-boolean/choice-boolean.vue": __vite_glob_0_4,"./components/choice/choice.vue": __vite_glob_0_5,"./components/color-switcher/color-switcher.vue": __vite_glob_0_6,"./components/config-provider/config-provider.vue": __vite_glob_0_7,"./components/cropper/cropper.vue": __vite_glob_0_8,"./components/currency/currency.vue": __vite_glob_0_9,"./components/dark-switcher/dark-switcher.vue": __vite_glob_0_10,"./components/daterange-picker/daterange-picker.vue": __vite_glob_0_11,"./components/dialog-camera-upload/dialog-camera-upload.vue": __vite_glob_0_12,"./components/dialog-map-point/dialog-map-point.vue": __vite_glob_0_13,"./components/dialog-upload-images/dialog-upload-images.vue": __vite_glob_0_14,"./components/dialog/dialog.vue": __vite_glob_0_15,"./components/drag-verify/drag-verify.vue": __vite_glob_0_16,"./components/drawer/drawer.vue": __vite_glob_0_17,"./components/easy-pagination/easy-pagination.vue": __vite_glob_0_18,"./components/el-icon/el-icon.vue": __vite_glob_0_19,"./components/explorer-column-table/explorer-column-table.vue": __vite_glob_0_20,"./components/explorer-container/explorer-container.vue": __vite_glob_0_21,"./components/explorer-filter/explorer-filter.vue": __vite_glob_0_22,"./components/explorer-footer/explorer-footer.vue": __vite_glob_0_23,"./components/explorer-form/explorer-form.vue": __vite_glob_0_24,"./components/explorer-list/explorer-list.vue": __vite_glob_0_25,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_26,"./components/explorer-query/explorer-query.vue": __vite_glob_0_27,"./components/explorer-table/explorer-table.vue": __vite_glob_0_28,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_29,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_30,"./components/explorer/explorer.vue": __vite_glob_0_31,"./components/flag/flag.vue": __vite_glob_0_32,"./components/icon-picker/icon-picker.vue": __vite_glob_0_33,"./components/icon/icon.vue": __vite_glob_0_34,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_35,"./components/image/image.vue": __vite_glob_0_36,"./components/input-number/input-number.vue": __vite_glob_0_37,"./components/input/input.vue": __vite_glob_0_38,"./components/pca-picker/pca-picker.vue": __vite_glob_0_39,"./components/qr-code/qr-code.vue": __vite_glob_0_40,"./components/screenfull/screenfull.vue": __vite_glob_0_41,"./components/scrollbar/scrollbar.vue": __vite_glob_0_42,"./components/select/select.vue": __vite_glob_0_43,"./components/single-player/single-player.vue": __vite_glob_0_44,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_45,"./components/splitter/splitter.vue": __vite_glob_0_46,"./components/svg-icon/svg-icon.vue": __vite_glob_0_47,"./components/switch/switch.vue": __vite_glob_0_48,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_49,"./components/tags/tags.vue": __vite_glob_0_50,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_51,"./components/thousand-input/thousand-input.vue": __vite_glob_0_52,"./components/tinymce/tinymce.vue": __vite_glob_0_53,"./components/tree-picker/tree-picker.vue": __vite_glob_0_54,"./components/upload-file/upload-file.vue": __vite_glob_0_55});
|
|
153
156
|
const upper = (_, letter) => letter.toUpperCase();
|
package/dist/global.d.ts
CHANGED
|
@@ -58,5 +58,10 @@ declare module 'vue' {
|
|
|
58
58
|
VcTreePicker: typeof import('@wfrog/vc-ui')['VcTreePicker']
|
|
59
59
|
VcUploadFile: typeof import('@wfrog/vc-ui')['VcUploadFile']
|
|
60
60
|
}
|
|
61
|
+
export interface GlobalDirectives {
|
|
62
|
+
vCleave: typeof import('@wfrog/vc-ui')['VcVCleave']
|
|
63
|
+
vFocus: typeof import('@wfrog/vc-ui')['VcVFocus']
|
|
64
|
+
vThousand: typeof import('@wfrog/vc-ui')['VcVThousand']
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
67
|
export {}
|