3h1-ui 2.1.1 → 2.1.2

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
@@ -20143,7 +20143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20143
20143
  };
20144
20144
  } },
20145
20145
  isShowSearch: { type: Boolean, default: true },
20146
- isShowRowSelection: { type: Boolean },
20146
+ isShowRowSelection: { type: Boolean, default: true },
20147
20147
  isShowAction: { type: Boolean, default: true },
20148
20148
  isShowPagination: { type: Boolean, default: true },
20149
20149
  isUseDefaultEditAction: { type: Boolean, default: false },
@@ -20313,78 +20313,82 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20313
20313
  "column-config": { resizable: true },
20314
20314
  "edit-config": { trigger: "manual", mode: "row" }
20315
20315
  }), {
20316
- default: withCtx(() => [
20317
- unref(getProps).configRowSelection.type === "checkbox" ? (openBlock(), createBlock(_component_vxe_column, {
20318
- key: 0,
20319
- type: "checkbox",
20320
- width: "60",
20321
- align: "center"
20322
- })) : (openBlock(), createBlock(_component_vxe_column, {
20323
- key: 1,
20324
- type: "radio",
20325
- width: "60",
20326
- align: "center"
20327
- })),
20328
- unref(getProps).isShowSeq ? (openBlock(), createBlock(_component_vxe_column, {
20329
- key: 2,
20330
- type: "seq",
20331
- width: "60",
20332
- align: "center",
20333
- title: "序号"
20334
- })) : createCommentVNode("", true),
20335
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20336
- return openBlock(), createBlock(_component_vxe_column, mergeProps({ key: index2 }, column, {
20337
- "edit-render": (column == null ? void 0 : column.editRender) || void 0
20338
- }), {
20316
+ default: withCtx(() => {
20317
+ var _a2, _b, _c, _d, _e, _f;
20318
+ return [
20319
+ ((_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(_component_vxe_column, {
20320
+ key: 0,
20321
+ type: "checkbox",
20322
+ width: "60",
20323
+ align: "center"
20324
+ })) : createCommentVNode("", true),
20325
+ ((_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(_component_vxe_column, {
20326
+ key: 1,
20327
+ type: "radio",
20328
+ width: "60",
20329
+ align: "center"
20330
+ })) : createCommentVNode("", true),
20331
+ unref(getProps).isShowSeq ? (openBlock(), createBlock(_component_vxe_column, {
20332
+ key: 2,
20333
+ type: "seq",
20334
+ width: "60",
20335
+ align: "center",
20336
+ title: "序号"
20337
+ })) : createCommentVNode("", true),
20338
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20339
+ return openBlock(), createBlock(_component_vxe_column, mergeProps({ key: index2 }, column, {
20340
+ "edit-render": (column == null ? void 0 : column.editRender) || void 0
20341
+ }), {
20342
+ default: withCtx((config) => [
20343
+ renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
20344
+ var _a3, _b2;
20345
+ return [
20346
+ config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 0 }, (column == null ? void 0 : column.editProps) || {}, {
20347
+ value: config.row[column.field],
20348
+ "onUpdate:value": ($event) => config.row[column.field] = $event
20349
+ }), null, 16, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20350
+ (column == null ? void 0 : column.isEdit) && ((_a3 = column == null ? void 0 : column.editProps) == null ? void 0 : _a3.component) === "Select" || ((_b2 = column == null ? void 0 : column.editProps) == null ? void 0 : _b2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
20351
+ createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editProps) || {}, {
20352
+ value: config.row[column.field],
20353
+ "onUpdate:value": ($event) => config.row[column.field] = $event,
20354
+ bordered: false,
20355
+ showArrow: false,
20356
+ open: false,
20357
+ popoverVisible: false
20358
+ }), null, 16, ["value", "onUpdate:value"])
20359
+ ])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(config.row[column.field]), 1))
20360
+ ], 64))
20361
+ ];
20362
+ })
20363
+ ]),
20364
+ _: 2
20365
+ }, 1040, ["edit-render"]);
20366
+ }), 128)),
20367
+ unref(getProps).isShowAction ? (openBlock(), createBlock(_component_vxe_column, mergeProps({
20368
+ key: 3,
20369
+ title: "操作",
20370
+ field: "action",
20371
+ align: "center"
20372
+ }, unref(getProps).actionColumn), {
20339
20373
  default: withCtx((config) => [
20340
- renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
20341
- var _a2, _b;
20342
- return [
20343
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 0 }, (column == null ? void 0 : column.editProps) || {}, {
20344
- value: config.row[column.field],
20345
- "onUpdate:value": ($event) => config.row[column.field] = $event
20346
- }), null, 16, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20347
- (column == null ? void 0 : column.isEdit) && ((_a2 = column == null ? void 0 : column.editProps) == null ? void 0 : _a2.component) === "Select" || ((_b = column == null ? void 0 : column.editProps) == null ? void 0 : _b.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
20348
- createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editProps) || {}, {
20349
- value: config.row[column.field],
20350
- "onUpdate:value": ($event) => config.row[column.field] = $event,
20351
- bordered: false,
20352
- showArrow: false,
20353
- open: false,
20354
- popoverVisible: false
20355
- }), null, 16, ["value", "onUpdate:value"])
20356
- ])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(config.row[column.field]), 1))
20357
- ], 64))
20358
- ];
20359
- })
20360
- ]),
20361
- _: 2
20362
- }, 1040, ["edit-render"]);
20363
- }), 128)),
20364
- unref(getProps).isShowAction ? (openBlock(), createBlock(_component_vxe_column, mergeProps({
20365
- key: 3,
20366
- title: "操作",
20367
- field: "action",
20368
- align: "center"
20369
- }, unref(getProps).actionColumn), {
20370
- default: withCtx((config) => [
20371
- createElementVNode("div", _hoisted_3, [
20372
- renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
20373
- unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$1, {
20374
- key: 0,
20375
- row: config.row,
20376
- onEditEnsure: ($event) => handleEditEnsure(config.row),
20377
- onEditCancel: ($event) => handleEditCancel(config.row),
20378
- onUpdateStatusEdit: (isEdit) => {
20379
- config.row._isEdit = isEdit;
20380
- }
20381
- }, null, 8, ["row", "onEditEnsure", "onEditCancel", "onUpdateStatusEdit"])) : createCommentVNode("", true)
20374
+ createElementVNode("div", _hoisted_3, [
20375
+ renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
20376
+ unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$1, {
20377
+ key: 0,
20378
+ row: config.row,
20379
+ onEditEnsure: ($event) => handleEditEnsure(config.row),
20380
+ onEditCancel: ($event) => handleEditCancel(config.row),
20381
+ onUpdateStatusEdit: (isEdit) => {
20382
+ config.row._isEdit = isEdit;
20383
+ }
20384
+ }, null, 8, ["row", "onEditEnsure", "onEditCancel", "onUpdateStatusEdit"])) : createCommentVNode("", true)
20385
+ ])
20382
20386
  ])
20383
- ])
20384
- ]),
20385
- _: 3
20386
- }, 16)) : createCommentVNode("", true)
20387
- ]),
20387
+ ]),
20388
+ _: 3
20389
+ }, 16)) : createCommentVNode("", true)
20390
+ ];
20391
+ }),
20388
20392
  _: 3
