@wfrog/vc-ui 1.9.10 → 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-column-table/explorer-column-table.d.ts +2 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +34 -23
- package/dist/es/components/explorer-column-table/index.css +12 -12
- 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/explorer-table/explorer-table.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/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 +19 -19
- package/package.json +1 -1
|
@@ -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
|
}>, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface IColumnConfig {
|
|
2
|
+
id: string | number;
|
|
2
3
|
prop: string;
|
|
3
4
|
label: string;
|
|
4
5
|
width?: number;
|
|
@@ -7,6 +8,7 @@ export interface IColumnConfig {
|
|
|
7
8
|
fixed?: 'left' | 'right';
|
|
8
9
|
align?: 'left' | 'center' | 'right';
|
|
9
10
|
showOverflowTooltip?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
10
12
|
widthType?: 'width' | 'minWidth';
|
|
11
13
|
formFixed?: ('left' | 'right')[];
|
|
12
14
|
}
|
|
@@ -2778,9 +2778,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2778
2778
|
}
|
|
2779
2779
|
sortable.value = new Sortable(el, {
|
|
2780
2780
|
animation: 150,
|
|
2781
|
-
handle: `.${$style.
|
|
2781
|
+
handle: `.${$style.handle}`,
|
|
2782
2782
|
// 可选:指定拖拽手柄
|
|
2783
|
-
filter:
|
|
2783
|
+
// filter: '.el-input', // 导致 input 无法聚焦
|
|
2784
2784
|
onEnd: (evt) => {
|
|
2785
2785
|
const { newIndex, oldIndex } = evt;
|
|
2786
2786
|
if (newIndex !== void 0 && oldIndex !== void 0) {
|
|
@@ -2801,7 +2801,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2801
2801
|
ref_key: "tableRef",
|
|
2802
2802
|
ref: tableRef,
|
|
2803
2803
|
data: unref(myData),
|
|
2804
|
-
"row-key": "
|
|
2804
|
+
"row-key": "id",
|
|
2805
2805
|
border: "",
|
|
2806
2806
|
size: __props.size,
|
|
2807
2807
|
height: __props.height,
|
|
@@ -2818,7 +2818,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2818
2818
|
}, {
|
|
2819
2819
|
default: withCtx(({ row }) => [
|
|
2820
2820
|
createElementVNode("div", {
|
|
2821
|
-
class: normalizeClass(unref($style).label)
|
|
2821
|
+
class: normalizeClass([unref($style).label, unref($style).handle])
|
|
2822
2822
|
}, [
|
|
2823
2823
|
createVNode(_component_ElCheckbox, {
|
|
2824
2824
|
modelValue: row.visible,
|
|
@@ -2850,15 +2850,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2850
2850
|
modelValue: row.label,
|
|
2851
2851
|
"onUpdate:modelValue": ($event) => row.label = $event,
|
|
2852
2852
|
block: "",
|
|
2853
|
-
size: __props.size
|
|
2854
|
-
|
|
2853
|
+
size: __props.size,
|
|
2854
|
+
disabled: row.disabled
|
|
2855
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled"])
|
|
2855
2856
|
]),
|
|
2856
2857
|
_: 2
|
|
2857
2858
|
}, 1032, ["modelValue", "onUpdate:modelValue", "size"]),
|
|
2858
2859
|
createVNode(Component$2, {
|
|
2860
|
+
class: normalizeClass(unref($style).handle),
|
|
2859
2861
|
name: "carbon:draggable",
|
|
2860
2862
|
size: "30px"
|
|
2861
|
-
})
|
|
2863
|
+
}, null, 8, ["class"])
|
|
2862
2864
|
], 2)
|
|
2863
2865
|
]),
|
|
2864
2866
|
_: 1
|
|
@@ -2874,8 +2876,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2874
2876
|
modelValue: row.prop,
|
|
2875
2877
|
"onUpdate:modelValue": ($event) => row.prop = $event,
|
|
2876
2878
|
block: "",
|
|
2877
|
-
size: __props.size
|
|
2878
|
-
|
|
2879
|
+
size: __props.size,
|
|
2880
|
+
disabled: row.disabled
|
|
2881
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled"])
|
|
2879
2882
|
]),
|
|
2880
2883
|
_: 1
|
|
2881
2884
|
})) : createCommentVNode("", true),
|
|
@@ -2894,8 +2897,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2894
2897
|
"onUpdate:modelValue": ($event) => row.widthType = $event,
|
|
2895
2898
|
options: widthOptions,
|
|
2896
2899
|
size: __props.size,
|
|
2900
|
+
disabled: row.disabled,
|
|
2897
2901
|
onChange: ($event) => handleWidthChange(row)
|
|
2898
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "onChange"]),
|
|
2902
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled", "onChange"]),
|
|
2899
2903
|
row.widthType === "width" ? (openBlock(), createBlock(Component$4, {
|
|
2900
2904
|
key: 0,
|
|
2901
2905
|
modelValue: row.width,
|
|
@@ -2903,16 +2907,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2903
2907
|
min: 0,
|
|
2904
2908
|
size: __props.size,
|
|
2905
2909
|
controls: false,
|
|
2906
|
-
"input-width": "50px"
|
|
2907
|
-
|
|
2910
|
+
"input-width": "50px",
|
|
2911
|
+
disabled: row.disabled
|
|
2912
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled"])) : (openBlock(), createBlock(Component$4, {
|
|
2908
2913
|
key: 1,
|
|
2909
2914
|
modelValue: row.minWidth,
|
|
2910
2915
|
"onUpdate:modelValue": ($event) => row.minWidth = $event,
|
|
2911
2916
|
min: 0,
|
|
2912
2917
|
size: __props.size,
|
|
2913
2918
|
controls: false,
|
|
2914
|
-
"input-width": "50px"
|
|
2915
|
-
|
|
2919
|
+
"input-width": "50px",
|
|
2920
|
+
disabled: row.disabled
|
|
2921
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled"]))
|
|
2916
2922
|
], 2)
|
|
2917
2923
|
]),
|
|
2918
2924
|
_: 1
|
|
@@ -2931,8 +2937,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2931
2937
|
modelValue: row.align,
|
|
2932
2938
|
"onUpdate:modelValue": ($event) => row.align = $event,
|
|
2933
2939
|
options: alignOptions,
|
|
2934
|
-
size: __props.size
|
|
2935
|
-
|
|
2940
|
+
size: __props.size,
|
|
2941
|
+
disabled: row.disabled
|
|
2942
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled"])
|
|
2936
2943
|
], 2)
|
|
2937
2944
|
]),
|
|
2938
2945
|
_: 1
|
|
@@ -2953,8 +2960,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2953
2960
|
multiple: "",
|
|
2954
2961
|
options: fixedOptions,
|
|
2955
2962
|
size: __props.size,
|
|
2963
|
+
disabled: row.disabled,
|
|
2956
2964
|
onChange: ($event) => handleFixedChange(row)
|
|
2957
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "onChange"])
|
|
2965
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled", "onChange"])
|
|
2958
2966
|
], 2)
|
|
2959
2967
|
]),
|
|
2960
2968
|
_: 1
|
|
@@ -2974,8 +2982,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2974
2982
|
"onUpdate:modelValue": ($event) => row.showOverflowTooltip = $event,
|
|
2975
2983
|
size: __props.size,
|
|
2976
2984
|
border: "",
|
|
2977
|
-
class: normalizeClass(unref($style).truncate)
|
|
2978
|
-
|
|
2985
|
+
class: normalizeClass(unref($style).truncate),
|
|
2986
|
+
disabled: row.disabled
|
|
2987
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "class", "disabled"])
|
|
2979
2988
|
], 2)
|
|
2980
2989
|
]),
|
|
2981
2990
|
_: 1
|
|
@@ -3000,13 +3009,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3000
3009
|
}
|
|
3001
3010
|
});
|
|
3002
3011
|
|
|
3003
|
-
/* unplugin-vue-components disabled */const table = "
|
|
3004
|
-
const label = "
|
|
3005
|
-
const
|
|
3012
|
+
/* unplugin-vue-components disabled */const table = "_table_oyix4_1";
|
|
3013
|
+
const label = "_label_oyix4_8";
|
|
3014
|
+
const handle = "_handle_oyix4_29";
|
|
3015
|
+
const truncate = "_truncate_oyix4_45";
|
|
3006
3016
|
const style0 = {
|
|
3007
3017
|
table: table,
|
|
3008
3018
|
label: label,
|
|
3009
|
-
|
|
3019
|
+
handle: handle,
|
|
3020
|
+
"item-container": "_item-container_oyix4_33",
|
|
3010
3021
|
truncate: truncate
|
|
3011
3022
|
};
|
|
3012
3023
|
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/* source: src/components/explorer-column-table/explorer-column-table.vue */
|
|
2
|
-
.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#ffffff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;outline:none;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;outline:none;padding:0 10px}.el-table-filter__list-item:focus,.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#ffffff}.el-table-filter__multiple{outline:none}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--el-border-radius-base);cursor:pointer;margin:0;outline:none;padding:0;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table-filter__bottom button:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-table-filter__bottom button{color:var(--el-text-color-regular);font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}div.
|
|
2
|
+
.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#ffffff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;outline:none;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;outline:none;padding:0 10px}.el-table-filter__list-item:focus,.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#ffffff}.el-table-filter__multiple{outline:none}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--el-border-radius-base);cursor:pointer;margin:0;outline:none;padding:0;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table-filter__bottom button:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-table-filter__bottom button{color:var(--el-text-color-regular);font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}div._table_oyix4_1 {
|
|
3
3
|
flex-grow: 1;
|
|
4
4
|
height: 100px;
|
|
5
5
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
6
6
|
--el-table-row-hover-bg-color: var(--el-color-primary-light-9);
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._label_oyix4_8 {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
width: 100%;
|
|
11
11
|
align-items: center;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._label_oyix4_8 .el-checkbox {
|
|
14
14
|
width: 100%;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
|
-
cursor: move;
|
|
18
17
|
}
|
|
19
|
-
.
|
|
18
|
+
._label_oyix4_8 .el-checkbox__label {
|
|
20
19
|
min-width: 0;
|
|
21
20
|
overflow: hidden;
|
|
22
21
|
text-overflow: ellipsis;
|
|
23
22
|
white-space: nowrap;
|
|
24
23
|
flex-grow: 1;
|
|
25
|
-
cursor: pointer;
|
|
26
24
|
}
|
|
27
|
-
.
|
|
25
|
+
._label_oyix4_8 .iconify {
|
|
28
26
|
margin-left: 4px;
|
|
27
|
+
}
|
|
28
|
+
._handle_oyix4_29 {
|
|
29
29
|
cursor: move;
|
|
30
30
|
}
|
|
31
|
-
._item-
|
|
31
|
+
._item-container_oyix4_33 {
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
column-gap: 4px;
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
line-height: 0;
|
|
37
37
|
vertical-align: middle;
|
|
38
38
|
}
|
|
39
|
-
._item-
|
|
39
|
+
._item-container_oyix4_33 > div {
|
|
40
40
|
vertical-align: middle;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
._truncate_oyix4_45 {
|
|
43
43
|
padding: 0 9px !important;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
._truncate_oyix4_45.el-checkbox--small {
|
|
46
46
|
padding: 0 7px !important;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
._truncate_oyix4_45.el-checkbox--large {
|
|
49
49
|
padding: 0 11px !important;
|
|
50
50
|
}
|
|
@@ -36,11 +36,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
isEditing.value = false;
|
|
37
37
|
}
|
|
38
38
|
async function handleSave() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
try {
|
|
40
|
+
const valid = await formRef.value.validate();
|
|
41
|
+
if (!valid) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
emits("save", props.form.fields);
|
|
45
|
+
return true;
|
|
46
|
+
} catch {
|
|
47
|
+
return false;
|
|
42
48
|
}
|
|
43
|
-
emits("save", props.form.fields);
|
|
44
49
|
}
|
|
45
50
|
__expose({
|
|
46
51
|
formRef,
|
|
@@ -27,13 +27,13 @@ declare function __VLS_template(): {
|
|
|
27
27
|
}> & Omit<{
|
|
28
28
|
readonly disabled: boolean;
|
|
29
29
|
readonly inline: boolean;
|
|
30
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
30
31
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
32
|
+
readonly inlineMessage: boolean;
|
|
33
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
34
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
32
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
33
35
|
readonly labelSuffix: string;
|
|
34
|
-
readonly inlineMessage: boolean;
|
|
35
36
|
readonly statusIcon: boolean;
|
|
36
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
37
37
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
38
|
readonly hideRequiredAsterisk: boolean;
|
|
39
39
|
readonly scrollToError: boolean;
|
|
@@ -42,7 +42,7 @@ declare function __VLS_template(): {
|
|
|
42
42
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
43
43
|
readonly model?: Record<string, any> | undefined;
|
|
44
44
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
45
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
46
46
|
$attrs: {
|
|
47
47
|
[x: string]: unknown;
|
|
48
48
|
};
|
|
@@ -174,7 +174,7 @@ declare function __VLS_template(): {
|
|
|
174
174
|
readonly disabled: BooleanConstructor;
|
|
175
175
|
}>> & {
|
|
176
176
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
177
|
-
}, "disabled" | "inline" | "
|
|
177
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
178
178
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
179
179
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
180
180
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -213,13 +213,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
213
213
|
}> & Omit<{
|
|
214
214
|
readonly disabled: boolean;
|
|
215
215
|
readonly inline: boolean;
|
|
216
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
216
217
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
218
|
+
readonly inlineMessage: boolean;
|
|
219
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
217
220
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
218
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
219
221
|
readonly labelSuffix: string;
|
|
220
|
-
readonly inlineMessage: boolean;
|
|
221
222
|
readonly statusIcon: boolean;
|
|
222
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
223
223
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
224
224
|
readonly hideRequiredAsterisk: boolean;
|
|
225
225
|
readonly scrollToError: boolean;
|
|
@@ -228,7 +228,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
228
228
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
229
229
|
readonly model?: Record<string, any> | undefined;
|
|
230
230
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
231
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
231
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
232
232
|
$attrs: {
|
|
233
233
|
[x: string]: unknown;
|
|
234
234
|
};
|
|
@@ -360,7 +360,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
360
360
|
readonly disabled: BooleanConstructor;
|
|
361
361
|
}>> & {
|
|
362
362
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
363
|
-
}, "disabled" | "inline" | "
|
|
363
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
364
364
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
365
365
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
366
366
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -387,8 +387,8 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
387
387
|
}>, {
|
|
388
388
|
icon: string;
|
|
389
389
|
loading: boolean;
|
|
390
|
-
editable: boolean;
|
|
391
390
|
labelPosition: import('element-plus').FormProps["labelPosition"];
|
|
391
|
+
editable: boolean;
|
|
392
392
|
editing: boolean;
|
|
393
393
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
394
394
|
formRef: ({
|
|
@@ -411,13 +411,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
411
411
|
}> & Omit<{
|
|
412
412
|
readonly disabled: boolean;
|
|
413
413
|
readonly inline: boolean;
|
|
414
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
414
415
|
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "top" | "left", unknown>;
|
|
416
|
+
readonly inlineMessage: boolean;
|
|
417
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
415
418
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
416
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
417
419
|
readonly labelSuffix: string;
|
|
418
|
-
readonly inlineMessage: boolean;
|
|
419
420
|
readonly statusIcon: boolean;
|
|
420
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
421
421
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
422
422
|
readonly hideRequiredAsterisk: boolean;
|
|
423
423
|
readonly scrollToError: boolean;
|
|
@@ -426,7 +426,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
426
426
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
|
427
427
|
readonly model?: Record<string, any> | undefined;
|
|
428
428
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
429
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "
|
|
429
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
430
430
|
$attrs: {
|
|
431
431
|
[x: string]: unknown;
|
|
432
432
|
};
|
|
@@ -558,7 +558,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps,
|
|
|
558
558
|
readonly disabled: BooleanConstructor;
|
|
559
559
|
}>> & {
|
|
560
560
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
561
|
-
}, "disabled" | "inline" | "
|
|
561
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
562
562
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
563
563
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
564
564
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -40,11 +40,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
emits("cancel");
|
|
41
41
|
}
|
|
42
42
|
async function handleSave() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
try {
|
|
44
|
+
const valid = await formRef.value.validate();
|
|
45
|
+
if (!valid) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
emits("save", props.form.fields);
|
|
49
|
+
return true;
|
|
50
|
+
} catch {
|
|
51
|
+
return false;
|
|
46
52
|
}
|
|
47
|
-
emits("save", props.form.fields);
|
|
48
53
|
}
|
|
49
54
|
function handleEdit() {
|
|
50
55
|
isEditing.value = true;
|