@zl-ui-kit/components 0.27.0 → 0.27.2

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 (117) hide show
  1. package/README.md +18 -22
  2. package/dist/components/ZlAction/List.vue.mjs +49 -46
  3. package/dist/components/ZlAction/index.vue.d.ts +7 -1
  4. package/dist/components/ZlAction/index.vue.mjs +12 -8
  5. package/dist/components/ZlAction/types.d.ts +5 -2
  6. package/dist/components/ZlAppLayout/HeaderAside.css +1 -0
  7. package/dist/components/ZlAppLayout/HeaderAside.vue.d.ts +25 -0
  8. package/dist/components/ZlAppLayout/HeaderAside.vue.mjs +65 -0
  9. package/dist/components/ZlAppLayout/HeaderAside3.vue.mjs +6 -0
  10. package/dist/components/ZlAppLayout/Horizontal.css +1 -1
  11. package/dist/components/ZlAppLayout/Horizontal.vue.mjs +39 -3
  12. package/dist/components/ZlAppLayout/Horizontal3.vue.mjs +6 -0
  13. package/dist/components/ZlAppLayout/Vertical.css +1 -1
  14. package/dist/components/ZlAppLayout/Vertical.vue.mjs +51 -3
  15. package/dist/components/ZlAppLayout/Vertical3.vue.mjs +6 -0
  16. package/dist/components/ZlAppLayout/index.vue.d.ts +6 -6
  17. package/dist/components/ZlAppLayout/index.vue.mjs +14 -8
  18. package/dist/components/ZlAppSlogan/index.css +1 -1
  19. package/dist/components/ZlAppSlogan/index.vue.d.ts +1 -1
  20. package/dist/components/ZlAppSlogan/index.vue.mjs +19 -12
  21. package/dist/components/ZlBreadcrumb/index.css +1 -0
  22. package/dist/components/ZlBreadcrumb/index.vue.d.ts +32 -0
  23. package/dist/components/ZlBreadcrumb/index.vue.mjs +58 -0
  24. package/dist/components/ZlBreadcrumb/index3.vue.mjs +6 -0
  25. package/dist/components/ZlBreadcrumb/types.d.ts +16 -0
  26. package/dist/components/ZlButton/index.vue.d.ts +81 -0
  27. package/dist/components/ZlButton/index.vue.mjs +60 -0
  28. package/dist/components/ZlButton/index2.vue.mjs +5 -0
  29. package/dist/components/ZlCardPage/index.vue.d.ts +41 -3
  30. package/dist/components/ZlCardPage/index.vue.mjs +68 -68
  31. package/dist/components/ZlCardPage/resolvePagination.d.ts +20 -0
  32. package/dist/components/ZlCardPage/resolvePagination.mjs +24 -0
  33. package/dist/components/ZlCheckboxTag/index.css +1 -1
  34. package/dist/components/ZlCheckboxTag/index.vue.d.ts +4 -4
  35. package/dist/components/ZlCheckboxTag/index.vue.mjs +34 -30
  36. package/dist/components/ZlCopy/copy.mjs +17 -7
  37. package/dist/components/ZlCopy/index.css +1 -1
  38. package/dist/components/ZlCopy/index.vue.mjs +2 -2
  39. package/dist/components/ZlCopy/index2.vue.mjs +34 -36
  40. package/dist/components/ZlDescription/index.css +1 -1
  41. package/dist/components/ZlDescription/index.vue.mjs +28 -24
  42. package/dist/components/ZlDevMenu/index.css +1 -0
  43. package/dist/components/ZlDevMenu/index.vue.d.ts +33 -0
  44. package/dist/components/ZlDevMenu/index.vue.mjs +110 -0
  45. package/dist/components/ZlDevMenu/index3.vue.mjs +6 -0
  46. package/dist/components/ZlDevMenu/types.d.ts +8 -0
  47. package/dist/components/ZlDialog/index.css +1 -1
  48. package/dist/components/ZlDialog/index.vue.d.ts +3 -0
  49. package/dist/components/ZlDialog/index.vue.mjs +39 -35
  50. package/dist/components/ZlDictTag/index.vue.d.ts +12 -3
  51. package/dist/components/ZlDictTag/index.vue.mjs +31 -26
  52. package/dist/components/ZlDrawer/index.css +1 -1
  53. package/dist/components/ZlDrawer/index.vue.d.ts +3 -0
  54. package/dist/components/ZlDrawer/index.vue.mjs +36 -32
  55. package/dist/components/ZlDynamicComponent/index.vue.d.ts +5 -3
  56. package/dist/components/ZlForm/index.css +1 -1
  57. package/dist/components/ZlForm/index.vue.d.ts +7 -0
  58. package/dist/components/ZlForm/index.vue.mjs +50 -47
  59. package/dist/components/ZlLayoutSwitch/index.css +1 -1
  60. package/dist/components/ZlLayoutSwitch/index.vue.d.ts +10 -0
  61. package/dist/components/ZlLayoutSwitch/index.vue.mjs +1 -1
  62. package/dist/components/ZlLayoutSwitch/index2.vue.mjs +27 -19
  63. package/dist/components/ZlLoading/index.css +1 -0
  64. package/dist/components/ZlLoading/index.vue.d.ts +27 -0
  65. package/dist/components/ZlLoading/index.vue.mjs +8 -0
  66. package/dist/components/ZlLoading/index2.vue.mjs +30 -0
  67. package/dist/components/ZlLogin/components/LoginForm.css +1 -1
  68. package/dist/components/ZlLogin/components/LoginForm.vue.mjs +1 -1
  69. package/dist/components/ZlLogin/components/LoginForm2.vue.mjs +26 -25
  70. package/dist/components/ZlMenu/MenuIcon.d.ts +17 -0
  71. package/dist/components/ZlMenu/MenuIcon.mjs +21 -0
  72. package/dist/components/ZlMenu/ZlMenuItem.vue.d.ts +7 -0
  73. package/dist/components/ZlMenu/ZlMenuItem.vue.mjs +53 -0
  74. package/dist/components/ZlMenu/ZlMenuItem2.vue.mjs +5 -0
  75. package/dist/components/ZlMenu/index.css +1 -0
  76. package/dist/components/ZlMenu/index.vue.d.ts +40 -0
  77. package/dist/components/ZlMenu/index.vue.mjs +60 -0
  78. package/dist/components/ZlMenu/index3.vue.mjs +6 -0
  79. package/dist/components/ZlMenu/types.d.ts +20 -0
  80. package/dist/components/ZlPageContainer/index.css +1 -1
  81. package/dist/components/ZlPageContainer/index.vue.mjs +1 -1
  82. package/dist/components/ZlPagination/index.css +1 -1
  83. package/dist/components/ZlPagination/index.vue.d.ts +21 -1
  84. package/dist/components/ZlPagination/index.vue.mjs +1 -1
  85. package/dist/components/ZlPagination/index2.vue.mjs +59 -33
  86. package/dist/components/ZlPagination/usePagination.d.ts +1 -0
  87. package/dist/components/ZlPagination/usePagination.mjs +51 -34
  88. package/dist/components/ZlPopconfirm/index.vue.mjs +25 -24
  89. package/dist/components/ZlSearch/index.vue.d.ts +25 -0
  90. package/dist/components/ZlSearch/index.vue.mjs +202 -205
  91. package/dist/components/ZlSearchTable/index.vue.d.ts +40 -2
  92. package/dist/components/ZlSearchTable/index.vue.mjs +59 -55
  93. package/dist/components/ZlTable/useTablePagination.d.ts +1 -0
  94. package/dist/components/ZlTable/useTablePagination.mjs +37 -23
  95. package/dist/components/ZlTabs/index.vue.d.ts +16 -3
  96. package/dist/components/ZlTag/ZlCornerTag.css +1 -1
  97. package/dist/components/ZlTag/ZlCornerTag.vue.d.ts +14 -1
  98. package/dist/components/ZlTag/ZlCornerTag.vue.mjs +25 -14
  99. package/dist/components/ZlTag/index.vue.mjs +4 -4
  100. package/dist/components/ZlUpload/index.css +1 -1
  101. package/dist/components/ZlUpload/index.vue.d.ts +44 -3
  102. package/dist/components/ZlUpload/index.vue.mjs +3 -3
  103. package/dist/components/ZlUpload/index2.vue.mjs +119 -79
  104. package/dist/index.d.ts +8 -2
  105. package/dist/index.mjs +183 -169
  106. package/dist/locales/en.mjs +2 -2
  107. package/dist/locales/zh-cn.mjs +3 -3
  108. package/package.json +5 -5
  109. package/dist/components/ZlAppLayout/Horizontal2.vue.mjs +0 -42
  110. package/dist/components/ZlAppLayout/Vertical2.vue.mjs +0 -56
  111. package/dist/components/ZlAppMenu/AppMenu.css +0 -1
  112. package/dist/components/ZlAppMenu/AppMenu.vue.d.ts +0 -27
  113. package/dist/components/ZlAppMenu/AppMenu.vue.mjs +0 -37
  114. package/dist/components/ZlAppMenu/AppMenu3.vue.mjs +0 -6
  115. package/dist/components/ZlAppMenu/AppMenuItem.vue.d.ts +0 -11
  116. package/dist/components/ZlAppMenu/AppMenuItem.vue.mjs +0 -58
  117. package/dist/components/ZlAppMenu/AppMenuItem2.vue.mjs +0 -5
