@fangzhongya/fang-ui 0.1.46 → 0.1.47

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 (83) hide show
  1. package/dist/components/cascaders/index.css +6 -0
  2. package/dist/components/cascaders/index.scss +6 -0
  3. package/dist/components/common/compons/components.cjs +0 -16
  4. package/dist/components/common/compons/components.d.ts +0 -8
  5. package/dist/components/common/compons/components.js +0 -16
  6. package/dist/components/common/compons/index.scss +0 -8
  7. package/dist/components/common/compons/index2.scss +0 -8
  8. package/dist/components/date-picker/style/element.scss +1 -1
  9. package/dist/components/dates-divide/index.css +6 -0
  10. package/dist/components/dates-divide/index.scss +6 -0
  11. package/dist/components/dates-divide/src/index2.cjs +4 -2
  12. package/dist/components/dates-divide/src/index2.js +4 -2
  13. package/dist/components/dates-picker/index.css +2 -2
  14. package/dist/components/dates-picker/index.scss +4 -4
  15. package/dist/components/dates-picker/src/index2.cjs +2 -1
  16. package/dist/components/dates-picker/src/index2.js +2 -1
  17. package/dist/components/dates2/index.css +9 -0
  18. package/dist/components/dates2/index.scss +3 -0
  19. package/dist/components/dates2/src/index2.cjs +6 -4
  20. package/dist/components/dates2/src/index2.js +6 -4
  21. package/dist/components/double/index.css +45 -10
  22. package/dist/components/double/index.scss +30 -17
  23. package/dist/components/double/src/data.cjs +24 -5
  24. package/dist/components/double/src/data.d.ts +23 -1
  25. package/dist/components/double/src/data.js +24 -5
  26. package/dist/components/double/src/index2.cjs +129 -64
  27. package/dist/components/double/src/index2.js +126 -61
  28. package/dist/components/double/style/index2.scss +1 -0
  29. package/dist/components/forms/common/config.cjs +3 -2
  30. package/dist/components/forms/common/config.js +3 -2
  31. package/dist/components/forms/index.css +74 -162
  32. package/dist/components/forms/src/util.cjs +30 -33
  33. package/dist/components/forms/src/util.js +29 -32
  34. package/dist/components/forms-item/index.css +3 -0
  35. package/dist/components/forms-item/index.scss +5 -0
  36. package/dist/components/forms-items/index.css +3 -0
  37. package/dist/components/input-history/index.css +3 -0
  38. package/dist/components/input-history/index.scss +3 -1
  39. package/dist/components/input-history/src/data.d.ts +1 -0
  40. package/dist/components/input-history/src/index2.cjs +23 -19
  41. package/dist/components/input-history/src/index2.js +15 -11
  42. package/dist/components/input-select/index.css +35 -7
  43. package/dist/components/input-select/index.scss +10 -7
  44. package/dist/components/input-select/src/index2.cjs +26 -19
  45. package/dist/components/input-select/src/index2.js +23 -16
  46. package/dist/components/input-select/style/index2.scss +2 -1
  47. package/dist/components/list/src/index2.cjs +5 -0
  48. package/dist/components/list/src/index2.js +6 -1
  49. package/dist/components/page/index.css +74 -162
  50. package/dist/components/scss/function.scss +3 -1
  51. package/dist/components/select-scroll/src/index2.cjs +1 -1
  52. package/dist/components/select-scroll/src/index2.js +2 -2
  53. package/dist/components/selector/index.css +50 -10
  54. package/dist/components/selector/index.scss +5 -0
  55. package/dist/components/selector/src/data.cjs +7 -3
  56. package/dist/components/selector/src/data.d.ts +8 -4
  57. package/dist/components/selector/src/data.js +7 -3
  58. package/dist/components/selector/src/index2.cjs +127 -91
  59. package/dist/components/selector/src/index2.js +124 -88
  60. package/dist/components/tables/common/pagin.d.ts +4 -4
  61. package/dist/components/tables/src/index2.cjs +9 -3
  62. package/dist/components/tables/src/index2.js +10 -4
  63. package/dist/components/tablesv/src/index2.cjs +9 -3
  64. package/dist/components/tablesv/src/index2.js +10 -4
  65. package/dist/css/cascaders.css +6 -0
  66. package/dist/css/dates-divide.css +6 -0
  67. package/dist/css/dates-picker.css +2 -2
  68. package/dist/css/dates2.css +9 -0
  69. package/dist/css/double.css +45 -10
  70. package/dist/css/forms-item.css +3 -0
  71. package/dist/css/forms-items.css +3 -0
  72. package/dist/css/forms.css +74 -162
  73. package/dist/css/index.css +227 -186
  74. package/dist/css/input-history.css +3 -0
  75. package/dist/css/input-select.css +35 -7
  76. package/dist/css/page.css +74 -162
  77. package/dist/css/selector.css +50 -10
  78. package/dist/icons/index.json +1 -1
  79. package/dist/index.css +227 -186
  80. package/dist/type.d.ts +2 -2
  81. package/package.json +2 -2
  82. /package/dist/components/{global-config → alert}/index.css +0 -0
  83. /package/dist/css/{global-config.css → alert.css} +0 -0