20389
20393
  }, 16, ["data"])
20390
20394
  ], 2),
@@ -36,6 +36,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
36
  isShowRowSelection: {
37
37
  type: BooleanConstructor;
38
38
  required: false;
39
+ default: boolean;
39
40
  };
40
41
  isShowAction: {
41
42
  type: BooleanConstructor;
@@ -499,6 +500,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
499
500
  isShowRowSelection: {
500
501
  type: BooleanConstructor;
501
502
  required: false;
503
+ default: boolean;
502
504
  };
503
505
  isShowAction: {
504
506
  type: BooleanConstructor;
@@ -38,6 +38,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
38
38
  isShowRowSelection: {
39
39
  type: BooleanConstructor;
40
40
  required: false;
41
+ default: boolean;
41
42
  };
42
43
  isShowAction: {
43
44
  type: BooleanConstructor;
@@ -501,6 +502,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
501
502
  isShowRowSelection: {
502
503
  type: BooleanConstructor;
503
504
  required: false;
505
+ default: boolean;
504
506
  };
505
507
  isShowAction: {
506
508
  type: BooleanConstructor;
package/lib/index.js CHANGED
@@ -20145,7 +20145,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20145
20145
  };
20146
20146
  } },
20147
20147
  isShowSearch: { type: Boolean, default: true },
20148
- isShowRowSelection: { type: Boolean },
20148
+ isShowRowSelection: { type: Boolean, default: true },
20149
20149
  isShowAction: { type: Boolean, default: true },
20150
20150
  isShowPagination: { type: Boolean, default: true },
20151
20151
  isUseDefaultEditAction: { type: Boolean, default: false },
@@ -20315,78 +20315,82 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20315
20315
  "column-config": { resizable: true },
20316
20316
  "edit-config": { trigger: "manual", mode: "row" }
20317
20317
  }), {
20318
- default: vue.withCtx(() => [
20319
- vue.unref(getProps).configRowSelection.type === "checkbox" ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20320
- key: 0,
20321
- type: "checkbox",
20322
- width: "60",
20323
- align: "center"
20324
- })) : (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20325
- key: 1,
20326
- type: "radio",
20327
- width: "60",
20328
- align: "center"
20329
- })),
20330
- vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20331
- key: 2,
20332
- type: "seq",
20333
- width: "60",
20334
- align: "center",
20335
- title: "序号"
20336
- })) : vue.createCommentVNode("", true),
20337
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20338
- return vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({ key: index2 }, column, {
20339
- "edit-render": (column == null ? void 0 : column.editRender) || void 0
20340
- }), {
20318
+ default: vue.withCtx(() => {
20319
+ var _a2, _b, _c, _d, _e, _f;
20320
+ return [
20321
+ ((_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(_component_vxe_column, {
20322
+ key: 0,
20323
+ type: "checkbox",
20324
+ width: "60",
20325
+ align: "center"
20326
+ })) : vue.createCommentVNode("", true),
20327
+ ((_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(_component_vxe_column, {
20328
+ key: 1,
20329
+ type: "radio",
20330
+ width: "60",
20331
+ align: "center"
20332
+ })) : vue.createCommentVNode("", true),
20333
+ vue.unref(getProps).isShowSeq ? (vue.openBlock(), vue.createBlock(_component_vxe_column, {
20334
+ key: 2,
20335
+ type: "seq",
20336
+ width: "60",
20337
+ align: "center",
20338
+ title: "序号"
20339
+ })) : vue.createCommentVNode("", true),
20340
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
20341
+ return vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({ key: index2 }, column, {
20342
+ "edit-render": (column == null ? void 0 : column.editRender) || void 0
20343
+ }), {
20344
+ default: vue.withCtx((config) => [
20345
+ vue.renderSlot(_ctx.$slots, column.field, vue.normalizeProps(vue.guardReactiveProps(config)), () => {
20346
+ var _a3, _b2;
20347
+ return [
20348
+ config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (vue.openBlock(), vue.createBlock(vue.unref(CellComponent), vue.mergeProps({ key: 0 }, (column == null ? void 0 : column.editProps) || {}, {
20349
+ value: config.row[column.field],
20350
+ "onUpdate:value": ($event) => config.row[column.field] = $event
20351
+ }), null, 16, ["value", "onUpdate:value"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
20352
+ (column == null ? void 0 : column.isEdit) && ((_a3 = column == null ? void 0 : column.editProps) == null ? void 0 : _a3.component) === "Select" || ((_b2 = column == null ? void 0 : column.editProps) == null ? void 0 : _b2.component) === "ApiSelect" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, [
20353
+ vue.createVNode(vue.unref(CellComponent), vue.mergeProps((column == null ? void 0 : column.editProps) || {}, {
20354
+ value: config.row[column.field],
20355
+ "onUpdate:value": ($event) => config.row[column.field] = $event,
20356
+ bordered: false,
20357
+ showArrow: false,
20358
+ open: false,
20359
+ popoverVisible: false
20360
+ }), null, 16, ["value", "onUpdate:value"])
20361
+ ])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(config.row[column.field]), 1))
20362
+ ], 64))
20363
+ ];
20364
+ })
20365
+ ]),
20366
+ _: 2
20367
+ }, 1040, ["edit-render"]);
20368
+ }), 128)),
20369
+ vue.unref(getProps).isShowAction ? (vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({
20370
+ key: 3,
20371
+ title: "操作",
20372
+ field: "action",
20373
+ align: "center"
20374
+ }, vue.unref(getProps).actionColumn), {
20341
20375
  default: vue.withCtx((config) => [
20342
- vue.renderSlot(_ctx.$slots, column.field, vue.normalizeProps(vue.guardReactiveProps(config)), () => {
20343
- var _a2, _b;
20344
- return [
20345
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (vue.openBlock(), vue.createBlock(vue.unref(CellComponent), vue.mergeProps({ key: 0 }, (column == null ? void 0 : column.editProps) || {}, {
20346
- value: config.row[column.field],
20347
- "onUpdate:value": ($event) => config.row[column.field] = $event
20348
- }), null, 16, ["value", "onUpdate:value"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
20349
- (column == null ? void 0 : column.isEdit) && ((_a2 = column == null ? void 0 : column.editProps) == null ? void 0 : _a2.component) === "Select" || ((_b = column == null ? void 0 : column.editProps) == null ? void 0 : _b.component) === "ApiSelect" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, [
20350
- vue.createVNode(vue.unref(CellComponent), vue.mergeProps((column == null ? void 0 : column.editProps) || {}, {
20351
- value: config.row[column.field],
20352
- "onUpdate:value": ($event) => config.row[column.field] = $event,
20353
- bordered: false,
20354
- showArrow: false,
20355
- open: false,
20356
- popoverVisible: false
20357
- }), null, 16, ["value", "onUpdate:value"])
20358
- ])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(config.row[column.field]), 1))
20359
- ], 64))
20360
- ];
20361
- })
20362
- ]),
20363
- _: 2
20364
- }, 1040, ["edit-render"]);
20365
- }), 128)),
20366
- vue.unref(getProps).isShowAction ? (vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({
20367
- key: 3,
20368
- title: "操作",
20369
- field: "action",
20370
- align: "center"
20371
- }, vue.unref(getProps).actionColumn), {
20372
- default: vue.withCtx((config) => [
20373
- vue.createElementVNode("div", _hoisted_3, [
20374
- vue.renderSlot(_ctx.$slots, "action", vue.normalizeProps(vue.guardReactiveProps(config)), () => [
20375
- vue.unref(getProps).isUseDefaultEditAction ? (vue.openBlock(), vue.createBlock(_sfc_main$1, {
20376
- key: 0,
20377
- row: config.row,
20378
- onEditEnsure: ($event) => handleEditEnsure(config.row),
20379
- onEditCancel: ($event) => handleEditCancel(config.row),
20380
- onUpdateStatusEdit: (isEdit) => {
20381
- config.row._isEdit = isEdit;
20382
- }
20383
- }, null, 8, ["row", "onEditEnsure", "onEditCancel", "onUpdateStatusEdit"])) : vue.createCommentVNode("", true)
20376
+ vue.createElementVNode("div", _hoisted_3, [
20377
+ vue.renderSlot(_ctx.$slots, "action", vue.normalizeProps(vue.guardReactiveProps(config)), () => [
20378
+ vue.unref(getProps).isUseDefaultEditAction ? (vue.openBlock(), vue.createBlock(_sfc_main$1, {
20379
+ key: 0,
20380
+ row: config.row,
20381
+ onEditEnsure: ($event) => handleEditEnsure(config.row),
20382
+ onEditCancel: ($event) => handleEditCancel(config.row),
20383
+ onUpdateStatusEdit: (isEdit) => {
20384
+ config.row._isEdit = isEdit;
20385
+ }
20386
+ }, null, 8, ["row", "onEditEnsure", "onEditCancel", "onUpdateStatusEdit"])) : vue.createCommentVNode("", true)
20387
+ ])
20384
20388
  ])
20385
- ])
20386
- ]),
20387
- _: 3
20388
- }, 16)) : vue.createCommentVNode("", true)
20389
- ]),
20389
+ ]),
20390
+ _: 3
20391
+ }, 16)) : vue.createCommentVNode("", true)
20392
+ ];
20393
+ }),
20390
20394
  _: 3
