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