@@ -13,6 +13,8 @@ type __VLS_Props = {
13
13
  queryItems?: SearchItem[];
14
14
  /** 分页配置;传 false 关闭分页 */
15
15
  pagination?: Record<string, any> | boolean;
16
+ /** 查询项 label 为空时是否不渲染 label 占位,透传给 ZlSearch / ZlForm 的 hideEmptyLabel */
17
+ hideEmptyLabel?: boolean;
16
18
  };
17
19
  declare function __VLS_template(): {
18
20
  attrs: Partial<{}>;
@@ -27,6 +29,7 @@ declare function __VLS_template(): {
27
29
  slot?: boolean;
28
30
  slots?: Record<string, any>;
29
31
  props: Record<string, any>;
32
+ hideLabel?: boolean;
30
33
  };
31
34
  }) => any>> & Partial<Record<string, (_: any) => any>> & {
32
35
  'search-actions'?(_: {}): any;
@@ -41,6 +44,7 @@ declare function __VLS_template(): {
41
44
  readonly immediate?: boolean | undefined;
42
45
  readonly disabled?: boolean | undefined;
43
46
  readonly labelsVisible?: boolean | undefined;
47
+ readonly hideEmptyLabel?: boolean | undefined;
44
48
  readonly showLabels?: boolean | undefined;
45
49
  readonly onReset?: (() => any) | undefined;
46
50
  readonly onSearch?: ((params: Record<string, any>) => any) | undefined;
@@ -55,6 +59,7 @@ declare function __VLS_template(): {
55
59
  $props: {
56
60
  readonly items: import('../..').FormItem[];
57
61
  readonly model?: Record<string, any> | undefined;
62
+ readonly hideEmptyLabel?: boolean | undefined;
58
63
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
59
64
  $attrs: import('vue').Attrs;
60
65
  $refs: {
@@ -73,6 +78,7 @@ declare function __VLS_template(): {
73
78
  $options: import('vue').ComponentOptionsBase<Readonly<{
74
79
  items: import('../..').FormItem[];
75
80
  model?: Record<string, any>;
81
+ hideEmptyLabel?: boolean;
76
82
  }> & Readonly<{}>, {
77
83
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
78
84
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -110,6 +116,7 @@ declare function __VLS_template(): {
110
116
  }> & Omit<Readonly<{
111
117
  items: import('../..').FormItem[];
112
118
  model?: Record<string, any>;
119
+ hideEmptyLabel?: boolean;
113
120
  }> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
114
121
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
115
122
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -132,6 +139,7 @@ declare function __VLS_template(): {
132
139
  slot?: boolean;
133
140
  slots?: Record<string, any>;
134
141
  props: Record<string, any>;
142
+ hideLabel?: boolean;
135
143
  };
136
144
  }) => any>> & {
137
145
  label?(_: {
@@ -145,6 +153,7 @@ declare function __VLS_template(): {
145
153
  slot?: boolean;
146
154
  slots?: Record<string, any>;
147
155
  props: Record<string, any>;
156
+ hideLabel?: boolean;
148
157
  };
149
158
  }): any;
150
159
  default?(_: {}): any;
@@ -156,6 +165,7 @@ declare function __VLS_template(): {
156
165
  $props: {
157
166
  readonly items: import('../..').FormItem[];
158
167
  readonly model?: Record<string, any> | undefined;
168
+ readonly hideEmptyLabel?: boolean | undefined;
159
169
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
160
170
  $attrs: import('vue').Attrs;
161
171
  $refs: {
@@ -174,6 +184,7 @@ declare function __VLS_template(): {
174
184
  $options: import('vue').ComponentOptionsBase<Readonly<{
175
185
  items: import('../..').FormItem[];
176
186
  model?: Record<string, any>;
187
+ hideEmptyLabel?: boolean;
177
188
  }> & Readonly<{}>, {
178
189
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
179
190
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -211,6 +222,7 @@ declare function __VLS_template(): {
211
222
  }> & Omit<Readonly<{
212
223
  items: import('../..').FormItem[];
213
224
  model?: Record<string, any>;
225
+ hideEmptyLabel?: boolean;
214
226
  }> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
215
227
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
216
228
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -233,6 +245,7 @@ declare function __VLS_template(): {
233
245
  slot?: boolean;
234
246
  slots?: Record<string, any>;
235
247
  props: Record<string, any>;
248
+ hideLabel?: boolean;
236
249
  };
237
250
  }) => any>> & {
238
251
  label?(_: {
@@ -246,6 +259,7 @@ declare function __VLS_template(): {
246
259
  slot?: boolean;
247
260
  slots?: Record<string, any>;
248
261
  props: Record<string, any>;
262
+ hideLabel?: boolean;
249
263
  };
250
264
  }): any;
251
265
  default?(_: {}): any;
@@ -266,6 +280,7 @@ declare function __VLS_template(): {
266
280
  immediate?: boolean;
267
281
  disabled?: boolean;
268
282
  labelsVisible?: boolean;
283
+ hideEmptyLabel?: boolean;
269
284
  showLabels?: boolean;
270
285
  }> & Readonly<{
271
286
  onReset?: (() => any) | undefined;
@@ -281,6 +296,7 @@ declare function __VLS_template(): {
281
296
  disabled: boolean;
282
297
  immediate: boolean;
283
298
  items: SearchItem[];
299
+ hideEmptyLabel: boolean;
284
300
  labelsVisible: boolean;
285
301
  showLabels: boolean;
286
302
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -307,6 +323,7 @@ declare function __VLS_template(): {
307
323
  disabled: boolean;
308
324
  immediate: boolean;
309
325
  items: SearchItem[];
326
+ hideEmptyLabel: boolean;
310
327
  labelsVisible: boolean;
311
328
  showLabels: boolean;
312
329
  }> & Omit<Readonly<{
@@ -315,11 +332,12 @@ declare function __VLS_template(): {
315
332
  immediate?: boolean;
316
333
  disabled?: boolean;
317
334
  labelsVisible?: boolean;
335
+ hideEmptyLabel?: boolean;
318
336
  showLabels?: boolean;
319
337
  }> & Readonly<{
320
338
  onReset?: (() => any) | undefined;
321
339
  onSearch?: ((params: Record<string, any>) => any) | undefined;
322
- }>, "reset" | "search" | "params" | ("disabled" | "immediate" | "items" | "labelsVisible" | "showLabels")> & {
340
+ }>, "reset" | "search" | "params" | ("disabled" | "immediate" | "items" | "hideEmptyLabel" | "labelsVisible" | "showLabels")> & {
323
341
  params: Record<string, any>;
324
342
  search: () => Promise<void>;
325
343
  reset: () => Promise<void>;
@@ -335,6 +353,7 @@ declare function __VLS_template(): {
335
353
  slot?: boolean;
336
354
  slots?: Record<string, any>;
337
355
  props: Record<string, any>;
356
+ hideLabel?: boolean;
338
357
  };
339
358
  }) => any>> & Partial<Record<string, (_: {
340
359
  model: Record<string, any>;
@@ -347,6 +366,7 @@ declare function __VLS_template(): {
347
366
  slot?: boolean;
348
367
  slots?: Record<string, any>;
349
368
  props: Record<string, any>;
369
+ hideLabel?: boolean;
350
370
  };
351
371
  }) => any>> & {
352
372
  actions?(_: {}): any;
@@ -513,6 +533,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
513
533
  "onSearch-reset"?: (() => any) | undefined;
514
534
  }>, {
515
535
  immediate: boolean;
536
+ hideEmptyLabel: boolean;
516
537
  queryItems: SearchItem[];
517
538
  columns: TableColumn[];
518
539
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -525,6 +546,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
525
546
  readonly immediate?: boolean | undefined;
526
547
  readonly disabled?: boolean | undefined;
527
548
  readonly labelsVisible?: boolean | undefined;
549
+ readonly hideEmptyLabel?: boolean | undefined;
528
550
  readonly showLabels?: boolean | undefined;
529
551
  readonly onReset?: (() => any) | undefined;
530
552
  readonly onSearch?: ((params: Record<string, any>) => any) | undefined;
@@ -539,6 +561,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
539
561
  $props: {
540
562
  readonly items: import('../..').FormItem[];
541
563
  readonly model?: Record<string, any> | undefined;
564
+ readonly hideEmptyLabel?: boolean | undefined;
542
565
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
543
566
  $attrs: import('vue').Attrs;
544
567
  $refs: {
@@ -557,6 +580,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
557
580
  $options: import('vue').ComponentOptionsBase<Readonly<{
558
581
  items: import('../..').FormItem[];
559
582
  model?: Record<string, any>;
583
+ hideEmptyLabel?: boolean;
560
584
  }> & Readonly<{}>, {
561
585
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
562
586
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -594,6 +618,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
594
618
  }> & Omit<Readonly<{
595
619
  items: import('../..').FormItem[];
596
620
  model?: Record<string, any>;
621
+ hideEmptyLabel?: boolean;
597
622
  }> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
598
623
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
599
624
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -616,6 +641,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
616
641
  slot?: boolean;
617
642
  slots?: Record<string, any>;
618
643
  props: Record<string, any>;
644
+ hideLabel?: boolean;
619
645
  };
620
646
  }) => any>> & {
621
647
  label?(_: {
@@ -629,6 +655,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
629
655
  slot?: boolean;
630
656
  slots?: Record<string, any>;
631
657
  props: Record<string, any>;
658
+ hideLabel?: boolean;
632
659
  };
633
660
  }): any;
634
661
  default?(_: {}): any;
@@ -640,6 +667,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
640
667
  $props: {
641
668
  readonly items: import('../..').FormItem[];
642
669
  readonly model?: Record<string, any> | undefined;
670
+ readonly hideEmptyLabel?: boolean | undefined;
643
671
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
644
672
  $attrs: import('vue').Attrs;
645
673
  $refs: {
@@ -658,6 +686,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
658
686
  $options: import('vue').ComponentOptionsBase<Readonly<{
659
687
  items: import('../..').FormItem[];
660
688
  model?: Record<string, any>;
689
+ hideEmptyLabel?: boolean;
661
690
  }> & Readonly<{}>, {
662
691
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
663
692
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -695,6 +724,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
695
724
  }> & Omit<Readonly<{
696
725
  items: import('../..').FormItem[];
697
726
  model?: Record<string, any>;
727
+ hideEmptyLabel?: boolean;
698
728
  }> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
699
729
  validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
700
730
  validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
@@ -717,6 +747,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
717
747
  slot?: boolean;
718
748
  slots?: Record<string, any>;
719
749
  props: Record<string, any>;
750
+ hideLabel?: boolean;
720
751
  };
721
752
  }) => any>> & {
722
753
  label?(_: {
@@ -730,6 +761,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
730
761
  slot?: boolean;
731
762
  slots?: Record<string, any>;
732
763
  props: Record<string, any>;
764
+ hideLabel?: boolean;
733
765
  };
734
766
  }): any;
735
767
  default?(_: {}): any;
@@ -750,6 +782,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
750
782
  immediate?: boolean;
751
783
  disabled?: boolean;
752
784
  labelsVisible?: boolean;
785
+ hideEmptyLabel?: boolean;
753
786
  showLabels?: boolean;
754
787
  }> & Readonly<{
755
788
  onReset?: (() => any) | undefined;
@@ -765,6 +798,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
765
798
  disabled: boolean;
766
799
  immediate: boolean;
767
800
  items: SearchItem[];
801
+ hideEmptyLabel: boolean;
768
802
  labelsVisible: boolean;
769
803
  showLabels: boolean;
770
804
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -791,6 +825,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
791
825
  disabled: boolean;
792
826
  immediate: boolean;
793
827
  items: SearchItem[];
828
+ hideEmptyLabel: boolean;
794
829
  labelsVisible: boolean;
795
830
  showLabels: boolean;
796
831
  }> & Omit<Readonly<{
@@ -799,11 +834,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
799
834
  immediate?: boolean;
800
835
  disabled?: boolean;
801
836
  labelsVisible?: boolean;
837
+ hideEmptyLabel?: boolean;
802
838
  showLabels?: boolean;
803
839
  }> & Readonly<{
804
840
  onReset?: (() => any) | undefined;
805
841
  onSearch?: ((params: Record<string, any>) => any) | undefined;
806
- }>, "reset" | "search" | "params" | ("disabled" | "immediate" | "items" | "labelsVisible" | "showLabels")> & {
842
+ }>, "reset" | "search" | "params" | ("disabled" | "immediate" | "items" | "hideEmptyLabel" | "labelsVisible" | "showLabels")> & {
807
843
  params: Record<string, any>;
808
844
  search: () => Promise<void>;
809
845
  reset: () => Promise<void>;
@@ -819,6 +855,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
819
855
  slot?: boolean;
820
856
  slots?: Record<string, any>;
821
857
  props: Record<string, any>;
858
+ hideLabel?: boolean;
822
859
  };
823
860
  }) => any>> & Partial<Record<string, (_: {
824
861
  model: Record<string, any>;
@@ -831,6 +868,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
831
868
  slot?: boolean;
832
869
  slots?: Record<string, any>;
833
870
  props: Record<string, any>;
871
+ hideLabel?: boolean;
834
872
  };
835
873
  }) => any>> & {
836
874
  actions?(_: {}): any;
@@ -1,11 +1,11 @@
1
- import { defineComponent as E, useSlots as K, useAttrs as T, computed as m, ref as b, toRef as V, watch as L, openBlock as y, createElementBlock as W, createBlock as Z, createSlots as q, withCtx as f, renderSlot as d, renderList as S, normalizeProps as $, guardReactiveProps as P, createCommentVNode as x, createVNode as F, mergeProps as G, unref as h } from "vue";
2
- import { usePageableRequest as H } from "@zl-ui-kit/composables";
3
- import J from "../ZlSearch/index.vue.mjs";
1
+ import { defineComponent as K, useSlots as T, useAttrs as V, computed as m, ref as b, toRef as W, watch as Z, openBlock as y, createElementBlock as _, createBlock as x, createSlots as P, withCtx as f, renderSlot as d, renderList as q, normalizeProps as S, guardReactiveProps as $, createCommentVNode as F, createVNode as G, mergeProps as H, unref as h } from "vue";
2
+ import { usePageableRequest as J } from "@zl-ui-kit/composables";
3
+ import M from "../ZlSearch/index.vue.mjs";
4
4
  import '../ZlTable/index.css';import '../ZlSearch/index.css';/* empty css */
5
- import M from "../ZlTable/index.vue.mjs";
5
+ import Q from "../ZlTable/index.vue.mjs";
6
6
  /* empty css */
7
- import { useTablePagination as Q } from "../ZlTable/useTablePagination.mjs";
8
- const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
7
+ import { useTablePagination as U } from "../ZlTable/useTablePagination.mjs";
8
+ const X = { class: "zl-search-table" }, R = "search-", oe = /* @__PURE__ */ K({
9
9
  name: "ZlSearchTable",
10
10
  inheritAttrs: !1,
11
11
  __name: "index",
@@ -14,66 +14,69 @@ const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
14
14
  request: {},
15
15
  columns: { default: () => [] },
16
16
  queryItems: { default: () => [] },
17
- pagination: { type: [Object, Boolean] }
17
+ pagination: { type: [Object, Boolean] },
18
+ hideEmptyLabel: { type: Boolean, default: !1 }
18
19
  },
19
20
  emits: ["search-reset"],
20
- setup(r, { expose: w, emit: z }) {
21
- const s = r, B = z, k = K(), p = T(), g = m(() => {
21
+ setup(r, { expose: B, emit: w }) {
22
+ const s = r, z = w, C = T(), p = V(), g = m(() => {
22
23
  const e = [], t = [];
23
- return Object.keys(k).forEach((a) => {
24
+ return Object.keys(C).forEach((a) => {
24
25
  if (a.startsWith(R)) {
25
26
  if (a === "search-actions") return;
26
27
  t.push({ slot: a, subSlot: a.slice(R.length) });
27
28
  } else
28
29
  e.push(a);
29
30
  }), { table: e, search: t };
30
- }), n = b(null), i = b(null), v = m(() => {
31
+ }), i = b(null), u = b(null), v = m(() => {
31
32
  const e = { manual: !0, initialData: [] };
32
33
  return typeof s.request == "function" ? { service: s.request, options: e } : {
33
34
  ...s.request,
34
35
  options: Object.assign({ initialData: [] }, s.request.options, { manual: !0 })
35
36
  };
36
37
  }), {
37
- loading: A,
38
- data: C,
39
- run: I,
40
- params: _,
41
- refresh: j
42
- } = H(v.value.service, v.value.options), N = m(() => _.value?.[0]), O = p.dataKey ?? p["data-key"] ?? "rows", { data: D, pagination: l } = Q({
43
- data: C,
44
- pagination: V(s, "pagination"),
45
- dataKey: O,
38
+ loading: N,
39
+ data: k,
40
+ run: A,
41
+ params: E,
42
+ refresh: I
43
+ } = J(v.value.service, v.value.options), j = m(() => E.value?.[0]), L = p.dataKey ?? p["data-key"] ?? "rows", { data: O, pagination: n, setCurrentPage: D } = U({
44
+ data: k,
45
+ pagination: W(s, "pagination"),
46
+ dataKey: L,
46
47
  // 分页事件由 ZlTable 内部处理,这里无需重复派发
47
48
  emit: {}
48
49
  });
49
- let u;
50
- function o(e, t = l.value !== !1 ? { pageNum: 1, pageSize: l.value.pageSize } : void 0) {
51
- u = {
52
- ...u,
50
+ let c;
51
+ function l(e, t = n.value !== !1 ? { pageNum: 1, pageSize: n.value.pageSize } : void 0) {
52
+ c = {
53
+ ...c,
53
54
  ...e,
54
55
  ...t
55
- }, I(u);
56
+ };
57
+ const a = t?.pageNum, o = n.value === !1 ? void 0 : n.value.currentPage;
58
+ a != null && a !== o && D(a), A(c);
56
59
  }
57
- return L(
60
+ return Z(
58
61
  () => s.immediate,
59
62
  (e) => {
60
- e && !s.queryItems.length && o();
63
+ e && !s.queryItems.length && l();
61
64
  },
62
65
  { immediate: !0, once: !0 }
63
- ), w({
66
+ ), B({
64
67
  /** 原地重查:用最近一次入参重新请求,保持当前页码(区别于 `search()` 会回到第 1 页) */
65
- refresh: j,
68
+ refresh: I,
66
69
  /** 最近一次请求的入参(`{ pageNum, pageSize, ...查询表单 }`) */
67
- params: N,
70
+ params: j,
68
71
  /** 内部 ZlSearch 实例,`params` / `search()` / `reset()` 等可直接调用 */
69
72
  search: new Proxy(
70
73
  {},
71
74
  {
72
75
  get(e, t) {
73
- return !n.value && t === "search" ? o : n.value?.[t];
76
+ return !i.value && t === "search" ? l : i.value?.[t];
74
77
  },
75
78
  has(e, t) {
76
- return t in (n.value ?? {});
79
+ return t in (i.value ?? {});
77
80
  }
78
81
  }
79
82
  ),
@@ -82,23 +85,24 @@ const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
82
85
  {},
83
86
  {
84
87
  get(e, t) {
85
- return i.value?.[t];
88
+ return u.value?.[t];
86
89
  },
87
90
  has(e, t) {
88
- return t in (i.value ?? {});
91
+ return t in (u.value ?? {});
89
92
  }
90
93
  }
91
94
  )
92
- }), (e, t) => (y(), W("div", U, [
93
- r.queryItems.length || e.$slots.searchActions || e.$slots["search-actions"] ? (y(), Z(J, {
95
+ }), (e, t) => (y(), _("div", X, [
96
+ r.queryItems.length || e.$slots.searchActions || e.$slots["search-actions"] ? (y(), x(M, {
94
97
  key: 0,
95
98
  ref_key: "searchRef",
96
- ref: n,
99
+ ref: i,
97
100
  items: r.queryItems,
98
101
  immediate: r.immediate,
99
- onSearch: o,
100
- onReset: t[0] || (t[0] = (a) => B("search-reset"))
101
- }, q({ _: 2 }, [
102
+ "hide-empty-label": r.hideEmptyLabel,
103
+ onSearch: l,
104
+ onReset: t[0] || (t[0] = (a) => z("search-reset"))
105
+ }, P({ _: 2 }, [
102
106
  e.$slots.searchActions || e.$slots["search-actions"] ? {
103
107
  name: "actions",
104
108
  fn: f(() => [
@@ -106,28 +110,28 @@ const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
106
110
  ]),
107
111
  key: "0"
108
112
  } : void 0,
109
- S(g.value.search, (a) => ({
113
+ q(g.value.search, (a) => ({
110
114
  name: a.subSlot,
111
- fn: f((c) => [
112
- d(e.$slots, a.slot, $(P(c)))
115
+ fn: f((o) => [
116
+ d(e.$slots, a.slot, S($(o)))
113
117
  ])
114
118
  }))
115
- ]), 1032, ["items", "immediate"])) : x("", !0),
116
- F(M, G({
119
+ ]), 1032, ["items", "immediate", "hide-empty-label"])) : F("", !0),
120
+ G(Q, H({
117
121
  ref_key: "tableRef",
118
- ref: i,
122
+ ref: u,
119
123
  class: "zl-search-table__table",
120
124
  columns: r.columns,
121
- data: h(D),
122
- pagination: h(l),
123
- loading: h(A)
125
+ data: h(O),
126
+ pagination: h(n),
127
+ loading: h(N)
124
128
  }, e.$attrs, {
125
- onPaginationChange: t[1] || (t[1] = (a) => o(void 0, a))
126
- }), q({ _: 2 }, [
127
- S(g.value.table, (a) => ({
129
+ onPaginationChange: t[1] || (t[1] = (a) => l(void 0, a))
130
+ }), P({ _: 2 }, [
131
+ q(g.value.table, (a) => ({
128
132
  name: a,
129
- fn: f((c) => [
130
- d(e.$slots, a, $(P(c)))
133
+ fn: f((o) => [
134
+ d(e.$slots, a, S($(o)))
131
135
  ])
132
136
  }))
133
137
  ]), 1040, ["columns", "data", "pagination", "loading"])
@@ -135,6 +139,6 @@ const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
135
139
  }
136
140
  });
137
141
  export {
138
- ne as default
142
+ oe as default
139
143
  };
140
144
  //# sourceMappingURL=index.vue.mjs.map
@@ -25,5 +25,6 @@ export declare function useTablePagination(options: {
25
25
  data: Ref<any[], any[]>;
26
26
  onPageSizeChange: (pageSize: number) => void;
27
27
  onPageChange: (pageNum: number) => void;
28
+ setCurrentPage: (pageNum: number) => void;
28
29
  };
29
30
  //# sourceMappingURL=useTablePagination.d.ts.map
@@ -1,35 +1,49 @@
1
- import { isArray as d, isPlainObject as h } from "@zl-ui-kit/utils";
2
- import { ref as g, computed as b, watch as j } from "vue";
3
- import { usePagination as z } from "../ZlPagination/usePagination.mjs";
4
- function C(c) {
5
- const { data: s, pagination: r, dataKey: l, emit: n } = c, u = z(
6
- () => r.value === void 0 ? {} : r.value
7
- ), t = g([]), a = g({}), i = b(() => u.value ? Object.assign({}, u.value, a.value) : !1);
8
- j(
9
- s,
1
+ import { isArray as z, isPlainObject as b } from "@zl-ui-kit/utils";
2
+ import { ref as c, computed as S, watch as g } from "vue";
3
+ import { usePagination as j } from "../ZlPagination/usePagination.mjs";
4
+ function _(s) {
5
+ const { data: f, pagination: l, dataKey: p, emit: t } = s, a = j(
6
+ () => l.value === void 0 ? {} : l.value
7
+ ), o = c([]), n = c({}), u = S(() => a.value ? Object.assign({}, a.value, n.value) : !1);
8
+ g(
9
+ f,
10
10
  (e) => {
11
- if (d(e))
12
- t.value = e;
13
- else if (h(e)) {
14
- t.value = e[l] ?? [];
15
- const { pageNum: o, pageSize: m, total: v } = e;
16
- a.value = Object.fromEntries(
17
- Object.entries({ currentPage: o, pageSize: m, total: v }).filter(([, P]) => P != null)
11
+ if (z(e))
12
+ o.value = e;
13
+ else if (b(e)) {
14
+ o.value = e[p] ?? [];
15
+ const { pageNum: r, pageSize: P, total: d } = e;
16
+ n.value = Object.fromEntries(
17
+ Object.entries({ currentPage: r, pageSize: P, total: d }).filter(([, h]) => h != null)
18
18
  );
19
19
  }
20
20
  },
21
21
  { immediate: !0 }
22
22
  );
23
- function p(e) {
24
- const o = (i.value === !1 ? 30 : i.value.pageSize) ?? 30;
25
- n("pagination-change", { pageNum: e, pageSize: o }), n("page-change", e), a.value.currentPage = e;
23
+ function i(e) {
24
+ n.value.currentPage = e;
26
25
  }
27
- function f(e) {
28
- n("pagination-change", { pageNum: 1, pageSize: e }), n("page-size-change", e), a.value.currentPage = 1, a.value.pageSize = e;
26
+ g(
27
+ () => a.value === !1 ? void 0 : a.value.currentPage,
28
+ (e) => {
29
+ e != null && i(e);
30
+ }
31
+ ), g(
32
+ () => a.value === !1 ? void 0 : a.value.pageSize,
33
+ (e) => {
34
+ e != null && (n.value.pageSize = e);
35
+ }
36
+ );
37
+ function v(e) {
38
+ const r = (u.value === !1 ? 30 : u.value.pageSize) ?? 30;
39
+ t("pagination-change", { pageNum: e, pageSize: r }), t("page-change", e), i(e);
40
+ }
41
+ function m(e) {
42
+ t("pagination-change", { pageNum: 1, pageSize: e }), t("page-size-change", e), i(1), n.value.pageSize = e;
29
43
  }
30
- return { pagination: i, data: t, onPageSizeChange: f, onPageChange: p };
44
+ return { pagination: u, data: o, onPageSizeChange: m, onPageChange: v, setCurrentPage: i };
31
45
  }
32
46
  export {
33
- C as useTablePagination
47
+ _ as useTablePagination
34
48
  };
35
49
  //# sourceMappingURL=useTablePagination.mjs.map
@@ -1,3 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ /** 页签配置项:`key` 同时作为插槽名(`#tab.key`)与 `el-tab-pane` 的 name */
3
+ export interface TabItem {
4
+ /** 页签唯一键(必填),同时作为内容插槽名(`#<key>`)与 `el-tab-pane` 的 name */
5
+ key: string;
6
+ /** 页签标题 */
7
+ title?: string;
8
+ /** 是否懒挂载,默认 true;与 arco 风 `lazyLoad` 二选一 */
9
+ lazy?: boolean;
10
+ /** arco 风懒挂载开关(`lazy` 的别名,二选一) */
11
+ lazyLoad?: boolean;
12
+ [key: string]: any;
13
+ }
1
14
  /**
2
15
  * 标签页(el-tabs 封装):tabs schema 驱动,每 tab 内容经具名插槽(#tab.key)渲染
3
16
  * EP 映射:tab.key→el-tab-pane name、tab.title→label、tab.lazyLoad|tab.lazy→lazy
@@ -21,7 +34,7 @@
21
34
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
22
35
  /** 页签配置列表,以 key 关联内容插槽 */
23
36
  tabs: {
24
- type: ArrayConstructor;
37
+ type: PropType<TabItem[]>;
25
38
  default: () => never[];
26
39
  };
27
40
  /** 当前激活页签的 key,可用 v-model 双向绑定 */
@@ -49,7 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
49
62
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
63
  /** 页签配置列表,以 key 关联内容插槽 */
51
64
  tabs: {
52
- type: ArrayConstructor;
65
+ type: PropType<TabItem[]>;
53
66
  default: () => never[];
54
67
  };
55
68
  /** 当前激活页签的 key,可用 v-model 双向绑定 */
@@ -75,7 +88,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
75
88
  border: boolean;
76
89
  modelValue: string | number;
77
90
  fit: boolean;
78
- tabs: unknown[];
91
+ tabs: TabItem[];
79
92
  darkNav: boolean;
80
93
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
81
94
  export default _default;
@@ -1 +1 @@
1
- @charset "UTF-8";.zl-corner-tag{position:absolute;z-index:1;display:inline-flex;align-items:center;font-size:12px;line-height:20px;font-weight:600;padding:2px 8px;color:#fff;cursor:default}.zl-corner-tag-color-bg{background-image:linear-gradient(to right,var(--zl-bg-6),var(--zl-bg-3))}.zl-corner-tag-color-blue{background-image:linear-gradient(to right,var(--zl-blue-6),var(--zl-blue-3))}.zl-corner-tag-color-border{background-image:linear-gradient(to right,var(--zl-border-6),var(--zl-border-3))}.zl-corner-tag-color-cyan{background-image:linear-gradient(to right,var(--zl-cyan-6),var(--zl-cyan-3))}.zl-corner-tag-color-danger{background-image:linear-gradient(to right,var(--zl-danger-6),var(--zl-danger-3))}.zl-corner-tag-color-fill{background-image:linear-gradient(to right,var(--zl-fill-6),var(--zl-fill-3))}.zl-corner-tag-color-gold{background-image:linear-gradient(to right,var(--zl-gold-6),var(--zl-gold-3))}.zl-corner-tag-color-gray{background-image:linear-gradient(to right,var(--zl-gray-6),var(--zl-gray-3))}.zl-corner-tag-color-green{background-image:linear-gradient(to right,var(--zl-green-6),var(--zl-green-3))}.zl-corner-tag-color-lime{background-image:linear-gradient(to right,var(--zl-lime-6),var(--zl-lime-3))}.zl-corner-tag-color-link{background-image:linear-gradient(to right,var(--zl-link-6),var(--zl-link-3))}.zl-corner-tag-color-magenta{background-image:linear-gradient(to right,var(--zl-magenta-6),var(--zl-magenta-3))}.zl-corner-tag-color-modo{background-image:linear-gradient(to right,var(--zl-modo-6),var(--zl-modo-3))}.zl-corner-tag-color-neutral{background-image:linear-gradient(to right,var(--zl-neutral-6),var(--zl-neutral-3))}.zl-corner-tag-color-orange{background-image:linear-gradient(to right,var(--zl-orange-6),var(--zl-orange-3))}.zl-corner-tag-color-orangered{background-image:linear-gradient(to right,var(--zl-orangered-6),var(--zl-orangered-3))}.zl-corner-tag-color-pinkpurple{background-image:linear-gradient(to right,var(--zl-pinkpurple-6),var(--zl-pinkpurple-3))}.zl-corner-tag-color-primary{background-image:linear-gradient(to right,var(--zl-primary-6),var(--zl-primary-3))}.zl-corner-tag-color-purple{background-image:linear-gradient(to right,var(--zl-purple-6),var(--zl-purple-3))}.zl-corner-tag-color-red{background-image:linear-gradient(to right,var(--zl-red-6),var(--zl-red-3))}.zl-corner-tag-color-success{background-image:linear-gradient(to right,var(--zl-success-6),var(--zl-success-3))}.zl-corner-tag-color-text{background-image:linear-gradient(to right,var(--zl-text-6),var(--zl-text-3))}.zl-corner-tag-color-warning{background-image:linear-gradient(to right,var(--zl-warning-6),var(--zl-warning-3))}.zl-corner-tag-color-yellow{background-image:linear-gradient(to right,var(--zl-yellow-6),var(--zl-yellow-3))}.zl-corner-tag-position-top-left{top:0;left:0;border-bottom-right-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-top-right{top:0;right:0;border-bottom-left-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-bottom-left{bottom:0;left:0;border-top-right-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-bottom-right{bottom:0;right:0;border-top-left-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-variant-ribbon{--zl-ribbon-size: var(--zl-corner-tag-ribbon-size, 76px);--zl-ribbon-gap: var(--zl-corner-tag-ribbon-gap, 12px);--zl-ribbon-width: var(--zl-corner-tag-ribbon-width, 28px);--zl-ribbon-k: 1.4142;--zl-ribbon-center: calc((var(--zl-ribbon-gap) * 2 + var(--zl-ribbon-width)) * .35355);display:block;width:var(--zl-ribbon-size);height:var(--zl-ribbon-size);padding:0;overflow:hidden}.zl-corner-tag-variant-ribbon .zl-corner-tag__icon{display:none}.zl-corner-tag-variant-ribbon .zl-corner-tag__text{position:absolute;white-space:nowrap;font-size:11px;line-height:1}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-right{clip-path:polygon(calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 0,calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 0,100% calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)),100% calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-right .zl-corner-tag__text{top:var(--zl-ribbon-center);left:calc(100% - var(--zl-ribbon-center));transform:translate(-50%,-50%) rotate(45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-left{clip-path:polygon(calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 0,calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 0,0 calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)),0 calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-left .zl-corner-tag__text{top:var(--zl-ribbon-center);left:var(--zl-ribbon-center);transform:translate(-50%,-50%) rotate(-45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-right{clip-path:polygon(calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 100%,calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 100%,100% calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)),100% calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-right .zl-corner-tag__text{top:calc(100% - var(--zl-ribbon-center));left:calc(100% - var(--zl-ribbon-center));transform:translate(-50%,-50%) rotate(-45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-left{clip-path:polygon(calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 100%,calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 100%,0 calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)),0 calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-left .zl-corner-tag__text{top:calc(100% - var(--zl-ribbon-center));left:var(--zl-ribbon-center);transform:translate(-50%,-50%) rotate(45deg)}
1
+ @charset "UTF-8";.zl-corner-tag{position:absolute;z-index:1;display:inline-flex;align-items:center;font-size:12px;line-height:20px;font-weight:600;padding:2px 8px;color:#fff;cursor:default}.zl-corner-tag-color-bg{background-image:linear-gradient(to right,var(--zl-bg-6),var(--zl-bg-3))}.zl-corner-tag-color-blue{background-image:linear-gradient(to right,var(--zl-blue-6),var(--zl-blue-3))}.zl-corner-tag-color-border{background-image:linear-gradient(to right,var(--zl-border-6),var(--zl-border-3))}.zl-corner-tag-color-cyan{background-image:linear-gradient(to right,var(--zl-cyan-6),var(--zl-cyan-3))}.zl-corner-tag-color-danger{background-image:linear-gradient(to right,var(--zl-danger-6),var(--zl-danger-3))}.zl-corner-tag-color-fill{background-image:linear-gradient(to right,var(--zl-fill-6),var(--zl-fill-3))}.zl-corner-tag-color-gold{background-image:linear-gradient(to right,var(--zl-gold-6),var(--zl-gold-3))}.zl-corner-tag-color-gray{background-image:linear-gradient(to right,var(--zl-gray-6),var(--zl-gray-3))}.zl-corner-tag-color-green{background-image:linear-gradient(to right,var(--zl-green-6),var(--zl-green-3))}.zl-corner-tag-color-lime{background-image:linear-gradient(to right,var(--zl-lime-6),var(--zl-lime-3))}.zl-corner-tag-color-link{background-image:linear-gradient(to right,var(--zl-link-6),var(--zl-link-3))}.zl-corner-tag-color-magenta{background-image:linear-gradient(to right,var(--zl-magenta-6),var(--zl-magenta-3))}.zl-corner-tag-color-modo{background-image:linear-gradient(to right,var(--zl-modo-6),var(--zl-modo-3))}.zl-corner-tag-color-neutral{background-image:linear-gradient(to right,var(--zl-neutral-6),var(--zl-neutral-3))}.zl-corner-tag-color-orange{background-image:linear-gradient(to right,var(--zl-orange-6),var(--zl-orange-3))}.zl-corner-tag-color-orangered{background-image:linear-gradient(to right,var(--zl-orangered-6),var(--zl-orangered-3))}.zl-corner-tag-color-pinkpurple{background-image:linear-gradient(to right,var(--zl-pinkpurple-6),var(--zl-pinkpurple-3))}.zl-corner-tag-color-primary{background-image:linear-gradient(to right,var(--zl-primary-6),var(--zl-primary-3))}.zl-corner-tag-color-purple{background-image:linear-gradient(to right,var(--zl-purple-6),var(--zl-purple-3))}.zl-corner-tag-color-red{background-image:linear-gradient(to right,var(--zl-red-6),var(--zl-red-3))}.zl-corner-tag-color-success{background-image:linear-gradient(to right,var(--zl-success-6),var(--zl-success-3))}.zl-corner-tag-color-text{background-image:linear-gradient(to right,var(--zl-text-6),var(--zl-text-3))}.zl-corner-tag-color-warning{background-image:linear-gradient(to right,var(--zl-warning-6),var(--zl-warning-3))}.zl-corner-tag-color-yellow{background-image:linear-gradient(to right,var(--zl-yellow-6),var(--zl-yellow-3))}.zl-corner-tag-position-top-left{top:0;left:0;border-bottom-right-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-top-right{top:0;right:0;border-bottom-left-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-bottom-left{bottom:0;left:0;border-top-right-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-position-bottom-right{bottom:0;right:0;border-top-left-radius:var(--zl-radius-xl, 12px)}.zl-corner-tag-variant-ribbon{--zl-ribbon-size: var(--zl-corner-tag-ribbon-size, 76px);--zl-ribbon-gap: var(--zl-corner-tag-ribbon-gap, 12px);--zl-ribbon-width: var(--zl-corner-tag-ribbon-width, 28px);--zl-ribbon-k: 1.4142;--zl-ribbon-font-size: var( --zl-corner-tag-ribbon-font-size, clamp(10px, calc(var(--zl-ribbon-width) * .4), 16px) );--zl-ribbon-center: calc((var(--zl-ribbon-gap) * 2 + var(--zl-ribbon-width)) * .35355);--zl-ribbon-box: max( var(--zl-ribbon-size), calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) );display:block;width:var(--zl-ribbon-box);height:var(--zl-ribbon-box);padding:0;overflow:hidden}.zl-corner-tag-variant-ribbon .zl-corner-tag__icon{display:none}.zl-corner-tag-variant-ribbon .zl-corner-tag__text{position:absolute;white-space:nowrap;font-size:var(--zl-ribbon-font-size);line-height:1}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-right{clip-path:polygon(calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 0,calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 0,100% calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)),100% calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-right .zl-corner-tag__text{top:var(--zl-ribbon-center);left:calc(100% - var(--zl-ribbon-center));transform:translate(-50%,-50%) rotate(45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-left{clip-path:polygon(calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 0,calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 0,0 calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)),0 calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-top-left .zl-corner-tag__text{top:var(--zl-ribbon-center);left:var(--zl-ribbon-center);transform:translate(-50%,-50%) rotate(-45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-right{clip-path:polygon(calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 100%,calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 100%,100% calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)),100% calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-right .zl-corner-tag__text{top:calc(100% - var(--zl-ribbon-center));left:calc(100% - var(--zl-ribbon-center));transform:translate(-50%,-50%) rotate(-45deg)}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-left{clip-path:polygon(calc((var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)) 100%,calc(var(--zl-ribbon-gap) * var(--zl-ribbon-k)) 100%,0 calc(100% - var(--zl-ribbon-gap) * var(--zl-ribbon-k)),0 calc(100% - (var(--zl-ribbon-gap) + var(--zl-ribbon-width)) * var(--zl-ribbon-k)))}.zl-corner-tag-variant-ribbon.zl-corner-tag-position-bottom-left .zl-corner-tag__text{top:calc(100% - var(--zl-ribbon-center));left:var(--zl-ribbon-center);transform:translate(-50%,-50%) rotate(45deg)}