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 +76 -71
- package/es/style.css +24115 -0
- package/es/ui/src/TablePlus/TablePlus.vue.d.ts +2 -0
- package/es/ui/src/TablePlus/index.d.ts +2 -0
- package/lib/index.js +76 -71
- package/lib/ui/src/TablePlus/TablePlus.vue.d.ts +2 -0
- package/lib/ui/src/TablePlus/index.d.ts +2 -0
- package/package.json +2 -2
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
|
-
|
|
20317
|
-
|
|
20318
|
-
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
|
|
20331
|
-
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
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
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
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
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
+
]),
|
|
20388
|
+
_: 3
|
|
20389
|
+
}, 16)) : createCommentVNode("", true)
|
|
20390
|
+
];
|
|
20391
|
+
}),
|
|
20387
20392
|
_: 3
|
|
20388
20393
|
}, 16, ["data"])
|
|
20389
20394
|
], 2),
|