@litianxiang/portal-ui 0.0.30 → 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.
@@ -237,6 +237,8 @@
237
237
  // ==================== Input 输入框 ====================
238
238
  .el-input {
239
239
  .el-input__wrapper {
240
+ min-height: var(--el-component-size);
241
+ height: var(--el-component-size);
240
242
  border-radius: 0;
241
243
  box-shadow: none;
242
244
  border: 1px solid #ccc;
@@ -457,6 +459,8 @@
457
459
  // ==================== Select 选择器 ====================
458
460
  .el-select {
459
461
  .el-select__wrapper {
462
+ min-height: var(--el-component-size);
463
+ height: var(--el-component-size);
460
464
  border-radius: 0;
461
465
  box-shadow: none;
462
466
  border: 1px solid #ccc;
@@ -485,6 +489,12 @@
485
489
  // 设置宽度自适应
486
490
  width: 100% !important;
487
491
  --el-date-editor-width: 100%;
492
+
493
+ &.el-input .el-input__wrapper,
494
+ &.el-input__wrapper {
495
+ min-height: var(--el-component-size);
496
+ height: var(--el-component-size);
497
+ }
488
498
 
489
499
  &.el-input__wrapper {
490
500
  border-radius: 0;
@@ -612,7 +622,10 @@
612
622
 
613
623
  // ==================== TimePicker 时间选择器 ====================
614
624
  .el-time-picker {
625
+ &.el-input .el-input__wrapper,
615
626
  &.el-input__wrapper {
627
+ min-height: var(--el-component-size);
628
+ height: var(--el-component-size);
616
629
  border-radius: 0;
617
630
  box-shadow: none;
618
631
  border: 1px solid #ccc;
@@ -1018,7 +1031,7 @@
1018
1031
  font-size: var(--el-font-size) !important;
1019
1032
 
1020
1033
  .el-input__wrapper {
1021
- height: 32px;
1034
+ height: var(--el-component-size);
1022
1035
  box-sizing: border-box;
1023
1036
  border-radius: 3px;
1024
1037
  }
@@ -1043,8 +1056,8 @@
1043
1056
  width: 100%;
1044
1057
 
1045
1058
  .el-select__wrapper {
1046
- height: 32px;
1047
- min-height: 32px;
1059
+ height: var(--el-component-size);
1060
+ min-height: var(--el-component-size);
1048
1061
  box-sizing: border-box;
1049
1062
  font-size: var(--el-font-size);
1050
1063
  border-radius: 3px;
@@ -1053,7 +1066,7 @@
1053
1066
 
1054
1067
  // ==================== DatePicker 日期选择器 ====================
1055
1068
  .el-date-editor {
1056
- --el-input-height: 32px;
1069
+ --el-input-height: var(--el-component-size);
1057
1070
 
1058
1071
  .el-input__wrapper {
1059
1072
  border-radius: 3px;
@@ -1062,7 +1075,7 @@
1062
1075
 
1063
1076
  // ==================== TimePicker 时间选择器 ====================
1064
1077
  .el-time-editor {
1065
- --el-input-height: 32px;
1078
+ --el-input-height: var(--el-component-size);
1066
1079
 
1067
1080
  .el-input__wrapper {
1068
1081
  border-radius: 3px;
@@ -1072,7 +1085,7 @@
1072
1085
  // ==================== InputNumber 数字输入框 ====================
1073
1086
  .el-input-number {
1074
1087
  .el-input {
1075
- --el-input-height: 32px;
1088
+ --el-input-height: var(--el-component-size);
1076
1089
  }
1077
1090
  }
1078
1091
 
@@ -1199,21 +1212,13 @@
1199
1212
 
1200
1213
  // 表格内控件紧凑模式
1201
1214
  .cell {
1202
- // 控件容器减少内边距
1203
- .el-input,
1204
- .el-input-number,
1205
- .el-date-editor,
1206
- .el-time-picker {
1207
- --el-component-size: 28px;
1208
- }
1209
-
1210
1215
  // 下拉框高度设置
1211
1216
  .el-select {
1212
- --el-select-height: 28px;
1217
+ --el-select-height: var(--el-component-size);
1213
1218
 
1214
1219
  .el-select__wrapper {
1215
- min-height: 28px !important;
1216
- height: 28px;
1220
+ min-height: var(--el-component-size) !important;
1221
+ height: var(--el-component-size);
1217
1222
  padding: 0 8px !important;
1218
1223
  }
1219
1224
  }
@@ -1224,7 +1229,7 @@
1224
1229
 
1225
1230
  // Switch 开关垂直居中
1226
1231
  .el-switch {
1227
- height: 28px;
1232
+ height: var(--el-component-size);
1228
1233
  }
1229
1234
  }
1230
1235
 
@@ -1306,9 +1311,14 @@
1306
1311
  }
1307
1312
 
1308
1313
  // 表格内日期/时间选择器样式
1314
+ .el-date-editor.el-input .el-input__wrapper,
1315
+ .el-time-picker.el-input .el-input__wrapper,
1309
1316
  .el-date-editor.el-input__wrapper,
1310
1317
  .el-time-picker.el-input__wrapper {
1311
1318
  width: 100%;
1319
+ min-height: var(--el-component-size);
1320
+ height: var(--el-component-size);
1321
+ padding: 0 8px !important;
1312
1322
  border-radius: 0;
1313
1323
  box-shadow: none;
1314
1324
  border: 1px solid #ccc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litianxiang/portal-ui",
3
- "version": "0.0.30",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@litianxiang/portal-core": "^0.2.2",
31
+ "@litianxiang/portal-core": "^0.2.3",
32
32
  "@vue-office/docx": "^1.6.3",
33
33
  "@vue-office/excel": "^1.7.14",
34
34
  "@vue-office/pdf": "^2.0.10",