@mobileaction/action-kit 1.33.4 → 1.34.0
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/CHANGELOG.md +14 -0
- package/dist/action-kit.js +1 -1
- package/dist/action-kit.mjs +52 -50
- package/dist/components/tree/components/treeNode.vue.d.ts +103 -0
- package/dist/components/tree/index.vue.d.ts +136 -0
- package/dist/components/tree/types.d.ts +12 -0
- package/dist/index-14b99aa9.js +47 -0
- package/dist/index-1f6e7c7f.mjs +12369 -0
- package/dist/index.d.ts +2 -0
- package/dist/{lottie_light-867380de.mjs → lottie_light-90539487.mjs} +1 -1
- package/dist/{lottie_light-8125241d.js → lottie_light-df59faac.js} +1 -1
- package/dist/src/components/tree/components/treeNode.vue.d.ts +61 -0
- package/dist/src/components/tree/index.vue.d.ts +70 -0
- package/dist/src/components/tree/stories/constants.d.ts +5 -0
- package/dist/src/components/tree/stories/default.stories.d.ts +12 -0
- package/dist/src/components/tree/stories/useTreeData.d.ts +5 -0
- package/dist/src/components/tree/tree.test.d.ts +1 -0
- package/dist/src/components/tree/types.d.ts +12 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-5631e5fe.mjs +0 -12104
- package/dist/index-b07ea14d.js +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.34.0](https://github.com/mobileaction/action-kit/compare/v1.33.4...v1.34.0) (2024-09-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **PEC-4343:** tree component implemented ([c1c2e7d](https://github.com/mobileaction/action-kit/commit/c1c2e7da35fc26acb424b003d58b0e6972af1d8d))
|
|
11
|
+
* **PEC-4343:** tree component implemented ([aac8068](https://github.com/mobileaction/action-kit/commit/aac8068786a4e2e2d68baec17634ae3328f2a7b2))
|
|
12
|
+
* **PEC-4343:** tree component implemented ([539ba8f](https://github.com/mobileaction/action-kit/commit/539ba8fc907cf772b7e59d0297b483ff20198b81))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **PEC-4343:** tree component test fixes ([0fe5741](https://github.com/mobileaction/action-kit/commit/0fe5741f31f954050215d39fb181a4ea979e24ae))
|
|
18
|
+
|
|
5
19
|
## [1.33.4](https://github.com/mobileaction/action-kit/compare/v1.33.3...v1.33.4) (2024-09-04)
|
|
6
20
|
|
|
7
21
|
|
package/dist/action-kit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-14b99aa9.js"),e=require("ant-design-vue");require("vue");require("@vueuse/core");require("vuedraggable");require("dayjs");require("@headlessui/vue");exports.ActionKitConfig=a.ActionKitConfig;exports.Animations=a.Animations;exports.AppIconPlatforms=a.AppIconPlatforms;exports.AppIconSizes=a.AppIconSizes;exports.ButtonColors=a.ButtonColors;exports.ButtonHtmlTypes=a.ButtonHtmlTypes;exports.ButtonIconAlignMents=a.ButtonIconAlignMents;exports.ButtonShapes=a.ButtonShapes;exports.ButtonSizes=a.ButtonSizes;exports.ButtonTargets=a.ButtonTargets;exports.ButtonVariants=a.ButtonVariants;exports.CheckboxPlacementRight=a.CheckboxPlacementRight;exports.CheckboxPlacements=a.CheckboxPlacements;exports.LinkButtonColors=a.LinkButtonColors;exports.LinkButtonSizes=a.LinkButtonSizes;exports.MaAlert=a._sfc_main$22;exports.MaAlertPropTypes=a.MaAlertPropTypes;exports.MaAlertPropVariants=a.MaAlertPropVariants;exports.MaAnimation=a._sfc_main$23;exports.MaAppCheckbox=a._sfc_main$49;exports.MaAppIcon=a._sfc_main$18;exports.MaAppTrackButton=a._sfc_main$17;exports.MaAutoComplete=a._sfc_main$37;exports.MaAvatar=a._sfc_main$50;exports.MaBadge=a._sfc_main$21;exports.MaBadgePropIconAlignments=a.MaBadgePropIconAlignments;exports.MaBadgePropSizes=a.MaBadgePropSizes;exports.MaBadgePropTypes=a.MaBadgePropTypes;exports.MaBadgePropVariants=a.MaBadgePropVariants;exports.MaBadgeShape=a.MaBadgeShape;exports.MaButton=a._sfc_main;exports.MaCard=a._sfc_main$41;exports.MaCardAlignments=a.MaCardAlignments;exports.MaCardIconColors=a.MaCardIconColors;exports.MaCardSizes=a.MaCardSizes;exports.MaCascader=a._sfc_main$68;exports.MaCheckbox=a._sfc_main$13;exports.MaCheckboxGroup=a._sfc_main$14;exports.MaContentScroller=a._sfc_main$15;exports.MaCountryRadio=a._sfc_main$47;exports.MaCountrySelect=a._sfc_main$40;exports.MaDatePicker=a._sfc_main$64;exports.MaDrawer=a._sfc_main$43;exports.MaDropdown=a._sfc_main$27;exports.MaDropdownPlacements=a.MaDropdownPlacements;exports.MaDropdownTriggers=a.MaDropdownTriggers;exports.MaEllipsis=a._sfc_main$65;exports.MaEmpty=a._sfc_main$28;exports.MaEmptyIcons=a.MaEmptyIcons;exports.MaEmptySizes=a.MaEmptySizes;exports.MaEmptyVariants=a.MaEmptyVariants;exports.MaFlagIconRatios=a.MaFlagIconRatios;exports.MaForm=a._sfc_main$7;exports.MaFormItem=a._sfc_main$8;exports.MaFormLayouts=a.MaFormLayouts;exports.MaIcon=a._sfc_main$10;exports.MaIconButton=a._sfc_main$45;exports.MaIconSizeClassNames=a.MaIconSizeClassNames;exports.MaIconSizes=a.MaIconSizes;exports.MaImage=a._sfc_main$58;exports.MaImageGroup=a._sfc_main$59;exports.MaInput=a._sfc_main$9;exports.MaInputCurrency=a.MaInputCurrency;exports.MaInputNumber=a._sfc_main$42;exports.MaInputSize=a.MaInputSize;exports.MaInputType=a.MaInputType;exports.MaKeywordGroupSelection=a._sfc_main$44;exports.MaLinkButton=a._sfc_main$1;exports.MaMenu=a._sfc_main$53;exports.MaMenuItem=a._sfc_main$54;exports.MaModal=a._sfc_main$24;exports.MaModalTypeIcon=a.MaModalTypeIcon;exports.MaModalTypes=a.MaModalTypes;exports.MaNotification=a.index$1;exports.MaNumericInput=a._sfc_main$16;exports.MaPagination=a._sfc_main$57;exports.MaPopconfirm=a._sfc_main$60;exports.MaPopover=a._sfc_main$48;exports.MaProgress=a._sfc_main$36;exports.MaProgressCircleSizes=a.MaProgressCircleSizes;exports.MaProgressColors=a.MaProgressColors;exports.MaProgressPercentAlignments=a.MaProgressPercentAlignments;exports.MaProgressTypes=a.MaProgressTypes;exports.MaRadio=a._sfc_main$19;exports.MaRadioCard=a._sfc_main$63;exports.MaRadioGroup=a._sfc_main$20;exports.MaRadioTypes=a.MaRadioTypes;exports.MaRate=a._sfc_main$25;exports.MaRateColors=a.MaRateColors;exports.MaRateSizes=a.MaRateSizes;exports.MaResult=a.index;exports.MaSelect=a._sfc_main$11;exports.MaSelectOption=a._sfc_main$12;exports.MaSideMenuAddNewAppButton=a._sfc_main$35;exports.MaSideMenuAppButton=a._sfc_main$34;exports.MaSideMenuButton=a._sfc_main$30;exports.MaSideMenuIconButton=a._sfc_main$32;exports.MaSideMenuItem=a._sfc_main$31;exports.MaSideMenuItemColors=a.MaSideMenuItemColors;exports.MaSideMenuRoundIconButton=a._sfc_main$33;exports.MaSlider=a._sfc_main$46;exports.MaSocialButton=a._sfc_main$2;exports.MaSpin=a._sfc_main$26;exports.MaSpinColors=a.MaSpinColors;exports.MaSpinTypes=a.MaSpinTypes;exports.MaStep=a._sfc_main$56;exports.MaStepItem=a._sfc_main$62;exports.MaStepItems=a._sfc_main$61;exports.MaSteps=a._sfc_main$55;exports.MaSwitch=a._sfc_main$5;exports.MaTabIconAlignMents=a.MaTabIconAlignMents;exports.MaTabPane=a._sfc_main$39;exports.MaTabPositions=a.MaTabPositions;exports.MaTabTypes=a.MaTabTypes;exports.MaTabs=a._sfc_main$38;exports.MaTagInput=a._sfc_main$51;exports.MaToggle=a._sfc_main$4;exports.MaTooltip=a._sfc_main$6;exports.MaTrackButton=a._sfc_main$3;exports.MaTree=a._sfc_main$67;exports.MaTypography=a._sfc_main$66;exports.MaUpload=a._sfc_main$29;exports.MaUploadFileStatus=a.MaUploadFileStatus;exports.MaUploadSizes=a.MaUploadSizes;exports.MaUploadTypes=a.MaUploadTypes;exports.MaWatchlistButton=a._sfc_main$52;exports.MultiSelectOptionCheckbox=a.MultiSelectOptionCheckbox;exports.MultiSelectOptions=a.MultiSelectOptions;exports.NumericInputSizes=a.NumericInputSizes;exports.SelectModes=a.SelectModes;exports.SelectOptionTypeRadio=a.SelectOptionTypeRadio;exports.SelectOptionTypes=a.SelectOptionTypes;exports.SelectSizes=a.SelectSizes;exports.SocialButtonBrands=a.SocialButtonBrands;exports.SocialButtonVariants=a.SocialButtonVariants;exports.SwitchTypes=a.SwitchTypes;exports.ToggleSizes=a.ToggleSizes;exports.TooltipPlacements=a.TooltipPlacements;exports.TooltipTriggerTypes=a.TooltipTriggerTypes;exports.TooltipTypes=a.TooltipTypes;exports.TrackButtonSizes=a.TrackButtonSizes;exports.TrackButtonVariants=a.TrackButtonVariants;exports.TreeModes=a.TreeModes;exports.TypographyTags=a.TypographyTags;exports.TypographyTypes=a.TypographyTypes;exports.TypographyWeights=a.TypographyWeights;exports.currencyOptions=a.currencyOptions;exports.currencySymbols=a.currencySymbols;exports.useActionKitConfig=a.useActionKitConfig;Object.defineProperty(exports,"MaSelectOptGroup",{enumerable:!0,get:()=>e.SelectOptGroup});
|
package/dist/action-kit.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SelectOptGroup as
|
|
1
|
+
import { aj as p, b3 as i, aW as r, aV as l, am as u, aq as c, ar as S, ao as b, an as d, ap as T, al as m, aP as g, aO as y, as as B, at as I, x as C, b2 as P, b1 as A, y as h, Y as z, t as k, s as R, M as w, Z as f, w as x, a$ as O, a_ as G, aZ as N, aY as V, b0 as D, _ as E, Q as F, bq as L, bs as U, br as v, ai as K, o as W, p as j, q, W as H, P as J, ad as Q, S as X, C as Y, ba as Z, bb as _, ae as $, D as aa, be as sa, bc as ea, bd as oa, aK as ta, i as Ma, j as na, aD as pa, l as ia, U as ra, aL as la, aJ as ua, a6 as ca, a7 as Sa, k as ba, aG as da, R as Ta, aF as ma, aE as ga, T as ya, a as Ba, a1 as Ia, a2 as Ca, z as Pa, b5 as Aa, b4 as ha, ah as za, r as ka, a5 as Ra, a9 as wa, X as fa, L as xa, bl as Oa, bk as Ga, bm as Na, bj as Va, u as Da, ac as Ea, v as Fa, aX as La, A as Ua, b7 as va, b6 as Ka, a8 as Wa, m as ja, n as qa, K as Ha, J as Ja, F as Qa, H as Xa, G as Ya, bi as Za, I as _a, V as $a, b as as, B as ss, b9 as es, b8 as os, a4 as ts, ab as Ms, aa as ns, a3 as ps, f as is, bp as rs, O as ls, bn as us, bo as cs, N as Ss, $ as bs, e as ds, h as Ts, d as ms, ag as gs, af as ys, E as Bs, bh as Is, bg as Cs, bf as Ps, a0 as As, aR as hs, aQ as zs, aU as ks, aN as Rs, aT as ws, aS as fs, aM as xs, au as Os, av as Gs, az as Ns, ay as Vs, aA as Ds, aC as Es, aB as Fs, ax as Ls, aw as Us, bw as vs, bu as Ks, bt as Ws, bv as js, aI as qs, aH as Hs, ak as Js } from "./index-1f6e7c7f.mjs";
|
|
2
|
+
import { SelectOptGroup as Xs } from "ant-design-vue";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import "vuedraggable";
|
|
@@ -15,8 +15,8 @@ export {
|
|
|
15
15
|
S as ButtonIconAlignMents,
|
|
16
16
|
b as ButtonShapes,
|
|
17
17
|
d as ButtonSizes,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
T as ButtonTargets,
|
|
19
|
+
m as ButtonVariants,
|
|
20
20
|
g as CheckboxPlacementRight,
|
|
21
21
|
y as CheckboxPlacements,
|
|
22
22
|
B as LinkButtonColors,
|
|
@@ -28,8 +28,8 @@ export {
|
|
|
28
28
|
z as MaAppCheckbox,
|
|
29
29
|
k as MaAppIcon,
|
|
30
30
|
R as MaAppTrackButton,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
w as MaAutoComplete,
|
|
32
|
+
f as MaAvatar,
|
|
33
33
|
x as MaBadge,
|
|
34
34
|
O as MaBadgePropIconAlignments,
|
|
35
35
|
G as MaBadgePropSizes,
|
|
@@ -40,8 +40,8 @@ export {
|
|
|
40
40
|
F as MaCard,
|
|
41
41
|
L as MaCardAlignments,
|
|
42
42
|
U as MaCardIconColors,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
v as MaCardSizes,
|
|
44
|
+
K as MaCascader,
|
|
45
45
|
W as MaCheckbox,
|
|
46
46
|
j as MaCheckboxGroup,
|
|
47
47
|
q as MaContentScroller,
|
|
@@ -55,9 +55,9 @@ export {
|
|
|
55
55
|
$ as MaEllipsis,
|
|
56
56
|
aa as MaEmpty,
|
|
57
57
|
sa as MaEmptyIcons,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
ea as MaEmptySizes,
|
|
59
|
+
oa as MaEmptyVariants,
|
|
60
|
+
ta as MaFlagIconRatios,
|
|
61
61
|
Ma as MaForm,
|
|
62
62
|
na as MaFormItem,
|
|
63
63
|
pa as MaFormLayouts,
|
|
@@ -69,8 +69,8 @@ export {
|
|
|
69
69
|
Sa as MaImageGroup,
|
|
70
70
|
ba as MaInput,
|
|
71
71
|
da as MaInputCurrency,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
Ta as MaInputNumber,
|
|
73
|
+
ma as MaInputSize,
|
|
74
74
|
ga as MaInputType,
|
|
75
75
|
ya as MaKeywordGroupSelection,
|
|
76
76
|
Ba as MaLinkButton,
|
|
@@ -82,8 +82,8 @@ export {
|
|
|
82
82
|
za as MaNotification,
|
|
83
83
|
ka as MaNumericInput,
|
|
84
84
|
Ra as MaPagination,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
wa as MaPopconfirm,
|
|
86
|
+
fa as MaPopover,
|
|
87
87
|
xa as MaProgress,
|
|
88
88
|
Oa as MaProgressCircleSizes,
|
|
89
89
|
Ga as MaProgressColors,
|
|
@@ -94,11 +94,11 @@ export {
|
|
|
94
94
|
Fa as MaRadioGroup,
|
|
95
95
|
La as MaRadioTypes,
|
|
96
96
|
Ua as MaRate,
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
va as MaRateColors,
|
|
98
|
+
Ka as MaRateSizes,
|
|
99
99
|
Wa as MaResult,
|
|
100
100
|
ja as MaSelect,
|
|
101
|
-
|
|
101
|
+
Xs as MaSelectOptGroup,
|
|
102
102
|
qa as MaSelectOption,
|
|
103
103
|
Ha as MaSideMenuAddNewAppButton,
|
|
104
104
|
Ja as MaSideMenuAppButton,
|
|
@@ -110,9 +110,9 @@ export {
|
|
|
110
110
|
$a as MaSlider,
|
|
111
111
|
as as MaSocialButton,
|
|
112
112
|
ss as MaSpin,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
es as MaSpinColors,
|
|
114
|
+
os as MaSpinTypes,
|
|
115
|
+
ts as MaStep,
|
|
116
116
|
Ms as MaStepItem,
|
|
117
117
|
ns as MaStepItems,
|
|
118
118
|
ps as MaSteps,
|
|
@@ -124,34 +124,36 @@ export {
|
|
|
124
124
|
Ss as MaTabs,
|
|
125
125
|
bs as MaTagInput,
|
|
126
126
|
ds as MaToggle,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
gs as
|
|
130
|
-
ys as
|
|
131
|
-
Bs as
|
|
132
|
-
Is as
|
|
133
|
-
Cs as
|
|
134
|
-
Ps as
|
|
135
|
-
As as
|
|
136
|
-
hs as
|
|
137
|
-
zs as
|
|
138
|
-
ks as
|
|
139
|
-
Rs as
|
|
127
|
+
Ts as MaTooltip,
|
|
128
|
+
ms as MaTrackButton,
|
|
129
|
+
gs as MaTree,
|
|
130
|
+
ys as MaTypography,
|
|
131
|
+
Bs as MaUpload,
|
|
132
|
+
Is as MaUploadFileStatus,
|
|
133
|
+
Cs as MaUploadSizes,
|
|
134
|
+
Ps as MaUploadTypes,
|
|
135
|
+
As as MaWatchlistButton,
|
|
136
|
+
hs as MultiSelectOptionCheckbox,
|
|
137
|
+
zs as MultiSelectOptions,
|
|
138
|
+
ks as NumericInputSizes,
|
|
139
|
+
Rs as SelectModes,
|
|
140
|
+
ws as SelectOptionTypeRadio,
|
|
140
141
|
fs as SelectOptionTypes,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Ks as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
142
|
+
xs as SelectSizes,
|
|
143
|
+
Os as SocialButtonBrands,
|
|
144
|
+
Gs as SocialButtonVariants,
|
|
145
|
+
Ns as SwitchTypes,
|
|
146
|
+
Vs as ToggleSizes,
|
|
147
|
+
Ds as TooltipPlacements,
|
|
148
|
+
Es as TooltipTriggerTypes,
|
|
149
|
+
Fs as TooltipTypes,
|
|
150
|
+
Ls as TrackButtonSizes,
|
|
151
|
+
Us as TrackButtonVariants,
|
|
152
|
+
vs as TreeModes,
|
|
153
|
+
Ks as TypographyTags,
|
|
154
|
+
Ws as TypographyTypes,
|
|
155
|
+
js as TypographyWeights,
|
|
156
|
+
qs as currencyOptions,
|
|
157
|
+
Hs as currencySymbols,
|
|
158
|
+
Js as useActionKitConfig
|
|
157
159
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { TreeNode, TreeNodeValue } from '../types';
|
|
3
|
+
export interface MaTreeNodeProps {
|
|
4
|
+
node?: TreeNode;
|
|
5
|
+
selectedValue?: TreeNodeValue;
|
|
6
|
+
expandedKeys?: TreeNodeValue[];
|
|
7
|
+
checkedKeys?: TreeNodeValue[];
|
|
8
|
+
isMultiple?: boolean;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
hideTick?: boolean;
|
|
11
|
+
depth?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
14
|
+
node: {
|
|
15
|
+
type: __PropType<TreeNode>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
selectedValue: {
|
|
19
|
+
type: __PropType<TreeNodeValue>;
|
|
20
|
+
required: false;
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
expandedKeys: {
|
|
24
|
+
type: __PropType<TreeNodeValue[]>;
|
|
25
|
+
required: false;
|
|
26
|
+
default: () => TreeNodeValue[];
|
|
27
|
+
};
|
|
28
|
+
checkedKeys: {
|
|
29
|
+
type: __PropType<TreeNodeValue[]>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: () => TreeNodeValue[];
|
|
32
|
+
};
|
|
33
|
+
isMultiple: {
|
|
34
|
+
type: __PropType<boolean>;
|
|
35
|
+
required: false;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
showIcon: {
|
|
39
|
+
type: __PropType<boolean>;
|
|
40
|
+
required: false;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
hideTick: {
|
|
44
|
+
type: __PropType<boolean>;
|
|
45
|
+
required: false;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
depth: {
|
|
49
|
+
type: __PropType<number>;
|
|
50
|
+
required: false;
|
|
51
|
+
};
|
|
52
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "expand-change" | "check-node-change")[], "change" | "expand-change" | "check-node-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
node: {
|
|
54
|
+
type: __PropType<TreeNode>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
selectedValue: {
|
|
58
|
+
type: __PropType<TreeNodeValue>;
|
|
59
|
+
required: false;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
expandedKeys: {
|
|
63
|
+
type: __PropType<TreeNodeValue[]>;
|
|
64
|
+
required: false;
|
|
65
|
+
default: () => TreeNodeValue[];
|
|
66
|
+
};
|
|
67
|
+
checkedKeys: {
|
|
68
|
+
type: __PropType<TreeNodeValue[]>;
|
|
69
|
+
required: false;
|
|
70
|
+
default: () => TreeNodeValue[];
|
|
71
|
+
};
|
|
72
|
+
isMultiple: {
|
|
73
|
+
type: __PropType<boolean>;
|
|
74
|
+
required: false;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
showIcon: {
|
|
78
|
+
type: __PropType<boolean>;
|
|
79
|
+
required: false;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
hideTick: {
|
|
83
|
+
type: __PropType<boolean>;
|
|
84
|
+
required: false;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
depth: {
|
|
88
|
+
type: __PropType<number>;
|
|
89
|
+
required: false;
|
|
90
|
+
};
|
|
91
|
+
}>> & {
|
|
92
|
+
onChange?: (...args: any[]) => any;
|
|
93
|
+
"onExpand-change"?: (...args: any[]) => any;
|
|
94
|
+
"onCheck-node-change"?: (...args: any[]) => any;
|
|
95
|
+
}, {
|
|
96
|
+
showIcon: boolean;
|
|
97
|
+
isMultiple: boolean;
|
|
98
|
+
hideTick: boolean;
|
|
99
|
+
checkedKeys: TreeNodeValue[];
|
|
100
|
+
expandedKeys: TreeNodeValue[];
|
|
101
|
+
selectedValue: TreeNodeValue;
|
|
102
|
+
}>;
|
|
103
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { TreeNode, TreeNodeValue, TreeMode, MaSearchType } from './types';
|
|
3
|
+
import { MaEmptySize } from '../../components/empty/types';
|
|
4
|
+
export interface MaTreeProps {
|
|
5
|
+
value?: TreeNodeValue;
|
|
6
|
+
selectedValues?: TreeNodeValue[];
|
|
7
|
+
expandedValues?: TreeNodeValue[];
|
|
8
|
+
data?: TreeNode[];
|
|
9
|
+
mode?: TreeMode;
|
|
10
|
+
showIcon?: boolean;
|
|
11
|
+
hideTick?: boolean;
|
|
12
|
+
search?: MaSearchType;
|
|
13
|
+
emptySize?: MaEmptySize;
|
|
14
|
+
emptyTitle?: string;
|
|
15
|
+
emptyDescription?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
18
|
+
value: {
|
|
19
|
+
type: __PropType<TreeNodeValue>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
selectedValues: {
|
|
23
|
+
type: __PropType<TreeNodeValue[]>;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
expandedValues: {
|
|
27
|
+
type: __PropType<TreeNodeValue[]>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
data: {
|
|
31
|
+
type: __PropType<TreeNode[]>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
mode: {
|
|
35
|
+
type: __PropType<"multiple" | "single">;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
showIcon: {
|
|
40
|
+
type: __PropType<boolean>;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
hideTick: {
|
|
44
|
+
type: __PropType<boolean>;
|
|
45
|
+
required: false;
|
|
46
|
+
};
|
|
47
|
+
search: {
|
|
48
|
+
type: __PropType<MaSearchType>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
emptySize: {
|
|
53
|
+
type: __PropType<"small" | "medium" | "large">;
|
|
54
|
+
required: false;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
emptyTitle: {
|
|
58
|
+
type: __PropType<string>;
|
|
59
|
+
required: false;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
emptyDescription: {
|
|
63
|
+
type: __PropType<string>;
|
|
64
|
+
required: false;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
checkedKeys: import("vue").Ref<TreeNodeValue[]>;
|
|
69
|
+
expandedKeys: import("vue").Ref<TreeNodeValue[]>;
|
|
70
|
+
treeData: import("vue").ComputedRef<TreeNode[]>;
|
|
71
|
+
onChange: (value: TreeNodeValue) => void;
|
|
72
|
+
toggleExpand: (value: TreeNodeValue) => void;
|
|
73
|
+
checkNodeChange: (node: TreeNode, isChecked: boolean) => void;
|
|
74
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value" | "update:selectedValues" | "update:expandedValues")[], "change" | "update:value" | "update:selectedValues" | "update:expandedValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
value: {
|
|
76
|
+
type: __PropType<TreeNodeValue>;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
selectedValues: {
|
|
80
|
+
type: __PropType<TreeNodeValue[]>;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
expandedValues: {
|
|
84
|
+
type: __PropType<TreeNodeValue[]>;
|
|
85
|
+
required: false;
|
|
86
|
+
};
|
|
87
|
+
data: {
|
|
88
|
+
type: __PropType<TreeNode[]>;
|
|
89
|
+
required: false;
|
|
90
|
+
};
|
|
91
|
+
mode: {
|
|
92
|
+
type: __PropType<"multiple" | "single">;
|
|
93
|
+
required: false;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
showIcon: {
|
|
97
|
+
type: __PropType<boolean>;
|
|
98
|
+
required: false;
|
|
99
|
+
};
|
|
100
|
+
hideTick: {
|
|
101
|
+
type: __PropType<boolean>;
|
|
102
|
+
required: false;
|
|
103
|
+
};
|
|
104
|
+
search: {
|
|
105
|
+
type: __PropType<MaSearchType>;
|
|
106
|
+
required: false;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
emptySize: {
|
|
110
|
+
type: __PropType<"small" | "medium" | "large">;
|
|
111
|
+
required: false;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
emptyTitle: {
|
|
115
|
+
type: __PropType<string>;
|
|
116
|
+
required: false;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
emptyDescription: {
|
|
120
|
+
type: __PropType<string>;
|
|
121
|
+
required: false;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
}>> & {
|
|
125
|
+
onChange?: (...args: any[]) => any;
|
|
126
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
127
|
+
"onUpdate:selectedValues"?: (...args: any[]) => any;
|
|
128
|
+
"onUpdate:expandedValues"?: (...args: any[]) => any;
|
|
129
|
+
}, {
|
|
130
|
+
search: MaSearchType;
|
|
131
|
+
mode: "multiple" | "single";
|
|
132
|
+
emptySize: "small" | "medium" | "large";
|
|
133
|
+
emptyTitle: string;
|
|
134
|
+
emptyDescription: string;
|
|
135
|
+
}>;
|
|
136
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type MaSearchFunctionType = (node: TreeNode) => void;
|
|
2
|
+
export type MaSearchType = string | MaSearchFunctionType;
|
|
3
|
+
export declare const TreeModes: readonly ["single", "multiple"];
|
|
4
|
+
export type TreeMode = typeof TreeModes[number];
|
|
5
|
+
export type TreeNodeValue = string | number;
|
|
6
|
+
export interface TreeNode {
|
|
7
|
+
value: TreeNodeValue;
|
|
8
|
+
label: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
options: TreeNode[];
|
|
12
|
+
}
|