hzzt-plus 1.0.7 → 2.0.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/dist/index.css +1 -1
- package/dist/index.full.js +557 -354
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +558 -356
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/es/component.mjs +3 -1
- package/es/component.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +161 -8
- package/es/components/collapse/src/collapse.vue.d.ts +161 -8
- package/es/components/collapse/src/collapse2.mjs +50 -29
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/icon/index.mjs +4 -0
- package/es/components/icon/index.mjs.map +1 -1
- package/es/components/icon/src/components/index.d.ts +2 -0
- package/es/components/icon/src/components/index.mjs +3 -0
- package/es/components/icon/src/components/index.mjs.map +1 -0
- package/es/components/icon/src/components/minus-square-outline.mjs +29 -0
- package/es/components/icon/src/components/minus-square-outline.mjs.map +1 -0
- package/es/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
- package/es/components/icon/src/components/plus-square-outline.mjs +29 -0
- package/es/components/icon/src/components/plus-square-outline.mjs.map +1 -0
- package/es/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +3 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/index.mjs +49 -21
- package/es/components/pagination/src/index.mjs.map +1 -1
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/scroll/index.d.ts +5 -0
- package/es/components/scroll/index.mjs +9 -0
- package/es/components/scroll/index.mjs.map +1 -0
- package/es/components/scroll/src/scroll.d.ts +2 -0
- package/es/components/scroll/src/scroll.mjs +2 -0
- package/es/components/scroll/src/scroll.mjs.map +1 -0
- package/es/components/scroll/src/scroll.vue.d.ts +147 -0
- package/es/components/scroll/src/scroll2.mjs +88 -0
- package/es/components/scroll/src/scroll2.mjs.map +1 -0
- package/es/components/scroll/style/css.d.ts +2 -0
- package/es/components/scroll/style/css.mjs +3 -0
- package/es/components/scroll/style/css.mjs.map +1 -0
- package/es/components/scroll/style/index.d.ts +2 -0
- package/es/components/scroll/style/index.mjs +3 -0
- package/es/components/scroll/style/index.mjs.map +1 -0
- package/es/components/select-input/index.d.ts +39 -0
- package/es/components/select-input/index.mjs +2 -2
- package/es/components/select-input/src/select-input.mjs +45 -124
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input.vue.d.ts +39 -0
- package/es/components/select-input/src/select-input2.mjs +124 -45
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/components/select-textarea/index.mjs +2 -2
- package/es/components/select-textarea/src/select-textarea.mjs +100 -30
- package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
- package/es/components/select-textarea/src/select-textarea.vue.d.ts +39 -0
- package/es/components/select-textarea/src/select-textarea2.mjs +30 -100
- package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
- package/es/components/title/src/title.d.ts +6 -0
- package/es/components/title/src/title.mjs +4 -1
- package/es/components/title/src/title.mjs.map +1 -1
- package/es/components/title/src/title.vue.d.ts +39 -0
- package/es/components/title/src/title2.mjs +28 -12
- package/es/components/title/src/title2.mjs.map +1 -1
- package/es/index.mjs +3 -2
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +3 -1
- package/lib/component.js.map +1 -1
- package/lib/components/collapse/index.d.ts +161 -8
- package/lib/components/collapse/src/collapse.vue.d.ts +161 -8
- package/lib/components/collapse/src/collapse2.js +49 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/icon/index.js +4 -0
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/src/components/index.d.ts +2 -0
- package/lib/components/icon/src/components/index.js +12 -0
- package/lib/components/icon/src/components/index.js.map +1 -0
- package/lib/components/icon/src/components/minus-square-outline.js +33 -0
- package/lib/components/icon/src/components/minus-square-outline.js.map +1 -0
- package/lib/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
- package/lib/components/icon/src/components/plus-square-outline.js +33 -0
- package/lib/components/icon/src/components/plus-square-outline.js.map +1 -0
- package/lib/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +4 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/index.js +48 -20
- package/lib/components/pagination/src/index.js.map +1 -1
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/scroll/index.d.ts +5 -0
- package/lib/components/scroll/index.js +14 -0
- package/lib/components/scroll/index.js.map +1 -0
- package/lib/components/scroll/src/scroll.d.ts +2 -0
- package/lib/components/scroll/src/scroll.js +3 -0
- package/lib/components/scroll/src/scroll.js.map +1 -0
- package/lib/components/scroll/src/scroll.vue.d.ts +147 -0
- package/lib/components/scroll/src/scroll2.js +92 -0
- package/lib/components/scroll/src/scroll2.js.map +1 -0
- package/lib/components/scroll/style/css.d.ts +2 -0
- package/lib/components/scroll/style/css.js +6 -0
- package/lib/components/scroll/style/css.js.map +1 -0
- package/lib/components/scroll/style/index.d.ts +2 -0
- package/lib/components/scroll/style/index.js +6 -0
- package/lib/components/scroll/style/index.js.map +1 -0
- package/lib/components/select-input/index.d.ts +39 -0
- package/lib/components/select-input/index.js +2 -2
- package/lib/components/select-input/src/select-input.js +46 -124
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input.vue.d.ts +39 -0
- package/lib/components/select-input/src/select-input2.js +124 -46
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/components/select-textarea/index.js +2 -2
- package/lib/components/select-textarea/src/select-textarea.js +100 -31
- package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
- package/lib/components/select-textarea/src/select-textarea.vue.d.ts +39 -0
- package/lib/components/select-textarea/src/select-textarea2.js +31 -100
- package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
- package/lib/components/title/src/title.d.ts +6 -0
- package/lib/components/title/src/title.js +4 -1
- package/lib/components/title/src/title.js.map +1 -1
- package/lib/components/title/src/title.vue.d.ts +39 -0
- package/lib/components/title/src/title2.js +27 -11
- package/lib/components/title/src/title2.js.map +1 -1
- package/lib/index.js +34 -32
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/theme/hzzt-collapse.css +1 -1
- package/theme/hzzt-pagination.css +1 -1
- package/theme/hzzt-scan.css +1 -1
- package/theme/hzzt-scroll.css +1 -0
- package/theme/hzzt-title.css +1 -1
- package/theme/index.css +1 -1
- package/theme/src/collapse.scss +45 -39
- package/theme/src/index.scss +1 -0
- package/theme/src/pagination.scss +24 -6
- package/theme/src/scan.scss +3 -3
- package/theme/src/scroll.scss +42 -0
- package/theme/src/title.scss +14 -5
- package/web-types.json +1 -1
package/global.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare module 'vue' {
|
|
|
20
20
|
HzztCascader: typeof import('hzzt-plus')['HzztCascader']
|
|
21
21
|
HzztSelect: typeof import('hzzt-plus')['HzztSelect']
|
|
22
22
|
HzztClickInput: typeof import('hzzt-plus')['HzztClickInput']
|
|
23
|
+
HzztScroll: typeof import('hzzt-plus')['HzztScroll']
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
package/lib/component.js
CHANGED
|
@@ -21,6 +21,7 @@ var index$f = require('./components/input-range/index.js');
|
|
|
21
21
|
var index$g = require('./components/cascader/index.js');
|
|
22
22
|
var index$h = require('./components/select/index.js');
|
|
23
23
|
var index$i = require('./components/click-input/index.js');
|
|
24
|
+
var index$j = require('./components/scroll/index.js');
|
|
24
25
|
|
|
25
26
|
var Components = [
|
|
26
27
|
index.HzztConfigProvider,
|
|
@@ -41,7 +42,8 @@ var Components = [
|
|
|
41
42
|
index$f.HzztInputRange,
|
|
42
43
|
index$g.HzztCascader,
|
|
43
44
|
index$h.HzztSelect,
|
|
44
|
-
index$i.HzztClickInput
|
|
45
|
+
index$i.HzztClickInput,
|
|
46
|
+
index$j.HzztScroll
|
|
45
47
|
];
|
|
46
48
|
|
|
47
49
|
exports["default"] = Components;
|
package/lib/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\nimport { HzztInputRange } from '@hzzt-plus/components/input-range'\nimport { HzztCascader } from '@hzzt-plus/components/cascader'\nimport { HzztSelect } from '@hzzt-plus/components/select'\nimport { HzztClickInput } from '@hzzt-plus/components/click-input'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n HzztInputRange,\n HzztCascader,\n HzztSelect,\n HzztClickInput,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan","HzztSelectInput","HzztSelectTextarea","HzztInputRange","HzztCascader","HzztSelect","HzztClickInput"],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\nimport { HzztInputRange } from '@hzzt-plus/components/input-range'\nimport { HzztCascader } from '@hzzt-plus/components/cascader'\nimport { HzztSelect } from '@hzzt-plus/components/select'\nimport { HzztClickInput } from '@hzzt-plus/components/click-input'\nimport { HzztScroll } from '@hzzt-plus/components/scroll'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n HzztInputRange,\n HzztCascader,\n HzztSelect,\n HzztClickInput,\n HzztScroll,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan","HzztSelectInput","HzztSelectTextarea","HzztInputRange","HzztCascader","HzztSelect","HzztClickInput","HzztScroll"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,EAAEC,mBAAW;AACb,EAAEC,oBAAY;AACd,EAAEC,2BAAmB;AACrB,EAAEC,uBAAe;AACjB,EAAEC,yBAAiB;AACnB,EAAEC,gBAAQ;AACV,EAAEC,uBAAe;AACjB,EAAEC,0BAAkB;AACpB,EAAEC,sBAAc;AAChB,EAAEC,oBAAY;AACd,EAAEC,kBAAU;AACZ,EAAEC,sBAAc;AAChB,EAAEC,kBAAU;AACZ,CAAC;;;;"}
|
|
@@ -7,7 +7,11 @@ export declare const HzztCollapse: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
showLine: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
11
15
|
type: BooleanConstructor;
|
|
12
16
|
default: boolean;
|
|
13
17
|
};
|
|
@@ -22,16 +26,158 @@ export declare const HzztCollapse: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: string;
|
|
24
28
|
};
|
|
25
|
-
|
|
29
|
+
showLine: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
modelValue: {
|
|
26
34
|
type: BooleanConstructor;
|
|
27
35
|
default: boolean;
|
|
28
36
|
};
|
|
29
37
|
}>> & {
|
|
30
|
-
|
|
38
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
}>>;
|
|
32
|
-
|
|
40
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
41
|
+
expand: import("vue").Ref<boolean>;
|
|
33
42
|
toggle: () => void;
|
|
34
|
-
|
|
43
|
+
HzztIcon: import("vue").DefineComponent<{
|
|
44
|
+
name: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
type: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
name: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
type: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
attrs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
componentName: import("vue").ComputedRef<string>;
|
|
69
|
+
ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
70
|
+
new (...args: any[]): {
|
|
71
|
+
$: import("vue").ComponentInternalInstance;
|
|
72
|
+
$data: {};
|
|
73
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
readonly size: {
|
|
75
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
};
|
|
80
|
+
readonly color: {
|
|
81
|
+
readonly type: import("vue").PropType<string>;
|
|
82
|
+
readonly required: false;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
+
__epPropKey: true;
|
|
85
|
+
};
|
|
86
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
87
|
+
$attrs: {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
$refs: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
$slots: Readonly<{
|
|
94
|
+
[name: string]: import("vue").Slot | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
97
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
98
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
99
|
+
$el: any;
|
|
100
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
+
readonly size: {
|
|
102
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
+
__epPropKey: true;
|
|
106
|
+
};
|
|
107
|
+
readonly color: {
|
|
108
|
+
readonly type: import("vue").PropType<string>;
|
|
109
|
+
readonly required: false;
|
|
110
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
|
+
__epPropKey: true;
|
|
112
|
+
};
|
|
113
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
114
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
120
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
121
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
122
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
123
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
124
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
125
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
126
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
127
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
128
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
129
|
+
};
|
|
130
|
+
$forceUpdate: () => void;
|
|
131
|
+
$nextTick: typeof import("vue").nextTick;
|
|
132
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
133
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
readonly size: {
|
|
135
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
136
|
+
readonly required: false;
|
|
137
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
+
__epPropKey: true;
|
|
139
|
+
};
|
|
140
|
+
readonly color: {
|
|
141
|
+
readonly type: import("vue").PropType<string>;
|
|
142
|
+
readonly required: false;
|
|
143
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
144
|
+
__epPropKey: true;
|
|
145
|
+
};
|
|
146
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
147
|
+
__isFragment?: undefined;
|
|
148
|
+
__isTeleport?: undefined;
|
|
149
|
+
__isSuspense?: undefined;
|
|
150
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
151
|
+
readonly size: {
|
|
152
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
153
|
+
readonly required: false;
|
|
154
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
|
+
__epPropKey: true;
|
|
156
|
+
};
|
|
157
|
+
readonly color: {
|
|
158
|
+
readonly type: import("vue").PropType<string>;
|
|
159
|
+
readonly required: false;
|
|
160
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
161
|
+
__epPropKey: true;
|
|
162
|
+
};
|
|
163
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
164
|
+
$slots: {
|
|
165
|
+
default?(_: {}): any;
|
|
166
|
+
};
|
|
167
|
+
})>;
|
|
168
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
name: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
type: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
}>>, {
|
|
178
|
+
type: string;
|
|
179
|
+
}>;
|
|
180
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
181
|
defaultActive: {
|
|
36
182
|
type: BooleanConstructor;
|
|
37
183
|
default: boolean;
|
|
@@ -40,14 +186,21 @@ export declare const HzztCollapse: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
40
186
|
type: StringConstructor;
|
|
41
187
|
default: string;
|
|
42
188
|
};
|
|
43
|
-
|
|
189
|
+
showLine: {
|
|
44
190
|
type: BooleanConstructor;
|
|
45
191
|
default: boolean;
|
|
46
192
|
};
|
|
47
|
-
|
|
193
|
+
modelValue: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
}>> & {
|
|
198
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
modelValue: boolean;
|
|
48
201
|
defaultActive: boolean;
|
|
49
202
|
title: string;
|
|
50
|
-
|
|
203
|
+
showLine: boolean;
|
|
51
204
|
}>> & Record<string, any>;
|
|
52
205
|
export default HzztCollapse;
|
|
53
206
|
export * from './src/collapse';
|
|
@@ -7,7 +7,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
showLine: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
11
15
|
type: BooleanConstructor;
|
|
12
16
|
default: boolean;
|
|
13
17
|
};
|
|
@@ -22,16 +26,158 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: string;
|
|
24
28
|
};
|
|
25
|
-
|
|
29
|
+
showLine: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
modelValue: {
|
|
26
34
|
type: BooleanConstructor;
|
|
27
35
|
default: boolean;
|
|
28
36
|
};
|
|
29
37
|
}>> & {
|
|
30
|
-
|
|
38
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
}>>;
|
|
32
|
-
|
|
40
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
41
|
+
expand: import("vue").Ref<boolean>;
|
|
33
42
|
toggle: () => void;
|
|
34
|
-
|
|
43
|
+
HzztIcon: import("vue").DefineComponent<{
|
|
44
|
+
name: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
type: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
name: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
type: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
attrs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
componentName: import("vue").ComputedRef<string>;
|
|
69
|
+
ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
70
|
+
new (...args: any[]): {
|
|
71
|
+
$: import("vue").ComponentInternalInstance;
|
|
72
|
+
$data: {};
|
|
73
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
readonly size: {
|
|
75
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
};
|
|
80
|
+
readonly color: {
|
|
81
|
+
readonly type: import("vue").PropType<string>;
|
|
82
|
+
readonly required: false;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
+
__epPropKey: true;
|
|
85
|
+
};
|
|
86
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
87
|
+
$attrs: {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
$refs: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
$slots: Readonly<{
|
|
94
|
+
[name: string]: import("vue").Slot | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
97
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
98
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
99
|
+
$el: any;
|
|
100
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
+
readonly size: {
|
|
102
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
+
__epPropKey: true;
|
|
106
|
+
};
|
|
107
|
+
readonly color: {
|
|
108
|
+
readonly type: import("vue").PropType<string>;
|
|
109
|
+
readonly required: false;
|
|
110
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
|
+
__epPropKey: true;
|
|
112
|
+
};
|
|
113
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
114
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
120
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
121
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
122
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
123
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
124
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
125
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
126
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
127
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
128
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
129
|
+
};
|
|
130
|
+
$forceUpdate: () => void;
|
|
131
|
+
$nextTick: typeof import("vue").nextTick;
|
|
132
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
133
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
readonly size: {
|
|
135
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
136
|
+
readonly required: false;
|
|
137
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
+
__epPropKey: true;
|
|
139
|
+
};
|
|
140
|
+
readonly color: {
|
|
141
|
+
readonly type: import("vue").PropType<string>;
|
|
142
|
+
readonly required: false;
|
|
143
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
144
|
+
__epPropKey: true;
|
|
145
|
+
};
|
|
146
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
147
|
+
__isFragment?: undefined;
|
|
148
|
+
__isTeleport?: undefined;
|
|
149
|
+
__isSuspense?: undefined;
|
|
150
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
151
|
+
readonly size: {
|
|
152
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
153
|
+
readonly required: false;
|
|
154
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
|
+
__epPropKey: true;
|
|
156
|
+
};
|
|
157
|
+
readonly color: {
|
|
158
|
+
readonly type: import("vue").PropType<string>;
|
|
159
|
+
readonly required: false;
|
|
160
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
161
|
+
__epPropKey: true;
|
|
162
|
+
};
|
|
163
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
164
|
+
$slots: {
|
|
165
|
+
default?(_: {}): any;
|
|
166
|
+
};
|
|
167
|
+
})>;
|
|
168
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
name: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
type: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
}>>, {
|
|
178
|
+
type: string;
|
|
179
|
+
}>;
|
|
180
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
181
|
defaultActive: {
|
|
36
182
|
type: BooleanConstructor;
|
|
37
183
|
default: boolean;
|
|
@@ -40,13 +186,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
186
|
type: StringConstructor;
|
|
41
187
|
default: string;
|
|
42
188
|
};
|
|
43
|
-
|
|
189
|
+
showLine: {
|
|
44
190
|
type: BooleanConstructor;
|
|
45
191
|
default: boolean;
|
|
46
192
|
};
|
|
47
|
-
|
|
193
|
+
modelValue: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
}>> & {
|
|
198
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
modelValue: boolean;
|
|
48
201
|
defaultActive: boolean;
|
|
49
202
|
title: string;
|
|
50
|
-
|
|
203
|
+
showLine: boolean;
|
|
51
204
|
}>;
|
|
52
205
|
export default _default;
|
|
@@ -4,19 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../../hooks/index.js');
|
|
7
|
+
var index$1 = require('../../icon/src/index.js');
|
|
7
8
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
9
|
var index = require('../../../hooks/use-locale/index.js');
|
|
9
10
|
|
|
10
|
-
const _hoisted_1 = { class: "hzzt-collapse" };
|
|
11
|
-
const _hoisted_2 = { class: "
|
|
12
|
-
const _hoisted_3 = { class: "hzzt-
|
|
13
|
-
const _hoisted_4 =
|
|
14
|
-
const _hoisted_5 = { class: "hzzt-collapse-title" };
|
|
15
|
-
const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "hzzt-collapse-line" }, null, -1);
|
|
16
|
-
const _hoisted_7 = {
|
|
11
|
+
const _hoisted_1 = { class: "hzzt-collapse flex column" };
|
|
12
|
+
const _hoisted_2 = { class: "hzzt-collapse__top" };
|
|
13
|
+
const _hoisted_3 = { class: "hzzt-collapse__title" };
|
|
14
|
+
const _hoisted_4 = {
|
|
17
15
|
key: 0,
|
|
18
|
-
class: "hzzt-
|
|
16
|
+
class: "hzzt-collapse__line"
|
|
19
17
|
};
|
|
18
|
+
const _hoisted_5 = { class: "hzzt-collapse__content flex-1" };
|
|
20
19
|
const __default__ = vue.defineComponent({
|
|
21
20
|
name: "HzztCollapse"
|
|
22
21
|
});
|
|
@@ -25,44 +24,66 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
24
|
props: {
|
|
26
25
|
defaultActive: {
|
|
27
26
|
type: Boolean,
|
|
28
|
-
default:
|
|
27
|
+
default: true
|
|
29
28
|
},
|
|
30
29
|
title: {
|
|
31
30
|
type: String,
|
|
32
31
|
default: ""
|
|
33
32
|
},
|
|
34
|
-
|
|
33
|
+
showLine: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
modelValue: {
|
|
35
38
|
type: Boolean,
|
|
36
39
|
default: true
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
|
-
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(__props, { emit }) {
|
|
40
44
|
const props = __props;
|
|
41
45
|
const { t } = index.useLocale();
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
const expand = vue.ref(props.modelValue);
|
|
47
|
+
if (!props.defaultActive) {
|
|
48
|
+
emit("update:modelValue", false);
|
|
49
|
+
expand.value = false;
|
|
50
|
+
}
|
|
51
|
+
vue.watch(() => props.modelValue, (v) => {
|
|
52
|
+
expand.value = v;
|
|
45
53
|
});
|
|
46
54
|
function toggle() {
|
|
47
|
-
|
|
55
|
+
expand.value = !expand.value;
|
|
56
|
+
emit("update:modelValue", expand.value);
|
|
48
57
|
}
|
|
49
58
|
return (_ctx, _cache) => {
|
|
50
59
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
51
|
-
vue.createElementVNode("div",
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
57
|
-
_hoisted_4,
|
|
58
|
-
vue.createElementVNode("div", _hoisted_5, vue.toDisplayString(__props.title), 1)
|
|
59
|
-
]),
|
|
60
|
-
_hoisted_6
|
|
60
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
61
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
62
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
63
|
+
vue.createTextVNode(vue.toDisplayString(__props.title), 1)
|
|
64
|
+
])
|
|
61
65
|
]),
|
|
62
|
-
__props.
|
|
66
|
+
__props.showLine ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("v-if", true),
|
|
67
|
+
vue.renderSlot(_ctx.$slots, "toggle-btn", {}, () => [
|
|
68
|
+
vue.createElementVNode("div", {
|
|
69
|
+
class: "hzzt-collapse__btn",
|
|
70
|
+
onClick: toggle
|
|
71
|
+
}, [
|
|
72
|
+
vue.createVNode(index$1["default"], {
|
|
73
|
+
name: !expand.value ? "hzzt-plus-square-outline" : "hzzt-minus-square-outline",
|
|
74
|
+
class: "hzzt-collapse__icon",
|
|
75
|
+
size: "14"
|
|
76
|
+
}, null, 8, ["name"]),
|
|
77
|
+
vue.createElementVNode("span", null, vue.toDisplayString(expand.value ? vue.unref(t)("hzzt.collapse.retract") : vue.unref(t)("hzzt.collapse.expand")), 1)
|
|
78
|
+
])
|
|
79
|
+
])
|
|
80
|
+
]),
|
|
81
|
+
vue.withDirectives(vue.createElementVNode("div", _hoisted_5, [
|
|
82
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
83
|
+
], 512), [
|
|
84
|
+
[vue.vShow, expand.value]
|
|
63
85
|
]),
|
|
64
|
-
vue.renderSlot(_ctx.$slots, "active", { active:
|
|
65
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
86
|
+
vue.renderSlot(_ctx.$slots, "active", { active: expand.value })
|
|
66
87
|
]);
|
|
67
88
|
};
|
|
68
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse2.js","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-collapse\">\n <div class=\"hzzt-
|
|
1
|
+
{"version":3,"file":"collapse2.js","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-collapse flex column\">\n <div class=\"hzzt-collapse__top\">\n <div class=\"hzzt-collapse__title\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div v-if=\"showLine\" class=\"hzzt-collapse__line\" />\n <slot name=\"toggle-btn\">\n <div class=\"hzzt-collapse__btn\" @click=\"toggle\">\n <hzzt-icon :name=\"!expand ? 'hzzt-plus-square-outline' : 'hzzt-minus-square-outline'\"\n class=\"hzzt-collapse__icon\" size=\"14\" />\n <span>{{ expand ? t('hzzt.collapse.retract') : t('hzzt.collapse.expand') }}</span>\n </div>\n </slot>\n </div>\n <div v-show=\"expand\" class=\"hzzt-collapse__content flex-1\">\n <slot />\n </div>\n\n <slot :active=\"expand\" name=\"active\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {useLocale} from '@hzzt-plus/hooks'\n import HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\n import {ref, watch} from 'vue'\n\n defineOptions({\n name: 'HzztCollapse',\n })\n const {t} = useLocale()\n const props = defineProps({\n defaultActive: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n showLine: {\n type: Boolean,\n default: true,\n },\n modelValue: {\n type: Boolean,\n default: true,\n },\n })\n const emit = defineEmits(['update:modelValue'])\n\n const expand = ref(props.modelValue)\n\n if (!props.defaultActive) {\n emit('update:modelValue', false);\n expand.value = false;\n }\n\n watch(() => props.modelValue, (v) => {\n expand.value = v;\n })\n\n function toggle() {\n expand.value = !expand.value;\n emit('update:modelValue', expand.value);\n }\n\n</script>\n"],"names":["useLocale","ref","watch"],"mappings":";;;;;;;;;;;;;;;;;;uCA8BgB,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,MAAA,EAAC,CAAC,EAAA,GAAIA,eAAU,EAAA,CAAA;AAqBtB,IAAM,MAAA,MAAA,GAASC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAEnC,IAAI,IAAA,CAAC,MAAM,aAAe,EAAA;AACxB,MAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,MAAA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AAAA,KACjB;AAEA,IAAAC,SAAA,CAAM,MAAM,KAAA,CAAM,UAAY,EAAA,CAAC,CAAM,KAAA;AACnC,MAAA,MAAA,CAAO,KAAQ,GAAA,CAAA,CAAA;AAAA,KAChB,CAAA,CAAA;AAED,IAAA,SAAS,MAAS,GAAA;AAChB,MAAO,MAAA,CAAA,KAAA,GAAQ,CAAC,MAAO,CAAA,KAAA,CAAA;AACvB,MAAK,IAAA,CAAA,mBAAA,EAAqB,OAAO,KAAK,CAAA,CAAA;AAAA,KACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Icons = require('@element-plus/icons-vue');
|
|
6
|
+
var index$1 = require('./src/components/index.js');
|
|
6
7
|
var index = require('./src/index.js');
|
|
7
8
|
|
|
8
9
|
function _interopNamespace(e) {
|
|
@@ -31,6 +32,9 @@ const HzztIcon = {
|
|
|
31
32
|
for (const key in Icons__namespace) {
|
|
32
33
|
app.component(tarnsElIconName(key), Icons__namespace[key]);
|
|
33
34
|
}
|
|
35
|
+
for (const key in index$1) {
|
|
36
|
+
app.component(tarnsElIconName(key), Icons__namespace[key]);
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
};
|
|
36
40
|
function tarnsElIconName(name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue'\nimport Icon from './src/index.vue'\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue'\nimport * as HzztIcons from './src/components/index'\nimport Icon from './src/index.vue'\nimport type {App} from '@vue/runtime-core'\n\nexport const HzztIcon = {\n install(app: App) {\n app.component('HzztIcon', Icon)\n for (const key in Icons) {\n app.component(tarnsElIconName(key), Icons[key])\n }\n for (const key in HzztIcons) {\n app.component(tarnsElIconName(key), Icons[key])\n }\n },\n}\n\nexport default HzztIcon\n\nfunction tarnsElIconName(name) {\n return `hzzt-el${name.replace(\n /[A-Z]/g,\n (match) => `-${match.toLocaleLowerCase()}`\n )}`\n}\n"],"names":["Icon","Icons","HzztIcons"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGY,MAAC,QAAQ,GAAG;AACxB,EAAE,OAAO,CAAC,GAAG,EAAE;AACf,IAAI,GAAG,CAAC,SAAS,CAAC,UAAU,EAAEA,gBAAI,CAAC,CAAC;AACpC,IAAI,KAAK,MAAM,GAAG,IAAIC,gBAAK,EAAE;AAC7B,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAEA,gBAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,IAAI,KAAK,MAAM,GAAG,IAAIC,OAAS,EAAE;AACjC,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAED,gBAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE;AAEF,SAAS,eAAe,CAAC,IAAI,EAAE;AAC/B,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var plusSquareOutline = require('./plus-square-outline.js');
|
|
6
|
+
var minusSquareOutline = require('./minus-square-outline.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.HzztPlusSquareOutline = plusSquareOutline["default"];
|
|
11
|
+
exports.HzztMinusSquareOutline = minusSquareOutline["default"];
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|