@wx-design/components 0.1.7 → 0.1.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.
@@ -1,5 +1,5 @@
1
1
  import type { ToolbarProps } from "../../../../types/table";
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table").VxeTableDataRow>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table").VxeTableDataRow>>>>, {}, {}>, {
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table/types/table").VxeTableDataRow>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table/types/table").VxeTableDataRow>>>>, {}, {}>, {
3
3
  default?(_: {}): any;
4
4
  }>;
5
5
  export default _default;
package/es/index.mjs CHANGED
@@ -211,6 +211,7 @@ C.all = function(t, l) {
211
211
  };
212
212
  var Ot = C, jt = Ot;
213
213
  const p = /* @__PURE__ */ L(jt), kt = {
214
+ fit: !0,
214
215
  // 带边框
215
216
  border: !0,
216
217
  // 展示头部
@@ -300,11 +301,14 @@ const p = /* @__PURE__ */ L(jt), kt = {
300
301
  return l.editable === !1 ? delete l.editConfig : l.editable === !0 && (l.editConfig = p({}, l.editConfig || {})), l.withCheckbox === !0 && !((n = l.columns) != null && n.some((a) => a.field === "sab-table-checkbox")) && ((r = l.columns) == null || r.unshift({
301
302
  type: "checkbox",
302
303
  fixed: "left",
303
- field: "sab-table-checkbox"
304
+ field: "sab-table-checkbox",
305
+ width: 40
304
306
  })), l.withSeq === !0 && !((o = l.columns) != null && o.some((a) => a.field === "sab-table-seq")) && ((c = l.columns) == null || c.unshift({
305
307
  type: "checkbox",
306
308
  fixed: "left",
307
309
  field: "sab-table-seq",
310
+ width: 50,
311
+ className: "sab-table-seq",
308
312
  slots: {
309
313
  header: () => null,
310
314
  checkbox: ({ rowIndex: a }) => a + 1
@@ -358,7 +362,7 @@ const p = /* @__PURE__ */ L(jt), kt = {
358
362
  "custom"
359
363
  ].map((o) => {
360
364
  r[o] = (...c) => {
361
- e("event", ...c), typeof n[o] == "function" && n[o](...c);
365
+ e(o, ...c), typeof n[o] == "function" && n[o](...c);
362
366
  };
363
367
  }), r;
364
368
  };