hy-dispatch-ui-v3 0.1.0 → 0.1.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 (256) hide show
  1. package/dist/tailwind.css +186 -45
  2. package/es/bussiness/index.mjs +0 -1
  3. package/es/components/appButton/appButton.vue.mjs +133 -0
  4. package/es/components/appButton/index.mjs +6 -0
  5. package/es/components/appButton/style/appButton.scss +289 -0
  6. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +91 -0
  7. package/es/components/appConfigProvider/index.mjs +6 -0
  8. package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +105 -60
  9. package/es/components/appConfirmDialog/appConfirmMethod.mjs +49 -27
  10. package/es/components/appConfirmDialog/index.mjs +0 -1
  11. package/es/components/appDatePicker/appDatePicker.vue.mjs +0 -1
  12. package/es/components/appDatePicker/index.mjs +0 -1
  13. package/es/components/appForm/appForm.vue.mjs +64 -67
  14. package/es/components/appForm/index.mjs +0 -1
  15. package/es/components/appForm/js/index.mjs +0 -1
  16. package/es/components/appForm/js/useAppForm.mjs +0 -1
  17. package/es/components/appForm/style/appForm.scss +1 -1
  18. package/es/components/{svgIcon/svgIcon.vue.mjs → appIcon/appIcon.vue.mjs} +4 -5
  19. package/es/components/appIcon/index.mjs +6 -0
  20. package/es/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
  21. package/es/components/{svgIcon/iconBox.vue.mjs → appIconBox/appIconBox.vue.mjs} +6 -7
  22. package/es/components/appIconBox/index.mjs +6 -0
  23. package/es/components/appIconBox/style/appIconBox.scss +27 -0
  24. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +18 -11
  25. package/es/components/appOrgCascader/index.mjs +0 -1
  26. package/es/components/appSearch/appSearch.vue.mjs +2 -6
  27. package/es/components/appSearch/index.mjs +0 -1
  28. package/es/components/appSearch/js/index.mjs +5 -6
  29. package/es/components/appSearch/js/useAppSearch.mjs +0 -1
  30. package/es/components/appSearch/style/appSearch.scss +17 -11
  31. package/es/components/appTable/appTable.vue.mjs +57 -32
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +87 -123
  33. package/es/components/appTable/cpns/columnSelectItem.vue.mjs +5 -0
  34. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +167 -0
  35. package/es/components/appTable/index.mjs +0 -1
  36. package/es/components/appTable/js/index.mjs +9 -8
  37. package/es/components/appTable/js/search.mjs +6 -6
  38. package/es/components/appTable/js/useAppTable.mjs +6 -3
  39. package/es/components/appTable/style/appTable.scss +20 -11
  40. package/es/components/appTooltip/appTooltip.vue.mjs +0 -1
  41. package/es/components/appTooltip/index.mjs +0 -1
  42. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +136 -0
  43. package/es/components/appUserAvatar/index.mjs +6 -0
  44. package/es/components/appUserAvatar/style/appUserAvatar.scss +33 -0
  45. package/es/components/index.mjs +5 -2
  46. package/es/config/index.mjs +0 -1
  47. package/es/constants/index.mjs +0 -1
  48. package/es/constants/keys.mjs +0 -1
  49. package/es/hooks/index.mjs +4 -3
  50. package/es/hooks/useApi.mjs +20 -5
  51. package/es/hooks/useGlobalConfig.mjs +19 -10
  52. package/es/hooks/useLocale.mjs +1 -2
  53. package/es/hooks/useMixins.mjs +0 -1
  54. package/es/{store/maintain.mjs → hooks/useResizeHandler.mjs} +29 -44
  55. package/es/hooks/useUserAvatarMap.mjs +9 -0
  56. package/es/index.mjs +9 -6
  57. package/es/locale/{en_US.mjs → en.mjs} +8 -5
  58. package/es/locale/index.mjs +2 -3
  59. package/es/locale/zh_CN.mjs +6 -3
  60. package/es/make-installer.mjs +2 -8
  61. package/es/static/hy-svg-icons.mjs +11 -0
  62. package/es/style/element/element.scss +16313 -0
  63. package/es/style/element/index.scss +932 -0
  64. package/es/style/index.scss +37 -0
  65. package/es/style/theme.scss +18 -120
  66. package/es/utils/adaptive.mjs +0 -1
  67. package/es/utils/bus.mjs +0 -1
  68. package/es/utils/crypto.mjs +0 -1
  69. package/es/utils/date.mjs +0 -1
  70. package/es/utils/handler.mjs +0 -1
  71. package/es/utils/index.mjs +0 -1
  72. package/es/utils/is.mjs +0 -1
  73. package/es/version.mjs +1 -2
  74. package/lib/bussiness/index.js +0 -1
  75. package/lib/components/appButton/appButton.vue.js +137 -0
  76. package/lib/components/appButton/index.js +11 -0
  77. package/lib/components/appButton/style/appButton.scss +289 -0
  78. package/lib/components/appConfigProvider/appConfigProvider.vue.js +114 -0
  79. package/lib/components/appConfigProvider/index.js +11 -0
  80. package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +103 -58
  81. package/lib/components/appConfirmDialog/appConfirmMethod.js +48 -26
  82. package/lib/components/appConfirmDialog/index.js +0 -1
  83. package/lib/components/appDatePicker/appDatePicker.vue.js +0 -1
  84. package/lib/components/appDatePicker/index.js +0 -1
  85. package/lib/components/appForm/appForm.vue.js +61 -64
  86. package/lib/components/appForm/index.js +0 -1
  87. package/lib/components/appForm/js/index.js +0 -1
  88. package/lib/components/appForm/js/useAppForm.js +0 -1
  89. package/lib/components/appForm/style/appForm.scss +1 -1
  90. package/lib/components/{svgIcon/svgIcon.vue.js → appIcon/appIcon.vue.js} +4 -5
  91. package/lib/components/appIcon/index.js +11 -0
  92. package/lib/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
  93. package/lib/components/{svgIcon/iconBox.vue.js → appIconBox/appIconBox.vue.js} +6 -7
  94. package/lib/components/appIconBox/index.js +11 -0
  95. package/lib/components/appIconBox/style/appIconBox.scss +27 -0
  96. package/lib/components/appOrgCascader/appOrgCascader.vue.js +18 -11
  97. package/lib/components/appOrgCascader/index.js +0 -1
  98. package/lib/components/appSearch/appSearch.vue.js +2 -6
  99. package/lib/components/appSearch/index.js +0 -1
  100. package/lib/components/appSearch/js/index.js +5 -6
  101. package/lib/components/appSearch/js/useAppSearch.js +0 -1
  102. package/lib/components/appSearch/style/appSearch.scss +17 -11
  103. package/lib/components/appTable/appTable.vue.js +56 -31
  104. package/lib/components/appTable/cpns/columnSelect.vue.js +86 -122
  105. package/lib/components/appTable/cpns/columnSelectItem.vue.js +9 -0
  106. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +171 -0
  107. package/lib/components/appTable/index.js +0 -1
  108. package/lib/components/appTable/js/index.js +9 -7
  109. package/lib/components/appTable/js/search.js +6 -6
  110. package/lib/components/appTable/js/useAppTable.js +6 -3
  111. package/lib/components/appTable/style/appTable.scss +20 -11
  112. package/lib/components/appTooltip/appTooltip.vue.js +0 -1
  113. package/lib/components/appTooltip/index.js +0 -1
  114. package/lib/components/appUserAvatar/appUserAvatar.vue.js +140 -0
  115. package/lib/components/appUserAvatar/index.js +11 -0
  116. package/lib/components/appUserAvatar/style/appUserAvatar.scss +33 -0
  117. package/lib/components/index.js +24 -18
  118. package/lib/config/index.js +0 -1
  119. package/lib/constants/index.js +0 -1
  120. package/lib/constants/keys.js +0 -1
  121. package/lib/hooks/index.js +8 -2
  122. package/lib/hooks/useApi.js +19 -3
  123. package/lib/hooks/useGlobalConfig.js +21 -11
  124. package/lib/hooks/useLocale.js +1 -2
  125. package/lib/hooks/useMixins.js +0 -1
  126. package/lib/{store/maintain.js → hooks/useResizeHandler.js} +29 -44
  127. package/lib/hooks/useUserAvatarMap.js +12 -0
  128. package/lib/index.js +37 -28
  129. package/lib/locale/{en_US.js → en.js} +8 -5
  130. package/lib/locale/index.js +3 -4
  131. package/lib/locale/zh_CN.js +6 -3
  132. package/lib/make-installer.js +1 -7
  133. package/lib/static/hy-svg-icons.js +13 -0
  134. package/lib/style/element/element.scss +16313 -0
  135. package/lib/style/element/index.scss +932 -0
  136. package/lib/style/index.scss +37 -0
  137. package/lib/style/theme.scss +18 -120
  138. package/lib/utils/adaptive.js +0 -1
  139. package/lib/utils/bus.js +0 -1
  140. package/lib/utils/crypto.js +0 -1
  141. package/lib/utils/date.js +0 -1
  142. package/lib/utils/handler.js +0 -1
  143. package/lib/utils/index.js +0 -1
  144. package/lib/utils/is.js +0 -1
  145. package/lib/version.js +1 -2
  146. package/package.json +17 -7
  147. package/es/bussiness/index.mjs.map +0 -1
  148. package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +0 -1
  149. package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +0 -1
  150. package/es/components/appConfirmDialog/index.mjs.map +0 -1
  151. package/es/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
  152. package/es/components/appDatePicker/appDatePicker.vue.mjs.map +0 -1
  153. package/es/components/appDatePicker/index.mjs.map +0 -1
  154. package/es/components/appForm/appForm.vue.mjs.map +0 -1
  155. package/es/components/appForm/index.mjs.map +0 -1
  156. package/es/components/appForm/js/index.mjs.map +0 -1
  157. package/es/components/appForm/js/useAppForm.mjs.map +0 -1
  158. package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +0 -1
  159. package/es/components/appOrgCascader/index.mjs.map +0 -1
  160. package/es/components/appSearch/appSearch.vue.mjs.map +0 -1
  161. package/es/components/appSearch/index.mjs.map +0 -1
  162. package/es/components/appSearch/js/index.mjs.map +0 -1
  163. package/es/components/appSearch/js/useAppSearch.mjs.map +0 -1
  164. package/es/components/appTable/appTable.vue.mjs.map +0 -1
  165. package/es/components/appTable/cpns/columnSelect.vue.mjs.map +0 -1
  166. package/es/components/appTable/index.mjs.map +0 -1
  167. package/es/components/appTable/js/index.mjs.map +0 -1
  168. package/es/components/appTable/js/search.mjs.map +0 -1
  169. package/es/components/appTable/js/useAppTable.mjs.map +0 -1
  170. package/es/components/appTooltip/appTooltip.vue.mjs.map +0 -1
  171. package/es/components/appTooltip/index.mjs.map +0 -1
  172. package/es/components/index.mjs.map +0 -1
  173. package/es/components/svgIcon/iconBox.vue.mjs.map +0 -1
  174. package/es/components/svgIcon/index.mjs +0 -9
  175. package/es/components/svgIcon/index.mjs.map +0 -1
  176. package/es/components/svgIcon/style/iconBox.scss +0 -13
  177. package/es/components/svgIcon/svgIcon.vue.mjs.map +0 -1
  178. package/es/config/index.mjs.map +0 -1
  179. package/es/constants/index.mjs.map +0 -1
  180. package/es/constants/keys.mjs.map +0 -1
  181. package/es/hooks/index.mjs.map +0 -1
  182. package/es/hooks/useApi.mjs.map +0 -1
  183. package/es/hooks/useGlobalConfig.mjs.map +0 -1
  184. package/es/hooks/useLocale.mjs.map +0 -1
  185. package/es/hooks/useMixins.mjs.map +0 -1
  186. package/es/index.mjs.map +0 -1
  187. package/es/locale/en_US.mjs.map +0 -1
  188. package/es/locale/index.mjs.map +0 -1
  189. package/es/locale/zh_CN.mjs.map +0 -1
  190. package/es/make-installer.mjs.map +0 -1
  191. package/es/store/index.mjs +0 -7
  192. package/es/store/index.mjs.map +0 -1
  193. package/es/store/maintain.mjs.map +0 -1
  194. package/es/utils/adaptive.mjs.map +0 -1
  195. package/es/utils/bus.mjs.map +0 -1
  196. package/es/utils/crypto.mjs.map +0 -1
  197. package/es/utils/date.mjs.map +0 -1
  198. package/es/utils/handler.mjs.map +0 -1
  199. package/es/utils/index.mjs.map +0 -1
  200. package/es/utils/is.mjs.map +0 -1
  201. package/es/version.mjs.map +0 -1
  202. package/lib/bussiness/index.js.map +0 -1
  203. package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +0 -1
  204. package/lib/components/appConfirmDialog/appConfirmMethod.js.map +0 -1
  205. package/lib/components/appConfirmDialog/index.js.map +0 -1
  206. package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
  207. package/lib/components/appDatePicker/appDatePicker.vue.js.map +0 -1
  208. package/lib/components/appDatePicker/index.js.map +0 -1
  209. package/lib/components/appForm/appForm.vue.js.map +0 -1
  210. package/lib/components/appForm/index.js.map +0 -1
  211. package/lib/components/appForm/js/index.js.map +0 -1
  212. package/lib/components/appForm/js/useAppForm.js.map +0 -1
  213. package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +0 -1
  214. package/lib/components/appOrgCascader/index.js.map +0 -1
  215. package/lib/components/appSearch/appSearch.vue.js.map +0 -1
  216. package/lib/components/appSearch/index.js.map +0 -1
  217. package/lib/components/appSearch/js/index.js.map +0 -1
  218. package/lib/components/appSearch/js/useAppSearch.js.map +0 -1
  219. package/lib/components/appTable/appTable.vue.js.map +0 -1
  220. package/lib/components/appTable/cpns/columnSelect.vue.js.map +0 -1
  221. package/lib/components/appTable/index.js.map +0 -1
  222. package/lib/components/appTable/js/index.js.map +0 -1
  223. package/lib/components/appTable/js/search.js.map +0 -1
  224. package/lib/components/appTable/js/useAppTable.js.map +0 -1
  225. package/lib/components/appTooltip/appTooltip.vue.js.map +0 -1
  226. package/lib/components/appTooltip/index.js.map +0 -1
  227. package/lib/components/index.js.map +0 -1
  228. package/lib/components/svgIcon/iconBox.vue.js.map +0 -1
  229. package/lib/components/svgIcon/index.js +0 -15
  230. package/lib/components/svgIcon/index.js.map +0 -1
  231. package/lib/components/svgIcon/style/iconBox.scss +0 -13
  232. package/lib/components/svgIcon/svgIcon.vue.js.map +0 -1
  233. package/lib/config/index.js.map +0 -1
  234. package/lib/constants/index.js.map +0 -1
  235. package/lib/constants/keys.js.map +0 -1
  236. package/lib/hooks/index.js.map +0 -1
  237. package/lib/hooks/useApi.js.map +0 -1
  238. package/lib/hooks/useGlobalConfig.js.map +0 -1
  239. package/lib/hooks/useLocale.js.map +0 -1
  240. package/lib/hooks/useMixins.js.map +0 -1
  241. package/lib/index.js.map +0 -1
  242. package/lib/locale/en_US.js.map +0 -1
  243. package/lib/locale/index.js.map +0 -1
  244. package/lib/locale/zh_CN.js.map +0 -1
  245. package/lib/make-installer.js.map +0 -1
  246. package/lib/store/index.js +0 -10
  247. package/lib/store/index.js.map +0 -1
  248. package/lib/store/maintain.js.map +0 -1
  249. package/lib/utils/adaptive.js.map +0 -1
  250. package/lib/utils/bus.js.map +0 -1
  251. package/lib/utils/crypto.js.map +0 -1
  252. package/lib/utils/date.js.map +0 -1
  253. package/lib/utils/handler.js.map +0 -1
  254. package/lib/utils/index.js.map +0 -1
  255. package/lib/utils/is.js.map +0 -1
  256. package/lib/version.js.map +0 -1
