hzzt-plus 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +426 -295
  3. package/dist/index.full.min.js +13 -13
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +13 -13
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +427 -297
  8. package/es/components/collapse/index.mjs +2 -2
  9. package/es/components/collapse/src/collapse.mjs +67 -0
  10. package/es/components/collapse/src/collapse.mjs.map +1 -1
  11. package/es/components/collapse/src/collapse2.mjs +0 -67
  12. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  13. package/es/components/confirm-password/index.d.ts +352 -283
  14. package/es/components/confirm-password/src/confirm-password.mjs.map +1 -1
  15. package/es/components/confirm-password/src/confirm-password.vue.d.ts +352 -283
  16. package/es/components/dropdown/src/index.mjs.map +1 -1
  17. package/es/components/icon/src/index.mjs.map +1 -1
  18. package/es/components/icon/src/index.vue.d.ts +75 -39
  19. package/es/components/page-size/index.d.ts +2201 -12995
  20. package/es/components/page-size/src/index.mjs.map +1 -1
  21. package/es/components/page-size/src/index.vue.d.ts +2201 -12995
  22. package/es/components/pagination/index.d.ts +75 -39
  23. package/es/components/pagination/src/index.mjs.map +1 -1
  24. package/es/components/pagination/src/index.vue.d.ts +75 -39
  25. package/es/components/tab/src/index.mjs.map +1 -1
  26. package/es/components/title/src/title.mjs.map +1 -1
  27. package/es/components/tooltip/index.d.ts +606 -2136
  28. package/es/components/tooltip/src/tooltip.vue.d.ts +606 -2136
  29. package/es/directives/drag/index.d.ts +3 -0
  30. package/es/directives/drag/index.mjs +81 -0
  31. package/es/directives/drag/index.mjs.map +1 -0
  32. package/es/directives/index.d.ts +1 -0
  33. package/es/directives/index.mjs +1 -0
  34. package/es/directives/index.mjs.map +1 -1
  35. package/es/index.mjs +1 -0
  36. package/es/index.mjs.map +1 -1
  37. package/lib/components/collapse/index.js +2 -2
  38. package/lib/components/collapse/src/collapse.js +70 -0
  39. package/lib/components/collapse/src/collapse.js.map +1 -1
  40. package/lib/components/collapse/src/collapse2.js +0 -70
  41. package/lib/components/collapse/src/collapse2.js.map +1 -1
  42. package/lib/components/confirm-password/index.d.ts +352 -283
  43. package/lib/components/confirm-password/src/confirm-password.js.map +1 -1
  44. package/lib/components/confirm-password/src/confirm-password.vue.d.ts +352 -283
  45. package/lib/components/dropdown/src/index.js.map +1 -1
  46. package/lib/components/icon/src/index.js.map +1 -1
  47. package/lib/components/icon/src/index.vue.d.ts +75 -39
  48. package/lib/components/page-size/index.d.ts +2201 -12995
  49. package/lib/components/page-size/src/index.js.map +1 -1
  50. package/lib/components/page-size/src/index.vue.d.ts +2201 -12995
  51. package/lib/components/pagination/index.d.ts +75 -39
  52. package/lib/components/pagination/src/index.js.map +1 -1
  53. package/lib/components/pagination/src/index.vue.d.ts +75 -39
  54. package/lib/components/tab/src/index.js.map +1 -1
  55. package/lib/components/title/src/title.js.map +1 -1
  56. package/lib/components/tooltip/index.d.ts +606 -2136
  57. package/lib/components/tooltip/src/tooltip.vue.d.ts +606 -2136
  58. package/lib/directives/drag/index.d.ts +3 -0
  59. package/lib/directives/drag/index.js +85 -0
  60. package/lib/directives/drag/index.js.map +1 -0
  61. package/lib/directives/index.d.ts +1 -0
  62. package/lib/directives/index.js +2 -0
  63. package/lib/directives/index.js.map +1 -1
  64. package/lib/index.js +18 -16
  65. package/lib/index.js.map +1 -1
  66. package/package.json +1 -1
  67. package/theme/base.css +1 -1
  68. package/theme/index.css +1 -1
  69. package/theme/src/common/display.scss +1 -1
