3h1-ui 2.1.38 → 2.2.0

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/es/index.js CHANGED
@@ -20156,7 +20156,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20156
20156
  return form;
20157
20157
  };
20158
20158
  } },
20159
- isUseEdit: { type: Boolean }
20159
+ isUseEdit: { type: Boolean },
20160
+ columnSeq: { default: () => {
20161
+ return {};
20162
+ } }
20160
20163
  },
20161
20164
  emits: [
20162
20165
  "register",
@@ -20304,31 +20307,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20304
20307
  onRadioChange: handleRadioChange,
20305
20308
  "row-config": { isHover: true },
20306
20309
  "show-overflow": "",
20307
- "column-config": { resizable: true },
20308
- "edit-config": { trigger: "manual", mode: "row" }
20310
+ "column-config": { resizable: true }
20309
20311
  }), {
20310
20312
  default: withCtx(() => {
20311
20313
  var _a2, _b, _c, _d, _e, _f;
20312
20314
  return [
20313
20315
  ((_b = (_a2 = unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (openBlock(), createBlock(unref(VxeColumn), {
20314
20316
  key: 0,
20317
+ fixed: "left",
20315
20318
  type: "checkbox",
20316
20319
  width: "60",
20317
20320
  align: "center"
20318
20321
  })) : createCommentVNode("", true),
20319
20322
  ((_e = (_d = unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (openBlock(), createBlock(unref(VxeColumn), {
20320
20323
  key: 1,
20324
+ fixed: "left",
20321
20325
  type: "radio",
20322
20326
  width: "60",
20323
20327
  align: "center"
20324
20328
  })) : createCommentVNode("", true),
20325
- unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), {
20329
+ unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
20326
20330
  key: 2,
20327
20331
  type: "seq",
20328
20332
  width: "60",
20329
20333
  align: "center",
20330
20334
  title: "序号"
20331
- })) : createCommentVNode("", true),
20335
+ }, unref(getProps).columnSeq), null, 16)) : createCommentVNode("", true),
20332
20336
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20333
20337
  return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
20334
20338
  "edit-render": (column == null ? void 0 : column.editRender) || void 0
@@ -89,6 +89,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
89
89
  type: BooleanConstructor;
90
90
  required: false;
91
91
  };
92
+ columnSeq: {
93
+ type: any;
94
+ required: true;
95
+ default: () => {};
96
+ };
92
97
  }, {
93
98
  emits: (event: "register" | "selection-change" | "row-ensure" | "row-cancel", ...args: any[]) => void;
94
99
  prefixCls: string;
@@ -555,6 +560,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
555
560
  type: BooleanConstructor;
556
561
  required: false;
557
562
  };
563
+ columnSeq: {
564
+ type: any;
565
+ required: true;
566
+ default: () => {};
567
+ };
558
568
  }>> & {
559
569
  onRegister?: (...args: any[]) => any;
560
570
  "onSelection-change"?: (...args: any[]) => any;
package/lib/index.js CHANGED
@@ -20158,7 +20158,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20158
20158
  return form;
20159
20159
  };
20160
20160
  } },
20161
- isUseEdit: { type: Boolean }
20161
+ isUseEdit: { type: Boolean },
20162
+ columnSeq: { default: () => {
20163
+ return {};
20164
+ } }
20162
20165
  },
20163
20166
  emits: [
20164
20167
  "register",
@@ -20306,31 +20309,32 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20306
20309
  onRadioChange: handleRadioChange,
20307
20310
  "row-config": { isHover: true },
20308
20311
  "show-overflow": "",
20309
- "column-config": { resizable: true },
20310
- "edit-config": { trigger: "manual", mode: "row" }
20312
+ "column-config": { resizable: true }
20311
20313
  }), {
20312
20314
  default: vue.withCtx(() => {
20313
20315
  var _a2, _b, _c, _d, _e, _f;
20314
20316
  return [
20315
20317
  ((_b = (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.configRowSelection) == null ? void 0 : _b.type) === "checkbox" && ((_c = vue.unref(getProps)) == null ? void 0 : _c.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20316
20318
  key: 0,
20319
+ fixed: "left",
20317
20320
  type: "checkbox",
20318
20321
  width: "60",
20319
20322
  align: "center"
20320
20323
  })) : vue.createCommentVNode("", true),
20321
20324
  ((_e = (_d = vue.unref(getProps)) == null ? void 0 : _d.configRowSelection) == null ? void 0 : _e.type) === "radio" && ((_f = vue.unref(getProps)) == null ? void 0 : _f.isShowRowSelection) ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20322
20325
  key: 1,
20326
+ fixed: "left",
20323
20327
  type: "radio",
20324
20328
  width: "60",
20325
20329
  align: "center"
20326
20330
  })) : vue.createCommentVNode("", true),
20327
- vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20331
+ vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({
20328
20332
  key: 2,
20329
20333
  type: "seq",
20330
20334
  width: "60",
20331
20335
  align: "center",
20332
20336
  title: "序号"
20333
- })) : vue.createCommentVNode("", true),
20337
+ }, vue.unref(getProps).columnSeq), null, 16)) : vue.createCommentVNode("", true),
20334
20338
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20335
20339
  return vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({ key: index2 }, column, {
20336
20340
  "edit-render": (column == null ? void 0 : column.editRender) || void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.1.38",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -31,8 +31,8 @@
31
31
  "vue-types": "^5.0.2",
32
32
  "vxe-table": "^4.3.6",
33
33
  "xe-utils": "^3.5.7",
34
- "@shy-plugins/utils": "1.0.14",
35
- "@shy-plugins/use": "1.0.3"
34
+ "@shy-plugins/use": "1.0.3",
35
+ "@shy-plugins/utils": "1.0.14"
36
36
  },
37
37
  "types": "es/ui/index.d.ts",
38
38
  "devDependencies": {