package/dist/index.css CHANGED
@@ -48,6 +48,9 @@
48
48
  min-height: var(--forms-item-row-height);
49
49
  display: grid;
50
50
  }
51
+ .forms-item-el-item.is-error .double {
52
+ box-shadow: 0 0 0 1px var(--el-color-danger) inset;
53
+ }
51
54
 
52
55
  .forms-items {
53
56
  width: 100%;
@@ -67,26 +70,63 @@
67
70
  --el-color-danger: var(--el-input-focus-border);
68
71
  }
69
72
 
73
+ .icon {
74
+ --color: inherit;
75
+ height: 1em;
76
+ width: 1em;
77
+ line-height: 1em;
78
+ display: inline-flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ position: relative;
82
+ fill: currentColor;
83
+ color: var(--color);
84
+ font-size: inherit;
85
+ }
86
+ .icon-cont {
87
+ border: 0;
88
+ display: inline-flex;
89
+ align-items: center;
90
+ object-fit: contain;
91
+ justify-content: center;
92
+ font-size: inherit !important;
93
+ width: inherit !important;
94
+ height: inherit !important;
95
+ }
96
+
70
97
  .double {
71
98
  width: 100%;
72
99
  display: inline-flex;
73
100
  align-items: center;
74
- box-sizing: content-box;
75
- padding: 1.2px 1px;
101
+ box-sizing: border-box;
102
+ padding: 1px 1px;
76
103
  position: relative;
77
104
  box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
78
105
  border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
79
106
  }
80
107
  .double.is-focus {
81
- box-shadow: 0 0 0 1px var(--color-primary) inset;
108
+ box-shadow: 0 0 0 1px var(--el-color-primary) inset;
109
+ }
110
+ .double.is-error {
111
+ box-shadow: 0 0 0 1px var(--el-color-danger) inset;
112
+ }
113
+ .double.is-disabled {
114
+ cursor: not-allowed;
115
+ background-color: var(--el-disabled-bg-color);
116
+ }
117
+ .double.is-disabled .double-range {
118
+ color: var(--el-disabled-text-color);
82
119
  }
83
120
  .double-error {
84
121
  position: absolute;
85
- bottom: -23px;
86
- color: #f00;
87
- font-size: 0.8rem;
122
+ padding-top: 2px;
123
+ color: var(--el-color-danger);
124
+ bottom: -15px;
125
+ font-size: 12px;
126
+ line-height: 1;
88
127
  border-radius: 4px;
89
128
  left: 12px;
129
+ white-space: nowrap;
90
130
  }