@@ -51,21 +51,71 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
51
51
  [x: string]: unknown;
52
52
  };
53
53
  componentName: import("vue").ComputedRef<string>;
54
- ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
55
- readonly size: {
56
- 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>>;
57
- readonly required: false;
58
- readonly validator: ((val: unknown) => boolean) | undefined;
59
- __epPropKey: true;
60
- };
61
- readonly color: {
62
- readonly type: import("vue").PropType<string>;
63
- readonly required: false;
64
- readonly validator: ((val: unknown) => boolean) | undefined;
65
- __epPropKey: true;
66
- };
67
- }, {
68
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
54
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<{
55
+ new (...args: any[]): {
56
+ $: import("vue").ComponentInternalInstance;
57
+ $data: {};
58
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
59
+ readonly size: {
60
+ 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>>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ };
65
+ readonly color: {
66
+ readonly type: import("vue").PropType<string>;
67
+ readonly required: false;
68
+ readonly validator: ((val: unknown) => boolean) | undefined;
69
+ __epPropKey: true;
70
+ };
71
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
72
+ $attrs: {
73
+ [x: string]: unknown;
74
+ };
75
+ $refs: {
76
+ [x: string]: unknown;
77
+ };
78
+ $slots: Readonly<{
79
+ [name: string]: import("vue").Slot | undefined;
80
+ }>;
81
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
82
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
83
+ $emit: (event: string, ...args: any[]) => void;
84
+ $el: any;
85
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
86
+ readonly size: {
87
+ 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>>;
88
+ readonly required: false;
89
+ readonly validator: ((val: unknown) => boolean) | undefined;
90
+ __epPropKey: true;
91
+ };
92
+ readonly color: {
93
+ readonly type: import("vue").PropType<string>;
94
+ readonly required: false;
95
+ readonly validator: ((val: unknown) => boolean) | undefined;
96
+ __epPropKey: true;
97
+ };
98
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
99
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
100
+ created?: ((() => void) | (() => void)[]) | undefined;
101
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
102
+ mounted?: ((() => void) | (() => void)[]) | undefined;
103
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
104
+ updated?: ((() => void) | (() => void)[]) | undefined;
105
+ activated?: ((() => void) | (() => void)[]) | undefined;
106
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
107
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
108
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
109
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
110
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
111
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
112
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
113
+ 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;
114
+ };
115
+ $forceUpdate: () => void;
116
+ $nextTick: typeof import("vue").nextTick;
117
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
118
+ } & Readonly<import("vue").ExtractPropTypes<{
69
119
  readonly size: {
70
120
  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>>;
71
121
  readonly required: false;
@@ -78,29 +128,11 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
78
128
  readonly validator: ((val: unknown) => boolean) | undefined;
79
129
  __epPropKey: true;
80
130
  };
81
- }>> & {
82
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
83
- }>>;
84
- ns: {
85
- namespace: import("vue").ComputedRef<string>;
86
- b: (blockSuffix?: string | undefined) => string;
87
- e: (element?: string | undefined) => string;
88
- m: (modifier?: string | undefined) => string;
89
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
90
- em: (element?: string | undefined, modifier?: string | undefined) => string;
91
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
92
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
93
- is: {
94
- (name: string, state: boolean | undefined): string;
95
- (name: string): string;
96
- };
97
- cssVar: (object: Record<string, string>) => Record<string, string>;
98
- cssVarName: (name: string) => string;
99
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
100
- cssVarBlockName: (name: string) => string;
101
- };
102
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
103
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
131
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
132
+ __isFragment?: undefined;
133
+ __isTeleport?: undefined;
134
+ __isSuspense?: undefined;
135
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
104
136
  readonly size: {
105
137
  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>>;
106
138
  readonly required: false;
@@ -113,7 +145,11 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
113
145
  readonly validator: ((val: unknown) => boolean) | undefined;
114
146
  __epPropKey: true;
115
147
  };
116
- }>>, {}>> & Record<string, any>;
148
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
149
+ $slots: {
150
+ default?(_: {}): any;
151
+ };
152
+ })>;
117
153
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
118
154
  name: {
119
155
  type: StringConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../packages/components/pagination/src/index.vue"],"sourcesContent":["<template>\n <div class=\"flex justify-content-between hzzt-pagination\">\n <p class=\"flex align-items-center font-12 hzzt-pagination-total\">\n {{ t('hzzt.pagination.total') }}{{ pagination.total\n }}{{ t('hzzt.pagination.strip') }}\n </p>\n <div class=\"flex align-items-center hzzt-pagination-page font-14\">\n <slot name=\"right\" />\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page > 1 }\"\n name=\"arrow-left\"\n @click=\"prePage\"\n />\n <p class=\"flex\">\n {{ pagination.current_page }}/{{ pagination.total_pages }}\n </p>\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page < pagination.total_pages }\"\n name=\"arrow-right\"\n @click=\"nextPage\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztPagination',\n})\n\nconst props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n})\n\nconst emit = defineEmits(['prev', 'next'])\nconst { t } = useLocale()\n\nfunction prePage() {\n if (props.pagination.current_page > 1) {\n emit('prev', props.pagination.current_page - 1)\n } else {\n return false\n }\n}\n\nfunction nextPage() {\n if (props.pagination.current_page < props.pagination.total_pages) {\n emit('next', props.pagination.current_page + 1)\n } else {\n return false\n }\n}\n</script>\n"],"names":["useLocale"],"mappings":";;;;;;;;;;;;;;uCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;AAcA,IAAM,MAAA,EAAE,MAAMA,eAAU,EAAA,CAAA;AAExB,IAAmB,SAAA,OAAA,GAAA;AACjB,MAAI,IAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAG,EAAA;AACrC,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;AAEA,IAAoB,SAAA,QAAA,GAAA;AAClB,MAAA,IAAI,KAAM,CAAA,UAAA,CAAW,YAAe,GAAA,KAAA,CAAM,WAAW,WAAa,EAAA;AAChE,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../packages/components/pagination/src/index.vue"],"sourcesContent":["<template>\n <div class=\"flex justify-content-between hzzt-pagination\">\n <p class=\"flex align-items-center font-12 hzzt-pagination-total\">\n {{ t('hzzt.pagination.total') }}{{ pagination.total\n }}{{ t('hzzt.pagination.strip') }}\n </p>\n <div class=\"flex align-items-center hzzt-pagination-page font-14\">\n <slot name=\"right\" />\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page > 1 }\"\n name=\"arrow-left\"\n @click=\"prePage\"\n />\n <p class=\"flex\">\n {{ pagination.current_page }}/{{ pagination.total_pages }}\n </p>\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page < pagination.total_pages }\"\n name=\"arrow-right\"\n @click=\"nextPage\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztPagination',\n})\n\nconst props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n})\n\nconst emit = defineEmits(['prev', 'next'])\nconst { t } = useLocale()\n\nfunction prePage() {\n if (props.pagination.current_page > 1) {\n emit('prev', props.pagination.current_page - 1)\n } else {\n return false\n }\n}\n\nfunction nextPage() {\n if (props.pagination.current_page < props.pagination.total_pages) {\n emit('next', props.pagination.current_page + 1)\n } else {\n return false\n }\n}\n</script>\n"],"names":["useLocale"],"mappings":";;;;;;;;;;;;;;uCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;AAcA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,SAAS,OAAU,GAAA;AACjB,MAAI,IAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAG,EAAA;AACrC,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;AAEA,IAAA,SAAS,QAAW,GAAA;AAClB,MAAA,IAAI,KAAM,CAAA,UAAA,CAAW,YAAe,GAAA,KAAA,CAAM,WAAW,WAAa,EAAA;AAChE,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -51,21 +51,71 @@ declare const _default: import("vue").DefineComponent<{
