3h1-ui 2.1.1 → 2.1.3
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
|
@@ -6,7 +6,7 @@ import { zxcvbn } from "@zxcvbn-ts/core";
|
|
|
6
6
|
import Iconify from "@purge-icons/generated";
|
|
7
7
|
import Sortablejs from "sortablejs";
|
|
8
8
|
import "xe-utils";
|
|
9
|
-
import
|
|
9
|
+
import "vxe-table";
|
|
10
10
|
const windiBase = "";
|
|
11
11
|
const windiComponents = "";
|
|
12
12
|
const windiUtilities = "";
|
|
@@ -15294,7 +15294,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15294
15294
|
}
|
|
15295
15295
|
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8], ["__scopeId", "data-v-b15bfa99"]]);
|
|
15296
15296
|
const index$1 = "";
|
|
15297
|
-
function useTable
|
|
15297
|
+
function useTable(tableProps) {
|
|
15298
15298
|
const tableRef = ref(null);
|
|
15299
15299
|
const loadedRef = ref(false);
|
|
15300
15300
|
const formRef = ref(null);
|
|
@@ -15436,7 +15436,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15436
15436
|
__name: "Table",
|
|
15437
15437
|
setup(__props, { expose }) {
|
|
15438
15438
|
const getTableProps = inject("getTableProps");
|
|
15439
|
-
const [registerTable, tableAction] = useTable
|
|
15439
|
+
const [registerTable, tableAction] = useTable({
|
|
15440
15440
|
api: () => {
|
|
15441
15441
|
},
|
|
15442
15442
|
title: "账号列表",
|
|
@@ -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
|
-
|
|
20318
|
-
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
|
|
20331
|
-
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
|
|
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
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
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
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20387
|
+
]),
|
|
20388
|
+
_: 3
|
|
20389
|
+
}, 16)) : createCommentVNode("", true)
|
|
20390
|
+
];
|
|
20391
|
+
}),
|
|
20388
20392
|
_: 3
|
|
20389
20393
|
}, 16, ["data"])
|
|
20390
20394
|
], 2),
|
|
@@ -20445,17 +20449,13 @@ function useTablePlus(tableProps) {
|
|
|
20445
20449
|
};
|
|
20446
20450
|
return [register, methods2];
|
|
20447
20451
|
}
|
|
20448
|
-
function useTable(app) {
|
|
20449
|
-
app.use(VXETable, {});
|
|
20450
|
-
}
|
|
20451
20452
|
const withInstall = (comp) => {
|
|
20452
|
-
comp.install = (app, options) => {
|
|
20453
|
-
app.use(useTable);
|
|
20453
|
+
comp.install = (app, options = {}) => {
|
|
20454
20454
|
app.component("TablePlus", comp);
|
|
20455
20455
|
};
|
|
20456
20456
|
return comp;
|
|
20457
20457
|
};
|
|
20458
|
-
const
|
|
20458
|
+
const registerTablePlus = withInstall(_sfc_main);
|
|
20459
20459
|
export {
|
|
20460
20460
|
ApiCascader,
|
|
20461
20461
|
ApiModalSelect,
|
|
@@ -20501,9 +20501,10 @@ export {
|
|
|
20501
20501
|
Table as TableChildren,
|
|
20502
20502
|
TableDict,
|
|
20503
20503
|
TableImg,
|
|
20504
|
-
TablePlus,
|
|
20504
|
+
_sfc_main as TablePlus,
|
|
20505
20505
|
ToolbarEnum,
|
|
20506
20506
|
createLoading,
|
|
20507
|
+
registerTablePlus,
|
|
20507
20508
|
treeEmits,
|
|
20508
20509
|
treeProps,
|
|
20509
20510
|
useComponentRegister,
|
|
@@ -20515,6 +20516,6 @@ export {
|
|
|
20515
20516
|
useModal,
|
|
20516
20517
|
useModalContext,
|
|
20517
20518
|
useModalInner,
|
|
20518
|
-
useTable
|
|
20519
|
+
useTable,
|
|
20519
20520
|
useTablePlus
|
|
20520
20521
|
};
|
|
@@ -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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import TablePlus from './TablePlus.vue';
|
|
1
2
|
export * from './hooks';
|
|
2
3
|
import { Plugin } from 'vue';
|
|
3
4
|
declare type SFCWithInstall<T> = T & Plugin;
|
|
4
|
-
declare const
|
|
5
|
+
declare const registerTablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
5
6
|
api: {
|
|
6
7
|
type: any;
|
|
7
8
|
required: false;
|
|
@@ -38,6 +39,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
38
39
|
isShowRowSelection: {
|
|
39
40
|
type: BooleanConstructor;
|
|
40
41
|
required: false;
|
|
42
|
+
default: boolean;
|
|
41
43
|
};
|
|
42
44
|
isShowAction: {
|
|
43
45
|
type: BooleanConstructor;
|
|
@@ -501,6 +503,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
501
503
|
isShowRowSelection: {
|
|
502
504
|
type: BooleanConstructor;
|
|
503
505
|
required: false;
|
|
506
|
+
default: boolean;
|
|
504
507
|
};
|
|
505
508
|
isShowAction: {
|
|
506
509
|
type: BooleanConstructor;
|
|
@@ -577,4 +580,4 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
577
580
|
transSearchInfoBeforeReload: any;
|
|
578
581
|
isUseEdit: boolean;
|
|
579
582
|
}>>;
|
|
580
|
-
export { TablePlus };
|
|
583
|
+
export { TablePlus, registerTablePlus };
|
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const core = require("@zxcvbn-ts/core");
|
|
|
8
8
|
const Iconify = require("@purge-icons/generated");
|
|
9
9
|
const Sortablejs = require("sortablejs");
|
|
10
10
|
require("xe-utils");
|
|
11
|
-
|
|
11
|
+
require("vxe-table");
|
|
12
12
|
const windiBase = "";
|
|
13
13
|
const windiComponents = "";
|
|
14
14
|
const windiUtilities = "";
|
|
@@ -15296,7 +15296,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15296
15296
|
}
|
|
15297
15297
|
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8], ["__scopeId", "data-v-b15bfa99"]]);
|
|
15298
15298
|
const index$1 = "";
|
|
15299
|
-
function useTable
|
|
15299
|
+
function useTable(tableProps) {
|
|
15300
15300
|
const tableRef = vue.ref(null);
|
|
15301
15301
|
const loadedRef = vue.ref(false);
|
|
15302
15302
|
const formRef = vue.ref(null);
|
|
@@ -15438,7 +15438,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
15438
15438
|
__name: "Table",
|
|
15439
15439
|
setup(__props, { expose }) {
|
|
15440
15440
|
const getTableProps = vue.inject("getTableProps");
|
|
15441
|
-
const [registerTable, tableAction] = useTable
|
|
15441
|
+
const [registerTable, tableAction] = useTable({
|
|
15442
15442
|
api: () => {
|
|
15443
15443
|
},
|
|
15444
15444
|
title: "账号列表",
|
|
@@ -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
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
|
|
20331
|
-
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
|
|
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.
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
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
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20389
|
+
]),
|
|
20390
|
+
_: 3
|
|
20391
|
+
}, 16)) : vue.createCommentVNode("", true)
|
|
20392
|
+
];
|
|
20393
|
+
}),
|
|
20390
20394
|
_: 3
|
|
20391
20395
|
}, 16, ["data"])
|
|
20392
20396
|
], 2),
|
|
@@ -20447,17 +20451,13 @@ function useTablePlus(tableProps) {
|
|
|
20447
20451
|
};
|
|
20448
20452
|
return [register, methods2];
|
|
20449
20453
|
}
|
|
20450
|
-
function useTable(app) {
|
|
20451
|
-
app.use(VXETable, {});
|
|
20452
|
-
}
|
|
20453
20454
|
const withInstall = (comp) => {
|
|
20454
|
-
comp.install = (app, options) => {
|
|
20455
|
-
app.use(useTable);
|
|
20455
|
+
comp.install = (app, options = {}) => {
|
|
20456
20456
|
app.component("TablePlus", comp);
|
|
20457
20457
|
};
|
|
20458
20458
|
return comp;
|
|
20459
20459
|
};
|
|
20460
|
-
const
|
|
20460
|
+
const registerTablePlus = withInstall(_sfc_main);
|
|
20461
20461
|
exports.ApiCascader = ApiCascader;
|
|
20462
20462
|
exports.ApiModalSelect = ApiModalSelect;
|
|
20463
20463
|
exports.ApiRadioGroup = ApiRadioGroup;
|
|
@@ -20502,9 +20502,10 @@ exports.TableAction = TableAction;
|
|
|
20502
20502
|
exports.TableChildren = Table;
|
|
20503
20503
|
exports.TableDict = TableDict;
|
|
20504
20504
|
exports.TableImg = TableImg;
|
|
20505
|
-
exports.TablePlus =
|
|
20505
|
+
exports.TablePlus = _sfc_main;
|
|
20506
20506
|
exports.ToolbarEnum = ToolbarEnum;
|
|
20507
20507
|
exports.createLoading = createLoading;
|
|
20508
|
+
exports.registerTablePlus = registerTablePlus;
|
|
20508
20509
|
exports.treeEmits = treeEmits;
|
|
20509
20510
|
exports.treeProps = treeProps;
|
|
20510
20511
|
exports.useComponentRegister = useComponentRegister;
|
|
@@ -20516,5 +20517,5 @@ exports.useLoading = useLoading;
|
|
|
20516
20517
|
exports.useModal = useModal;
|
|
20517
20518
|
exports.useModalContext = useModalContext;
|
|
20518
20519
|
exports.useModalInner = useModalInner;
|
|
20519
|
-
exports.useTable = useTable
|
|
20520
|
+
exports.useTable = useTable;
|
|
20520
20521
|
exports.useTablePlus = useTablePlus;
|
|
@@ -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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import TablePlus from './TablePlus.vue';
|
|
1
2
|
export * from './hooks';
|
|
2
3
|
import { Plugin } from 'vue';
|
|
3
4
|
declare type SFCWithInstall<T> = T & Plugin;
|
|
4
|
-
declare const
|
|
5
|
+
declare const registerTablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
5
6
|
api: {
|
|
6
7
|
type: any;
|
|
7
8
|
required: false;
|
|
@@ -38,6 +39,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
38
39
|
isShowRowSelection: {
|
|
39
40
|
type: BooleanConstructor;
|
|
40
41
|
required: false;
|
|
42
|
+
default: boolean;
|
|
41
43
|
};
|
|
42
44
|
isShowAction: {
|
|
43
45
|
type: BooleanConstructor;
|
|
@@ -501,6 +503,7 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
501
503
|
isShowRowSelection: {
|
|
502
504
|
type: BooleanConstructor;
|
|
503
505
|
required: false;
|
|
506
|
+
default: boolean;
|
|
504
507
|
};
|
|
505
508
|
isShowAction: {
|
|
506
509
|
type: BooleanConstructor;
|
|
@@ -577,4 +580,4 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
577
580
|
transSearchInfoBeforeReload: any;
|
|
578
581
|
isUseEdit: boolean;
|
|
579
582
|
}>>;
|
|
580
|
-
export { TablePlus };
|
|
583
|
+
export { TablePlus, registerTablePlus };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
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
|
}
|