3h1-ui 2.1.0 → 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
@@ -10,6 +10,7 @@ import VXETable from "vxe-table";
10
10
  const windiBase = "";
11
11
  const windiComponents = "";
12
12
  const windiUtilities = "";
13
+ const antd_min = "";
13
14
  function bound01(n, max) {
14
15
  if (isOnePointZero(n)) {
15
16
  n = "100%";
@@ -20142,7 +20143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20142
20143
  };
20143
20144
  } },
20144
20145
  isShowSearch: { type: Boolean, default: true },
20145
- isShowRowSelection: { type: Boolean },
20146
+ isShowRowSelection: { type: Boolean, default: true },
20146
20147
  isShowAction: { type: Boolean, default: true },
20147
20148
  isShowPagination: { type: Boolean, default: true },
20148
20149
  isUseDefaultEditAction: { type: Boolean, default: false },
@@ -20312,78 +20313,82 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20312
20313
  "column-config": { resizable: true },
20313
20314
  "edit-config": { trigger: "manual", mode: "row" }
20314
20315
  }), {
20315
- default: withCtx(() => [
20316
- unref(getProps).configRowSelection.type === "checkbox" ? (openBlock(), createBlock(_component_vxe_column, {
20317
- key: 0,
20318
- type: "checkbox",
20319
- width: "60",
20320
- align: "center"
20321
- })) : (openBlock(), createBlock(_component_vxe_column, {
20322
- key: 1,
20323
- type: "radio",
20324
- width: "60",
20325
- align: "center"
20326
- })),
20327
- unref(getProps).isShowSeq ? (openBlock(), createBlock(_component_vxe_column, {
20328
- key: 2,
20329
- type: "seq",
20330
- width: "60",
20331
- align: "center",
20332
- title: "序号"
20333
- })) : createCommentVNode("", true),
20334
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
20335
- return openBlock(), createBlock(_component_vxe_column, mergeProps({ key: index2 }, column, {
20336
- "edit-render": (column == null ? void 0 : column.editRender) || void 0
20337
- }), {
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), {
20338
20373
  default: withCtx((config) => [
20339
- renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
20340
- var _a2, _b;
20341
- return [
20342
- config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 0 }, (column == null ? void 0 : column.editProps) || {}, {
20343
- value: config.row[column.field],
20344
- "onUpdate:value": ($event) => config.row[column.field] = $event
20345
- }), null, 16, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20346
- (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, [
20347
- createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editProps) || {}, {
20348
- value: config.row[column.field],
20349
- "onUpdate:value": ($event) => config.row[column.field] = $event,
20350
- bordered: false,
20351
- showArrow: false,
20352
- open: false,
20353
- popoverVisible: false
20354
- }), null, 16, ["value", "onUpdate:value"])
20355
- ])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(config.row[column.field]), 1))
20356
- ], 64))
20357
- ];
20358
- })
20359
- ]),
20360
- _: 2
20361
- }, 1040, ["edit-render"]);
20362
- }), 128)),
20363
- unref(getProps).isShowAction ? (openBlock(), createBlock(_component_vxe_column, mergeProps({
20364
- key: 3,
20365
- title: "操作",
20366
- field: "action",
20367
- align: "center"
20368
- }, unref(getProps).actionColumn), {
20369
- default: withCtx((config) => [
20370
- createElementVNode("div", _hoisted_3, [
20371
- renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
20372
- unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$1, {
20373
- key: 0,
20374
- row: config.row,
20375
- onEditEnsure: ($event) => handleEditEnsure(config.row),
20376
- onEditCancel: ($event) => handleEditCancel(config.row),
20377
- onUpdateStatusEdit: (isEdit) => {
20378
- config.row._isEdit = isEdit;
20379
- }
20380
- }, 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
+ ])
20381
20386
  ])
20382
- ])
20383
- ]),
20384
- _: 3
20385
- }, 16)) : createCommentVNode("", true)
20386
- ]),
20387
+ ]),
20388
+ _: 3
20389
+ }, 16)) : createCommentVNode("", true)
20390
+ ];
20391
+ }),
20387
20392
  _: 3
20388
20393
  }, 16, ["data"])
20389
20394
  ], 2),