hy-dispatch-ui-v3 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tailwind.css +147 -40
- package/es/bussiness/index.mjs +0 -1
- package/es/components/appButton/appButton.vue.mjs +133 -0
- package/es/components/appButton/index.mjs +6 -0
- package/es/components/appButton/style/appButton.scss +289 -0
- package/es/components/appConfigProvider/appConfigProvider.vue.mjs +75 -0
- package/es/components/appConfigProvider/index.mjs +6 -0
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +69 -48
- package/es/components/appConfirmDialog/appConfirmMethod.mjs +43 -27
- package/es/components/appConfirmDialog/index.mjs +0 -1
- package/es/components/appDatePicker/appDatePicker.vue.mjs +0 -1
- package/es/components/appDatePicker/index.mjs +0 -1
- package/es/components/appForm/appForm.vue.mjs +64 -67
- package/es/components/appForm/index.mjs +0 -1
- package/es/components/appForm/js/index.mjs +0 -1
- package/es/components/appForm/js/useAppForm.mjs +0 -1
- package/es/components/appForm/style/appForm.scss +1 -1
- package/es/components/{svgIcon/svgIcon.vue.mjs → appIcon/appIcon.vue.mjs} +4 -5
- package/es/components/{svgIcon/iconBox.vue.mjs → appIcon/appIconBox.vue.mjs} +5 -6
- package/es/components/appIcon/index.mjs +8 -0
- package/es/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/es/components/appIcon/style/appIconBox.scss +27 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +18 -11
- package/es/components/appOrgCascader/index.mjs +0 -1
- package/es/components/appSearch/appSearch.vue.mjs +2 -6
- package/es/components/appSearch/index.mjs +0 -1
- package/es/components/appSearch/js/index.mjs +0 -1
- package/es/components/appSearch/js/useAppSearch.mjs +0 -1
- package/es/components/appSearch/style/appSearch.scss +17 -11
- package/es/components/appTable/appTable.vue.mjs +56 -31
- package/es/components/appTable/cpns/columnSelect.vue.mjs +87 -123
- package/es/components/appTable/cpns/columnSelectItem.vue.mjs +5 -0
- package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +167 -0
- package/es/components/appTable/index.mjs +0 -1
- package/es/components/appTable/js/index.mjs +9 -8
- package/es/components/appTable/js/search.mjs +5 -6
- package/es/components/appTable/js/useAppTable.mjs +6 -3
- package/es/components/appTable/style/appTable.scss +20 -11
- package/es/components/appTooltip/appTooltip.vue.mjs +0 -1
- package/es/components/appTooltip/index.mjs +0 -1
- package/es/components/index.mjs +3 -2
- package/es/config/index.mjs +0 -1
- package/es/constants/index.mjs +0 -1
- package/es/constants/keys.mjs +0 -1
- package/es/hooks/index.mjs +2 -3
- package/es/hooks/useApi.mjs +11 -5
- package/es/hooks/useGlobalConfig.mjs +14 -10
- package/es/hooks/useLocale.mjs +1 -2
- package/es/hooks/useMixins.mjs +0 -1
- package/es/index.mjs +5 -4
- package/es/locale/{en_US.mjs → en.mjs} +5 -5
- package/es/locale/index.mjs +2 -3
- package/es/locale/zh_CN.mjs +3 -3
- package/es/make-installer.mjs +2 -3
- package/es/static/hy-svg-icons.mjs +11 -0
- package/es/store/index.mjs +0 -1
- package/es/store/maintain.mjs +0 -1
- package/es/style/element/element.scss +16313 -0
- package/es/style/element/index.scss +932 -0
- package/es/style/index.scss +37 -0
- package/es/style/theme.scss +18 -120
- package/es/utils/adaptive.mjs +0 -1
- package/es/utils/bus.mjs +0 -1
- package/es/utils/crypto.mjs +0 -1
- package/es/utils/date.mjs +0 -1
- package/es/utils/handler.mjs +0 -1
- package/es/utils/index.mjs +0 -1
- package/es/utils/is.mjs +0 -1
- package/es/version.mjs +1 -2
- package/lib/bussiness/index.js +0 -1
- package/lib/components/appButton/appButton.vue.js +137 -0
- package/lib/components/appButton/index.js +11 -0
- package/lib/components/appButton/style/appButton.scss +289 -0
- package/lib/components/appConfigProvider/appConfigProvider.vue.js +98 -0
- package/lib/components/appConfigProvider/index.js +11 -0
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +67 -46
- package/lib/components/appConfirmDialog/appConfirmMethod.js +41 -25
- package/lib/components/appConfirmDialog/index.js +0 -1
- package/lib/components/appDatePicker/appDatePicker.vue.js +0 -1
- package/lib/components/appDatePicker/index.js +0 -1
- package/lib/components/appForm/appForm.vue.js +61 -64
- package/lib/components/appForm/index.js +0 -1
- package/lib/components/appForm/js/index.js +0 -1
- package/lib/components/appForm/js/useAppForm.js +0 -1
- package/lib/components/appForm/style/appForm.scss +1 -1
- package/lib/components/{svgIcon/svgIcon.vue.js → appIcon/appIcon.vue.js} +4 -5
- package/lib/components/{svgIcon/iconBox.vue.js → appIcon/appIconBox.vue.js} +6 -7
- package/lib/components/appIcon/index.js +14 -0
- package/lib/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/lib/components/appIcon/style/appIconBox.scss +27 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +18 -11
- package/lib/components/appOrgCascader/index.js +0 -1
- package/lib/components/appSearch/appSearch.vue.js +2 -6
- package/lib/components/appSearch/index.js +0 -1
- package/lib/components/appSearch/js/index.js +0 -1
- package/lib/components/appSearch/js/useAppSearch.js +0 -1
- package/lib/components/appSearch/style/appSearch.scss +17 -11
- package/lib/components/appTable/appTable.vue.js +55 -30
- package/lib/components/appTable/cpns/columnSelect.vue.js +86 -122
- package/lib/components/appTable/cpns/columnSelectItem.vue.js +9 -0
- package/lib/components/appTable/cpns/columnSelectItem.vue2.js +171 -0
- package/lib/components/appTable/index.js +0 -1
- package/lib/components/appTable/js/index.js +9 -7
- package/lib/components/appTable/js/search.js +5 -6
- package/lib/components/appTable/js/useAppTable.js +6 -3
- package/lib/components/appTable/style/appTable.scss +20 -11
- package/lib/components/appTooltip/appTooltip.vue.js +0 -1
- package/lib/components/appTooltip/index.js +0 -1
- package/lib/components/index.js +21 -18
- package/lib/config/index.js +0 -1
- package/lib/constants/index.js +0 -1
- package/lib/constants/keys.js +0 -1
- package/lib/hooks/index.js +3 -2
- package/lib/hooks/useApi.js +10 -3
- package/lib/hooks/useGlobalConfig.js +16 -11
- package/lib/hooks/useLocale.js +1 -2
- package/lib/hooks/useMixins.js +0 -1
- package/lib/index.js +31 -26
- package/lib/locale/{en_US.js → en.js} +5 -5
- package/lib/locale/index.js +3 -4
- package/lib/locale/zh_CN.js +3 -3
- package/lib/make-installer.js +1 -2
- package/lib/static/hy-svg-icons.js +13 -0
- package/lib/store/index.js +0 -1
- package/lib/store/maintain.js +0 -1
- package/lib/style/element/element.scss +16313 -0
- package/lib/style/element/index.scss +932 -0
- package/lib/style/index.scss +37 -0
- package/lib/style/theme.scss +18 -120
- package/lib/utils/adaptive.js +0 -1
- package/lib/utils/bus.js +0 -1
- package/lib/utils/crypto.js +0 -1
- package/lib/utils/date.js +0 -1
- package/lib/utils/handler.js +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/is.js +0 -1
- package/lib/version.js +1 -2
- package/package.json +7 -6
- package/es/bussiness/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +0 -1
- package/es/components/appConfirmDialog/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/es/components/appDatePicker/appDatePicker.vue.mjs.map +0 -1
- package/es/components/appDatePicker/index.mjs.map +0 -1
- package/es/components/appForm/appForm.vue.mjs.map +0 -1
- package/es/components/appForm/index.mjs.map +0 -1
- package/es/components/appForm/js/index.mjs.map +0 -1
- package/es/components/appForm/js/useAppForm.mjs.map +0 -1
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +0 -1
- package/es/components/appOrgCascader/index.mjs.map +0 -1
- package/es/components/appSearch/appSearch.vue.mjs.map +0 -1
- package/es/components/appSearch/index.mjs.map +0 -1
- package/es/components/appSearch/js/index.mjs.map +0 -1
- package/es/components/appSearch/js/useAppSearch.mjs.map +0 -1
- package/es/components/appTable/appTable.vue.mjs.map +0 -1
- package/es/components/appTable/cpns/columnSelect.vue.mjs.map +0 -1
- package/es/components/appTable/index.mjs.map +0 -1
- package/es/components/appTable/js/index.mjs.map +0 -1
- package/es/components/appTable/js/search.mjs.map +0 -1
- package/es/components/appTable/js/useAppTable.mjs.map +0 -1
- package/es/components/appTooltip/appTooltip.vue.mjs.map +0 -1
- package/es/components/appTooltip/index.mjs.map +0 -1
- package/es/components/index.mjs.map +0 -1
- package/es/components/svgIcon/iconBox.vue.mjs.map +0 -1
- package/es/components/svgIcon/index.mjs +0 -9
- package/es/components/svgIcon/index.mjs.map +0 -1
- package/es/components/svgIcon/style/iconBox.scss +0 -13
- package/es/components/svgIcon/svgIcon.vue.mjs.map +0 -1
- package/es/config/index.mjs.map +0 -1
- package/es/constants/index.mjs.map +0 -1
- package/es/constants/keys.mjs.map +0 -1
- package/es/hooks/index.mjs.map +0 -1
- package/es/hooks/useApi.mjs.map +0 -1
- package/es/hooks/useGlobalConfig.mjs.map +0 -1
- package/es/hooks/useLocale.mjs.map +0 -1
- package/es/hooks/useMixins.mjs.map +0 -1
- package/es/index.mjs.map +0 -1
- package/es/locale/en_US.mjs.map +0 -1
- package/es/locale/index.mjs.map +0 -1
- package/es/locale/zh_CN.mjs.map +0 -1
- package/es/make-installer.mjs.map +0 -1
- package/es/store/index.mjs.map +0 -1
- package/es/store/maintain.mjs.map +0 -1
- package/es/utils/adaptive.mjs.map +0 -1
- package/es/utils/bus.mjs.map +0 -1
- package/es/utils/crypto.mjs.map +0 -1
- package/es/utils/date.mjs.map +0 -1
- package/es/utils/handler.mjs.map +0 -1
- package/es/utils/index.mjs.map +0 -1
- package/es/utils/is.mjs.map +0 -1
- package/es/version.mjs.map +0 -1
- package/lib/bussiness/index.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmMethod.js.map +0 -1
- package/lib/components/appConfirmDialog/index.js.map +0 -1
- package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/lib/components/appDatePicker/appDatePicker.vue.js.map +0 -1
- package/lib/components/appDatePicker/index.js.map +0 -1
- package/lib/components/appForm/appForm.vue.js.map +0 -1
- package/lib/components/appForm/index.js.map +0 -1
- package/lib/components/appForm/js/index.js.map +0 -1
- package/lib/components/appForm/js/useAppForm.js.map +0 -1
- package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +0 -1
- package/lib/components/appOrgCascader/index.js.map +0 -1
- package/lib/components/appSearch/appSearch.vue.js.map +0 -1
- package/lib/components/appSearch/index.js.map +0 -1
- package/lib/components/appSearch/js/index.js.map +0 -1
- package/lib/components/appSearch/js/useAppSearch.js.map +0 -1
- package/lib/components/appTable/appTable.vue.js.map +0 -1
- package/lib/components/appTable/cpns/columnSelect.vue.js.map +0 -1
- package/lib/components/appTable/index.js.map +0 -1
- package/lib/components/appTable/js/index.js.map +0 -1
- package/lib/components/appTable/js/search.js.map +0 -1
- package/lib/components/appTable/js/useAppTable.js.map +0 -1
- package/lib/components/appTooltip/appTooltip.vue.js.map +0 -1
- package/lib/components/appTooltip/index.js.map +0 -1
- package/lib/components/index.js.map +0 -1
- package/lib/components/svgIcon/iconBox.vue.js.map +0 -1
- package/lib/components/svgIcon/index.js +0 -15
- package/lib/components/svgIcon/index.js.map +0 -1
- package/lib/components/svgIcon/style/iconBox.scss +0 -13
- package/lib/components/svgIcon/svgIcon.vue.js.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/keys.js.map +0 -1
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useApi.js.map +0 -1
- package/lib/hooks/useGlobalConfig.js.map +0 -1
- package/lib/hooks/useLocale.js.map +0 -1
- package/lib/hooks/useMixins.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/locale/en_US.js.map +0 -1
- package/lib/locale/index.js.map +0 -1
- package/lib/locale/zh_CN.js.map +0 -1
- package/lib/make-installer.js.map +0 -1
- package/lib/store/index.js.map +0 -1
- package/lib/store/maintain.js.map +0 -1
- package/lib/utils/adaptive.js.map +0 -1
- package/lib/utils/bus.js.map +0 -1
- package/lib/utils/crypto.js.map +0 -1
- package/lib/utils/date.js.map +0 -1
- package/lib/utils/handler.js.map +0 -1
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/is.js.map +0 -1
- 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
|
-
.
|
|
620
|
-
|
|
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
|
|
669
|
-
display: inline
|
|
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,10 +716,6 @@ video {
|
|
|
697
716
|
height: 0px;
|
|
698
717
|
}
|
|
699
718
|
|
|
700
|
-
.h-4 {
|
|
701
|
-
height: 1rem;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
719
|
.h-\[253px\] {
|
|
705
720
|
height: 253px;
|
|
706
721
|
}
|
|
@@ -717,6 +732,10 @@ video {
|
|
|
717
732
|
height: 38px;
|
|
718
733
|
}
|
|
719
734
|
|
|
735
|
+
.h-\[45px\] {
|
|
736
|
+
height: 45px;
|
|
737
|
+
}
|
|
738
|
+
|
|
720
739
|
.h-full {
|
|
721
740
|
height: 100%;
|
|
722
741
|
}
|
|
@@ -749,12 +768,16 @@ video {
|
|
|
749
768
|
width: 200px;
|
|
750
769
|
}
|
|
751
770
|
|
|
771
|
+
.w-\[30px\] {
|
|
772
|
+
width: 30px;
|
|
773
|
+
}
|
|
774
|
+
|
|
752
775
|
.w-full {
|
|
753
776
|
width: 100%;
|
|
754
777
|
}
|
|
755
778
|
|
|
756
|
-
.
|
|
757
|
-
|
|
779
|
+
.w-px {
|
|
780
|
+
width: 1px;
|
|
758
781
|
}
|
|
759
782
|
|
|
760
783
|
.max-w-\[300px\] {
|
|
@@ -769,6 +792,14 @@ video {
|
|
|
769
792
|
flex-shrink: 1;
|
|
770
793
|
}
|
|
771
794
|
|
|
795
|
+
.flex-grow {
|
|
796
|
+
flex-grow: 1;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.border-collapse {
|
|
800
|
+
border-collapse: collapse;
|
|
801
|
+
}
|
|
802
|
+
|
|
772
803
|
.-translate-y-1\/2 {
|
|
773
804
|
--tw-translate-y: -50%;
|
|
774
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));
|
|
@@ -778,10 +809,18 @@ video {
|
|
|
778
809
|
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
810
|
}
|
|
780
811
|
|
|
812
|
+
.cursor-default {
|
|
813
|
+
cursor: default;
|
|
814
|
+
}
|
|
815
|
+
|
|
781
816
|
.cursor-grab {
|
|
782
817
|
cursor: grab;
|
|
783
818
|
}
|
|
784
819
|
|
|
820
|
+
.cursor-not-allowed {
|
|
821
|
+
cursor: not-allowed;
|
|
822
|
+
}
|
|
823
|
+
|
|
785
824
|
.cursor-pointer {
|
|
786
825
|
cursor: pointer;
|
|
787
826
|
}
|
|
@@ -866,8 +905,16 @@ video {
|
|
|
866
905
|
border-radius: 0.25rem;
|
|
867
906
|
}
|
|
868
907
|
|
|
869
|
-
.rounded
|
|
870
|
-
border-radius:
|
|
908
|
+
.rounded-\[2px\] {
|
|
909
|
+
border-radius: 2px;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.rounded-\[4px\] {
|
|
913
|
+
border-radius: 4px;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.rounded-md {
|
|
917
|
+
border-radius: 0.375rem;
|
|
871
918
|
}
|
|
872
919
|
|
|
873
920
|
.border {
|
|
@@ -886,32 +933,50 @@ video {
|
|
|
886
933
|
border-right-width: 1px;
|
|
887
934
|
}
|
|
888
935
|
|
|
889
|
-
|
|
890
|
-
border-
|
|
936
|
+
.\!border-border {
|
|
937
|
+
--tw-border-opacity: 1 !important;
|
|
938
|
+
border-color: rgb(var(--hy-border), var(--tw-border-opacity, 1)) !important;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.\!border-theme {
|
|
942
|
+
--tw-border-opacity: 1 !important;
|
|
943
|
+
border-color: rgb(var(--hy-theme), var(--tw-border-opacity, 1)) !important;
|
|
891
944
|
}
|
|
892
945
|
|
|
893
|
-
|
|
894
|
-
|
|
946
|
+
.border-border {
|
|
947
|
+
--tw-border-opacity: 1;
|
|
948
|
+
border-color: rgb(var(--hy-border), var(--tw-border-opacity, 1));
|
|
895
949
|
}
|
|
896
950
|
|
|
897
|
-
|
|
898
|
-
|
|
951
|
+
.\!bg-background {
|
|
952
|
+
--tw-bg-opacity: 1 !important;
|
|
953
|
+
background-color: rgb(var(--hy-background), var(--tw-bg-opacity, 1)) !important;
|
|
899
954
|
}
|
|
900
955
|
|
|
901
|
-
.bg-
|
|
902
|
-
|
|
956
|
+
.bg-background-2 {
|
|
957
|
+
--tw-bg-opacity: 1;
|
|
958
|
+
background-color: rgb(var(--hy-background-2), var(--tw-bg-opacity, 1));
|
|
903
959
|
}
|
|
904
960
|
|
|
905
|
-
.bg-
|
|
906
|
-
background-color: var(--
|
|
961
|
+
.bg-success\/50 {
|
|
962
|
+
background-color: rgb(var(--hy-success), 0.5);
|
|
907
963
|
}
|
|
908
964
|
|
|
909
965
|
.\!p-0 {
|
|
910
966
|
padding: 0px !important;
|
|
911
967
|
}
|
|
912
968
|
|
|
913
|
-
.p-\[
|
|
914
|
-
padding:
|
|
969
|
+
.p-\[1px\] {
|
|
970
|
+
padding: 1px;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.p-\[2px\] {
|
|
974
|
+
padding: 2px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.px-1\.5 {
|
|
978
|
+
padding-left: 0.375rem;
|
|
979
|
+
padding-right: 0.375rem;
|
|
915
980
|
}
|
|
916
981
|
|
|
917
982
|
.px-3 {
|
|
@@ -929,6 +994,11 @@ video {
|
|
|
929
994
|
padding-right: 10px;
|
|
930
995
|
}
|
|
931
996
|
|
|
997
|
+
.px-\[14px\] {
|
|
998
|
+
padding-left: 14px;
|
|
999
|
+
padding-right: 14px;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
932
1002
|
.px-\[6px\] {
|
|
933
1003
|
padding-left: 6px;
|
|
934
1004
|
padding-right: 6px;
|
|
@@ -966,6 +1036,10 @@ video {
|
|
|
966
1036
|
padding-left: 15px;
|
|
967
1037
|
}
|
|
968
1038
|
|
|
1039
|
+
.pr-1\.5 {
|
|
1040
|
+
padding-right: 0.375rem;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
969
1043
|
.pr-2 {
|
|
970
1044
|
padding-right: 0.5rem;
|
|
971
1045
|
}
|
|
@@ -982,6 +1056,10 @@ video {
|
|
|
982
1056
|
padding-right: 10px;
|
|
983
1057
|
}
|
|
984
1058
|
|
|
1059
|
+
.pt-2\.5 {
|
|
1060
|
+
padding-top: 0.625rem;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
985
1063
|
.pt-\[11px\] {
|
|
986
1064
|
padding-top: 11px;
|
|
987
1065
|
}
|
|
@@ -1021,28 +1099,38 @@ video {
|
|
|
1021
1099
|
line-height: 1rem;
|
|
1022
1100
|
}
|
|
1023
1101
|
|
|
1102
|
+
.leading-5 {
|
|
1103
|
+
line-height: 1.25rem;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1024
1106
|
.text-auxiliary {
|
|
1025
|
-
|
|
1107
|
+
--tw-text-opacity: 1;
|
|
1108
|
+
color: rgb(var(--hy-auxiliary), var(--tw-text-opacity, 1));
|
|
1026
1109
|
}
|
|
1027
1110
|
|
|
1028
|
-
.text-
|
|
1029
|
-
|
|
1111
|
+
.text-danger-2 {
|
|
1112
|
+
--tw-text-opacity: 1;
|
|
1113
|
+
color: rgb(var(--hy-danger-2), var(--tw-text-opacity, 1));
|
|
1030
1114
|
}
|
|
1031
1115
|
|
|
1032
1116
|
.text-info {
|
|
1033
|
-
|
|
1117
|
+
--tw-text-opacity: 1;
|
|
1118
|
+
color: rgb(var(--hy-info), var(--tw-text-opacity, 1));
|
|
1034
1119
|
}
|
|
1035
1120
|
|
|
1036
1121
|
.text-main {
|
|
1037
|
-
|
|
1122
|
+
--tw-text-opacity: 1;
|
|
1123
|
+
color: rgb(var(--hy-main), var(--tw-text-opacity, 1));
|
|
1038
1124
|
}
|
|
1039
1125
|
|
|
1040
1126
|
.text-theme {
|
|
1041
|
-
|
|
1127
|
+
--tw-text-opacity: 1;
|
|
1128
|
+
color: rgb(var(--hy-theme), var(--tw-text-opacity, 1));
|
|
1042
1129
|
}
|
|
1043
1130
|
|
|
1044
1131
|
.text-warning {
|
|
1045
|
-
|
|
1132
|
+
--tw-text-opacity: 1;
|
|
1133
|
+
color: rgb(var(--hy-warning), var(--tw-text-opacity, 1));
|
|
1046
1134
|
}
|
|
1047
1135
|
|
|
1048
1136
|
.outline {
|
|
@@ -1054,10 +1142,19 @@ video {
|
|
|
1054
1142
|
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
1143
|
}
|
|
1056
1144
|
|
|
1145
|
+
.blur-\[1px\] {
|
|
1146
|
+
--tw-blur: blur(1px);
|
|
1147
|
+
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);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1057
1150
|
.filter {
|
|
1058
1151
|
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
1152
|
}
|
|
1060
1153
|
|
|
1154
|
+
.backdrop-filter {
|
|
1155
|
+
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);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1061
1158
|
.transition {
|
|
1062
1159
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1063
1160
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1074,10 +1171,20 @@ video {
|
|
|
1074
1171
|
transition-duration: 300ms;
|
|
1075
1172
|
}
|
|
1076
1173
|
|
|
1077
|
-
.
|
|
1078
|
-
|
|
1174
|
+
.ease-in {
|
|
1175
|
+
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.ease-in-out {
|
|
1179
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.hover\:bg-background-2:hover {
|
|
1183
|
+
--tw-bg-opacity: 1;
|
|
1184
|
+
background-color: rgb(var(--hy-background-2), var(--tw-bg-opacity, 1));
|
|
1079
1185
|
}
|
|
1080
1186
|
|
|
1081
|
-
.hover\:bg-
|
|
1082
|
-
|
|
1187
|
+
.hover\:bg-background-3:hover {
|
|
1188
|
+
--tw-bg-opacity: 1;
|
|
1189
|
+
background-color: rgb(var(--hy-background-3), var(--tw-bg-opacity, 1));
|
|
1083
1190
|
}
|
package/es/bussiness/index.mjs
CHANGED
|
@@ -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 _sfc_main$1 from '../appIcon/appIcon.vue.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(_sfc_main$1, {
|
|
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 };
|