@wfrog/vc-ui 1.9.11 → 1.9.13
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/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/choice/choice.d.ts +3 -0
- package/dist/es/components/choice/choice.mjs +14 -4
- package/dist/es/components/choice/choice.vue.d.ts +5 -1
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +5 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +12 -3
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +2 -0
- package/dist/es/components/explorer/explorer.mjs +2 -2
- package/dist/es/components/explorer/index.css +2 -2
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +1 -1
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1470 -0
- package/dist/es/components/explorer-form/explorer-form.mjs +10 -4
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +11 -6
- package/dist/es/components/explorer-modal-form/explorer-modal-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-modal-form/index.css +4 -3
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +10 -10
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +6314 -434
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +5 -5
- package/dist/es/components/icon-picker/icon-picker.mjs +1 -1
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +4 -0
- package/dist/es/components/input/input.mjs +19 -4
- package/dist/es/components/input/input.vue.d.ts +7 -1
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.mjs +7 -2
- package/dist/es/components/pca-picker/pca-picker.mjs +16 -3
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +2 -0
- package/dist/es/components/scrollbar/index.css +1 -1
- package/dist/es/components/scrollbar/scrollbar.mjs +2 -2
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +2 -2
- package/dist/es/components/select/index.css +2 -2
- package/dist/es/components/select/select.d.ts +4 -0
- package/dist/es/components/select/select.mjs +19 -4
- package/dist/es/components/select/select.vue.d.ts +7 -1
- package/dist/es/components/tags/tags.mjs +6 -1
- package/dist/es/components/thousand-input/thousand-input.d.ts +6 -0
- package/dist/es/components/thousand-input/thousand-input.mjs +2 -1
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +30 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +5 -0
- package/dist/es/components/tinymce/tinymce.mjs +16 -3
- package/dist/es/components/tinymce/tinymce.vue.d.ts +7 -3
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/tree-picker.d.ts +6 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +21 -7
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +2 -0
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +14 -13
- package/package.json +1 -1
|
@@ -226,7 +226,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
226
226
|
$emit: (event: string, ...args: any[]) => void;
|
|
227
227
|
$el: any;
|
|
228
228
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../scrollbar/scrollbar').IScrollbarProps> & Readonly<{}>, {
|
|
229
|
-
|
|
229
|
+
scrollbarRef: Readonly<globalThis.ShallowRef<({
|
|
230
230
|
$: import('vue').ComponentInternalInstance;
|
|
231
231
|
$data: {};
|
|
232
232
|
$props: Partial<{
|
|
@@ -420,7 +420,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
420
420
|
$slots: {
|
|
421
421
|
default?: (props: {}) => any;
|
|
422
422
|
};
|
|
423
|
-
}) | null
|
|
423
|
+
}) | null>>;
|
|
424
424
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
425
425
|
flex: boolean;
|
|
426
426
|
fillHeight: boolean;
|
|
@@ -449,8 +449,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
449
449
|
flex: boolean;
|
|
450
450
|
fillHeight: boolean;
|
|
451
451
|
viewMargin: string;
|
|
452
|
-
}> & Omit<Readonly<import('../../scrollbar/scrollbar').IScrollbarProps> & Readonly<{}>, ("flex" | "fillHeight" | "viewMargin") | "
|
|
453
|
-
|
|
452
|
+
}> & Omit<Readonly<import('../../scrollbar/scrollbar').IScrollbarProps> & Readonly<{}>, ("flex" | "fillHeight" | "viewMargin") | "scrollbarRef"> & import('vue').ShallowUnwrapRef<{
|
|
453
|
+
scrollbarRef: Readonly<globalThis.ShallowRef<({
|
|
454
454
|
$: import('vue').ComponentInternalInstance;
|
|
455
455
|
$data: {};
|
|
456
456
|
$props: Partial<{
|
|
@@ -644,7 +644,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
644
644
|
$slots: {
|
|
645
645
|
default?: (props: {}) => any;
|
|
646
646
|
};
|
|
647
|
-
}) | null
|
|
647
|
+
}) | null>>;
|
|
648
648
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
649
649
|
$slots: {
|
|
650
650
|
default?(_: {}): any;
|
|
@@ -135,7 +135,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
const keyword = ref("");
|
|
136
136
|
const handleSearch = debounce(() => {
|
|
137
137
|
search(keyword.value);
|
|
138
|
-
scrollbarRef.value?.
|
|
138
|
+
scrollbarRef.value?.scrollbarRef?.setScrollTop(0);
|
|
139
139
|
}, 500);
|
|
140
140
|
function handleChoice(e) {
|
|
141
141
|
let target = e.target;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
3
|
import { E as ElInput } from '../../chunk/DFOYvCRL.mjs';
|
|
4
4
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, normalizeClass, createSlots, withCtx, renderSlot } from 'vue';
|
|
5
|
-
import { useFormDisabled } from 'element-plus';
|
|
5
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
6
6
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
7
|
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,14 +13,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
disabled: { type: Boolean, default: void 0 },
|
|
14
14
|
clearable: { type: Boolean, default: true }
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
emits: ["blur", "change"],
|
|
17
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
18
|
useCssVars((_ctx) => ({
|
|
18
|
-
"
|
|
19
|
+
"v7a89bfe6": unref(myWidth)
|
|
19
20
|
}));
|
|
20
21
|
const props = __props;
|
|
22
|
+
const emits = __emit;
|
|
21
23
|
const $style = useCssModule();
|
|
22
24
|
const inputRef = useTemplateRef("inputRef");
|
|
23
25
|
const formDisabled = useFormDisabled();
|
|
26
|
+
const { formItem } = useFormItem();
|
|
24
27
|
const className = computed(() => ({
|
|
25
28
|
[$style.input]: true,
|
|
26
29
|
[$style.block]: props.block
|
|
@@ -28,6 +31,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
31
|
const myWidth = computed(() => {
|
|
29
32
|
return props.width || (props.block ? "100%" : "240px");
|
|
30
33
|
});
|
|
34
|
+
function handleBlur(evt) {
|
|
35
|
+
formItem?.validate?.("blur").catch(() => {
|
|
36
|
+
});
|
|
37
|
+
emits("blur", evt);
|
|
38
|
+
}
|
|
39
|
+
function handleChange(value, evt) {
|
|
40
|
+
formItem?.validate?.("change").catch(() => {
|
|
41
|
+
});
|
|
42
|
+
emits("change", value, evt);
|
|
43
|
+
}
|
|
31
44
|
__expose({ inputRef });
|
|
32
45
|
return (_ctx, _cache) => {
|
|
33
46
|
const _component_ElInput = ElInput;
|
|
@@ -36,7 +49,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
49
|
ref: inputRef,
|
|
37
50
|
class: normalizeClass(unref(className)),
|
|
38
51
|
disabled: unref(formDisabled),
|
|
39
|
-
clearable: __props.clearable
|
|
52
|
+
clearable: __props.clearable,
|
|
53
|
+
onBlur: handleBlur,
|
|
54
|
+
onChange: handleChange
|
|
40
55
|
}, createSlots({ _: 2 }, [
|
|
41
56
|
_ctx.$slots.prefix ? {
|
|
42
57
|
name: "prefix",
|
|
@@ -823,7 +823,13 @@ declare const __VLS_component: import('vue').DefineComponent<IInputProps, {
|
|
|
823
823
|
append?: (props: {}) => any;
|
|
824
824
|
};
|
|
825
825
|
}) | null>>;
|
|
826
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
826
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
827
|
+
blur: (evnet: FocusEvent) => any;
|
|
828
|
+
change: (value: string, evnet?: Event | undefined) => any;
|
|
829
|
+
}, string, import('vue').PublicProps, Readonly<IInputProps> & Readonly<{
|
|
830
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
831
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
832
|
+
}>, {
|
|
827
833
|
disabled: boolean;
|
|
828
834
|
clearable: boolean;
|
|
829
835
|
block: boolean;
|
|
@@ -3,7 +3,7 @@ import '../../chunk/Gk1J52Yw.mjs';
|
|
|
3
3
|
import '../../chunk/DFOYvCRL.mjs';
|
|
4
4
|
import { E as ElInputNumber } from '../../chunk/C-7W07Z_.mjs';
|
|
5
5
|
import { defineComponent, useCssVars, useSlots, useCssModule, ref, useTemplateRef, computed, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, mergeProps, isRef, createSlots, withCtx, nextTick } from 'vue';
|
|
6
|
-
import { useFormDisabled } from 'element-plus';
|
|
6
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
7
7
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
8
8
|
|
|
9
9
|
const _hoisted_1 = {
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
emits: ["update:modelValue", "change", "blur"],
|
|
25
25
|
setup(__props, { emit: __emit }) {
|
|
26
26
|
useCssVars((_ctx) => ({
|
|
27
|
-
"
|
|
27
|
+
"e4533d92": _ctx.inputWidth
|
|
28
28
|
}));
|
|
29
29
|
const props = __props;
|
|
30
30
|
const emits = __emit;
|
|
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
const visible = ref(true);
|
|
34
34
|
const inputNumberRef = useTemplateRef("inputNumberRef");
|
|
35
35
|
const formDisabled = useFormDisabled();
|
|
36
|
+
const { formItem } = useFormItem();
|
|
36
37
|
const mainClass = computed(() => {
|
|
37
38
|
const className = {
|
|
38
39
|
[$style["input-number"]]: true,
|
|
@@ -63,6 +64,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
64
|
}
|
|
64
65
|
function handleChange(currentValue, oldValue) {
|
|
65
66
|
myValue.value = currentValue === 0 ? currentValue : currentValue || oldValue || 0;
|
|
67
|
+
formItem?.validate?.("change").catch(() => {
|
|
68
|
+
});
|
|
66
69
|
emits("change", myValue.value, oldValue || 0);
|
|
67
70
|
}
|
|
68
71
|
function rerender() {
|
|
@@ -74,6 +77,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
77
|
if (eleInput.value === "") {
|
|
75
78
|
rerender();
|
|
76
79
|
}
|
|
80
|
+
formItem?.validate?.("blur").catch(() => {
|
|
81
|
+
});
|
|
77
82
|
emits("blur", e);
|
|
78
83
|
}
|
|
79
84
|
const watchHandler = watch(() => props.precision, (val) => val === 0 && rerender());
|
|
@@ -9,7 +9,7 @@ import '../../chunk/DBf73TLo.mjs';
|
|
|
9
9
|
import '../../chunk/Do7HIVy5.mjs';
|
|
10
10
|
import '../../chunk/CqhShW5K.mjs';
|
|
11
11
|
import { defineComponent, inject, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, provide, useSlots, ref, watch, onMounted, createElementBlock, createCommentVNode, createElementVNode, unref, nextTick, onBeforeUnmount, createTextVNode, toDisplayString, shallowRef, toRefs, Fragment, createVNode, renderList, useTemplateRef, mergeProps, isRef, useCssModule } from 'vue';
|
|
12
|
-
import { useFormDisabled } from 'element-plus';
|
|
12
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
13
13
|
import { useInject, useProvide } from '../../use/useStore/index.mjs';
|
|
14
14
|
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
15
15
|
import { isClient, useEventListener, useStorage, useVModel, useToggle, onClickOutside, useThrottleFn } from '@vueuse/core';
|
|
@@ -1272,12 +1272,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1272
1272
|
limit: {},
|
|
1273
1273
|
props: {}
|
|
1274
1274
|
},
|
|
1275
|
-
emits: ["update:modelValue", "change", "limit"],
|
|
1275
|
+
emits: ["update:modelValue", "change", "blur", "limit"],
|
|
1276
1276
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1277
1277
|
const props = __props;
|
|
1278
1278
|
const emits = __emit;
|
|
1279
1279
|
const myValue = useVModel(props, "modelValue", emits);
|
|
1280
1280
|
const formDisabled = useFormDisabled();
|
|
1281
|
+
const { formItem } = useFormItem();
|
|
1281
1282
|
const { pcaBaseUrl, crosProxy } = injectConfig();
|
|
1282
1283
|
const [popoverVisible, togglePopoverVisible] = useToggle();
|
|
1283
1284
|
const $style = useCssModule();
|
|
@@ -1326,6 +1327,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1326
1327
|
}
|
|
1327
1328
|
function handleChange(item) {
|
|
1328
1329
|
const changeData = Array.isArray(item) ? item : item[0];
|
|
1330
|
+
formItem?.validate?.("change").catch(() => {
|
|
1331
|
+
});
|
|
1329
1332
|
emits("change", changeData);
|
|
1330
1333
|
if (!props.multiple) {
|
|
1331
1334
|
togglePopoverVisible(false);
|
|
@@ -1334,8 +1337,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1334
1337
|
}
|
|
1335
1338
|
function clear() {
|
|
1336
1339
|
togglePopoverVisible(false);
|
|
1340
|
+
formItem?.validate?.("change").catch(() => {
|
|
1341
|
+
});
|
|
1337
1342
|
emits("change", void 0);
|
|
1338
1343
|
}
|
|
1344
|
+
function handleBlur(evt) {
|
|
1345
|
+
formItem?.validate?.("blur").catch(() => {
|
|
1346
|
+
});
|
|
1347
|
+
emits("blur", evt);
|
|
1348
|
+
}
|
|
1339
1349
|
useProvide(KEY_NAME, {
|
|
1340
1350
|
props,
|
|
1341
1351
|
...pcaFetchData,
|
|
@@ -1423,7 +1433,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1423
1433
|
class: [unref(selectClassName), unref($style).cascader],
|
|
1424
1434
|
"popper-class": unref($style)["popover-select"],
|
|
1425
1435
|
"before-filter": () => false
|
|
1426
|
-
}, _ctx.$attrs, {
|
|
1436
|
+
}, _ctx.$attrs, {
|
|
1437
|
+
onBlur: handleBlur,
|
|
1438
|
+
onClear: clear
|
|
1439
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "loading", "options", "props", "class", "popper-class"])
|
|
1427
1440
|
], 34)
|
|
1428
1441
|
]),
|
|
1429
1442
|
default: withCtx(() => [
|
|
@@ -2,10 +2,12 @@ import { IPCAData, IPCAPickerProps } from './pca-picker';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IPCAPickerProps, {
|
|
3
3
|
getValueData: (values: number | number[] | undefined) => IPCAData[];
|
|
4
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
blur: (event: FocusEvent) => any;
|
|
5
6
|
change: (data?: IPCAData | IPCAData[] | undefined) => any;
|
|
6
7
|
"update:modelValue": (value: number | number[]) => any;
|
|
7
8
|
limit: (number: number, value: IPCAData) => any;
|
|
8
9
|
}, string, import('vue').PublicProps, Readonly<IPCAPickerProps> & Readonly<{
|
|
10
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
9
11
|
onChange?: ((data?: IPCAData | IPCAData[] | undefined) => any) | undefined;
|
|
10
12
|
"onUpdate:modelValue"?: ((value: number | number[]) => any) | undefined;
|
|
11
13
|
onLimit?: ((number: number, value: IPCAData) => any) | undefined;
|
|
@@ -13,10 +13,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
},
|
|
14
14
|
setup(__props, { expose: __expose }) {
|
|
15
15
|
useCssVars((_ctx) => ({
|
|
16
|
-
"
|
|
16
|
+
"v21687dc8": _ctx.viewMargin
|
|
17
17
|
}));
|
|
18
18
|
const scrollbarRef = useTemplateRef("scrollbarRef");
|
|
19
|
-
__expose({
|
|
19
|
+
__expose({ scrollbarRef });
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
21
|
const _component_ElScrollbar = ElScrollbar;
|
|
22
22
|
return openBlock(), createBlock(_component_ElScrollbar, mergeProps({
|
|
@@ -205,7 +205,7 @@ declare function __VLS_template(): {
|
|
|
205
205
|
};
|
|
206
206
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
207
207
|
declare const __VLS_component: import('vue').DefineComponent<IScrollbarProps, {
|
|
208
|
-
|
|
208
|
+
scrollbarRef: Readonly<globalThis.ShallowRef<({
|
|
209
209
|
$: import('vue').ComponentInternalInstance;
|
|
210
210
|
$data: {};
|
|
211
211
|
$props: Partial<{
|
|
@@ -399,7 +399,7 @@ declare const __VLS_component: import('vue').DefineComponent<IScrollbarProps, {
|
|
|
399
399
|
$slots: {
|
|
400
400
|
default?: (props: {}) => any;
|
|
401
401
|
};
|
|
402
|
-
}) | null
|
|
402
|
+
}) | null>>;
|
|
403
403
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IScrollbarProps> & Readonly<{}>, {
|
|
404
404
|
flex: boolean;
|
|
405
405
|
fillHeight: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* source: src/components/select/select.vue */
|
|
2
2
|
div._select_1fcv5_1 {
|
|
3
3
|
width: unset;
|
|
4
|
-
min-width: var(--
|
|
4
|
+
min-width: var(--v393aeef3);
|
|
5
5
|
}
|
|
6
6
|
div._select_1fcv5_1._block_1fcv5_5 {
|
|
7
7
|
display: block;
|
|
8
|
-
width: var(--
|
|
8
|
+
width: var(--v393aeef3);
|
|
9
9
|
}
|
|
@@ -5,7 +5,7 @@ import { E as ElSelect } from '../../chunk/BPQ3KP1S.mjs';
|
|
|
5
5
|
import '../../chunk/CqhShW5K.mjs';
|
|
6
6
|
import '../../chunk/BH1e_-Fa.mjs';
|
|
7
7
|
import { defineComponent, useCssVars, unref, computed, useCssModule, createBlock, openBlock, mergeProps } from 'vue';
|
|
8
|
-
import { useFormDisabled } from 'element-plus';
|
|
8
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
9
9
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
10
|
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,12 +16,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
options: {},
|
|
17
17
|
disabled: { type: Boolean, default: void 0 }
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
emits: ["change", "blur"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
20
21
|
useCssVars((_ctx) => ({
|
|
21
|
-
"
|
|
22
|
+
"v393aeef3": unref(myWidth)
|
|
22
23
|
}));
|
|
23
24
|
const props = __props;
|
|
25
|
+
const emits = __emit;
|
|
24
26
|
const formDisabled = useFormDisabled();
|
|
27
|
+
const { formItem } = useFormItem();
|
|
28
|
+
function handleChange(value) {
|
|
29
|
+
formItem?.validate?.("change").catch(() => {
|
|
30
|
+
});
|
|
31
|
+
emits("change", value);
|
|
32
|
+
}
|
|
33
|
+
function handleBlur(evt) {
|
|
34
|
+
formItem?.validate?.("blur").catch(() => {
|
|
35
|
+
});
|
|
36
|
+
emits("blur", evt);
|
|
37
|
+
}
|
|
25
38
|
const myOptions = computed(() => {
|
|
26
39
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
27
40
|
return props.options.map((item) => ({ label: item, value: item }));
|
|
@@ -41,7 +54,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
54
|
return openBlock(), createBlock(_component_ElSelect, mergeProps({ "collapse-tags": "" }, _ctx.$attrs, {
|
|
42
55
|
class: unref(className),
|
|
43
56
|
options: unref(myOptions),
|
|
44
|
-
disabled: unref(formDisabled)
|
|
57
|
+
disabled: unref(formDisabled),
|
|
58
|
+
onChange: handleChange,
|
|
59
|
+
onBlur: handleBlur
|
|
45
60
|
}), null, 16, ["class", "options", "disabled"]);
|
|
46
61
|
};
|
|
47
62
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ISelectProps } from './select';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ISelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ISelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
blur: (event: FocusEvent) => any;
|
|
4
|
+
change: (value: any) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<ISelectProps> & Readonly<{
|
|
6
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
7
|
+
onChange?: ((value: any) => any) | undefined;
|
|
8
|
+
}>, {
|
|
3
9
|
disabled: boolean;
|
|
4
10
|
width: string;
|
|
5
11
|
block: boolean;
|
|
@@ -7,7 +7,7 @@ import { E as ElInput } from '../../chunk/DFOYvCRL.mjs';
|
|
|
7
7
|
import { E as ElSpace } from '../../chunk/Dgu95mOy.mjs';
|
|
8
8
|
/* empty css */
|
|
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
|
-
import { useFormDisabled } from 'element-plus';
|
|
10
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
11
11
|
import Draggable from 'vuedraggable-es-fix';
|
|
12
12
|
import { v as vFocus } from '../../chunk/CL65DvCP.mjs';
|
|
13
13
|
import { C as Component$1 } from '../button/button.mjs';
|
|
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emits = __emit;
|
|
33
33
|
const formDisabled = useFormDisabled();
|
|
34
|
+
const { formItem } = useFormItem();
|
|
34
35
|
const errorVisible = ref(false);
|
|
35
36
|
const createVisible = ref(false);
|
|
36
37
|
const currentTag = ref("");
|
|
@@ -57,6 +58,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
const data = [...props.modelValue];
|
|
58
59
|
data.splice(data.indexOf(name), 1);
|
|
59
60
|
tags.value = data;
|
|
61
|
+
formItem?.validate?.("change").catch(() => {
|
|
62
|
+
});
|
|
60
63
|
emits("change", data);
|
|
61
64
|
}
|
|
62
65
|
const isSameContent = (name) => props.modelValue.includes(name) && bakTag.value !== name;
|
|
@@ -117,6 +120,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
120
|
const data = [...props.modelValue, currentTag.value];
|
|
118
121
|
createVisible.value = false;
|
|
119
122
|
tags.value = data;
|
|
123
|
+
formItem?.validate?.("change").catch(() => {
|
|
124
|
+
});
|
|
120
125
|
emits("change", data);
|
|
121
126
|
setTimeout(() => showCreate(), 0);
|
|
122
127
|
}
|
|
@@ -8,4 +8,10 @@ export interface IThousandInputProps {
|
|
|
8
8
|
formatValue?: string;
|
|
9
9
|
options?: IOptionType;
|
|
10
10
|
padDecimal?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IThousandInputEmits {
|
|
14
|
+
(e: 'update:modelValue', value: string): void;
|
|
15
|
+
(e: 'update:formatValue', value: string): void;
|
|
16
|
+
(e: 'change', value: [string, string]): void;
|
|
11
17
|
}
|
|
@@ -11,7 +11,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
modelValue: { default: "" },
|
|
12
12
|
formatValue: { default: "" },
|
|
13
13
|
options: { default: () => ({ decimalScale: 2, integerScale: 12 }) },
|
|
14
|
-
padDecimal: { type: Boolean, default: true }
|
|
14
|
+
padDecimal: { type: Boolean, default: true },
|
|
15
|
+
disabled: { type: Boolean }
|
|
15
16
|
},
|
|
16
17
|
emits: ["update:modelValue", "update:formatValue", "change"],
|
|
17
18
|
setup(__props, { emit: __emit }) {
|
|
@@ -14,6 +14,8 @@ declare function __VLS_template(): {
|
|
|
14
14
|
readonly width?: string | undefined;
|
|
15
15
|
readonly disabled?: boolean | undefined;
|
|
16
16
|
readonly clearable?: boolean | undefined;
|
|
17
|
+
readonly onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
18
|
+
readonly onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
17
19
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
18
20
|
$attrs: {
|
|
19
21
|
[x: string]: unknown;
|
|
@@ -433,9 +435,12 @@ declare function __VLS_template(): {
|
|
|
433
435
|
$root: ComponentPublicInstance | null;
|
|
434
436
|
$parent: ComponentPublicInstance | null;
|
|
435
437
|
$host: Element | null;
|
|
436
|
-
$emit: (event:
|
|
438
|
+
$emit: ((event: "blur", evnet: FocusEvent) => void) & ((event: "change", value: string, evnet?: Event | undefined) => void);
|
|
437
439
|
$el: any;
|
|
438
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
440
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
441
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
442
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
443
|
+
}>, {
|
|
439
444
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
440
445
|
$: import('vue').ComponentInternalInstance;
|
|
441
446
|
$data: {};
|
|
@@ -841,7 +846,10 @@ declare function __VLS_template(): {
|
|
|
841
846
|
append?: (props: {}) => any;
|
|
842
847
|
};
|
|
843
848
|
}) | null>>;
|
|
844
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
849
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
850
|
+
blur: (evnet: FocusEvent) => any;
|
|
851
|
+
change: (value: string, evnet?: Event | undefined) => any;
|
|
852
|
+
}, string, {
|
|
845
853
|
disabled: boolean;
|
|
846
854
|
clearable: boolean;
|
|
847
855
|
block: boolean;
|
|
@@ -869,7 +877,10 @@ declare function __VLS_template(): {
|
|
|
869
877
|
disabled: boolean;
|
|
870
878
|
clearable: boolean;
|
|
871
879
|
block: boolean;
|
|
872
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
880
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
881
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
882
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
883
|
+
}>, "inputRef" | ("disabled" | "clearable" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
873
884
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
874
885
|
$: import('vue').ComponentInternalInstance;
|
|
875
886
|
$data: {};
|
|
@@ -1309,6 +1320,8 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
1309
1320
|
readonly width?: string | undefined;
|
|
1310
1321
|
readonly disabled?: boolean | undefined;
|
|
1311
1322
|
readonly clearable?: boolean | undefined;
|
|
1323
|
+
readonly onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
1324
|
+
readonly onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
1312
1325
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1313
1326
|
$attrs: {
|
|
1314
1327
|
[x: string]: unknown;
|
|
@@ -1728,9 +1741,12 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
1728
1741
|
$root: ComponentPublicInstance | null;
|
|
1729
1742
|
$parent: ComponentPublicInstance | null;
|
|
1730
1743
|
$host: Element | null;
|
|
1731
|
-
$emit: (event:
|
|
1744
|
+
$emit: ((event: "blur", evnet: FocusEvent) => void) & ((event: "change", value: string, evnet?: Event | undefined) => void);
|
|
1732
1745
|
$el: any;
|
|
1733
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
1746
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
1747
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
1748
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
1749
|
+
}>, {
|
|
1734
1750
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
1735
1751
|
$: import('vue').ComponentInternalInstance;
|
|
1736
1752
|
$data: {};
|
|
@@ -2136,7 +2152,10 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2136
2152
|
append?: (props: {}) => any;
|
|
2137
2153
|
};
|
|
2138
2154
|
}) | null>>;
|
|
2139
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
2155
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2156
|
+
blur: (evnet: FocusEvent) => any;
|
|
2157
|
+
change: (value: string, evnet?: Event | undefined) => any;
|
|
2158
|
+
}, string, {
|
|
2140
2159
|
disabled: boolean;
|
|
2141
2160
|
clearable: boolean;
|
|
2142
2161
|
block: boolean;
|
|
@@ -2164,7 +2183,10 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2164
2183
|
disabled: boolean;
|
|
2165
2184
|
clearable: boolean;
|
|
2166
2185
|
block: boolean;
|
|
2167
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
2186
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{
|
|
2187
|
+
onBlur?: ((evnet: FocusEvent) => any) | undefined;
|
|
2188
|
+
onChange?: ((value: string, evnet?: Event | undefined) => any) | undefined;
|
|
2189
|
+
}>, "inputRef" | ("disabled" | "clearable" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
2168
2190
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
2169
2191
|
$: import('vue').ComponentInternalInstance;
|
|
2170
2192
|
$data: {};
|
|
@@ -5,7 +5,7 @@ import { defineComponent, useCssVars, shallowRef, ref, computed, watch, onMounte
|
|
|
5
5
|
import { useDark } from '@vueuse/core';
|
|
6
6
|
import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
|
|
7
7
|
import '../../chunk/D9iEroQw.mjs';
|
|
8
|
-
import { useFormDisabled } from 'element-plus';
|
|
8
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
9
9
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
10
|
|
|
11
11
|
const mini = {
|
|
@@ -51,14 +51,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
storageKey: { default: "vc-dark" },
|
|
52
52
|
disabled: { type: Boolean, default: void 0 }
|
|
53
53
|
},
|
|
54
|
-
emits: ["update:modelValue"],
|
|
54
|
+
emits: ["update:modelValue", "change", "blur"],
|
|
55
55
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
56
56
|
useCssVars((_ctx) => ({
|
|
57
|
-
"
|
|
57
|
+
"ec3ab54e": _ctx.height
|
|
58
58
|
}));
|
|
59
59
|
const props = __props;
|
|
60
60
|
const emits = __emit;
|
|
61
61
|
const formDisabled = useFormDisabled();
|
|
62
|
+
const { formItem } = useFormItem();
|
|
62
63
|
const isDark = useDark({ storageKey: props.storageKey });
|
|
63
64
|
const Tinymce = shallowRef();
|
|
64
65
|
const loading = ref(false);
|
|
@@ -107,6 +108,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
108
|
branding: false,
|
|
108
109
|
// 显示tinymce徽标
|
|
109
110
|
readonly: formDisabled.value,
|
|
111
|
+
setup(editor) {
|
|
112
|
+
editor.on("change", () => {
|
|
113
|
+
formItem?.validate?.("change").catch(() => {
|
|
114
|
+
});
|
|
115
|
+
emits("change", editor.getContent());
|
|
116
|
+
});
|
|
117
|
+
editor.on("blur", (e) => {
|
|
118
|
+
formItem?.validate?.("blur").catch(() => {
|
|
119
|
+
});
|
|
120
|
+
emits("blur", e);
|
|
121
|
+
});
|
|
122
|
+
},
|
|
110
123
|
init_instance_callback: (editor) => {
|
|
111
124
|
if (props.modelValue) {
|
|
112
125
|
editor.setContent(props.modelValue);
|
|
@@ -5,10 +5,14 @@ declare function getContent(): void;
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<ITinymceProps, {
|
|
6
6
|
setContent: typeof setContent;
|
|
7
7
|
getContent: typeof getContent;
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
blur: (event: FocusEvent) => any;
|
|
10
|
+
change: (value: string) => any;
|
|
11
|
+
"update:modelValue": (value: string) => any;
|
|
10
12
|
}, string, import('vue').PublicProps, Readonly<ITinymceProps> & Readonly<{
|
|
11
|
-
|
|
13
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
16
|
}>, {
|
|
13
17
|
disabled: boolean;
|
|
14
18
|
id: string;
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
._wrapper_q784j_13 {
|
|
13
13
|
display: inline-block;
|
|
14
14
|
width: unset;
|
|
15
|
-
min-width: var(--
|
|
15
|
+
min-width: var(--v07aa23cc);
|
|
16
16
|
}
|
|
17
17
|
._wrapper_q784j_13._block_q784j_18 {
|
|
18
18
|
display: block;
|
|
19
|
-
width: var(--
|
|
19
|
+
width: var(--v07aa23cc);
|
|
20
20
|
}
|
|
21
21
|
._wrapper_q784j_13 .el-tag .el-icon {
|
|
22
22
|
display: none;
|