3h1-ui 2.1.2 → 2.1.4
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 { VxeTable, VxeColumn } from "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: "账号列表",
|
|
@@ -20276,8 +20276,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20276
20276
|
};
|
|
20277
20277
|
emits("register", tableAction, formActions);
|
|
20278
20278
|
return (_ctx, _cache) => {
|
|
20279
|
-
const _component_vxe_column = resolveComponent("vxe-column");
|
|
20280
|
-
const _component_vxe_table = resolveComponent("vxe-table");
|
|
20281
20279
|
return openBlock(), createElementBlock("div", {
|
|
20282
20280
|
class: normalizeClass(getClassName("wrapper"))
|
|
20283
20281
|
}, [
|
|
@@ -20300,7 +20298,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20300
20298
|
createElementVNode("div", {
|
|
20301
20299
|
class: normalizeClass(getClassName("body"))
|
|
20302
20300
|
}, [
|
|
20303
|
-
createVNode(
|
|
20301
|
+
createVNode(unref(VxeTable), mergeProps({
|
|
20304
20302
|
ref_key: "tableRef",
|
|
20305
20303
|
ref: tableRef
|
|
20306
20304
|
}, unref(getBindValues), {
|
|
@@ -20310,25 +20308,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20310
20308
|
onRadioChange: handleRadioChange,
|
|
20311
20309
|
"row-config": { isHover: true },
|
|
20312
20310
|
"show-overflow": "",
|
|
20313
|
-
"column-config": { resizable: true }
|
|
20314
|
-
"edit-config": { trigger: "manual", mode: "row" }
|
|
20311
|
+
"column-config": { resizable: true }
|
|
20315
20312
|
}), {
|
|
20316
20313
|
default: withCtx(() => {
|
|
20317
20314
|
var _a2, _b, _c, _d, _e, _f;
|
|
20318
20315
|
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(
|
|
20316
|
+
((_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(unref(VxeColumn), {
|
|
20320
20317
|
key: 0,
|
|
20321
20318
|
type: "checkbox",
|
|
20322
20319
|
width: "60",
|
|
20323
20320
|
align: "center"
|
|
20324
20321
|
})) : 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(
|
|
20322
|
+
((_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(unref(VxeColumn), {
|
|
20326
20323
|
key: 1,
|
|
20327
20324
|
type: "radio",
|
|
20328
20325
|
width: "60",
|
|
20329
20326
|
align: "center"
|
|
20330
20327
|
})) : createCommentVNode("", true),
|
|
20331
|
-
unref(getProps).isShowSeq ? (openBlock(), createBlock(
|
|
20328
|
+
unref(getProps).isShowSeq ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
20332
20329
|
key: 2,
|
|
20333
20330
|
type: "seq",
|
|
20334
20331
|
width: "60",
|
|
@@ -20336,7 +20333,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20336
20333
|
title: "序号"
|
|
20337
20334
|
})) : createCommentVNode("", true),
|
|
20338
20335
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumns), (column, index2) => {
|
|
20339
|
-
return openBlock(), createBlock(
|
|
20336
|
+
return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
|
|
20340
20337
|
"edit-render": (column == null ? void 0 : column.editRender) || void 0
|
|
20341
20338
|
}), {
|
|
20342
20339
|
default: withCtx((config) => [
|
|
@@ -20364,7 +20361,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20364
20361
|
_: 2
|
|
20365
20362
|
}, 1040, ["edit-render"]);
|
|
20366
20363
|
}), 128)),
|
|
20367
|
-
unref(getProps).isShowAction ? (openBlock(), createBlock(
|
|
20364
|
+
unref(getProps).isShowAction ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
|
|
20368
20365
|
key: 3,
|
|
20369
20366
|
title: "操作",
|
|
20370
20367
|
field: "action",
|
|
@@ -20449,17 +20446,13 @@ function useTablePlus(tableProps) {
|
|
|
20449
20446
|
};
|
|
20450
20447
|
return [register, methods2];
|
|
20451
20448
|
}
|
|
20452
|
-
function useTable(app) {
|
|
20453
|
-
app.use(VXETable, {});
|
|
20454
|
-
}
|
|
20455
20449
|
const withInstall = (comp) => {
|
|
20456
|
-
comp.install = (app, options) => {
|
|
20457
|
-
app.use(useTable);
|
|
20450
|
+
comp.install = (app, options = {}) => {
|
|
20458
20451
|
app.component("TablePlus", comp);
|
|
20459
20452
|
};
|
|
20460
20453
|
return comp;
|
|
20461
20454
|
};
|
|
20462
|
-
|
|
20455
|
+
withInstall(_sfc_main);
|
|
20463
20456
|
export {
|
|
20464
20457
|
ApiCascader,
|
|
20465
20458
|
ApiModalSelect,
|
|
@@ -20505,7 +20498,7 @@ export {
|
|
|
20505
20498
|
Table as TableChildren,
|
|
20506
20499
|
TableDict,
|
|
20507
20500
|
TableImg,
|
|
20508
|
-
TablePlus,
|
|
20501
|
+
_sfc_main as TablePlus,
|
|
20509
20502
|
ToolbarEnum,
|
|
20510
20503
|
createLoading,
|
|
20511
20504
|
treeEmits,
|
|
@@ -20519,6 +20512,6 @@ export {
|
|
|
20519
20512
|
useModal,
|
|
20520
20513
|
useModalContext,
|
|
20521
20514
|
useModalInner,
|
|
20522
|
-
useTable
|
|
20515
|
+
useTable,
|
|
20523
20516
|
useTablePlus
|
|
20524
20517
|
};
|
|
@@ -141,6 +141,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
141
141
|
getTableData: () => any[];
|
|
142
142
|
};
|
|
143
143
|
readonly BasicForm: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
144
|
+
readonly VxeTable: import("vxe-table").VXEComponent<import("vxe-table").VxeTableProps<any>, import("vxe-table").VxeTableEventProps>;
|
|
145
|
+
readonly VxeColumn: import("vxe-table").VXEComponent<VxeColumnProps, {}>;
|
|
144
146
|
readonly Pagination: {
|
|
145
147
|
new (...args: any[]): {
|
|
146
148
|
$: import("vue").ComponentInternalInstance;
|