91
131
  .double-error.type-1 {
92
132
  left: calc(50% + 24px);
@@ -102,6 +142,8 @@
102
142
  .double-value {
103
143
  flex: 1;
104
144
  height: 100%;
145
+ display: flex;
146
+ align-items: center;
105
147
  }
106
148
  .double-range {
107
149
  padding: 0 5px;
@@ -113,10 +155,6 @@
113
155
  justify-content: center;
114
156
  padding: 5px;
115
157
  }
116
- .double-clear svg {
117
- width: 1rem;
118
- height: 1rem;
119
- }
120
158
  .double .el-input .el-input__wrapper {
121
159
  border: none;
122
160
  box-shadow: none;
@@ -164,171 +202,34 @@
164
202
  height: 100%;
165
203
  }
166
204
 
167
- .buttons-li {
168
- height: inherit;
169
- }
170
-
171
205
  .dates-divide {
172
206
  display: inline-flex;
173
207
  align-items: center;
208
+ width: 100%;
174
209
  }
175
210
  .dates-divide-range {
176
211
  padding: 0 10px;
177
212
  }
178
-
179
- .dates2 .dates2-date {
213
+ .dates-divide .dates-divide-date {
180
214
  height: 100%;
181
215
  width: 100%;
182
216
  box-sizing: border-box;
183
217
  }
184
- .dates2 .dates2-separate {
185
- display: flex;
186
- align-items: center;
187
- }
188
-
189
- .edit-float-body {
190
- display: inline-flex;
191
- align-items: center;
192
- justify-content: center;
193
- }
194
- .edit-float-value {
195
- min-width: 3px;
196
- }
197
- .edit-float-icon {
198
- margin-left: 4px;
199
- cursor: pointer;
200
- }
201
- .edit-float-input {
202
- padding: 10px 0;
203
- }
204
- .edit-float-but {
205
- text-align: right;
206
- }
207
218
 
208
- .edit {
209
- display: inline-flex;
210
- align-items: center;
211
- }
212
- .edit-value {
213
- display: inline-block;
214
- min-width: 3px;
215
- }
216
- .edit-icon {
217
- display: inline-flex;
218
- align-items: center;
219
+ .dates-picker .dates-picker-date {
219
220
  height: 100%;
220
- min-width: 3px;
221
- font-size: 16px;
222
- margin: 0 4px;
223
- cursor: pointer;
224
- }
225
-
226
- .history {
227
- display: flex;
228
- }
229
- .history-icon {
230
- cursor: pointer;
231
- }
232
- .history-icon.is-disabled {
233
- opacity: 0.4;
234
- cursor: not-allowed;
235
- }
236
-
237
- .images-img {
238
221
  width: 100%;
239
- height: 100%;
222
+ box-sizing: border-box;
240
223
  }
241
-
242
- .input-array {
243
- width: 100%;
244
- display: inline-flex;
224
+ .dates-picker .dates-picker-separate {
225
+ display: flex;
245
226
  align-items: center;
246
- padding: 1px;
247
- position: relative;
248
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
249
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
250
- }
251
- .input-array.is-focus {
252
- box-shadow: 0 0 0 1px var(--color-primary) inset;
253
- }
254
- .input-array-focus {
255
- position: absolute;
256
- z-index: -1;
257
- opacity: 0;
258
- }
259
- .input-array-input {
260
- height: 100%;
261
- flex: 1;
262
- }
263
- .input-array-range {
264
- padding: 0 5px;
265
- }
266
- .input-array-icon {
267
- cursor: pointer;
268
- }
269
- .input-array-icon svg {
270
- width: 1rem;
271
- height: 1rem;
272
- }
273
- .input-array .el-input .el-input__wrapper {
274
- border: none;
275
- box-shadow: none;
276
- }
277
- .input-array .el-input .el-input__wrapper input {
278
- text-align: center;
279
227
  }
280
228
 
281
- .input-history {
282
- display: flex;
283
- }
284
- .input-history-popper {
285
- padding: 6px 0 !important;
286
- }
287
- .input-history-select {
288
- max-height: 274px;
229
+ .input-select {
289
230
  height: 100%;
290
- overflow-y: auto;
291
- }
292
- .input-history-select-ul {
293
- list-style: none;
294
- margin: 6px 0;
295
- padding: 0;
296
- box-sizing: border-box;
297
- }
298
- .input-history-select-ul .input-history-select-li {
299
- padding: 0 32px 0 20px;
300
- position: relative;
301
- white-space: nowrap;
302
- overflow: hidden;
303
- text-overflow: ellipsis;
304
- color: #606266;
305
- height: 34px;
306
- line-height: 34px;
307
- box-sizing: border-box;
308
- cursor: pointer;
309
- }
310
- .input-history-select-ul .input-history-select-li.hover, .input-history-select-ul .input-history-select-li:hover {
311
- background-color: #f5f7fa;
312
- }
313
- .input-history-select-ul .input-history-select-li.hover .input-history-select-li-clean, .input-history-select-ul .input-history-select-li:hover .input-history-select-li-clean {
314
- display: inline-flex;
315
- }
316
- .input-history-select-ul .input-history-select-li.selected {
317
- color: var(--bv-color-primary);
318
- font-weight: 700;
319
- }
320
- .input-history-select-ul .input-history-select-li.is-disabled {
321
- background-color: #ffffff;
322
- color: #a8abb2;
323
- cursor: not-allowed;
324
- }
325
- .input-history-select-ul .input-history-select-li-clean {
326
- align-items: center;
327
- justify-content: center;
328
- display: none;
329
- margin-left: 5px;
231
+ width: 100%;
330
232
  }
331
-
332
233
  .input-select-select-icon {
333
234
  margin-left: 8px;
334
235
  display: inline-flex;
@@ -342,13 +243,13 @@
342
243
  .input-select-select-icon.is-reverse {
343
244
  transform: rotate(-180deg);
344
245
  }
345
- .input-select-select-icon svg {
346
- width: 1rem;
347
- height: 1rem;
348
- }
349
246
  .input-select.is-disabled .input-select-select-icon {
350
247
  cursor: not-allowed;
351
248
  }
249
+ .input-select-input {
250
+ height: 100%;
251
+ width: 100%;
252
+ }
352
253
  .input-select-popper {
353
254
  padding: 6px 0 !important;
354
255
  }
@@ -376,11 +277,11 @@
376
277
  cursor: pointer;
377
278
  }
378
279
  .input-select-popper .input-select-select .input-select-select-li.hover, .input-select-popper .input-select-select .input-select-select-li:hover {
379
- background-color: #f5f7fa;
280
+ background-color: var(--el-fill-color-light);
380
281
  }
381
282
  .input-select-popper .input-select-select .input-select-select-li.selected {
382
- color: var(--bv-color-primary);
383
- font-weight: 700;
283
+ color: var(--el-color-primary);
284
+ font-weight: bold;
384
285
  }
385
286
  .input-select-popper .input-select-select .input-select-select-li.is-disabled {
386
287
  background-color: #ffffff;
@@ -443,6 +344,11 @@
443
344
  .selector-popper.el-popover.el-popper {
444
345
  padding: 0;
445
346
  }
347
+ .selector-double {
348
+ height: 100%;
349
+ width: 100%;
350
+ box-sizing: border-box;
351
+ }
446
352
  .selector-select {
447
353
  padding: 5px 10px;
448
354
  z-index: 1000;
@@ -474,10 +380,16 @@
474
380
  height: 100%;
475
381
  width: 100%;
476
382
  }
383
+ .cascaders-cascader .el-input {
384
+ height: 100%;
385
+ }
477
386
  .cascaders-tree {
478
387
  height: 100%;
479
388
  width: 100%;
480
389
  }
390
+ .cascaders-tree .el-select__wrapper {
391
+ height: 100%;
392
+ }
481
393
 
482
394
  .input-num-input {
483
395
  height: 100%;
@@ -671,30 +583,6 @@
671
583
  background: rgba(2, 28, 39, 0.4);
672
584
  }
673
585
 
674
- .icon {
675
- --color: inherit;
676
- height: 1em;
677
- width: 1em;
678
- line-height: 1em;
679
- display: inline-flex;
680
- justify-content: center;
681
- align-items: center;
682
- position: relative;
683
- fill: currentColor;
684
- color: var(--color);
685
- font-size: inherit;
686
- }
687
- .icon-cont {
688
- border: 0;
689
- display: inline-flex;
690
- align-items: center;
691
- object-fit: contain;
692
- justify-content: center;
693
- font-size: inherit !important;
694
- width: inherit !important;
695
- height: inherit !important;
696
- }
697
-
698
586
  .box-title {
699
587
  padding: 10px;
700
588
  position: relative;
@@ -1438,6 +1326,11 @@
1438
1326
  background-color: aqua;
1439
1327
  }
1440
1328
 
1329
+ .images-img {
1330
+ width: 100%;
1331
+ height: 100%;
1332
+ }
1333
+
1441
1334
  .videos {
1442
1335
  display: flex;
1443
1336
  height: 100%;
@@ -1630,6 +1523,10 @@
1630
1523
  transform: rotate(90deg);
1631
1524
  }
1632
1525
 
1526
+ .buttons-li {
1527
+ height: inherit;
1528
+ }
1529
+
1633
1530
  .dates2 .dates2-date {
1634
1531
  height: 100%;
1635
1532
  width: 100%;
@@ -1639,6 +1536,150 @@
1639
1536
  display: flex;
1640
1537
  align-items: center;
1641
1538
  }
1539
+ .dates2 .dates2-separate-select {
1540
+ width: 120px;
1541
+ }
1542
+
1543
+ .edit-float-body {
1544
+ display: inline-flex;
1545
+ align-items: center;
1546
+ justify-content: center;
1547
+ }
1548
+ .edit-float-value {
1549
+ min-width: 3px;
1550
+ }
1551
+ .edit-float-icon {
1552
+ margin-left: 4px;
1553
+ cursor: pointer;
1554
+ }
1555
+ .edit-float-input {
1556
+ padding: 10px 0;
1557
+ }
1558
+ .edit-float-but {
1559
+ text-align: right;
1560
+ }
1561
+
1562
+ .edit {
1563
+ display: inline-flex;
1564
+ align-items: center;
1565
+ }
1566
+ .edit-value {
1567
+ display: inline-block;
1568
+ min-width: 3px;
1569
+ }
1570
+ .edit-icon {
1571
+ display: inline-flex;
1572
+ align-items: center;
1573
+ height: 100%;
1574
+ min-width: 3px;
1575
+ font-size: 16px;
1576
+ margin: 0 4px;
1577
+ cursor: pointer;
1578
+ }
1579
+
1580
+ .history {
1581
+ display: flex;
1582
+ }
1583
+ .history-icon {
1584
+ cursor: pointer;
1585
+ }
1586
+ .history-icon.is-disabled {
1587
+ opacity: 0.4;
1588
+ cursor: not-allowed;
1589
+ }
1590
+
1591
+ .input-array {
1592
+ width: 100%;
1593
+ display: inline-flex;
1594
+ align-items: center;
1595
+ padding: 1px;
1596
+ position: relative;
1597
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
1598
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
1599
+ }
1600
+ .input-array.is-focus {
1601
+ box-shadow: 0 0 0 1px var(--color-primary) inset;
1602
+ }
1603
+ .input-array-focus {
1604
+ position: absolute;
1605
+ z-index: -1;
1606
+ opacity: 0;
1607
+ }
1608
+ .input-array-input {
1609
+ height: 100%;
1610
+ flex: 1;
1611
+ }
1612
+ .input-array-range {
1613
+ padding: 0 5px;
1614
+ }
1615
+ .input-array-icon {
1616
+ cursor: pointer;
1617
+ }
1618
+ .input-array-icon svg {
1619
+ width: 1rem;
1620
+ height: 1rem;
1621
+ }
1622
+ .input-array .el-input .el-input__wrapper {
1623
+ border: none;
1624
+ box-shadow: none;
1625
+ }
1626
+ .input-array .el-input .el-input__wrapper input {
1627
+ text-align: center;
1628
+ }
1629
+
1630
+ .input-history {
1631
+ display: flex;
1632
+ }
1633
+ .input-history-popper {
1634
+ padding: 6px 0 !important;
1635
+ }
1636
+ .input-history-input {
1637
+ width: 100%;
1638
+ }
1639
+ .input-history-select {
1640
+ max-height: 274px;
1641
+ height: 100%;
1642
+ overflow-y: auto;
1643
+ }
1644
+ .input-history-select-ul {
1645
+ list-style: none;
1646
+ margin: 6px 0;
1647
+ padding: 0;
1648
+ box-sizing: border-box;
1649
+ }
1650
+ .input-history-select-ul .input-history-select-li {
1651
+ padding: 0 32px 0 20px;
1652
+ position: relative;
1653
+ white-space: nowrap;
1654
+ overflow: hidden;
1655
+ text-overflow: ellipsis;
1656
+ color: #606266;
1657
+ height: 34px;
1658
+ line-height: 34px;
1659
+ box-sizing: border-box;
1660
+ cursor: pointer;
1661
+ }
1662
+ .input-history-select-ul .input-history-select-li.hover, .input-history-select-ul .input-history-select-li:hover {
1663
+ background-color: #f5f7fa;
1664
+ }
1665
+ .input-history-select-ul .input-history-select-li.hover .input-history-select-li-clean, .input-history-select-ul .input-history-select-li:hover .input-history-select-li-clean {
1666
+ display: inline-flex;
1667
+ }
1668
+ .input-history-select-ul .input-history-select-li.selected {
1669
+ color: var(--bv-color-primary);
1670
+ font-weight: 700;
1671
+ }
1672
+ .input-history-select-ul .input-history-select-li.is-disabled {
1673
+ background-color: #ffffff;
1674
+ color: #a8abb2;
1675
+ cursor: not-allowed;
1676
+ }
1677
+ .input-history-select-ul .input-history-select-li-clean {
1678
+ align-items: center;
1679
+ justify-content: center;
1680
+ display: none;
1681
+ margin-left: 5px;
1682
+ }
1642
1683
 
1643
1684
  .sliders {
1644
1685
  width: 100%;
package/dist/type.d.ts CHANGED
@@ -37,7 +37,7 @@ type Rule = {
37
37
  /**
38
38
  * 校验方法
39
39
  */
40
- judge?: string | Function;
40
+ check?: string | Function;
41
41
  /**
42
42
  * 校验失败提示
43
43
  */
@@ -49,7 +49,7 @@ type Rule = {
49
49
  | string
50
50
  | {
51
51
  prop?: string;
52
- judge?: Function;
52
+ check?: Function;
53
53
  };
54
54
  };
55
55
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.46",
4
+ "version": "0.1.47",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -55,8 +55,8 @@
55
55
  "@fang-ui/directives": "0.0.1-0",
56
56
  "@fang-ui/hooks": "0.0.1-0",
57
57
  "@fang-ui/locale": "0.0.1-0",
58
- "@fang-ui/theme": "0.0.1-0",
59
58
  "@fang-ui/utils": "0.0.1-0",
59
+ "@fang-ui/theme": "0.0.1-0",
60
60
  "@fang-ui/types": "0.0.1-0"
61
61
  },
62
62
  "main": "./dist/index.cjs",
File without changes