20391
20395
  }, 16, ["data"])
20392
20396
  ], 2),
@@ -36,6 +36,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
36
  isShowRowSelection: {
37
37
  type: BooleanConstructor;
38
38
  required: false;
39
+ default: boolean;
39
40
  };
40
41
  isShowAction: {
41
42
  type: BooleanConstructor;
@@ -499,6 +500,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
499
500
  isShowRowSelection: {
500
501
  type: BooleanConstructor;
501
502
  required: false;
503
+ default: boolean;
502
504
  };
503
505
  isShowAction: {
504
506
  type: BooleanConstructor;
@@ -38,6 +38,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
38
38
  isShowRowSelection: {
39
39
  type: BooleanConstructor;
40
40
  required: false;
41
+ default: boolean;
41
42
  };
42
43
  isShowAction: {
43
44
  type: BooleanConstructor;
@@ -501,6 +502,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
501
502
  isShowRowSelection: {
502
503
  type: BooleanConstructor;
503
504
  required: false;
505
+ default: boolean;
504
506
  };
505
507
  isShowAction: {
506
508
  type: BooleanConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -45,7 +45,7 @@
45
45
  "minor": "npm version minor",
46
46
  "patch": "npm version patch",
47
47
  "deploy": "npm run build && npm publish",
48
- "build": "vite build",
48
+ "build": "export NODE_OPTIONS=--max_old_space_size=8096&&vite build",
49
49
  "build:less": "esno build/buildLess"
50
50
  }
51
51
  }