51
51
  [x: string]: unknown;
52
52
  };
53
53
  componentName: import("vue").ComputedRef<string>;
54
- ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
55
- readonly size: {
56
- 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>>;
57
- readonly required: false;
58
- readonly validator: ((val: unknown) => boolean) | undefined;
59
- __epPropKey: true;
60
- };
61
- readonly color: {
62
- readonly type: import("vue").PropType<string>;
63
- readonly required: false;
64
- readonly validator: ((val: unknown) => boolean) | undefined;
65
- __epPropKey: true;
66
- };
67
- }, {
68
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
54
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<{
55
+ new (...args: any[]): {
56
+ $: import("vue").ComponentInternalInstance;
57
+ $data: {};
58
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
59
+ readonly size: {
60
+ 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>>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ };
65
+ readonly color: {
66
+ readonly type: import("vue").PropType<string>;
67
+ readonly required: false;
68
+ readonly validator: ((val: unknown) => boolean) | undefined;
69
+ __epPropKey: true;
70
+ };
71
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
72
+ $attrs: {
73
+ [x: string]: unknown;
74
+ };
75
+ $refs: {
76
+ [x: string]: unknown;
77
+ };
78
+ $slots: Readonly<{
79
+ [name: string]: import("vue").Slot | undefined;
80
+ }>;
81
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
82
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
83
+ $emit: (event: string, ...args: any[]) => void;
84
+ $el: any;
85
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
86
+ readonly size: {
87
+ 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>>;
88
+ readonly required: false;
89
+ readonly validator: ((val: unknown) => boolean) | undefined;
90
+ __epPropKey: true;
91
+ };
92
+ readonly color: {
93
+ readonly type: import("vue").PropType<string>;
94
+ readonly required: false;
95
+ readonly validator: ((val: unknown) => boolean) | undefined;
96
+ __epPropKey: true;
97
+ };
98
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
99
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
100
+ created?: ((() => void) | (() => void)[]) | undefined;
101
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
102
+ mounted?: ((() => void) | (() => void)[]) | undefined;
103
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
104
+ updated?: ((() => void) | (() => void)[]) | undefined;
105
+ activated?: ((() => void) | (() => void)[]) | undefined;
106
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
107
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
108
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
109
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
110
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
111
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
112
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
113
+ 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;
114
+ };
115
+ $forceUpdate: () => void;
116
+ $nextTick: typeof import("vue").nextTick;
117
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
118
+ } & Readonly<import("vue").ExtractPropTypes<{
69
119
  readonly size: {
70
120
  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>>;
71
121
  readonly required: false;
@@ -78,29 +128,11 @@ declare const _default: import("vue").DefineComponent<{
78
128
  readonly validator: ((val: unknown) => boolean) | undefined;
79
129
  __epPropKey: true;
80
130
  };
81
- }>> & {
82
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
83
- }>>;
84
- ns: {
85
- namespace: import("vue").ComputedRef<string>;
86
- b: (blockSuffix?: string | undefined) => string;
87
- e: (element?: string | undefined) => string;
88
- m: (modifier?: string | undefined) => string;
89
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
90
- em: (element?: string | undefined, modifier?: string | undefined) => string;
91
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
92
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
93
- is: {
94
- (name: string, state: boolean | undefined): string;
95
- (name: string): string;
96
- };
97
- cssVar: (object: Record<string, string>) => Record<string, string>;
98
- cssVarName: (name: string) => string;
99
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
100
- cssVarBlockName: (name: string) => string;
101
- };
102
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
103
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
131
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
132
+ __isFragment?: undefined;
133
+ __isTeleport?: undefined;
134
+ __isSuspense?: undefined;
135
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
104
136
  readonly size: {
105
137
  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>>;
106
138
  readonly required: false;
@@ -113,7 +145,11 @@ declare const _default: import("vue").DefineComponent<{
113
145
  readonly validator: ((val: unknown) => boolean) | undefined;
114
146
  __epPropKey: true;
115
147
  };
116
- }>>, {}>> & Record<string, any>;
148
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
149
+ $slots: {
150
+ default?(_: {}): any;
151
+ };
152
+ })>;
117
153
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
118
154
  name: {
119
155
  type: StringConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../packages/components/tab/src/index.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-tab flex align-items-center justify-content-between wrap\">\n <div class=\"flex align-items-center\">\n <div class=\"flex\">\n <div\n v-for=\"tab in customTabList\"\n :key=\"tab.key\"\n class=\"hzzt-tab-pane\"\n @click=\"tabClick(tab, $event)\"\n >\n <div class=\"hzzt-tab-badge\">\n <p\n :class=\"{ active: modelValue === tab.name }\"\n class=\"hzzt-tab-badge-text\"\n >\n {{ tab.label }}\n </p>\n <p\n v-if=\"tab.number && tab.number !== 0\"\n class=\"hzzt-tab-badge-count\"\n >\n {{ tab.number > 999 ? '999+' : tab.number }}\n </p>\n </div>\n </div>\n </div>\n <slot name=\"filter\" />\n <slot name=\"extra\" />\n </div>\n <div class=\"flex wrap\">\n <slot name=\"right\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\ndefineOptions({\n name: 'HzztTab',\n})\n\ndeclare type Tab = {\n name: string\n label: string\n number: number\n hide: boolean\n}\n\nconst props = defineProps({\n tabList: {\n type: Array,\n default: () => [],\n },\n modelValue: {\n type: [Number, String, Array],\n },\n})\n\nconst emit = defineEmits(['update:modelValue', 'tab-click'])\n\nconst customTabList = computed(() =>\n props.tabList\n .map((value) => {\n const tab = value as Tab\n return {\n key: `${tab.name}-${tab.number}` as string,\n ...tab,\n number: Number(tab.number || 0),\n hide: tab.hide,\n }\n })\n .filter((tab) => !tab.hide)\n)\n\nfunction tabClick(tab, event) {\n if (tab.name === props.modelValue) return\n emit('update:modelValue', tab.name)\n emit('tab-click', tab, event)\n}\n</script>\n"],"names":["computed"],"mappings":";;;;;;;;;;;;;;;;;uCAsCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;AAqBA,IAAA,MAAM,gBAAgBA,YAAS,CAAA,MAC7B,MAAM,OACH,CAAA,GAAA,CAAI,CAAC,KAAU,KAAA;AACd,MAAA,MAAM,GAAM,GAAA,KAAA,CAAA;AACZ,MAAO,OAAA;AAAA,QACL,GAAK,EAAA,CAAA,EAAG,GAAI,CAAA,IAAA,CAAA,CAAA,EAAQ,GAAI,CAAA,MAAA,CAAA,CAAA;AAAA,QACxB,GAAG,GAAA;AAAA,QACH,MAAQ,EAAA,MAAA,CAAO,GAAI,CAAA,MAAA,IAAU,CAAC,CAAA;AAAA,QAC9B,MAAM,GAAI,CAAA,IAAA;AAAA,OACZ,CAAA;AAAA,KACD,EACA,MAAO,CAAA,CAAC,QAAQ,CAAC,GAAA,CAAI,IAAI,CAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,QAAA,CAAkB,KAAK,KAAO,EAAA;AAC5B,MAAI,IAAA,GAAA,CAAI,SAAS,KAAM,CAAA,UAAA;AAAY,QAAA,OAAA;AACnC,MAAK,IAAA,CAAA,mBAAA,EAAqB,IAAI,IAAI,CAAA,CAAA;AAClC,MAAK,IAAA,CAAA,WAAA,EAAa,KAAK,KAAK,CAAA,CAAA;AAAA,KAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../packages/components/tab/src/index.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-tab flex align-items-center justify-content-between wrap\">\n <div class=\"flex align-items-center\">\n <div class=\"flex\">\n <div\n v-for=\"tab in customTabList\"\n :key=\"tab.key\"\n class=\"hzzt-tab-pane\"\n @click=\"tabClick(tab, $event)\"\n >\n <div class=\"hzzt-tab-badge\">\n <p\n :class=\"{ active: modelValue === tab.name }\"\n class=\"hzzt-tab-badge-text\"\n >\n {{ tab.label }}\n </p>\n <p\n v-if=\"tab.number && tab.number !== 0\"\n class=\"hzzt-tab-badge-count\"\n >\n {{ tab.number > 999 ? '999+' : tab.number }}\n </p>\n </div>\n </div>\n </div>\n <slot name=\"filter\" />\n <slot name=\"extra\" />\n </div>\n <div class=\"flex wrap\">\n <slot name=\"right\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\ndefineOptions({\n name: 'HzztTab',\n})\n\ndeclare type Tab = {\n name: string\n label: string\n number: number\n hide: boolean\n}\n\nconst props = defineProps({\n tabList: {\n type: Array,\n default: () => [],\n },\n modelValue: {\n type: [Number, String, Array],\n },\n})\n\nconst emit = defineEmits(['update:modelValue', 'tab-click'])\n\nconst customTabList = computed(() =>\n props.tabList\n .map((value) => {\n const tab = value as Tab\n return {\n key: `${tab.name}-${tab.number}` as string,\n ...tab,\n number: Number(tab.number || 0),\n hide: tab.hide,\n }\n })\n .filter((tab) => !tab.hide)\n)\n\nfunction tabClick(tab, event) {\n if (tab.name === props.modelValue) return\n emit('update:modelValue', tab.name)\n emit('tab-click', tab, event)\n}\n</script>\n"],"names":["computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;uCAsCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;AAqBA,IAAA,MAAM,aAAgB,GAAAA,YAAA,CAAA,MAAA,KAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,KAAA,KAAA;AAAA,MAAS,MAC7B,GAAA,GAAM,KACH,CAAA;AACC,MAAA,OAAA;AACA,QAAO,GAAA,EAAA,CAAA,EAAA,GAAA,CAAA,IAAA,CAAA,CAAA,EAAA,GAAA,CAAA,MAAA,CAAA,CAAA;AAAA,QAAA;AACyB,QAAA,MAC3B,EAAA,MAAA,CAAA,GAAA,CAAA,MAAA,IAAA,CAAA,CAAA;AAAA,QAAA,IACK,EAAA,GAAA,CAAA,IAAA;AAAsB,OAAA,CAAA;AACpB,KACZ,CAAA,CAAA,MAAA,CAAA,CAAA,GAAA,KAAA,CAAA,GAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AAAA,IAAA,SAED,QAAgB,CAAA,GAAA,OAAS,EAAA;AAAA,MAC9B,IAAA,GAAA,CAAA,IAAA,KAAA,KAAA,CAAA,UAAA;AAEA,QAAS,OAAA;AACP,MAAI,IAAA,CAAA,mBAAmB,EAAA,GAAA,CAAA,IAAA,CAAA,CAAA;AAAY,MAAA,IAAA,CAAA,WAAA,EAAA,GAAA,EAAA,KAAA,CAAA,CAAA;AACnC,KAAK;AACL,IAAK,OAAA,CAAA,IAAA,EAAA,MAAa,KAAK;AAAK,MAC9B,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"title.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n})\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;;uCAac,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;AAUA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,SAAA,GAAYC,aAChB,MAAM;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"title.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n})\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;;uCAac,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;AAUA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAAC,YAAA,CAAA,MAAA;AAAA,MAChB,MAAM,EAAM,EAAA,EAAA,EAAA,CAAA;AAAkC,MAChD,OAAA,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;"}