3h1-ui 2.1.2 → 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 +8 -11
- package/es/ui/src/TablePlus/index.d.ts +3 -2
- package/lib/index.js +8 -11
- package/lib/ui/src/TablePlus/index.d.ts +3 -2
- package/package.json +1 -1
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: "账号列表",
|
|
@@ -20449,17 +20449,13 @@ function useTablePlus(tableProps) {
|
|
|
20449
20449
|
};
|
|
20450
20450
|
return [register, methods2];
|
|
20451
20451
|
}
|
|
20452
|
-
function useTable(app) {
|
|
20453
|
-
app.use(VXETable, {});
|
|
20454
|
-
}
|
|
20455
20452
|
const withInstall = (comp) => {
|
|
20456
|
-
comp.install = (app, options) => {
|
|
20457
|
-
app.use(useTable);
|
|
20453
|
+
comp.install = (app, options = {}) => {
|
|
20458
20454
|
app.component("TablePlus", comp);
|
|
20459
20455
|
};
|
|
20460
20456
|
return comp;
|
|
20461
20457
|
};
|
|
20462
|
-
const
|
|
20458
|
+
const registerTablePlus = withInstall(_sfc_main);
|
|
20463
20459
|
export {
|
|
20464
20460
|
ApiCascader,
|
|
20465
20461
|
ApiModalSelect,
|
|
@@ -20505,9 +20501,10 @@ export {
|
|
|
20505
20501
|
Table as TableChildren,
|
|
20506
20502
|
TableDict,
|
|
20507
20503
|
TableImg,
|
|
20508
|
-
TablePlus,
|
|
20504
|
+
_sfc_main as TablePlus,
|
|
20509
20505
|
ToolbarEnum,
|
|
20510
20506
|
createLoading,
|
|
20507
|
+
registerTablePlus,
|
|
20511
20508
|
treeEmits,
|
|
20512
20509
|
treeProps,
|
|
20513
20510
|
useComponentRegister,
|
|
@@ -20519,6 +20516,6 @@ export {
|
|
|
20519
20516
|
useModal,
|
|
20520
20517
|
useModalContext,
|
|
20521
20518
|
useModalInner,
|
|
20522
|
-
useTable
|
|
20519
|
+
useTable,
|
|
20523
20520
|
useTablePlus
|
|
20524
20521
|
};
|
|
@@ -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;
|
|
@@ -579,4 +580,4 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
579
580
|
transSearchInfoBeforeReload: any;
|
|
580
581
|
isUseEdit: boolean;
|
|
581
582
|
}>>;
|
|
582
|
-
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: "账号列表",
|
|
@@ -20451,17 +20451,13 @@ function useTablePlus(tableProps) {
|
|
|
20451
20451
|
};
|
|
20452
20452
|
return [register, methods2];
|
|
20453
20453
|
}
|
|
20454
|
-
function useTable(app) {
|
|
20455
|
-
app.use(VXETable, {});
|
|
20456
|
-
}
|
|
20457
20454
|
const withInstall = (comp) => {
|
|
20458
|
-
comp.install = (app, options) => {
|
|
20459
|
-
app.use(useTable);
|
|
20455
|
+
comp.install = (app, options = {}) => {
|
|
20460
20456
|
app.component("TablePlus", comp);
|
|
20461
20457
|
};
|
|
20462
20458
|
return comp;
|
|
20463
20459
|
};
|
|
20464
|
-
const
|
|
20460
|
+
const registerTablePlus = withInstall(_sfc_main);
|
|
20465
20461
|
exports.ApiCascader = ApiCascader;
|
|
20466
20462
|
exports.ApiModalSelect = ApiModalSelect;
|
|
20467
20463
|
exports.ApiRadioGroup = ApiRadioGroup;
|
|
@@ -20506,9 +20502,10 @@ exports.TableAction = TableAction;
|
|
|
20506
20502
|
exports.TableChildren = Table;
|
|
20507
20503
|
exports.TableDict = TableDict;
|
|
20508
20504
|
exports.TableImg = TableImg;
|
|
20509
|
-
exports.TablePlus =
|
|
20505
|
+
exports.TablePlus = _sfc_main;
|
|
20510
20506
|
exports.ToolbarEnum = ToolbarEnum;
|
|
20511
20507
|
exports.createLoading = createLoading;
|
|
20508
|
+
exports.registerTablePlus = registerTablePlus;
|
|
20512
20509
|
exports.treeEmits = treeEmits;
|
|
20513
20510
|
exports.treeProps = treeProps;
|
|
20514
20511
|
exports.useComponentRegister = useComponentRegister;
|
|
@@ -20520,5 +20517,5 @@ exports.useLoading = useLoading;
|
|
|
20520
20517
|
exports.useModal = useModal;
|
|
20521
20518
|
exports.useModalContext = useModalContext;
|
|
20522
20519
|
exports.useModalInner = useModalInner;
|
|
20523
|
-
exports.useTable = useTable
|
|
20520
|
+
exports.useTable = useTable;
|
|
20524
20521
|
exports.useTablePlus = useTablePlus;
|
|
@@ -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;
|
|
@@ -579,4 +580,4 @@ declare const TablePlus: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
579
580
|
transSearchInfoBeforeReload: any;
|
|
580
581
|
isUseEdit: boolean;
|
|
581
582
|
}>>;
|
|
582
|
-
export { TablePlus };
|
|
583
|
+
export { TablePlus, registerTablePlus };
|