giime 0.7.19 → 0.7.21
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/README.md +3 -2
- package/dist/index.css +125 -125
- package/es/components/src/base/button/Button.vue.d.ts +13 -11
- package/es/components/src/base/button/Button.vue2.mjs +27 -13
- package/es/components/src/base/button/Button.vue2.mjs.map +1 -1
- package/es/components/src/base/button/button.d.ts +4 -1
- package/es/components/src/base/button/button.mjs +6 -1
- package/es/components/src/base/button/button.mjs.map +1 -1
- package/es/components/src/base/button/index.d.ts +31 -31
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +1 -1
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -1
- package/es/components/src/composite/operateButton/OperateButton.vue.d.ts +8 -2
- package/es/components/src/composite/operateButton/index.d.ts +8 -2
- package/es/components/src/composite/operateButton/operateButton.d.ts +4 -1
- package/es/components/src/composite/tableCustom/customOperate/customOperate.d.ts +4 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/index.css +125 -125
- package/lib/components/src/base/button/Button.vue.d.ts +13 -11
- package/lib/components/src/base/button/Button.vue2.js +25 -11
- package/lib/components/src/base/button/Button.vue2.js.map +1 -1
- package/lib/components/src/base/button/button.d.ts +4 -1
- package/lib/components/src/base/button/button.js +6 -1
- package/lib/components/src/base/button/button.js.map +1 -1
- package/lib/components/src/base/button/index.d.ts +31 -31
- package/lib/components/src/composite/fileList2/FileList.vue2.js +1 -1
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -1
- package/lib/components/src/composite/operateButton/OperateButton.vue.d.ts +8 -2
- package/lib/components/src/composite/operateButton/index.d.ts +8 -2
- package/lib/components/src/composite/operateButton/operateButton.d.ts +4 -1
- package/lib/components/src/composite/tableCustom/customOperate/customOperate.d.ts +4 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/index.css +125 -125
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ pnpm add giime
|
|
|
24
24
|
- [x] 接入tailwind
|
|
25
25
|
- [x] 接入pinia
|
|
26
26
|
- [x] 实现playground(测试操场)
|
|
27
|
-
- [] vitepress组件文档
|
|
27
|
+
- [x] vitepress组件文档
|
|
28
28
|
|
|
29
29
|
## 文档构建
|
|
30
30
|
|
|
@@ -48,9 +48,10 @@ Giime遵循MIT许可证发布,请查阅LICENSE文件以获取更多信息。
|
|
|
48
48
|
感谢所有贡献者的辛勤工作,以及`ement-Plus`团队提供的灵感和指导。
|
|
49
49
|
|
|
50
50
|
## 版本发布
|
|
51
|
+
|
|
51
52
|
```bash
|
|
52
53
|
git tag v0.1.1
|
|
53
54
|
git push origin --tags
|
|
54
55
|
git tag --sort=-creatordate
|
|
55
56
|
git log tag1..tag2
|
|
56
|
-
```
|
|
57
|
+
```
|
package/dist/index.css
CHANGED
|
@@ -873,18 +873,12 @@ video {
|
|
|
873
873
|
.gm-group:hover .group-hover\:gm-block {
|
|
874
874
|
display: block;
|
|
875
875
|
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
margin: 0;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
.gm-upload-pro-preview-dialog[data-v-80b383d8] [data-v-80b383d8] .el-dialog__body {
|
|
882
|
-
padding: 0;
|
|
876
|
+
.gm-flex-center[data-v-c17deec9] {
|
|
877
|
+
align-items: center;
|
|
883
878
|
}
|
|
884
879
|
|
|
885
|
-
.gm-
|
|
886
|
-
|
|
887
|
-
height: auto;
|
|
880
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
881
|
+
justify-content: space-between;
|
|
888
882
|
}
|
|
889
883
|
.circular[data-v-d7b04fae] {
|
|
890
884
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
@@ -917,6 +911,19 @@ video {
|
|
|
917
911
|
stroke-dashoffset: -120px;
|
|
918
912
|
}
|
|
919
913
|
}
|
|
914
|
+
|
|
915
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
916
|
+
margin: 0;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.gm-upload-pro-preview-dialog[data-v-80b383d8] [data-v-80b383d8] .el-dialog__body {
|
|
920
|
+
padding: 0;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload--picture-card {
|
|
924
|
+
width: auto;
|
|
925
|
+
height: auto;
|
|
926
|
+
}
|
|
920
927
|
.gm-upload-pro-file {
|
|
921
928
|
line-height: normal;
|
|
922
929
|
}
|
|
@@ -955,66 +962,10 @@ video {
|
|
|
955
962
|
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
956
963
|
display: none;
|
|
957
964
|
}
|
|
958
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
-
align-items: center;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
.gm-flex-justify-between[data-v-c17deec9] {
|
|
963
|
-
justify-content: space-between;
|
|
964
|
-
}
|
|
965
|
-
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
966
|
-
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
967
|
-
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
968
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
969
|
-
}
|
|
970
|
-
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
971
|
-
box-shadow: none;
|
|
972
|
-
background: none;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
976
|
-
display: none;
|
|
977
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
981
|
-
display: flex;
|
|
982
|
-
}
|
|
983
965
|
[data-v-d3111183] .gmSearchForm .el-form-item {
|
|
984
966
|
margin-right: 0;
|
|
985
967
|
margin-bottom: 4px;
|
|
986
968
|
}
|
|
987
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
988
|
-
border-right: none;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
992
|
-
height: 0;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
996
|
-
height: 0;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1000
|
-
height: 0;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1004
|
-
height: 0;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1008
|
-
height: 0;
|
|
1009
|
-
}
|
|
1010
|
-
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
1011
|
-
padding: 0;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
1015
|
-
width: auto;
|
|
1016
|
-
height: auto;
|
|
1017
|
-
}
|
|
1018
969
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1019
970
|
border-right: none;
|
|
1020
971
|
}
|
|
@@ -1038,41 +989,6 @@ video {
|
|
|
1038
989
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
1039
990
|
height: 0;
|
|
1040
991
|
}
|
|
1041
|
-
.gm-upload-file {
|
|
1042
|
-
line-height: normal;
|
|
1043
|
-
}
|
|
1044
|
-
.gm-upload-file .el-checkbox {
|
|
1045
|
-
position: absolute;
|
|
1046
|
-
left: 10px;
|
|
1047
|
-
top: 0;
|
|
1048
|
-
z-index: 9;
|
|
1049
|
-
}
|
|
1050
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1051
|
-
gap: 10px;
|
|
1052
|
-
}
|
|
1053
|
-
.gm-upload-file .el-upload-list__item {
|
|
1054
|
-
margin: 0;
|
|
1055
|
-
}
|
|
1056
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1057
|
-
line-height: normal;
|
|
1058
|
-
}
|
|
1059
|
-
.gm-upload-file .el-upload-dragger {
|
|
1060
|
-
padding: 0;
|
|
1061
|
-
border: none;
|
|
1062
|
-
width: 100%;
|
|
1063
|
-
height: 100%;
|
|
1064
|
-
display: flex;
|
|
1065
|
-
}
|
|
1066
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1067
|
-
border: none;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1071
|
-
display: none;
|
|
1072
|
-
}
|
|
1073
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1074
|
-
display: none;
|
|
1075
|
-
}
|
|
1076
992
|
|
|
1077
993
|
.pagination-container[data-v-47d35e7b] {
|
|
1078
994
|
background: #fff;
|
|
@@ -1082,115 +998,199 @@ video {
|
|
|
1082
998
|
display: none;
|
|
1083
999
|
}
|
|
1084
1000
|
|
|
1001
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1002
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1003
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
1004
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1005
|
+
}
|
|
1006
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
1007
|
+
box-shadow: none;
|
|
1008
|
+
background: none;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1012
|
+
display: none;
|
|
1013
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1017
|
+
display: flex;
|
|
1018
|
+
}
|
|
1085
1019
|
@charset "UTF-8";
|
|
1086
|
-
.
|
|
1020
|
+
.custom-operate-drawer .el-drawer__header {
|
|
1087
1021
|
padding: 10px 15px;
|
|
1088
1022
|
margin: 0;
|
|
1089
1023
|
border-bottom: 1px solid #ebeef5;
|
|
1090
1024
|
}
|
|
1091
|
-
.
|
|
1025
|
+
.custom-operate-drawer .el-drawer__title {
|
|
1092
1026
|
font-size: 14px;
|
|
1093
1027
|
color: #333;
|
|
1094
1028
|
}
|
|
1095
|
-
.
|
|
1029
|
+
.custom-operate-drawer .el-drawer__body {
|
|
1096
1030
|
padding: 15px;
|
|
1097
1031
|
}
|
|
1098
|
-
.
|
|
1032
|
+
.custom-operate-drawer .el-drawer__footer {
|
|
1099
1033
|
padding: 10px 15px;
|
|
1100
1034
|
border-top: 1px solid #ebeef5;
|
|
1101
1035
|
}
|
|
1102
|
-
.
|
|
1036
|
+
.custom-operate-drawer .el-checkbox {
|
|
1103
1037
|
display: flex;
|
|
1104
1038
|
align-items: center;
|
|
1105
1039
|
}
|
|
1106
|
-
.
|
|
1040
|
+
.custom-operate-drawer .el-input__inner {
|
|
1107
1041
|
text-align: center;
|
|
1108
1042
|
}
|
|
1109
|
-
.
|
|
1043
|
+
.custom-operate-drawer .el-input__suffix {
|
|
1110
1044
|
position: absolute;
|
|
1111
1045
|
right: 10px;
|
|
1112
1046
|
}
|
|
1113
|
-
.
|
|
1047
|
+
.custom-operate-drawer .custom-content li {
|
|
1114
1048
|
display: flex;
|
|
1115
1049
|
align-items: center;
|
|
1116
1050
|
justify-content: center;
|
|
1117
1051
|
height: 44px;
|
|
1118
1052
|
}
|
|
1119
|
-
.
|
|
1053
|
+
.custom-operate-drawer .custom-group {
|
|
1120
1054
|
max-height: calc(100vh - 226px);
|
|
1121
1055
|
overflow-y: auto;
|
|
1122
1056
|
}
|
|
1123
|
-
.
|
|
1057
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar {
|
|
1124
1058
|
/*滚动条整体样式*/
|
|
1125
1059
|
width: 4px;
|
|
1126
1060
|
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1127
1061
|
height: 1px;
|
|
1128
1062
|
}
|
|
1129
|
-
.
|
|
1063
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1130
1064
|
/*滚动条里面小方块*/
|
|
1131
1065
|
border-radius: 10px;
|
|
1132
1066
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1133
1067
|
background: #999;
|
|
1134
1068
|
}
|
|
1135
|
-
.
|
|
1069
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-track {
|
|
1136
1070
|
/*滚动条里面轨道*/
|
|
1137
1071
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1138
1072
|
border-radius: 10px;
|
|
1139
1073
|
background: #eee;
|
|
1140
1074
|
}
|
|
1075
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1076
|
+
border-right: none;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1080
|
+
height: 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1084
|
+
height: 0;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1088
|
+
height: 0;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1092
|
+
height: 0;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1096
|
+
height: 0;
|
|
1097
|
+
}
|
|
1141
1098
|
@charset "UTF-8";
|
|
1142
|
-
.custom-
|
|
1099
|
+
.table-custom-header-drawer .el-drawer__header {
|
|
1143
1100
|
padding: 10px 15px;
|
|
1144
1101
|
margin: 0;
|
|
1145
1102
|
border-bottom: 1px solid #ebeef5;
|
|
1146
1103
|
}
|
|
1147
|
-
.custom-
|
|
1104
|
+
.table-custom-header-drawer .el-drawer__title {
|
|
1148
1105
|
font-size: 14px;
|
|
1149
1106
|
color: #333;
|
|
1150
1107
|
}
|
|
1151
|
-
.custom-
|
|
1108
|
+
.table-custom-header-drawer .el-drawer__body {
|
|
1152
1109
|
padding: 15px;
|
|
1153
1110
|
}
|
|
1154
|
-
.custom-
|
|
1111
|
+
.table-custom-header-drawer .el-drawer__footer {
|
|
1155
1112
|
padding: 10px 15px;
|
|
1156
1113
|
border-top: 1px solid #ebeef5;
|
|
1157
1114
|
}
|
|
1158
|
-
.custom-
|
|
1115
|
+
.table-custom-header-drawer .el-checkbox {
|
|
1159
1116
|
display: flex;
|
|
1160
1117
|
align-items: center;
|
|
1161
1118
|
}
|
|
1162
|
-
.custom-
|
|
1119
|
+
.table-custom-header-drawer .el-input__inner {
|
|
1163
1120
|
text-align: center;
|
|
1164
1121
|
}
|
|
1165
|
-
.custom-
|
|
1122
|
+
.table-custom-header-drawer .el-input__suffix {
|
|
1166
1123
|
position: absolute;
|
|
1167
1124
|
right: 10px;
|
|
1168
1125
|
}
|
|
1169
|
-
.custom-
|
|
1126
|
+
.table-custom-header-drawer .custom-content li {
|
|
1170
1127
|
display: flex;
|
|
1171
1128
|
align-items: center;
|
|
1172
1129
|
justify-content: center;
|
|
1173
1130
|
height: 44px;
|
|
1174
1131
|
}
|
|
1175
|
-
.custom-
|
|
1132
|
+
.table-custom-header-drawer .custom-group {
|
|
1176
1133
|
max-height: calc(100vh - 226px);
|
|
1177
1134
|
overflow-y: auto;
|
|
1178
1135
|
}
|
|
1179
|
-
.custom-
|
|
1136
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar {
|
|
1180
1137
|
/*滚动条整体样式*/
|
|
1181
1138
|
width: 4px;
|
|
1182
1139
|
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1183
1140
|
height: 1px;
|
|
1184
1141
|
}
|
|
1185
|
-
.custom-
|
|
1142
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1186
1143
|
/*滚动条里面小方块*/
|
|
1187
1144
|
border-radius: 10px;
|
|
1188
1145
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1189
1146
|
background: #999;
|
|
1190
1147
|
}
|
|
1191
|
-
.custom-
|
|
1148
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
|
|
1192
1149
|
/*滚动条里面轨道*/
|
|
1193
1150
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1194
1151
|
border-radius: 10px;
|
|
1195
1152
|
background: #eee;
|
|
1153
|
+
}
|
|
1154
|
+
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
1155
|
+
padding: 0;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
1159
|
+
width: auto;
|
|
1160
|
+
height: auto;
|
|
1161
|
+
}
|
|
1162
|
+
.gm-upload-file {
|
|
1163
|
+
line-height: normal;
|
|
1164
|
+
}
|
|
1165
|
+
.gm-upload-file .el-checkbox {
|
|
1166
|
+
position: absolute;
|
|
1167
|
+
left: 10px;
|
|
1168
|
+
top: 0;
|
|
1169
|
+
z-index: 9;
|
|
1170
|
+
}
|
|
1171
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
1172
|
+
gap: 10px;
|
|
1173
|
+
}
|
|
1174
|
+
.gm-upload-file .el-upload-list__item {
|
|
1175
|
+
margin: 0;
|
|
1176
|
+
}
|
|
1177
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
1178
|
+
line-height: normal;
|
|
1179
|
+
}
|
|
1180
|
+
.gm-upload-file .el-upload-dragger {
|
|
1181
|
+
padding: 0;
|
|
1182
|
+
border: none;
|
|
1183
|
+
width: 100%;
|
|
1184
|
+
height: 100%;
|
|
1185
|
+
display: flex;
|
|
1186
|
+
}
|
|
1187
|
+
.gm-upload-file .el-upload--picture-card {
|
|
1188
|
+
border: none;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1192
|
+
display: none;
|
|
1193
|
+
}
|
|
1194
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1195
|
+
display: none;
|
|
1196
1196
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
2
6
|
size: {
|
|
3
7
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
4
8
|
readonly required: false;
|
|
@@ -14,7 +18,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
20
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
17
|
-
loading: BooleanConstructor;
|
|
18
21
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
19
22
|
plain: BooleanConstructor;
|
|
20
23
|
text: BooleanConstructor;
|
|
@@ -56,8 +59,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
59
|
readonly dark: boolean;
|
|
57
60
|
readonly circle: boolean;
|
|
58
61
|
readonly disabled: boolean;
|
|
59
|
-
readonly nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
60
62
|
readonly loading: boolean;
|
|
63
|
+
readonly nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
61
64
|
readonly bg: boolean;
|
|
62
65
|
readonly autofocus: boolean;
|
|
63
66
|
readonly tag: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>;
|
|
@@ -98,7 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
98
101
|
readonly tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, "button", boolean>;
|
|
99
102
|
}>> & {
|
|
100
103
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
101
|
-
}, "type" | "plain" | "link" | "text" | "round" | "dark" | "circle" | "disabled" | "
|
|
104
|
+
}, "type" | "plain" | "link" | "text" | "round" | "dark" | "circle" | "disabled" | "loading" | "nativeType" | "loadingIcon" | "bg" | "autofocus" | "autoInsertSpace" | "tag">;
|
|
102
105
|
$attrs: {
|
|
103
106
|
[x: string]: unknown;
|
|
104
107
|
};
|
|
@@ -231,9 +234,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
231
234
|
default?(_: {}): any;
|
|
232
235
|
};
|
|
233
236
|
}) | undefined>;
|
|
234
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
|
+
loading: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: undefined;
|
|
241
|
+
};
|
|
237
242
|
size: {
|
|
238
243
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
239
244
|
readonly required: false;
|
|
@@ -249,7 +254,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
249
254
|
__epPropKey: true;
|
|
250
255
|
};
|
|
251
256
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
252
|
-
loading: BooleanConstructor;
|
|
253
257
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
254
258
|
plain: BooleanConstructor;
|
|
255
259
|
text: BooleanConstructor;
|
|
@@ -262,9 +266,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
262
266
|
dark: BooleanConstructor;
|
|
263
267
|
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
264
268
|
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
265
|
-
}
|
|
266
|
-
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
267
|
-
}, {
|
|
269
|
+
}>>, {
|
|
268
270
|
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>;
|
|
269
271
|
plain: boolean;
|
|
270
272
|
link: boolean;
|
|
@@ -273,8 +275,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
273
275
|
dark: boolean;
|
|
274
276
|
circle: boolean;
|
|
275
277
|
disabled: boolean;
|
|
276
|
-
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
277
278
|
loading: boolean;
|
|
279
|
+
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
278
280
|
loadingIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
279
281
|
bg: boolean;
|
|
280
282
|
autofocus: boolean;
|
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
import { defineComponent, useSlots, ref, resolveComponent, openBlock, createBlock, mergeProps,
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import { buttonProps, buttonEmits } from './button.mjs';
|
|
5
|
-
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
|
|
1
|
+
import { defineComponent, useSlots, useAttrs, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, unref, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
+
import { buttonProps } from './button.mjs';
|
|
3
|
+
import { isBoolean } from '../../../../utils/src/is.mjs';
|
|
6
4
|
|
|
7
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
6
|
...{
|
|
9
|
-
name: "GmButton"
|
|
7
|
+
name: "GmButton",
|
|
8
|
+
inheritAttrs: false
|
|
10
9
|
},
|
|
11
10
|
__name: "Button",
|
|
12
11
|
props: buttonProps,
|
|
13
|
-
|
|
14
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
15
13
|
const slots = useSlots();
|
|
14
|
+
const attrs = useAttrs();
|
|
16
15
|
const props = __props;
|
|
17
|
-
const emit = __emit;
|
|
18
|
-
const elEvents = getGmEvent(buttonEmits$1, emit);
|
|
19
16
|
const elRef = ref();
|
|
17
|
+
const isLoading = ref(false);
|
|
18
|
+
const realLoading = computed(() => {
|
|
19
|
+
if (isBoolean(props.loading)) {
|
|
20
|
+
return props.loading;
|
|
21
|
+
}
|
|
22
|
+
return isLoading.value;
|
|
23
|
+
});
|
|
24
|
+
const handleClick = async (evt) => {
|
|
25
|
+
try {
|
|
26
|
+
isLoading.value = true;
|
|
27
|
+
return await attrs.onClick?.(evt);
|
|
28
|
+
} finally {
|
|
29
|
+
isLoading.value = false;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
20
32
|
__expose({
|
|
21
33
|
elRef
|
|
22
34
|
});
|
|
@@ -26,8 +38,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
38
|
ref_key: "elRef",
|
|
27
39
|
ref: elRef
|
|
28
40
|
}, props, {
|
|
29
|
-
type: _ctx.disabled ? "info" : _ctx.type
|
|
30
|
-
|
|
41
|
+
type: _ctx.disabled ? "info" : _ctx.type,
|
|
42
|
+
loading: realLoading.value,
|
|
43
|
+
onClick: handleClick
|
|
44
|
+
}), createSlots({
|
|
31
45
|
_: 2
|
|
32
46
|
/* DYNAMIC */
|
|
33
47
|
}, [
|
|
@@ -52,7 +66,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
66
|
]),
|
|
53
67
|
key: "2"
|
|
54
68
|
} : void 0
|
|
55
|
-
]), 1040, ["type"]);
|
|
69
|
+
]), 1040, ["type", "loading"]);
|
|
56
70
|
};
|
|
57
71
|
}
|
|
58
72
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue2.mjs","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\n <el-button ref=\"elRef\" v-bind=\"props\" :type=\"disabled ? 'info' : type\"
|
|
1
|
+
{"version":3,"file":"Button.vue2.mjs","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\n <el-button ref=\"elRef\" v-bind=\"props\" :type=\"disabled ? 'info' : type\" :loading=\"realLoading\" @click=\"handleClick\">\n <template v-if=\"slots.loading\" #loading=\"slotValue\">\n <slot name=\"loading\" v-bind=\"slotValue\" />\n </template>\n <template v-if=\"slots.default\" #default>\n <slot />\n </template>\n <template v-if=\"slots.icon\" #icon=\"slotValue\">\n <slot name=\"icon\" v-bind=\"slotValue\" />\n </template>\n </el-button>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useAttrs, useSlots } from 'vue';\n// import { omit } from 'lodash-es';\nimport { buttonProps } from './button';\nimport type { ButtonInstance } from 'element-plus';\nimport { isBoolean } from '@giime/utils/src/is';\n\ndefineOptions({\n name: 'GmButton',\n inheritAttrs: false,\n});\nconst slots = useSlots();\nconst attrs = useAttrs() as {\n onClick: (evt: MouseEvent) => Promise<any> | any;\n};\nconst props = defineProps(buttonProps);\n// const emit = defineEmits(buttonEmits);\n// 重发el的事件\n// const elEvents = getGmEvent(elButtonEmits, emit);\n\nconst elRef = ref<ButtonInstance>();\nconst isLoading = ref(false);\nconst realLoading = computed(() => {\n // 优先使用用户传进来的loading\n if (isBoolean(props.loading)) {\n return props.loading;\n }\n return isLoading.value;\n});\nconst handleClick = async (evt: MouseEvent) => {\n try {\n isLoading.value = true;\n return await attrs.onClick?.(evt);\n } finally {\n isLoading.value = false;\n }\n};\ndefineExpose({\n elRef,\n});\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AAwBA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAKd,IAAA,MAAM,QAAQ,GAAoB,EAAA,CAAA;AAClC,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,IAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AAEjC,MAAI,IAAA,SAAA,CAAU,KAAM,CAAA,OAAO,CAAG,EAAA;AAC5B,QAAA,OAAO,KAAM,CAAA,OAAA,CAAA;AAAA,OACf;AACA,MAAA,OAAO,SAAU,CAAA,KAAA,CAAA;AAAA,KAClB,CAAA,CAAA;AACD,IAAM,MAAA,WAAA,GAAc,OAAO,GAAoB,KAAA;AAC7C,MAAI,IAAA;AACF,QAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAClB,QAAO,OAAA,MAAM,KAAM,CAAA,OAAA,GAAU,GAAG,CAAA,CAAA;AAAA,OAChC,SAAA;AACA,QAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAAA,OACpB;AAAA,KACF,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const buttonProps: {
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
2
6
|
size: {
|
|
3
7
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
4
8
|
readonly required: false;
|
|
@@ -14,7 +18,6 @@ export declare const buttonProps: {
|
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
20
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
17
|
-
loading: BooleanConstructor;
|
|
18
21
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
19
22
|
plain: BooleanConstructor;
|
|
20
23
|
text: BooleanConstructor;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { buttonProps as buttonProps$1, buttonEmits as buttonEmits$1, buttonTypes as buttonTypes$1, buttonNativeTypes as buttonNativeTypes$1 } from 'element-plus';
|
|
2
2
|
|
|
3
3
|
const buttonProps = {
|
|
4
|
-
...buttonProps$1
|
|
4
|
+
...buttonProps$1,
|
|
5
|
+
loading: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: void 0
|
|
8
|
+
// 默认undefined,表示不使用loading
|
|
9
|
+
}
|
|
5
10
|
};
|
|
6
11
|
const buttonEmits = {
|
|
7
12
|
...buttonEmits$1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.mjs","sources":["../../../../../../../packages/components/src/base/button/button.ts"],"sourcesContent":["import {\n buttonEmits as elButtonEmits,\n buttonNativeTypes as elButtonNativeTypes,\n buttonProps as elButtonProps,\n buttonTypes as elButtonTypes,\n} from 'element-plus';\n// import type { ExtractPropTypes } from 'vue';\n\nexport const buttonProps = {\n ...elButtonProps,\n};\n\nexport const buttonEmits = {\n ...elButtonEmits,\n // 自定义事件\n // submit: (value: any) => !!value,\n};\n\nexport const buttonTypes = [...elButtonTypes];\n\nexport const buttonNativeTypes = [...elButtonNativeTypes];\n"],"names":["elButtonProps","elButtonEmits","elButtonTypes","elButtonNativeTypes"],"mappings":";;AAQO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGA,aAAA;
|
|
1
|
+
{"version":3,"file":"button.mjs","sources":["../../../../../../../packages/components/src/base/button/button.ts"],"sourcesContent":["import {\n buttonEmits as elButtonEmits,\n buttonNativeTypes as elButtonNativeTypes,\n buttonProps as elButtonProps,\n buttonTypes as elButtonTypes,\n} from 'element-plus';\n// import type { ExtractPropTypes } from 'vue';\n\nexport const buttonProps = {\n ...elButtonProps,\n loading: {\n type: Boolean,\n default: undefined, // 默认undefined,表示不使用loading\n },\n};\n\nexport const buttonEmits = {\n ...elButtonEmits,\n // 自定义事件\n // submit: (value: any) => !!value,\n};\n\nexport const buttonTypes = [...elButtonTypes];\n\nexport const buttonNativeTypes = [...elButtonNativeTypes];\n"],"names":["elButtonProps","elButtonEmits","elButtonTypes","elButtonNativeTypes"],"mappings":";;AAQO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGA,aAAA;AAAA,EACH,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGC,aAAA;AAAA;AAAA;AAGL,EAAA;AAEa,MAAA,WAAA,GAAc,CAAC,GAAGC,aAAa,EAAA;AAE/B,MAAA,iBAAA,GAAoB,CAAC,GAAGC,mBAAmB;;;;"}
|