@wfrog/vc-ui 1.9.11 → 1.9.12
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/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-form/explorer-form.mjs +9 -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 +9 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.vue.d.ts +16 -16
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +10 -10
- 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/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 +7 -7
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CascaderOption, CascaderProps } from 'element-plus/es/components/cascader-panel';
|
|
1
|
+
import { CascaderNode, CascaderOption, CascaderProps, CascaderValue } from 'element-plus/es/components/cascader-panel';
|
|
2
2
|
export interface ITreePickerProps {
|
|
3
3
|
emptyText?: string;
|
|
4
4
|
placeholder?: string;
|
|
@@ -12,3 +12,8 @@ export interface ITreePickerProps {
|
|
|
12
12
|
filterable?: boolean;
|
|
13
13
|
filterEmptyText?: string;
|
|
14
14
|
}
|
|
15
|
+
export interface ITreePickerEmits {
|
|
16
|
+
(e: 'update:modelValue', value: string | number | string[] | number[] | undefined): void;
|
|
17
|
+
(e: 'change', value: CascaderValue | null | undefined, node?: CascaderNode[]): void;
|
|
18
|
+
(e: 'blur', event: FocusEvent): void;
|
|
19
|
+
}
|
|
@@ -10,7 +10,7 @@ import '../../chunk/DBf73TLo.mjs';
|
|
|
10
10
|
import '../../chunk/Do7HIVy5.mjs';
|
|
11
11
|
import '../../chunk/CqhShW5K.mjs';
|
|
12
12
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, ref, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, mergeProps, isRef, createTextVNode, toDisplayString, nextTick } from 'vue';
|
|
13
|
-
import { useFormDisabled } from 'element-plus';
|
|
13
|
+
import { useFormDisabled, useFormItem } from 'element-plus';
|
|
14
14
|
import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
|
|
15
15
|
import { E as ElPopover } from '../../chunk/DdY32YAP.mjs';
|
|
16
16
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
@@ -30,16 +30,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
filterable: { type: Boolean },
|
|
31
31
|
filterEmptyText: { default: "没有匹配到数据" }
|
|
32
32
|
},
|
|
33
|
-
emits: ["update:modelValue", "change"],
|
|
33
|
+
emits: ["update:modelValue", "change", "blur"],
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
useCssVars((_ctx) => ({
|
|
36
|
-
"
|
|
36
|
+
"v07aa23cc": unref(myWidth)
|
|
37
37
|
}));
|
|
38
38
|
const props = __props;
|
|
39
39
|
const emits = __emit;
|
|
40
40
|
const myValue = useVModel(props, "modelValue", emits);
|
|
41
41
|
const [popoverVisible, togglePopoverVisible] = useToggle();
|
|
42
42
|
const formDisabled = useFormDisabled();
|
|
43
|
+
const { formItem } = useFormItem();
|
|
43
44
|
const handleSelectClick = useThrottleFn(() => !formDisabled.value && togglePopoverVisible(), 300);
|
|
44
45
|
const cascaderProps = computed(() => ({
|
|
45
46
|
label: props.props.label || "label",
|
|
@@ -80,6 +81,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
81
|
nextTick(() => togglePopoverVisible(false));
|
|
81
82
|
}, 0);
|
|
82
83
|
}
|
|
84
|
+
function handleChange(val, node) {
|
|
85
|
+
formItem?.validate?.("change").catch(() => {
|
|
86
|
+
});
|
|
87
|
+
emits("change", val, node);
|
|
88
|
+
}
|
|
89
|
+
function handleBlur(event) {
|
|
90
|
+
formItem?.validate?.("blur").catch(() => {
|
|
91
|
+
});
|
|
92
|
+
setTimeout(() => {
|
|
93
|
+
keyword.value = "";
|
|
94
|
+
}, 300);
|
|
95
|
+
emits("blur", event);
|
|
96
|
+
}
|
|
83
97
|
return (_ctx, _cache) => {
|
|
84
98
|
const _component_ElCascader = ElCascader;
|
|
85
99
|
const _component_ElPopover = ElPopover;
|
|
@@ -94,13 +108,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
108
|
reference: withCtx(() => [
|
|
95
109
|
createElementVNode("div", {
|
|
96
110
|
class: normalizeClass(unref($style).wrapper),
|
|
97
|
-
onClickCapture: _cache[
|
|
111
|
+
onClickCapture: _cache[3] || (_cache[3] = //@ts-ignore
|
|
98
112
|
(...args) => unref(handleSelectClick) && unref(handleSelectClick)(...args)),
|
|
99
113
|
onKeyup: handleKeyup
|
|
100
114
|
}, [
|
|
101
115
|
createVNode(_component_ElCascader, mergeProps({
|
|
102
116
|
modelValue: unref(myValue),
|
|
103
|
-
"onUpdate:modelValue": _cache[
|
|
117
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(myValue) ? myValue.value = $event : null),
|
|
104
118
|
"collapse-tags": "",
|
|
105
119
|
"collapse-tags-tooltip": "",
|
|
106
120
|
clearable: "",
|
|
@@ -113,7 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
127
|
disabled: unref(formDisabled)
|
|
114
128
|
}, _ctx.$attrs, {
|
|
115
129
|
onClear: clear,
|
|
116
|
-
onBlur:
|
|
130
|
+
onBlur: handleBlur
|
|
117
131
|
}), {
|
|
118
132
|
empty: withCtx(() => [
|
|
119
133
|
createTextVNode(toDisplayString(__props.filterEmptyText), 1)
|
|
@@ -137,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
151
|
multiple: __props.multiple,
|
|
138
152
|
onExpandChange: updatePopper,
|
|
139
153
|
onChoiced: _cache[1] || (_cache[1] = ($event) => unref(togglePopoverVisible)(false)),
|
|
140
|
-
onChange:
|
|
154
|
+
onChange: handleChange
|
|
141
155
|
}), null, 16, ["modelValue", "options", "props", "multiple"])
|
|
142
156
|
], 2)
|
|
143
157
|
]),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CascaderNode, CascaderValue } from 'element-plus/es/components/cascader-panel';
|
|
2
2
|
import { ITreePickerProps } from './tree-picker';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<ITreePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
|
+
blur: (event: FocusEvent) => any;
|
|
4
5
|
change: (value: CascaderValue | null | undefined, node?: CascaderNode[] | undefined) => any;
|
|
5
6
|
"update:modelValue": (value: string | number | string[] | number[] | undefined) => any;
|
|
6
7
|
}, string, import('vue').PublicProps, Readonly<ITreePickerProps> & Readonly<{
|
|
8
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
7
9
|
onChange?: ((value: CascaderValue | null | undefined, node?: CascaderNode[] | undefined) => any) | undefined;
|
|
8
10
|
"onUpdate:modelValue"?: ((value: string | number | string[] | number[] | undefined) => any) | undefined;
|
|
9
11
|
}>, {
|
package/dist/es/index.mjs
CHANGED
|
@@ -156,7 +156,7 @@ const __vite_glob_0_47 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
|
|
|
156
156
|
default: _sfc_main$8
|
|
157
157
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
158
158
|
|
|
159
|
-
const version = "1.9.
|
|
159
|
+
const version = "1.9.12";
|
|
160
160
|
|
|
161
161
|
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-modal-form/explorer-modal-form.vue": __vite_glob_0_26,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_27,"./components/explorer-query/explorer-query.vue": __vite_glob_0_28,"./components/explorer-table/explorer-table.vue": __vite_glob_0_29,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_30,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_31,"./components/explorer/explorer.vue": __vite_glob_0_32,"./components/flag/flag.vue": __vite_glob_0_33,"./components/icon-picker/icon-picker.vue": __vite_glob_0_34,"./components/icon/icon.vue": __vite_glob_0_35,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_36,"./components/image/image.vue": __vite_glob_0_37,"./components/input-number/input-number.vue": __vite_glob_0_38,"./components/input/input.vue": __vite_glob_0_39,"./components/pca-picker/pca-picker.vue": __vite_glob_0_40,"./components/qr-code/qr-code.vue": __vite_glob_0_41,"./components/screenfull/screenfull.vue": __vite_glob_0_42,"./components/scrollbar/scrollbar.vue": __vite_glob_0_43,"./components/select/select.vue": __vite_glob_0_44,"./components/single-player/single-player.vue": __vite_glob_0_45,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_46,"./components/splitter/splitter.vue": __vite_glob_0_47,"./components/svg-icon/svg-icon.vue": __vite_glob_0_48,"./components/switch/switch.vue": __vite_glob_0_49,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_50,"./components/tags/tags.vue": __vite_glob_0_51,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_52,"./components/thousand-input/thousand-input.vue": __vite_glob_0_53,"./components/tinymce/tinymce.vue": __vite_glob_0_54,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_55,"./components/transfer/transfer.vue": __vite_glob_0_56,"./components/tree-picker/tree-picker.vue": __vite_glob_0_57,"./components/upload-file/upload-file.vue": __vite_glob_0_58});
|
|
162
162
|
const upper = (_, letter) => letter.toUpperCase();
|