@wfrog/vc-ui 1.9.8 → 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.
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
7
+ data: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ data: Record<string, any>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {
5
+ direction: string;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -17,6 +17,7 @@ export interface IExplorerColumnTableProps {
17
17
  highlightCurrent?: boolean;
18
18
  height?: number | string;
19
19
  emptyColumn?: boolean;
20
+ editable?: boolean;
20
21
  }
21
22
  export interface IExplorerColumnTableEmits {
22
23
  (e: 'update:data', data: IColumnConfig[]): void;
@@ -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, createSlots, withCtx, createVNode, createCommentVNode, renderSlot, createElementVNode } from 'vue';
10
- import { C as Component$1 } from '../choice/choice.mjs';
11
- import { C as Component$2 } from '../input-number/input-number.mjs';
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 }) {
@@ -2805,7 +2807,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2805
2807
  class: normalizeClass(unref($style).table)
2806
2808
  }, createSlots({
2807
2809
  default: withCtx(() => [
2808
- createVNode(_component_ElTableColumn, {
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: 0,
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$1, {
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$2, {
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$2, {
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: 1,
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$1, {
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: 2,
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$1, {
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: 3,
2953
+ key: 6,
2910
2954
  label: "截断",
2911
2955
  width: unref(widthConfig).truncate,
2912
2956
  align: "center"
@@ -2928,7 +2972,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2928
2972
  }, 8, ["width"])) : createCommentVNode("", true),
2929
2973
  renderSlot(_ctx.$slots, "default"),
2930
2974
  __props.emptyColumn ? (openBlock(), createBlock(_component_ElTableColumn, {
2931
- key: 4,
2975
+ key: 7,
2932
2976
  label: ""
2933
2977
  })) : createCommentVNode("", true)
2934
2978
  ]),
@@ -1489,7 +1489,9 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerColumnTabl
1489
1489
  "onUpdate:data"?: ((data: IColumnConfig[]) => any) | undefined;
1490
1490
  }>, {
1491
1491
  mode: "easy" | "full";
1492
+ size: "small" | "default" | "large";
1492
1493
  height: number | string;
1494
+ editable: boolean;
1493
1495
  highlightCurrent: boolean;
1494
1496
  emptyColumn: boolean;
1495
1497
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -15,6 +15,7 @@ declare function __VLS_template(): {
15
15
  readonly highlightCurrent?: boolean | undefined;
16
16
  readonly height?: number | string | undefined;
17
17
  readonly emptyColumn?: boolean | undefined;
18
+ readonly editable?: boolean | undefined;
18
19
  readonly "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
19
20
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
20
21
  $attrs: {
@@ -1510,7 +1511,9 @@ declare function __VLS_template(): {
1510
1511
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
1511
1512
  }, string, {
1512
1513
  mode: "easy" | "full";
1514
+ size: "small" | "default" | "large";
1513
1515
  height: number | string;
1516
+ editable: boolean;
1514
1517
  highlightCurrent: boolean;
1515
1518
  emptyColumn: boolean;
1516
1519
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -1535,12 +1538,14 @@ declare function __VLS_template(): {
1535
1538
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
1536
1539
  } & Readonly<{
1537
1540
  mode: "easy" | "full";
1541
+ size: "small" | "default" | "large";
1538
1542
  height: number | string;
1543
+ editable: boolean;
1539
1544
  highlightCurrent: boolean;
1540
1545
  emptyColumn: boolean;
1541
1546
  }> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
1542
1547
  "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
1543
- }>, "init" | ("mode" | "height" | "highlightCurrent" | "emptyColumn")> & import('vue').ShallowUnwrapRef<{
1548
+ }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn")> & import('vue').ShallowUnwrapRef<{
1544
1549
  init: () => void;
1545
1550
  }> & {} & import('vue').ComponentCustomProperties & {} & {
1546
1551
  $slots: {
@@ -1573,6 +1578,7 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
1573
1578
  readonly highlightCurrent?: boolean | undefined;
1574
1579
  readonly height?: number | string | undefined;
1575
1580
  readonly emptyColumn?: boolean | undefined;
1581
+ readonly editable?: boolean | undefined;
1576
1582
  readonly "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
1577
1583
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
1578
1584
  $attrs: {
@@ -3068,7 +3074,9 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
3068
3074
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
3069
3075
  }, string, {
3070
3076
  mode: "easy" | "full";
3077
+ size: "small" | "default" | "large";
3071
3078
  height: number | string;
3079
+ editable: boolean;
3072
3080
  highlightCurrent: boolean;
3073
3081
  emptyColumn: boolean;
3074
3082
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -3093,12 +3101,14 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
3093
3101
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3094
3102
  } & Readonly<{
3095
3103
  mode: "easy" | "full";
3104
+ size: "small" | "default" | "large";
3096
3105
  height: number | string;
3106
+ editable: boolean;
3097
3107
  highlightCurrent: boolean;
3098
3108
  emptyColumn: boolean;
3099
3109
  }> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
3100
3110
  "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
3101
- }>, "init" | ("mode" | "height" | "highlightCurrent" | "emptyColumn")> & import('vue').ShallowUnwrapRef<{
3111
+ }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn")> & import('vue').ShallowUnwrapRef<{
3102
3112
  init: () => void;
3103
3113
  }> & {} & import('vue').ComponentCustomProperties & {} & {
3104
3114
  $slots: {
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.8";
159
+ const version = "1.9.9";
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",