3h1-ui 2.1.39 → 2.2.1

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
@@ -16068,7 +16068,13 @@ const _sfc_main$8 = defineComponent({
16068
16068
  const instance = getCurrentInstance();
16069
16069
  instance && emit("register", drawerInstance, instance.uid);
16070
16070
  const getMergeProps = computed(() => {
16071
- return deepMerge$1(toRaw(props2), unref(propsRef));
16071
+ return {
16072
+ ...deepMerge$1(toRaw(props2), unref(propsRef)),
16073
+ ...{ title: props2.title }
16074
+ };
16075
+ });
16076
+ watchEffect(() => {
16077
+ getMergeProps.value;
16072
16078
  });
16073
16079
  const getProps = computed(() => {
16074
16080
  const opt = {
@@ -20156,7 +20162,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20156
20162
  return form;
20157
20163
  };
20158
20164
  } },
20159
- isUseEdit: { type: Boolean }
20165
+ isUseEdit: { type: Boolean },
20166
+ columnSeq: { default: () => {
20167
+ return {};
20168
+ } }
20160
20169
  },
20161
20170
  emits: [
20162
20171
  "register",
@@ -20311,23 +20320,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20311
20320
  return [
20312
20321
  ((_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), {
20313
20322
  key: 0,
20323
+ fixed: "left",
20314
20324
  type: "checkbox",
20315
20325
  width: "60",
20316
20326
  align: "center"
20317
20327
  })) : createCommentVNode("", true),
20318
20328
  ((_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), {
20319
20329
  key: 1,
20330
+ fixed: "left",
20320
20331
  type: "radio",
20321
20332
  width: "60",
20322
20333
  align: "center"
20323
20334
  })) : createCommentVNode("", true),
20324
- unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), {
20335
+ unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
20325
20336
  key: 2,
20326
20337
  type: "seq",
20327
20338
  width: "60",
20328
20339
  align: "center",
20329
20340
  title: "序号"
20330
- })) : createCommentVNode("", true),
20341
+ }, unref(getProps).columnSeq), null, 16)) : createCommentVNode("", true),
20331
20342
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20332
20343
  return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
20333
20344
  "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
@@ -16070,7 +16070,13 @@ const _sfc_main$8 = vue.defineComponent({
16070
16070
  const instance = vue.getCurrentInstance();
16071
16071
  instance && emit("register", drawerInstance, instance.uid);
16072
16072
  const getMergeProps = vue.computed(() => {
16073
- return utils.deepMerge(vue.toRaw(props2), vue.unref(propsRef));
16073
+ return {
16074
+ ...utils.deepMerge(vue.toRaw(props2), vue.unref(propsRef)),
16075
+ ...{ title: props2.title }
16076
+ };
16077
+ });
16078
+ vue.watchEffect(() => {
16079
+ getMergeProps.value;
16074
16080
  });
16075
16081
  const getProps = vue.computed(() => {
16076
16082
  const opt = {
@@ -20158,7 +20164,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20158
20164
  return form;
20159
20165
  };
20160
20166
  } },
20161
- isUseEdit: { type: Boolean }
20167
+ isUseEdit: { type: Boolean },
20168
+ columnSeq: { default: () => {
20169
+ return {};
20170
+ } }
20162
20171
  },
20163
20172
  emits: [
20164
20173
  "register",
@@ -20313,23 +20322,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20313
20322
  return [
20314
20323
  ((_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), {
20315
20324
  key: 0,
20325
+ fixed: "left",
20316
20326
  type: "checkbox",
20317
20327
  width: "60",
20318
20328
  align: "center"
20319
20329
  })) : vue.createCommentVNode("", true),
20320
20330
  ((_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), {
20321
20331
  key: 1,
20332
+ fixed: "left",
20322
20333
  type: "radio",
20323
20334
  width: "60",
20324
20335
  align: "center"
20325
20336
  })) : vue.createCommentVNode("", true),
20326
- vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
20337
+ vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({
20327
20338
  key: 2,
20328
20339
  type: "seq",
20329
20340
  width: "60",
20330
20341
  align: "center",
20331
20342
  title: "序号"
20332
- })) : vue.createCommentVNode("", true),
20343
+ }, vue.unref(getProps).columnSeq), null, 16)) : vue.createCommentVNode("", true),
20333
20344
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20334
20345
  return vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), vue.mergeProps({ key: index2 }, column, {
20335
20346
  "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.39",
3
+ "version": "2.2.1",
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": {