package/dist/tailwind.css CHANGED
@@ -592,6 +592,18 @@ video {
592
592
  visibility: visible;
593
593
  }
594
594
 
595
+ .collapse {
596
+ visibility: collapse;
597
+ }
598
+
599
+ .static {
600
+ position: static;
601
+ }
602
+
603
+ .fixed {
604
+ position: fixed;
605
+ }
606
+
595
607
  .absolute {
596
608
  position: absolute;
597
609
  }
@@ -600,6 +612,10 @@ video {
600
612
  position: relative;
601
613
  }
602
614
 
615
+ .sticky {
616
+ position: sticky;
617
+ }
618
+
603
619
  .left-0 {
604
620
  left: 0px;
605
621
  }
@@ -616,9 +632,8 @@ video {
616
632
  top: 50%;
617
633
  }
618
634
 
619
- .mx-2 {
620
- margin-left: 0.5rem;
621
- margin-right: 0.5rem;
635
+ .z-\[1\] {
636
+ z-index: 1;
622
637
  }
623
638
 
624
639
  .mb-1\.5 {
@@ -637,6 +652,10 @@ video {
637
652
  margin-left: 0.25rem;
638
653
  }
639
654
 
655
+ .ml-2 {
656
+ margin-left: 0.5rem;
657
+ }
658
+
640
659
  .ml-3 {
641
660
  margin-left: 0.75rem;
642
661
  }
@@ -661,22 +680,22 @@ video {
661
680
  margin-top: 10px;
662
681
  }
663
682
 
683
+ .box-border {
684
+ box-sizing: border-box;
685
+ }
686
+
664
687
  .block {
665
688
  display: block;
666
689
  }
667
690
 
668
- .inline-block {
669
- display: inline-block;
691
+ .inline {
692
+ display: inline;
670
693
  }
671
694
 
672
695
  .flex {
673
696
  display: flex;
674
697
  }
675
698
 
676
- .inline-flex {
677
- display: inline-flex;
678
- }
679
-
680
699
  .table {
681
700
  display: table;
682
701
  }
@@ -697,14 +716,6 @@ video {
697
716
  height: 0px;
698
717
  }
699
718
 
700
- .h-4 {
701
- height: 1rem;
702
- }
703
-
704
- .h-\[253px\] {
705
- height: 253px;
706
- }
707
-
708
719
  .h-\[364px\] {
709
720
  height: 364px;
710
721
  }
@@ -717,6 +728,10 @@ video {
717
728
  height: 38px;
718
729
  }
719
730
 
731
+ .h-\[45px\] {
732
+ height: 45px;
733
+ }
734
+
720
735
  .h-full {
721
736
  height: 100%;
722
737
  }
@@ -741,20 +756,24 @@ video {
741
756
  width: 1.25rem;
742
757
  }
743
758
 
744
- .w-\[124px\] {
745
- width: 124px;
759
+ .w-\[160px\] {
760
+ width: 160px;
746
761
  }
747
762
 
748
763
  .w-\[200px\] {
749
764
  width: 200px;
750
765
  }
751
766
 
767
+ .w-\[30px\] {
768
+ width: 30px;
769
+ }
770
+
752
771
  .w-full {
753
772
  width: 100%;
754
773
  }
755
774
 
756
- .max-w-\[240px\] {
757
- max-width: 240px;
775
+ .w-px {
776
+ width: 1px;
758
777
  }
759
778
 
760
779
  .max-w-\[300px\] {
@@ -769,6 +788,14 @@ video {
769
788
  flex-shrink: 1;
770
789
  }
771
790
 
791
+ .flex-grow {
792
+ flex-grow: 1;
793
+ }
794
+
795
+ .border-collapse {
796
+ border-collapse: collapse;
797
+ }
798
+
772
799
  .-translate-y-1\/2 {
773
800
  --tw-translate-y: -50%;
774
801
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -778,10 +805,18 @@ video {
778
805
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
779
806
  }
780
807
 
808
+ .cursor-default {
809
+ cursor: default;
810
+ }
811
+
781
812
  .cursor-grab {
782
813
  cursor: grab;
783
814
  }
784
815
 
816
+ .cursor-not-allowed {
817
+ cursor: not-allowed;
818
+ }
819
+
785
820
  .cursor-pointer {
786
821
  cursor: pointer;
787
822
  }
@@ -866,8 +901,16 @@ video {
866
901
  border-radius: 0.25rem;
867
902
  }
868
903
 
869
- .rounded-full {
870
- border-radius: 9999px;
904
+ .rounded-\[2px\] {
905
+ border-radius: 2px;
906
+ }
907
+
908
+ .rounded-\[4px\] {
909
+ border-radius: 4px;
910
+ }
911
+
912
+ .rounded-md {
913
+ border-radius: 0.375rem;
871
914
  }
872
915
 
873
916
  .border {
@@ -886,32 +929,60 @@ video {
886
929
  border-right-width: 1px;
887
930
  }
888
931
 
932
+ .\!border-border {
933
+ --tw-border-opacity: 1 !important;
934
+ border-color: rgb(var(--hy-border), var(--tw-border-opacity, 1)) !important;
935
+ }
936
+
937
+ .\!border-theme {
938
+ --tw-border-opacity: 1 !important;
939
+ border-color: rgb(var(--hy-theme), var(--tw-border-opacity, 1)) !important;
940
+ }
941
+
889
942
  .border-border {
890
- border-color: var(--border);
943
+ --tw-border-opacity: 1;
944
+ border-color: rgb(var(--hy-border), var(--tw-border-opacity, 1));
891
945
  }
892
946
 
893
- .\!bg-dialog_background {
894
- background-color: var(--dialog-background) !important;
947
+ .\!bg-background {
948
+ --tw-bg-opacity: 1 !important;
949
+ background-color: rgb(var(--hy-background), var(--tw-bg-opacity, 1)) !important;
895
950
  }
896
951
 
897
- .bg-backgroundv2 {
898
- background-color: var(--backgroundv2);
952
+ .bg-background-2 {
953
+ --tw-bg-opacity: 1;
954
+ background-color: rgb(var(--hy-background-2), var(--tw-bg-opacity, 1));
899
955
  }
900
956
 
901
- .bg-dialog_backgroundv2 {
902
- background-color: var(--dialog-backgroundv2);
957
+ .bg-info {
958
+ --tw-bg-opacity: 1;
959
+ background-color: rgb(var(--hy-info), var(--tw-bg-opacity, 1));
903
960
  }
904
961
 
905
- .bg-theme02 {
906
- background-color: var(--theme-02);
962
+ .bg-success {
963
+ --tw-bg-opacity: 1;
964
+ background-color: rgb(var(--hy-success), var(--tw-bg-opacity, 1));
965
+ }
966
+
967
+ .bg-success\/50 {
968
+ background-color: rgb(var(--hy-success), 0.5);
907
969
  }
908
970
 
909
971
  .\!p-0 {
910
972
  padding: 0px !important;
911
973
  }
912
974
 
913
- .p-\[5px\] {
914
- padding: 5px;
975
+ .p-\[1px\] {
976
+ padding: 1px;
977
+ }
978
+
979
+ .p-\[2px\] {
980
+ padding: 2px;
981
+ }
982
+
983
+ .px-1\.5 {
984
+ padding-left: 0.375rem;
985
+ padding-right: 0.375rem;
915
986
  }
916
987
 
917
988
  .px-3 {
@@ -929,6 +1000,11 @@ video {
929
1000
  padding-right: 10px;
930
1001
  }
931
1002
 
1003
+ .px-\[14px\] {
1004
+ padding-left: 14px;
1005
+ padding-right: 14px;
1006
+ }
1007
+
932
1008
  .px-\[6px\] {
933
1009
  padding-left: 6px;
934
1010
  padding-right: 6px;
@@ -966,6 +1042,10 @@ video {
966
1042
  padding-left: 15px;
967
1043
  }
968
1044
 
1045
+ .pr-1\.5 {
1046
+ padding-right: 0.375rem;
1047
+ }
1048
+
969
1049
  .pr-2 {
970
1050
  padding-right: 0.5rem;
971
1051
  }
@@ -982,10 +1062,18 @@ video {
982
1062
  padding-right: 10px;
983
1063
  }
984
1064
 
1065
+ .pt-2\.5 {
1066
+ padding-top: 0.625rem;
1067
+ }
1068
+
985
1069
  .pt-\[11px\] {
986
1070
  padding-top: 11px;
987
1071
  }
988
1072
 
1073
+ .pt-\[32px\] {
1074
+ padding-top: 32px;
1075
+ }
1076
+
989
1077
  .pt-\[37px\] {
990
1078
  padding-top: 37px;
991
1079
  }
@@ -994,6 +1082,10 @@ video {
994
1082
  padding-top: 5px;
995
1083
  }
996
1084
 
1085
+ .text-center {
1086
+ text-align: center;
1087
+ }
1088
+
997
1089
  .text-base {
998
1090
  font-size: 1rem;
999
1091
  line-height: 1.5rem;
@@ -1009,6 +1101,10 @@ video {
1009
1101
  line-height: 1rem;
1010
1102
  }
1011
1103
 
1104
+ .font-\[600\] {
1105
+ font-weight: 600;
1106
+ }
1107
+
1012
1108
  .font-bold {
1013
1109
  font-weight: 700;
1014
1110
  }
@@ -1021,28 +1117,54 @@ video {
1021
1117
  line-height: 1rem;
1022
1118
  }
1023
1119
 
1120
+ .leading-5 {
1121
+ line-height: 1.25rem;
1122
+ }
1123
+
1024
1124
  .text-auxiliary {
1025
- color: var(--auxiliary);
1125
+ --tw-text-opacity: 1;
1126
+ color: rgb(var(--hy-auxiliary), var(--tw-text-opacity, 1));
1127
+ }
1128
+
1129
+ .text-danger {
1130
+ --tw-text-opacity: 1;
1131
+ color: rgb(var(--hy-danger), var(--tw-text-opacity, 1));
1026
1132
  }
1027
1133
 
1028
- .text-dangerv2 {
1029
- color: var(--dangerv2);
1134
+ .text-danger-2 {
1135
+ --tw-text-opacity: 1;
1136
+ color: rgb(var(--hy-danger-2), var(--tw-text-opacity, 1));
1030
1137
  }
1031
1138
 
1032
1139
  .text-info {
1033
- color: var(--info);
1140
+ --tw-text-opacity: 1;
1141
+ color: rgb(var(--hy-info), var(--tw-text-opacity, 1));
1034
1142
  }
1035
1143
 
1036
1144
  .text-main {
1037
- color: var(--main);
1145
+ --tw-text-opacity: 1;
1146
+ color: rgb(var(--hy-main), var(--tw-text-opacity, 1));
1038
1147
  }
1039
1148
 
1040
1149
  .text-theme {
1041
- color: var(--theme);
1150
+ --tw-text-opacity: 1;
1151
+ color: rgb(var(--hy-theme), var(--tw-text-opacity, 1));
1042
1152
  }
1043
1153
 
1044
1154
  .text-warning {
1045
- color: var(--warning);
1155
+ --tw-text-opacity: 1;
1156
+ color: rgb(var(--hy-warning), var(--tw-text-opacity, 1));
1157
+ }
1158
+
1159
+ .shadow-\[0_0_4px_0\] {
1160
+ --tw-shadow: 0 0 4px 0;
1161
+ --tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);
1162
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1163
+ }
1164
+
1165
+ .shadow-success {
1166
+ --tw-shadow-color: rgb(var(--hy-success), 1);
1167
+ --tw-shadow: var(--tw-shadow-colored);
1046
1168
  }
1047
1169
 
1048
1170
  .outline {
@@ -1054,10 +1176,19 @@ video {
1054
1176
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1055
1177
  }
1056
1178
 
1179
+ .blur-\[1px\] {
1180
+ --tw-blur: blur(1px);
1181
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1182
+ }
1183
+
1057
1184
  .filter {
1058
1185
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1059
1186
  }
1060
1187
 
1188
+ .backdrop-filter {
1189
+ backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1190
+ }
1191
+
1061
1192
  .transition {
1062
1193
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1063
1194
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1074,10 +1205,20 @@ video {
1074
1205
  transition-duration: 300ms;
1075
1206
  }
1076
1207
 
1077
- .hover\:bg-backgroundv2:hover {
1078
- background-color: var(--backgroundv2);
1208
+ .ease-in {
1209
+ transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
1210
+ }
1211
+
1212
+ .ease-in-out {
1213
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1214
+ }
1215
+
1216
+ .hover\:bg-background-2:hover {
1217
+ --tw-bg-opacity: 1;
1218
+ background-color: rgb(var(--hy-background-2), var(--tw-bg-opacity, 1));
1079
1219
  }
1080
1220
 
1081
- .hover\:bg-dialog_backgroundv3:hover {
1082
- background-color: var(--dialog-backgroundv3);
1221
+ .hover\:bg-background-3:hover {
1222
+ --tw-bg-opacity: 1;
1223
+ background-color: rgb(var(--hy-background-3), var(--tw-bg-opacity, 1));
1083
1224
  }
@@ -1,2 +1 @@
1
1
 
2
- //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,133 @@
1
+ import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createBlock, unref, withCtx, createVNode, Fragment } from 'vue';
2
+ import { ElIcon } from 'element-plus';
3
+ import { Loading, ArrowDown } from '@element-plus/icons-vue';
4
+ import { AppIcon } from '../appIcon/index.mjs';
5
+
6
+ import "./style/appButton.scss";
7
+
8
+ const _sfc_main = {
9
+ __name: "appButton",
10
+ props: {
11
+ type: {
12
+ type: String,
13
+ default: "default"
14
+ // default 默认 primary 亮色 success 添加 danger 删除
15
+ },
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ loading: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ size: {
25
+ type: String,
26
+ size: "default"
27
+ // default、small、large
28
+ },
29
+ svgName: {
30
+ type: String
31
+ },
32
+ expand: {
33
+ type: Boolean,
34
+ default: false
35
+ }
36
+ },
37
+ emits: ["click"],
38
+ setup(__props, { emit: __emit }) {
39
+ const props = __props;
40
+ const typeObj = {
41
+ default: "button_default",
42
+ primary: "button_function",
43
+ success: "button_addTo",
44
+ danger: "button_delete"
45
+ };
46
+ const emit = __emit;
47
+ const handleClick = (event) => {
48
+ if (props.disabled || props.loading) return;
49
+ emit("click", event);
50
+ };
51
+ return (_ctx, _cache) => {
52
+ return openBlock(), createElementBlock("button", {
53
+ type: "button",
54
+ disabled: __props.disabled,
55
+ class: normalizeClass(["hy-button p-[2px] box-border rounded-md group", [
56
+ typeObj[props.type],
57
+ {
58
+ "hy-button--large": __props.size === "large",
59
+ "hy-button--small": __props.size === "small",
60
+ "is-disabled": __props.disabled,
61
+ "is-loading": __props.loading,
62
+ clickBox: !__props.disabled && !__props.loading
63
+ }
64
+ ]]),
65
+ onClick: handleClick
66
+ }, [
67
+ createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
68
+ createElementVNode("div", { class: "hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border rounded-[4px]" }, [
69
+ createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
70
+ createElementVNode("div", { class: "hy-button__inner w-full h-full flex items-center justify-center relative rounded-[4px]" }, [
71
+ createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
72
+ renderSlot(_ctx.$slots, "content", {}, () => [
73
+ createElementVNode(
74
+ "div",
75
+ {
76
+ class: normalizeClass(["flex items-center text-main", {
77
+ "px-3": !__props.expand,
78
+ "pl-3 pr-1.5": __props.expand
79
+ }])
80
+ },
81
+ [
82
+ !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
83
+ __props.svgName ? (openBlock(), createBlock(unref(AppIcon), {
84
+ key: 0,
85
+ "svg-name": __props.svgName,
86
+ "class-name": "!w-3 !h-3 text-main mr-2"
87
+ }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
88
+ ]) : (openBlock(), createBlock(unref(ElIcon), {
89
+ key: 1,
90
+ color: "rgb(var(--hy-main))",
91
+ class: "is-loading mr-2"
92
+ }, {
93
+ default: withCtx(() => [
94
+ createVNode(unref(Loading))
95
+ ]),
96
+ _: 1
97
+ /* STABLE */
98
+ })),
99
+ renderSlot(_ctx.$slots, "default")
100
+ ],
101
+ 2
102
+ /* CLASS */
103
+ )
104
+ ]),
105
+ __props.expand ? (openBlock(), createElementBlock(
106
+ Fragment,
107
+ { key: 0 },
108
+ [
109
+ createElementVNode("div", { class: "w-px h-full bg-success/50" }),
110
+ createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
111
+ createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
112
+ default: withCtx(() => [
113
+ createVNode(unref(ArrowDown))
114
+ ]),
115
+ _: 1
116
+ /* STABLE */
117
+ })
118
+ ])
119
+ ],
120
+ 64
121
+ /* STABLE_FRAGMENT */
122
+ )) : createCommentVNode("v-if", true)
123
+ ]),
124
+ createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
125
+ createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
126
+ ])
127
+ ])
128
+ ], 10, ["disabled"]);
129
+ };
130
+ }
131
+ };
132
+
133
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appButton.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppButton = withInstall(_sfc_main);
5
+
6
+ export { AppButton, AppButton as default };