@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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface IPropType {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<IPropType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IPropType> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@ import '../../chunk/Gk1J52Yw.mjs';
|
|
|
3
3
|
import { E as ElCheckboxGroup } from '../../chunk/DBf73TLo.mjs';
|
|
4
4
|
import { E as ElRadioGroup } from '../../chunk/Do7HIVy5.mjs';
|
|
5
5
|
import { defineComponent, computed, createBlock, openBlock, mergeProps, unref } 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 _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -14,9 +14,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
options: {},
|
|
15
15
|
disabled: { type: Boolean, default: void 0 }
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
emits: ["change"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
18
19
|
const props = __props;
|
|
20
|
+
const emits = __emit;
|
|
19
21
|
const formDisabled = useFormDisabled();
|
|
22
|
+
const { formItem } = useFormItem();
|
|
20
23
|
const myType = props.type;
|
|
21
24
|
const myOptions = computed(() => {
|
|
22
25
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
@@ -24,18 +27,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
27
|
}
|
|
25
28
|
return props.options;
|
|
26
29
|
});
|
|
30
|
+
function handleChange(value) {
|
|
31
|
+
formItem?.validate?.("change").catch(() => {
|
|
32
|
+
});
|
|
33
|
+
emits("change", value);
|
|
34
|
+
}
|
|
27
35
|
return (_ctx, _cache) => {
|
|
28
36
|
const _component_ElRadioGroup = ElRadioGroup;
|
|
29
37
|
const _component_ElCheckboxGroup = ElCheckboxGroup;
|
|
30
38
|
return !props.multiple ? (openBlock(), createBlock(_component_ElRadioGroup, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
31
39
|
type: unref(myType),
|
|
32
40
|
options: unref(myOptions),
|
|
33
|
-
disabled: unref(formDisabled)
|
|
41
|
+
disabled: unref(formDisabled),
|
|
42
|
+
onChange: handleChange
|
|
34
43
|
}), null, 16, ["type", "options", "disabled"])) : (openBlock(), createBlock(_component_ElCheckboxGroup, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
35
44
|
class: _ctx.$style.checkbox,
|
|
36
45
|
type: unref(myType),
|
|
37
46
|
options: unref(myOptions),
|
|
38
|
-
disabled: unref(formDisabled)
|
|
47
|
+
disabled: unref(formDisabled),
|
|
48
|
+
onChange: handleChange
|
|
39
49
|
}), null, 16, ["class", "type", "options", "disabled"]));
|
|
40
50
|
};
|
|
41
51
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { IChoiceProps } from './choice';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IChoiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (value: any) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<IChoiceProps> & Readonly<{
|
|
5
|
+
onChange?: ((value: any) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
type: import('element-plus').RadioGroupProps["type"] | import('element-plus').CheckboxGroupProps["type"];
|
|
4
8
|
disabled: boolean;
|
|
5
9
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,3 +5,8 @@ export interface IDateRangePickerProps {
|
|
|
5
5
|
includeToday?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export interface IDateRangePickerEmits {
|
|
9
|
+
(e: 'update:modelValue', value: string[]): void;
|
|
10
|
+
(e: 'change', value: string[]): void;
|
|
11
|
+
(e: 'blur', event: FocusEvent): void;
|
|
12
|
+
}
|
|
@@ -4,7 +4,7 @@ import { E as ElScrollbar } from '../../chunk/CqhShW5K.mjs';
|
|
|
4
4
|
import { E as ElButton } from '../../chunk/Db0Pk78M.mjs';
|
|
5
5
|
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/BH1e_-Fa.mjs';
|
|
6
6
|
import { ref, computed, defineComponent, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createElementVNode, mergeProps, useAttrs as useAttrs$1, inject, watch, nextTick, onBeforeUnmount, provide, createBlock, withCtx, withModifiers, createCommentVNode, resolveDynamicComponent, toDisplayString, onMounted, Fragment, renderList, createTextVNode, withDirectives, createVNode, Transition, withKeys, useSlots, toRef, vShow, getCurrentInstance, toRefs, isVNode, isRef } from 'vue';
|
|
7
|
-
import { useFormDisabled as useFormDisabled$1 } from 'element-plus';
|
|
7
|
+
import { useFormDisabled as useFormDisabled$1, useFormItem as useFormItem$1 } from 'element-plus';
|
|
8
8
|
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
9
9
|
import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
|
|
10
10
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
@@ -6259,12 +6259,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6259
6259
|
includeToday: { type: Boolean, default: false },
|
|
6260
6260
|
disabled: { type: Boolean, default: void 0 }
|
|
6261
6261
|
},
|
|
6262
|
-
emits: ["update:modelValue", "change"],
|
|
6262
|
+
emits: ["update:modelValue", "change", "blur"],
|
|
6263
6263
|
setup(__props, { emit: __emit }) {
|
|
6264
6264
|
const props = __props;
|
|
6265
6265
|
const emits = __emit;
|
|
6266
6266
|
const myValue = useVModel(props, "modelValue", emits);
|
|
6267
6267
|
const formDisabled = useFormDisabled$1();
|
|
6268
|
+
const { formItem } = useFormItem$1();
|
|
6268
6269
|
function disabledDate(time) {
|
|
6269
6270
|
const now = Date.now();
|
|
6270
6271
|
const pickerTime = time.getTime();
|
|
@@ -6282,8 +6283,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6282
6283
|
return pickerTime + todayTime > now + limitTime || pickerTime + todayTime < now;
|
|
6283
6284
|
}
|
|
6284
6285
|
function handleChange(val) {
|
|
6286
|
+
formItem?.validate?.("change").catch(() => {
|
|
6287
|
+
});
|
|
6285
6288
|
emits("change", val);
|
|
6286
6289
|
}
|
|
6290
|
+
function handleBlur(evt) {
|
|
6291
|
+
formItem?.validate?.("blur").catch(() => {
|
|
6292
|
+
});
|
|
6293
|
+
emits("blur", evt);
|
|
6294
|
+
}
|
|
6287
6295
|
return (_ctx, _cache) => {
|
|
6288
6296
|
const _component_ElDatePicker = ElDatePicker;
|
|
6289
6297
|
return openBlock(), createBlock(_component_ElDatePicker, mergeProps(_ctx.$attrs, {
|
|
@@ -6293,7 +6301,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6293
6301
|
type: "daterange",
|
|
6294
6302
|
"value-format": __props.valueFormat,
|
|
6295
6303
|
disabled: unref(formDisabled),
|
|
6296
|
-
onChange: handleChange
|
|
6304
|
+
onChange: handleChange,
|
|
6305
|
+
onBlur: handleBlur
|
|
6297
6306
|
}), null, 16, ["modelValue", "value-format", "disabled"]);
|
|
6298
6307
|
};
|
|
6299
6308
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IDateRangePickerProps } from './daterange-picker';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IDateRangePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
blur: (event: FocusEvent) => any;
|
|
3
4
|
change: (value: string[]) => any;
|
|
4
5
|
"update:modelValue": (value: string[]) => any;
|
|
5
6
|
}, string, import('vue').PublicProps, Readonly<IDateRangePickerProps> & Readonly<{
|
|
7
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
8
|
onChange?: ((value: string[]) => any) | undefined;
|
|
7
9
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
8
10
|
}>, {
|
|
@@ -45,10 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
/* unplugin-vue-components disabled */const explorer = "
|
|
48
|
+
/* unplugin-vue-components disabled */const explorer = "_explorer_11uiv_1";
|
|
49
49
|
const style0 = {
|
|
50
50
|
explorer: explorer,
|
|
51
|
-
"el-splitter__mask": "_el-
|
|
51
|
+
"el-splitter__mask": "_el-splitter__mask_11uiv_10"
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
const cssModules = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* source: src/components/explorer/explorer.vue */
|
|
2
|
-
.
|
|
2
|
+
div._explorer_11uiv_1 {
|
|
3
3
|
border: 1px solid var(--el-border-color-lighter);
|
|
4
4
|
border-radius: var(--el-border-radius-base);
|
|
5
5
|
display: flex;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
background-color: var(--el-fill-color-blank);
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
div._explorer_11uiv_1 :glbal ._el-splitter__mask_11uiv_10 {
|
|
12
12
|
z-index: 10000;
|
|
13
13
|
transform: translateX(0);
|
|
14
14
|
}
|
|
@@ -2791,7 +2791,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2791
2791
|
}
|
|
2792
2792
|
});
|
|
2793
2793
|
}
|
|
2794
|
-
__expose({ init });
|
|
2794
|
+
__expose({ init, tableRef });
|
|
2795
2795
|
return (_ctx, _cache) => {
|
|
2796
2796
|
const _component_ElCheckbox = ElCheckbox;
|
|
2797
2797
|
const _component_ElTableColumn = ElTableColumn;
|