@wfrog/vc-ui 1.9.18 → 1.9.19

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.
@@ -136,6 +136,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
136
  rerender,
137
137
  setWidthConfig: (params) => {
138
138
  widthConfig.value = params;
139
+ },
140
+ getWidthConfig: () => {
141
+ return widthConfig.value;
139
142
  }
140
143
  });
141
144
  onBeforeUnmount(() => widthConfigWatch.stop());
@@ -2972,6 +2972,12 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerColumnTabl
2972
2972
  }> | null>>;
2973
2973
  rerender: typeof rerender;
2974
2974
  setWidthConfig: (params: typeof widthConfig.value) => void;
2975
+ getWidthConfig: () => {
2976
+ width: number;
2977
+ data: number;
2978
+ fixed: number;
2979
+ truncate: number;
2980
+ };
2975
2981
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2976
2982
  "update:data": (data: IColumnConfig[]) => any;
2977
2983
  }, string, import('vue').PublicProps, Readonly<IExplorerColumnTableProps> & Readonly<{
@@ -32,8 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  isEditing.value = true;
33
33
  }
34
34
  async function handleCancel() {
35
- formRef.value.resetFields();
36
35
  emits("cancel");
36
+ formRef.value.resetFields();
37
37
  isEditing.value = false;
38
38
  }
39
39
  async function handleSave() {
@@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  const component = computed(() => props.type === "dialog" ? Component$1 : Component$2);
37
37
  const modalTitle = computed(() => props.title || (props.form.fields.id ? "编辑" : "新增"));
38
38
  function handleCancel() {
39
- modalVisible.value = false;
40
39
  emits("cancel");
40
+ modalVisible.value = false;
41
41
  }
42
42
  async function handleSave() {
43
43
  try {
@@ -52,8 +52,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  }
53
53
  }
54
54
  function handleEdit() {
55
- isEditing.value = true;
56
55
  emits("edit");
56
+ isEditing.value = true;
57
57
  }
58
58
  const visibleWatch = watch(modalVisible, (val) => {
59
59
  if (!val) {
@@ -2984,6 +2984,12 @@ declare function __VLS_template(): {
2984
2984
  fixed: number;
2985
2985
  truncate: number;
2986
2986
  }) => void;
2987
+ getWidthConfig: () => {
2988
+ width: number;
2989
+ data: number;
2990
+ fixed: number;
2991
+ truncate: number;
2992
+ };
2987
2993
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2988
2994
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
2989
2995
  }, string, {
@@ -3022,7 +3028,7 @@ declare function __VLS_template(): {
3022
3028
  emptyColumn: boolean;
3023
3029
  }> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
3024
3030
  "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
3025
- }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig"> & import('vue').ShallowUnwrapRef<{
3031
+ }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig" | "getWidthConfig"> & import('vue').ShallowUnwrapRef<{
3026
3032
  init: () => void;
3027
3033
  tableRef: Readonly<globalThis.ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
3028
3034
  data: {
@@ -4501,6 +4507,12 @@ declare function __VLS_template(): {
4501
4507
  fixed: number;
4502
4508
  truncate: number;
4503
4509
  }) => void;
4510
+ getWidthConfig: () => {
4511
+ width: number;
4512
+ data: number;
4513
+ fixed: number;
4514
+ truncate: number;
4515
+ };
4504
4516
  }> & {} & import('vue').ComponentCustomProperties & {} & {
4505
4517
  $slots: {
4506
4518
  default?(_: {}): any;
@@ -7501,6 +7513,12 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
7501
7513
  fixed: number;
7502
7514
  truncate: number;
7503
7515
  }) => void;
7516
+ getWidthConfig: () => {
7517
+ width: number;
7518
+ data: number;
7519
+ fixed: number;
7520
+ truncate: number;
7521
+ };
7504
7522
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7505
7523
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
7506
7524
  }, string, {
@@ -7539,7 +7557,7 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
7539
7557
  emptyColumn: boolean;
7540
7558
  }> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
7541
7559
  "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
7542
- }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig"> & import('vue').ShallowUnwrapRef<{
7560
+ }>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig" | "getWidthConfig"> & import('vue').ShallowUnwrapRef<{
7543
7561
  init: () => void;
7544
7562
  tableRef: Readonly<globalThis.ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
7545
7563
  data: {
@@ -9018,6 +9036,12 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
9018
9036
  fixed: number;
9019
9037
  truncate: number;
9020
9038
  }) => void;
9039
+ getWidthConfig: () => {
9040
+ width: number;
9041
+ data: number;
9042
+ fixed: number;
9043
+ truncate: number;
9044
+ };
9021
9045
  }> & {} & import('vue').ComponentCustomProperties & {} & {
9022
9046
  $slots: {
9023
9047
  default?(_: {}): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.9.18",
3
+ "version": "1.9.19",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",