@wfrog/vc-ui 1.9.7 → 1.9.9
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/explorer-column-table/explorer-column-table.d.ts +1 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +73 -20
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1490 -1
- package/dist/es/components/explorer-table/explorer-table.mjs +12 -4
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +1 -0
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +1624 -1526
- package/dist/es/components/explorer-tools/explorer-tools.mjs +5 -5
- package/dist/es/components/explorer-tools/index.css +5 -5
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +5 -5
- package/package.json +1 -1
|
@@ -6,9 +6,10 @@ import { a as ElCheckbox } from '../../chunk/DBf73TLo.mjs';
|
|
|
6
6
|
import '../../chunk/BH1e_-Fa.mjs';
|
|
7
7
|
import '../../chunk/CqhShW5K.mjs';
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, createBlock, openBlock, normalizeClass, unref,
|
|
10
|
-
import { C as Component$
|
|
11
|
-
import { C as Component$
|
|
9
|
+
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, createBlock, openBlock, normalizeClass, unref, createSlots, withCtx, createCommentVNode, renderSlot, createElementVNode, createVNode } from 'vue';
|
|
10
|
+
import { C as Component$2 } from '../choice/choice.mjs';
|
|
11
|
+
import { C as Component$3 } from '../input-number/input-number.mjs';
|
|
12
|
+
import { C as Component$1 } from '../input/input.mjs';
|
|
12
13
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
13
14
|
|
|
14
15
|
/**!
|
|
@@ -2678,11 +2679,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2678
2679
|
__name: "explorer-column-table",
|
|
2679
2680
|
props: {
|
|
2680
2681
|
data: {},
|
|
2681
|
-
size: {},
|
|
2682
|
+
size: { default: "default" },
|
|
2682
2683
|
mode: { default: "easy" },
|
|
2683
2684
|
highlightCurrent: { type: Boolean, default: false },
|
|
2684
2685
|
height: { default: 320 },
|
|
2685
|
-
emptyColumn: { type: Boolean, default: false }
|
|
2686
|
+
emptyColumn: { type: Boolean, default: false },
|
|
2687
|
+
editable: { type: Boolean, default: false }
|
|
2686
2688
|
},
|
|
2687
2689
|
emits: ["update:data"],
|
|
2688
2690
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -2803,9 +2805,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2803
2805
|
height: __props.height,
|
|
2804
2806
|
"scrollbar-always-on": "",
|
|
2805
2807
|
class: normalizeClass(unref($style).table)
|
|
2806
|
-
}, {
|
|
2808
|
+
}, createSlots({
|
|
2807
2809
|
default: withCtx(() => [
|
|
2808
|
-
|
|
2810
|
+
!__props.editable ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2811
|
+
key: 0,
|
|
2809
2812
|
prop: "label",
|
|
2810
2813
|
label: "列名",
|
|
2811
2814
|
"min-width": 200,
|
|
@@ -2824,9 +2827,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2824
2827
|
], 2)
|
|
2825
2828
|
]),
|
|
2826
2829
|
_: 1
|
|
2827
|
-
}),
|
|
2830
|
+
})) : createCommentVNode("", true),
|
|
2831
|
+
unref(isFullMode) && __props.editable ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2832
|
+
key: 1,
|
|
2833
|
+
prop: "label",
|
|
2834
|
+
label: "列名",
|
|
2835
|
+
"min-width": 200
|
|
2836
|
+
}, {
|
|
2837
|
+
default: withCtx(({ row }) => [
|
|
2838
|
+
createVNode(_component_ElCheckbox, {
|
|
2839
|
+
modelValue: row.visible,
|
|
2840
|
+
"onUpdate:modelValue": ($event) => row.visible = $event,
|
|
2841
|
+
size: __props.size
|
|
2842
|
+
}, {
|
|
2843
|
+
default: withCtx(() => [
|
|
2844
|
+
createVNode(Component$1, {
|
|
2845
|
+
modelValue: row.label,
|
|
2846
|
+
"onUpdate:modelValue": ($event) => row.label = $event,
|
|
2847
|
+
block: "",
|
|
2848
|
+
size: __props.size
|
|
2849
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
2850
|
+
]),
|
|
2851
|
+
_: 2
|
|
2852
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "size"])
|
|
2853
|
+
]),
|
|
2854
|
+
_: 1
|
|
2855
|
+
})) : createCommentVNode("", true),
|
|
2856
|
+
unref(isFullMode) && __props.editable ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2857
|
+
key: 2,
|
|
2858
|
+
prop: "prop",
|
|
2859
|
+
label: "Prop",
|
|
2860
|
+
"min-width": 200
|
|
2861
|
+
}, {
|
|
2862
|
+
default: withCtx(({ row }) => [
|
|
2863
|
+
createVNode(Component$1, {
|
|
2864
|
+
modelValue: row.prop,
|
|
2865
|
+
"onUpdate:modelValue": ($event) => row.prop = $event,
|
|
2866
|
+
block: "",
|
|
2867
|
+
size: __props.size
|
|
2868
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
2869
|
+
]),
|
|
2870
|
+
_: 1
|
|
2871
|
+
})) : createCommentVNode("", true),
|
|
2828
2872
|
unref(isFullMode) ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2829
|
-
key:
|
|
2873
|
+
key: 3,
|
|
2830
2874
|
label: "宽度",
|
|
2831
2875
|
width: unref(widthConfig).width,
|
|
2832
2876
|
align: "center"
|
|
@@ -2835,14 +2879,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2835
2879
|
createElementVNode("div", {
|
|
2836
2880
|
class: normalizeClass(unref($style)["item-container"])
|
|
2837
2881
|
}, [
|
|
2838
|
-
createVNode(Component$
|
|
2882
|
+
createVNode(Component$2, {
|
|
2839
2883
|
modelValue: row.widthType,
|
|
2840
2884
|
"onUpdate:modelValue": ($event) => row.widthType = $event,
|
|
2841
2885
|
options: widthOptions,
|
|
2842
2886
|
size: __props.size,
|
|
2843
2887
|
onChange: ($event) => handleWidthChange(row)
|
|
2844
2888
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "onChange"]),
|
|
2845
|
-
row.widthType === "width" ? (openBlock(), createBlock(Component$
|
|
2889
|
+
row.widthType === "width" ? (openBlock(), createBlock(Component$3, {
|
|
2846
2890
|
key: 0,
|
|
2847
2891
|
modelValue: row.width,
|
|
2848
2892
|
"onUpdate:modelValue": ($event) => row.width = $event,
|
|
@@ -2850,7 +2894,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2850
2894
|
size: __props.size,
|
|
2851
2895
|
controls: false,
|
|
2852
2896
|
"input-width": "50px"
|
|
2853
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])) : (openBlock(), createBlock(Component$
|
|
2897
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size"])) : (openBlock(), createBlock(Component$3, {
|
|
2854
2898
|
key: 1,
|
|
2855
2899
|
modelValue: row.minWidth,
|
|
2856
2900
|
"onUpdate:modelValue": ($event) => row.minWidth = $event,
|
|
@@ -2864,7 +2908,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2864
2908
|
_: 1
|
|
2865
2909
|
}, 8, ["width"])) : createCommentVNode("", true),
|
|
2866
2910
|
unref(isFullMode) ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2867
|
-
key:
|
|
2911
|
+
key: 4,
|
|
2868
2912
|
label: "数据位置",
|
|
2869
2913
|
width: unref(widthConfig).data,
|
|
2870
2914
|
align: "center"
|
|
@@ -2873,7 +2917,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2873
2917
|
createElementVNode("div", {
|
|
2874
2918
|
class: normalizeClass(unref($style)["item-container"])
|
|
2875
2919
|
}, [
|
|
2876
|
-
createVNode(Component$
|
|
2920
|
+
createVNode(Component$2, {
|
|
2877
2921
|
modelValue: row.align,
|
|
2878
2922
|
"onUpdate:modelValue": ($event) => row.align = $event,
|
|
2879
2923
|
options: alignOptions,
|
|
@@ -2884,7 +2928,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2884
2928
|
_: 1
|
|
2885
2929
|
}, 8, ["width"])) : createCommentVNode("", true),
|
|
2886
2930
|
unref(isFullMode) ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2887
|
-
key:
|
|
2931
|
+
key: 5,
|
|
2888
2932
|
label: "冻结位置",
|
|
2889
2933
|
width: unref(widthConfig).fixed,
|
|
2890
2934
|
align: "center"
|
|
@@ -2893,7 +2937,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2893
2937
|
createElementVNode("div", {
|
|
2894
2938
|
class: normalizeClass(unref($style)["item-container"])
|
|
2895
2939
|
}, [
|
|
2896
|
-
createVNode(Component$
|
|
2940
|
+
createVNode(Component$2, {
|
|
2897
2941
|
modelValue: row.formFixed,
|
|
2898
2942
|
"onUpdate:modelValue": ($event) => row.formFixed = $event,
|
|
2899
2943
|
multiple: "",
|
|
@@ -2906,7 +2950,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2906
2950
|
_: 1
|
|
2907
2951
|
}, 8, ["width"])) : createCommentVNode("", true),
|
|
2908
2952
|
unref(isFullMode) ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2909
|
-
key:
|
|
2953
|
+
key: 6,
|
|
2910
2954
|
label: "截断",
|
|
2911
2955
|
width: unref(widthConfig).truncate,
|
|
2912
2956
|
align: "center"
|
|
@@ -2926,13 +2970,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2926
2970
|
]),
|
|
2927
2971
|
_: 1
|
|
2928
2972
|
}, 8, ["width"])) : createCommentVNode("", true),
|
|
2973
|
+
renderSlot(_ctx.$slots, "default"),
|
|
2929
2974
|
__props.emptyColumn ? (openBlock(), createBlock(_component_ElTableColumn, {
|
|
2930
|
-
key:
|
|
2975
|
+
key: 7,
|
|
2931
2976
|
label: ""
|
|
2932
2977
|
})) : createCommentVNode("", true)
|
|
2933
2978
|
]),
|
|
2934
|
-
_:
|
|
2935
|
-
},
|
|
2979
|
+
_: 2
|
|
2980
|
+
}, [
|
|
2981
|
+
_ctx.$slots.append ? {
|
|
2982
|
+
name: "append",
|
|
2983
|
+
fn: withCtx(() => [
|
|
2984
|
+
renderSlot(_ctx.$slots, "append")
|
|
2985
|
+
]),
|
|
2986
|
+
key: "0"
|
|
2987
|
+
} : void 0
|
|
2988
|
+
]), 1032, ["data", "size", "height", "class"]);
|
|
2936
2989
|
};
|
|
2937
2990
|
}
|
|
2938
2991
|
});
|