@wx-design/components 1.1.27 → 1.1.29

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.
@@ -1,11 +1,17 @@
1
1
  import type { TableSetColumnsProps } from "../../../../types/table/table-set";
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>, {
3
+ size: string;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
5
  "update:columns": (...args: any[]) => void;
4
6
  "update:config-columns": (...args: any[]) => void;
5
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>>> & {
7
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>, {
8
+ size: string;
9
+ }>>> & {
6
10
  "onUpdate:columns"?: ((...args: any[]) => any) | undefined;
7
11
  "onUpdate:config-columns"?: ((...args: any[]) => any) | undefined;
8
- }, {}, {}>;
12
+ }, {
13
+ size: "small" | "large" | "default";
14
+ }, {}>;
9
15
  export default _default;
10
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
17
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -16,3 +22,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
16
22
  required: true;
17
23
  };
18
24
  };
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
package/es/index.mjs CHANGED
@@ -17118,7 +17118,8 @@ const NX = /* @__PURE__ */ Dr(RX), AX = "sab-table-config-", CC = (e) => `${AX}$
17118
17118
  columns: {},
17119
17119
  initColumns: {},
17120
17120
  tableRef: {},
17121
- showBatchActionColumn: { type: Boolean }
17121
+ showBatchActionColumn: { type: Boolean },
17122
+ size: { default: "small" }
17122
17123
  },
17123
17124
  emits: [
17124
17125
  "update:columns",
@@ -17235,10 +17236,10 @@ const NX = /* @__PURE__ */ Dr(RX), AX = "sab-table-config-", CC = (e) => `${AX}$
17235
17236
  }, {
17236
17237
  default: Bn(() => [
17237
17238
  Qt(In(la), {
17238
- size: "small",
17239
+ size: y.size,
17239
17240
  icon: In(w8),
17240
17241
  onClick: $[0] || ($[0] = (G) => l.value = !0)
17241
- }, null, 8, ["icon"])
17242
+ }, null, 8, ["size", "icon"])
17242
17243
  ]),
17243
17244
  _: 1
17244
17245
  }, 8, ["content"])
@@ -17322,7 +17323,8 @@ const NX = /* @__PURE__ */ Dr(RX), AX = "sab-table-config-", CC = (e) => `${AX}$
17322
17323
  getTableConfig: { type: Function },
17323
17324
  setTableConfig: { type: Function },
17324
17325
  onSetTableConfig: { type: Function },
17325
- tableRef: {}
17326
+ tableRef: {},
17327
+ size: {}
17326
17328
  },
17327
17329
  emits: ["update:columns"],
17328
17330
  setup(e, { emit: t }) {
@@ -17368,8 +17370,9 @@ const NX = /* @__PURE__ */ Dr(RX), AX = "sab-table-config-", CC = (e) => `${AX}$
17368
17370
  "onUpdate:columns": d[0] || (d[0] = (f) => a.value = f),
17369
17371
  tableRef: c.tableRef,
17370
17372
  initColumns: (u = s.value) == null ? void 0 : u.columns,
17373
+ size: c.size,
17371
17374
  "onUpdate:configColumns": d[1] || (d[1] = (f) => o.set({ columns: f }))
17372
- }, null, 8, ["name", "columns", "tableRef", "initColumns"]);
17375
+ }, null, 8, ["name", "columns", "tableRef", "initColumns", "size"]);
17373
17376
  };
17374
17377
  }
17375
17378
  }), HX = {