@maxax/ui 1.1.35 → 1.1.36
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/dist/components/basic-tree/BasicTree.vue.d.ts +745 -20
- package/dist/components/basic-tree/BasicTree.vue.d.ts.map +1 -1
- package/dist/components/basic-tree/constants.d.ts +2 -7
- package/dist/components/basic-tree/constants.d.ts.map +1 -1
- package/dist/components/basic-tree/interface.d.ts +23 -16
- package/dist/components/basic-tree/interface.d.ts.map +1 -1
- package/dist/index.cjs +77 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +78 -67
- package/dist/index.mjs.map +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/light.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicTree.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/BasicTree.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BasicTree.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/BasicTree.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAO1C,OAAO,KAAK,EAAkB,cAAc,EAAkB,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2MjF,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
pid: string;
|
|
4
|
-
children: string;
|
|
5
|
-
labelField: string;
|
|
6
|
-
valueField: string;
|
|
7
|
-
};
|
|
1
|
+
import { TransformOption } from './interface';
|
|
2
|
+
export declare const DEFAULT_TRANSFORM_CONFIG: TransformOption;
|
|
8
3
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,wBAAwB,EAAE,eAMtC,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Fn, KeyValueType } from '@maxax/types';
|
|
2
2
|
import { TreeOption } from 'naive-ui';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
interface TransformOption {
|
|
3
|
+
import { TreeInstance, TreeNode, TreeNodeKeyType, TreeProps } from '../tree';
|
|
4
|
+
export interface TransformOption {
|
|
6
5
|
id: string;
|
|
7
6
|
children: string;
|
|
8
7
|
pid: string;
|
|
@@ -10,33 +9,41 @@ interface TransformOption {
|
|
|
10
9
|
labelField: KeyValueType;
|
|
11
10
|
}
|
|
12
11
|
export interface BasicTreeProps {
|
|
13
|
-
value?: TreeVModelType;
|
|
14
12
|
immediate?: boolean;
|
|
15
13
|
api?: Fn;
|
|
16
14
|
beforeFetch?: Fn;
|
|
17
15
|
afterFetch?: Fn;
|
|
18
|
-
transform?: TransformOption;
|
|
16
|
+
transform?: TransformOption | null;
|
|
19
17
|
listField?: string;
|
|
20
|
-
treeConfig?: Omit<
|
|
18
|
+
treeConfig?: Omit<TreeProps, 'data'>;
|
|
21
19
|
}
|
|
22
20
|
export interface BasicTreeEmits {
|
|
23
|
-
'update:value': [TreeVModelType];
|
|
24
21
|
load: [any[]];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
expand: [TreeNode];
|
|
23
|
+
check: [TreeNode];
|
|
24
|
+
uncheck: [TreeNode];
|
|
25
|
+
select: [TreeNode];
|
|
26
|
+
unselect: [TreeNode];
|
|
27
|
+
'set-data': [];
|
|
28
|
+
'check-change': [TreeNode, boolean];
|
|
29
|
+
'selected-change': [TreeNode | null, TreeNodeKeyType | null];
|
|
30
|
+
'checked-change': [TreeNode[], TreeNodeKeyType[]];
|
|
31
|
+
click: [TreeNode, Event];
|
|
32
|
+
'node-dblclick': [TreeNode, Event];
|
|
33
|
+
'node-right-click': [TreeNode, Event];
|
|
34
|
+
'node-dragstart': [TreeNode, DragEvent];
|
|
35
|
+
'node-dragenter': [TreeNode, DragEvent];
|
|
36
|
+
'node-dragover': [TreeNode, DragEvent];
|
|
37
|
+
'node-dragleave': [TreeNode, DragEvent];
|
|
38
|
+
'node-drop': [TreeNode, DragEvent];
|
|
33
39
|
}
|
|
34
40
|
export interface BasicTreeContext {
|
|
35
41
|
name: string;
|
|
36
42
|
}
|
|
37
43
|
export interface TreeActionType {
|
|
44
|
+
setTreeData: (data: TreeOption[]) => void;
|
|
38
45
|
getTreeData: () => TreeOption[];
|
|
46
|
+
instance: () => TreeInstance | null;
|
|
39
47
|
load: () => Promise<void>;
|
|
40
48
|
}
|
|
41
|
-
export {};
|
|
42
49
|
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/components/basic-tree/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEjF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,YAAY,CAAA;IACxB,UAAU,EAAE,YAAY,CAAA;CACzB;AAED,MAAM,WAAW,cAAc;IAE7B,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB,GAAG,CAAC,EAAE,EAAE,CAAA;IAER,WAAW,CAAC,EAAE,EAAE,CAAA;IAEhB,UAAU,CAAC,EAAE,EAAE,CAAA;IAEf,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAElC,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;IAEb,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAA;IAClB,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAA;IACjB,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAA;IACnB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAA;IAClB,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAA;IACpB,UAAU,EAAE,EAAE,CAAA;IACd,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IACnC,iBAAiB,EAAE,CAAC,QAAQ,GAAG,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC,CAAA;IAC5D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE,eAAe,EAAE,CAAC,CAAA;IACjD,KAAK,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IACxB,eAAe,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IAClC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IACrC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACvC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACvC,eAAe,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACtC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACvC,WAAW,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACzC,WAAW,EAAE,MAAM,UAAU,EAAE,CAAA;IAC/B,QAAQ,EAAE,MAAM,YAAY,GAAG,IAAI,CAAA;IACnC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1B"}
|
package/dist/index.cjs
CHANGED
|
@@ -2853,7 +2853,7 @@ const Icon = vue.defineComponent((props, { emit }) => {
|
|
|
2853
2853
|
],
|
|
2854
2854
|
emits: ["load"]
|
|
2855
2855
|
});
|
|
2856
|
-
const _hoisted_1$
|
|
2856
|
+
const _hoisted_1$d = ["xlink:href"];
|
|
2857
2857
|
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
2858
2858
|
__name: "BasicSvgIcon",
|
|
2859
2859
|
props: {
|
|
@@ -2888,7 +2888,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2888
2888
|
vue.createElementVNode("use", {
|
|
2889
2889
|
"xlink:href": symbolId.value,
|
|
2890
2890
|
fill: "currentColor"
|
|
2891
|
-
}, null, 8, _hoisted_1$
|
|
2891
|
+
}, null, 8, _hoisted_1$d)
|
|
2892
2892
|
], 16)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2893
2893
|
__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(Icon), vue.mergeProps({
|
|
2894
2894
|
key: 0,
|
|
@@ -3625,7 +3625,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
return target;
|
|
3627
3627
|
};
|
|
3628
|
-
const _hoisted_1$
|
|
3628
|
+
const _hoisted_1$c = ["aria-label", "aria-describedby"];
|
|
3629
3629
|
const _hoisted_2$4 = ["id"];
|
|
3630
3630
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3631
3631
|
const _component_BasicSvgIcon = vue.resolveComponent("BasicSvgIcon");
|
|
@@ -3783,7 +3783,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3783
3783
|
])
|
|
3784
3784
|
], 2)
|
|
3785
3785
|
], 6)
|
|
3786
|
-
], 42, _hoisted_1$
|
|
3786
|
+
], 42, _hoisted_1$c)
|
|
3787
3787
|
]),
|
|
3788
3788
|
_: 3
|
|
3789
3789
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
@@ -4263,7 +4263,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
4265
4265
|
});
|
|
4266
|
-
const _hoisted_1$
|
|
4266
|
+
const _hoisted_1$b = ["multiple", "name", "accept"];
|
|
4267
4267
|
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
4268
4268
|
__name: "BasicButtonImport",
|
|
4269
4269
|
props: {
|
|
@@ -4351,7 +4351,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
4351
4351
|
accept: __props.accept,
|
|
4352
4352
|
style: vue.normalizeStyle(buttonStyle.value),
|
|
4353
4353
|
onChange: onFileChange
|
|
4354
|
-
}, null, 44, _hoisted_1$
|
|
4354
|
+
}, null, 44, _hoisted_1$b)),
|
|
4355
4355
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4356
4356
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("max.basic.import")), 1)
|
|
4357
4357
|
])
|
|
@@ -4394,7 +4394,7 @@ const XBasicButtonImport = utils.withInstall(_sfc_main$L);
|
|
|
4394
4394
|
const XBasicButtonPrint = utils.withInstall(_sfc_main$K);
|
|
4395
4395
|
const XBasicButtonDrop = utils.withInstall(_sfc_main$P);
|
|
4396
4396
|
const XBasicButtonExportDrop = utils.withInstall(_sfc_main$M);
|
|
4397
|
-
const _hoisted_1$
|
|
4397
|
+
const _hoisted_1$a = ["id"];
|
|
4398
4398
|
const _hoisted_2$3 = ["textContent"];
|
|
4399
4399
|
const _hoisted_3 = { key: 0 };
|
|
4400
4400
|
const _hoisted_4 = ["innerHTML"];
|
|
@@ -4534,7 +4534,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
4534
4534
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
4535
4535
|
])
|
|
4536
4536
|
], 2)
|
|
4537
|
-
], 46, _hoisted_1$
|
|
4537
|
+
], 46, _hoisted_1$a), [
|
|
4538
4538
|
[vue.vShow, visible.value]
|
|
4539
4539
|
])
|
|
4540
4540
|
]),
|
|
@@ -6076,7 +6076,7 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
6076
6076
|
handleSearchInfoReload
|
|
6077
6077
|
};
|
|
6078
6078
|
}
|
|
6079
|
-
const _hoisted_1$
|
|
6079
|
+
const _hoisted_1$9 = { class: "max-table-selection-count" };
|
|
6080
6080
|
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
6081
6081
|
__name: "BasicTable",
|
|
6082
6082
|
props: {
|
|
@@ -6526,7 +6526,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
6526
6526
|
class: vue.normalizeClass(vue.unref(e)("selection-count"))
|
|
6527
6527
|
}, [
|
|
6528
6528
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.selected")), 1),
|
|
6529
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
6529
|
+
vue.createElementVNode("span", _hoisted_1$9, vue.toDisplayString(vue.unref(getSelectRows)().length), 1),
|
|
6530
6530
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.item")), 1)
|
|
6531
6531
|
], 2)
|
|
6532
6532
|
], 2)) : vue.createCommentVNode("", true),
|
|
@@ -8375,7 +8375,7 @@ const BasicUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
8375
8375
|
}
|
|
8376
8376
|
});
|
|
8377
8377
|
const XBasicUpload = utils.withInstall(BasicUpload);
|
|
8378
|
-
const _hoisted_1$
|
|
8378
|
+
const _hoisted_1$8 = { key: 0 };
|
|
8379
8379
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
8380
8380
|
__name: "BasicButtonImportUploadModal",
|
|
8381
8381
|
props: {
|
|
@@ -8442,7 +8442,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
8442
8442
|
vue.createElementVNode("div", {
|
|
8443
8443
|
class: vue.normalizeClass(vue.unref(em)("footer-left"))
|
|
8444
8444
|
}, [
|
|
8445
|
-
props.showCoverSwitch ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
8445
|
+
props.showCoverSwitch ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$8, [
|
|
8446
8446
|
vue.createElementVNode("span", {
|
|
8447
8447
|
class: vue.normalizeClass([vue.unref(em)("footer-text"), { [vue.unref(em)("footer-text--checked")]: checked.value }])
|
|
8448
8448
|
}, vue.toDisplayString(vue.unref(t)("max.import.updateExisting")), 3),
|
|
@@ -8721,7 +8721,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
8721
8721
|
}
|
|
8722
8722
|
});
|
|
8723
8723
|
const XBasicButtonImportMax = utils.withInstall(_sfc_main$C);
|
|
8724
|
-
const _hoisted_1$
|
|
8724
|
+
const _hoisted_1$7 = ["title"];
|
|
8725
8725
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
8726
8726
|
__name: "BasicText",
|
|
8727
8727
|
props: {
|
|
@@ -8769,7 +8769,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
8769
8769
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8770
8770
|
vue.createTextVNode(vue.toDisplayString(vue.unref(mergedValueRef)), 1)
|
|
8771
8771
|
])
|
|
8772
|
-
], 10, _hoisted_1$
|
|
8772
|
+
], 10, _hoisted_1$7);
|
|
8773
8773
|
};
|
|
8774
8774
|
}
|
|
8775
8775
|
});
|
|
@@ -10227,7 +10227,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
10227
10227
|
}
|
|
10228
10228
|
});
|
|
10229
10229
|
const XBasicTitle = utils.withInstall(_sfc_main$t);
|
|
10230
|
-
const _hoisted_1$
|
|
10230
|
+
const _hoisted_1$6 = {
|
|
10231
10231
|
key: 0,
|
|
10232
10232
|
class: "footer-wrapper"
|
|
10233
10233
|
};
|
|
@@ -10365,7 +10365,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
10365
10365
|
!_ctx.$slots.footer ? {
|
|
10366
10366
|
name: "footer",
|
|
10367
10367
|
fn: vue.withCtx(() => [
|
|
10368
|
-
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10368
|
+
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
10369
10369
|
vue.renderSlot(_ctx.$slots, "before-footer"),
|
|
10370
10370
|
__props.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), {
|
|
10371
10371
|
key: 0,
|
|
@@ -10413,7 +10413,7 @@ const createBasicEditBatchContext = (props) => {
|
|
|
10413
10413
|
const useBasicEditBatchContext = () => {
|
|
10414
10414
|
return vue.inject(basicEditBatchKey);
|
|
10415
10415
|
};
|
|
10416
|
-
const _hoisted_1$
|
|
10416
|
+
const _hoisted_1$5 = ["disabled"];
|
|
10417
10417
|
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
10418
10418
|
__name: "EditBatchAction",
|
|
10419
10419
|
props: {
|
|
@@ -10470,7 +10470,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
10470
10470
|
_: 1
|
|
10471
10471
|
}, 16, ["class", "onClick"])) : vue.createCommentVNode("", true),
|
|
10472
10472
|
vue.renderSlot(_ctx.$slots, "submitAfter")
|
|
10473
|
-
], 10, _hoisted_1$
|
|
10473
|
+
], 10, _hoisted_1$5);
|
|
10474
10474
|
};
|
|
10475
10475
|
}
|
|
10476
10476
|
});
|
|
@@ -17687,7 +17687,7 @@ const IconJson = {
|
|
|
17687
17687
|
"yin-yang"
|
|
17688
17688
|
]
|
|
17689
17689
|
};
|
|
17690
|
-
const _hoisted_1$
|
|
17690
|
+
const _hoisted_1$4 = { class: "panel-icon-list" };
|
|
17691
17691
|
const _hoisted_2$2 = ["title", "onClick"];
|
|
17692
17692
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
17693
17693
|
__name: "BasicIconPicker",
|
|
@@ -17852,7 +17852,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
17852
17852
|
class: vue.normalizeClass(vue.unref(e)("scrollbar"))
|
|
17853
17853
|
}, {
|
|
17854
17854
|
default: vue.withCtx(() => [
|
|
17855
|
-
vue.createElementVNode("ul", _hoisted_1$
|
|
17855
|
+
vue.createElementVNode("ul", _hoisted_1$4, [
|
|
17856
17856
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageList.value, (item, key2) => {
|
|
17857
17857
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
17858
17858
|
key: key2,
|
|
@@ -24194,12 +24194,15 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
24194
24194
|
}
|
|
24195
24195
|
});
|
|
24196
24196
|
const XBasicTag = utils.withInstall(_sfc_main$a);
|
|
24197
|
+
const TREE_NODE_EVENTS = ["expand", "check", "click", "select", "node-dblclick", "node-right-click", "node-dragstart", "node-dragenter", "node-dragover", "node-dragleave", "node-drop"];
|
|
24198
|
+
const STORE_EVENTS = ["expand", "select", "unselect", "selected-change", "check", "uncheck", "checked-change", "set-data"];
|
|
24199
|
+
const TREE_EVENTS = [...TREE_NODE_EVENTS, ...STORE_EVENTS];
|
|
24197
24200
|
const _sfc_main$9 = vue.defineComponent({
|
|
24198
24201
|
name: "CLoadingIcon"
|
|
24199
24202
|
});
|
|
24200
|
-
const _hoisted_1$
|
|
24203
|
+
const _hoisted_1$3 = { viewBox: "0 0 50 50" };
|
|
24201
24204
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24202
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
24205
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [
|
|
24203
24206
|
vue.createElementVNode("circle", {
|
|
24204
24207
|
class: "imax-loading-icon__circle",
|
|
24205
24208
|
cx: "25",
|
|
@@ -24302,9 +24305,6 @@ const DEFAULT_TREE_PROPS = {
|
|
|
24302
24305
|
renderNodeAmount: 100,
|
|
24303
24306
|
bufferNodeAmount: 20
|
|
24304
24307
|
};
|
|
24305
|
-
const TREE_NODE_EVENTS = ["expand", "check", "click", "select", "node-dblclick", "node-right-click", "node-dragstart", "node-dragenter", "node-dragover", "node-dragleave", "node-drop"];
|
|
24306
|
-
const STORE_EVENTS = ["expand", "select", "unselect", "selected-change", "check", "uncheck", "checked-change", "set-data"];
|
|
24307
|
-
const TREE_EVENTS = [...TREE_NODE_EVENTS, ...STORE_EVENTS];
|
|
24308
24308
|
const useTreeNodeCls = (props, dragoverRefs) => {
|
|
24309
24309
|
const { dragoverBody, dragoverBefore, dragoverAfter } = dragoverRefs;
|
|
24310
24310
|
const { b } = useNamespace("tree-node");
|
|
@@ -24410,7 +24410,7 @@ const useTreeNodeCls = (props, dragoverRefs) => {
|
|
|
24410
24410
|
titleCls
|
|
24411
24411
|
};
|
|
24412
24412
|
};
|
|
24413
|
-
const _hoisted_1$
|
|
24413
|
+
const _hoisted_1$2 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
|
|
24414
24414
|
const _hoisted_2$1 = ["draggable"];
|
|
24415
24415
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
24416
24416
|
...{
|
|
@@ -24626,7 +24626,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24626
24626
|
"stroke-width": strokeWidth.value,
|
|
24627
24627
|
stroke: showLineParams.value.color,
|
|
24628
24628
|
"stroke-dasharray": strokeDasharray.value
|
|
24629
|
-
}, null, 8, _hoisted_1$
|
|
24629
|
+
}, null, 8, _hoisted_1$2)
|
|
24630
24630
|
], 4);
|
|
24631
24631
|
}), 128)) : vue.createCommentVNode("", true),
|
|
24632
24632
|
vue.createElementVNode("div", {
|
|
@@ -26750,7 +26750,7 @@ const DEFAULT_TREE_SEARCH_PROPS = {
|
|
|
26750
26750
|
searchDebounceTime: 300
|
|
26751
26751
|
};
|
|
26752
26752
|
const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
|
|
26753
|
-
const _hoisted_1$
|
|
26753
|
+
const _hoisted_1$1 = ["placeholder", "disabled"];
|
|
26754
26754
|
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
26755
26755
|
...{
|
|
26756
26756
|
name: "VTreeSearch",
|
|
@@ -27008,7 +27008,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27008
27008
|
placeholder: placeholder.value,
|
|
27009
27009
|
disabled: __props.searchDisabled,
|
|
27010
27010
|
onInput: handleSearch
|
|
27011
|
-
}, null, 42, _hoisted_1$
|
|
27011
|
+
}, null, 42, _hoisted_1$1), [
|
|
27012
27012
|
[vue.vModelText, keyword.value]
|
|
27013
27013
|
])
|
|
27014
27014
|
])
|
|
@@ -27069,31 +27069,32 @@ const DEFAULT_TRANSFORM_CONFIG = {
|
|
|
27069
27069
|
labelField: "deptName",
|
|
27070
27070
|
valueField: "id"
|
|
27071
27071
|
};
|
|
27072
|
-
const _hoisted_1$1 = { key: 0 };
|
|
27073
27072
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
27074
27073
|
__name: "BasicTree",
|
|
27075
27074
|
props: {
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
transform: {},
|
|
27075
|
+
immediate: { type: Boolean, default: true },
|
|
27076
|
+
api: {},
|
|
27077
|
+
beforeFetch: {},
|
|
27078
|
+
afterFetch: {},
|
|
27079
|
+
transform: { default: () => DEFAULT_TRANSFORM_CONFIG },
|
|
27082
27080
|
listField: {},
|
|
27083
27081
|
treeConfig: {}
|
|
27084
27082
|
},
|
|
27085
|
-
emits: ["
|
|
27083
|
+
emits: ["load", "expand", "check", "uncheck", "select", "unselect", "set-data", "check-change", "selected-change", "checked-change", "click", "node-dblclick", "node-right-click", "node-dragstart", "node-dragenter", "node-dragover", "node-dragleave", "node-drop"],
|
|
27086
27084
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27087
27085
|
const props = __props;
|
|
27088
27086
|
const emit = __emit;
|
|
27087
|
+
const slots = vue.useSlots();
|
|
27089
27088
|
const { b, e } = useNamespace("basic-tree");
|
|
27090
|
-
const
|
|
27091
|
-
|
|
27092
|
-
() =>
|
|
27093
|
-
|
|
27094
|
-
|
|
27089
|
+
const treeRef = vue.useTemplateRef("treeRef");
|
|
27090
|
+
const treeListeners = TREE_EVENTS.reduce(
|
|
27091
|
+
(prev, eventName) => {
|
|
27092
|
+
prev[eventName] = (...args) => {
|
|
27093
|
+
emit(eventName, ...args);
|
|
27094
|
+
};
|
|
27095
|
+
return prev;
|
|
27095
27096
|
},
|
|
27096
|
-
{
|
|
27097
|
+
{}
|
|
27097
27098
|
);
|
|
27098
27099
|
const treeConfig = vue.computed(() => ({
|
|
27099
27100
|
immediate: true,
|
|
@@ -27102,13 +27103,14 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27102
27103
|
keyField: "value",
|
|
27103
27104
|
titleField: "label",
|
|
27104
27105
|
selectable: true,
|
|
27106
|
+
showLeftArrow: true,
|
|
27107
|
+
showRightArrow: false,
|
|
27105
27108
|
...props.treeConfig || {}
|
|
27106
27109
|
}));
|
|
27107
27110
|
const treeArray = vue.ref([]);
|
|
27108
27111
|
const loading = vue.ref(true);
|
|
27109
27112
|
async function fetch2() {
|
|
27110
27113
|
const { api, beforeFetch, afterFetch, transform, listField = "resultList" } = props;
|
|
27111
|
-
console.log(props);
|
|
27112
27114
|
if (!api) return;
|
|
27113
27115
|
loading.value = true;
|
|
27114
27116
|
const params = beforeFetch ? await beforeFetch() : {};
|
|
@@ -27116,18 +27118,20 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27116
27118
|
const isArrayResult = Array.isArray(res.data);
|
|
27117
27119
|
let resultItems = isArrayResult ? res.data : lodashEs.get(res.data, listField);
|
|
27118
27120
|
resultItems = afterFetch ? await afterFetch(resultItems) : resultItems;
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
+
if (transform) {
|
|
27122
|
+
resultItems = utils.listToTree(resultItems, { ...transform || {} });
|
|
27123
|
+
}
|
|
27124
|
+
setTreeData(resultItems);
|
|
27121
27125
|
loading.value = false;
|
|
27122
|
-
emit("load",
|
|
27126
|
+
emit("load", resultItems);
|
|
27123
27127
|
}
|
|
27124
27128
|
function getTreeData() {
|
|
27125
|
-
return treeArray.value;
|
|
27129
|
+
return treeArray.value || [];
|
|
27126
27130
|
}
|
|
27127
|
-
function
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
+
function setTreeData(data = []) {
|
|
27132
|
+
var _a;
|
|
27133
|
+
treeArray.value = data;
|
|
27134
|
+
(_a = treeRef.value) == null ? void 0 : _a.setData(treeArray.value);
|
|
27131
27135
|
}
|
|
27132
27136
|
vue.onMounted(() => {
|
|
27133
27137
|
useTimeoutFn(() => {
|
|
@@ -27136,30 +27140,37 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27136
27140
|
});
|
|
27137
27141
|
const treeAction = {
|
|
27138
27142
|
getTreeData,
|
|
27143
|
+
setTreeData,
|
|
27144
|
+
instance: () => treeRef.value,
|
|
27139
27145
|
load: fetch2
|
|
27140
27146
|
};
|
|
27141
27147
|
__expose({
|
|
27142
|
-
...treeAction
|
|
27148
|
+
...treeAction,
|
|
27149
|
+
treeRef
|
|
27143
27150
|
});
|
|
27144
27151
|
return (_ctx, _cache) => {
|
|
27145
27152
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
27146
27153
|
class: vue.normalizeClass(vue.unref(b)())
|
|
27147
27154
|
}, [
|
|
27148
|
-
|
|
27149
|
-
vue.createVNode(vue.unref(naiveUi.NSkeleton), {
|
|
27150
|
-
text: "",
|
|
27151
|
-
repeat: 8
|
|
27152
|
-
})
|
|
27153
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
27154
|
-
key: 1,
|
|
27155
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
27155
27156
|
class: vue.normalizeClass(vue.unref(e)("wrapper"))
|
|
27156
27157
|
}, [
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27158
|
+
vue.createVNode(vue.unref(XTreeSearch), vue.mergeProps({
|
|
27159
|
+
ref_key: "treeRef",
|
|
27160
|
+
ref: treeRef
|
|
27161
|
+
}, treeConfig.value, vue.toHandlers(vue.unref(treeListeners))), vue.createSlots({ _: 2 }, [
|
|
27162
|
+
vue.renderList(Object.keys(vue.unref(slots)), (slot) => {
|
|
27163
|
+
return {
|
|
27164
|
+
name: slot,
|
|
27165
|
+
fn: vue.withCtx((scope) => [
|
|
27166
|
+
vue.renderSlot(_ctx.$slots, slot, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
27167
|
+
])
|
|
27168
|
+
};
|
|
27169
|
+
})
|
|
27170
|
+
]), 1040)
|
|
27171
|
+
], 2)), [
|
|
27172
|
+
[vue.unref(vLoading), loading.value]
|
|
27173
|
+
])
|
|
27163
27174
|
], 2);
|
|
27164
27175
|
};
|
|
27165
27176
|
}
|