@longhongguo/form-create-ant-design-vue 3.2.44 → 3.2.46

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.
@@ -1,23 +1,308 @@
1
1
  .form-create .form-create .ant-form-item {
2
- margin-bottom: 22px;
2
+ margin-bottom: 22px;
3
3
  }
4
4
 
5
5
  .form-create .form-create .ant-form-item.ant-form-item-with-help {
6
- margin-bottom: 3px;
6
+ margin-bottom: 3px;
7
7
  }
8
8
 
9
- .form-create .form-create .ant-form-item .ant-form-item.ant-form-item-with-help {
10
- margin-bottom: -22px;
9
+ .form-create
10
+ .form-create
11
+ .ant-form-item
12
+ .ant-form-item.ant-form-item-with-help {
13
+ margin-bottom: -22px;
11
14
  }
12
15
 
13
- .form-create{
14
- width: 100%;
16
+ .form-create {
17
+ width: 100%;
15
18
  }
16
19
 
17
- .form-create.is-preview .fc-clock, .form-create .fc-none, .form-create.is-preview .ant-form-item .ant-form-item-label >label.ant-form-item-required::before {
18
- display: none !important;
20
+ .form-create.is-preview .fc-clock,
21
+ .form-create .fc-none,
22
+ .form-create.is-preview
23
+ .ant-form-item
24
+ .ant-form-item-label
25
+ > label.ant-form-item-required::before {
26
+ display: none !important;
19
27
  }
20
28
 
21
29
  .fc-form-footer {
22
- margin-top: 12px;
23
- }
30
+ margin-top: 12px;
31
+ }
32
+
33
+ /* CusSelect 组件样式 */
34
+ .fc-cus-select {
35
+ width: 100%;
36
+ box-sizing: border-box;
37
+ font-size: 14px;
38
+ font-variant: tabular-nums;
39
+ line-height: 1.5715;
40
+ list-style: none;
41
+ font-feature-settings: 'tnum';
42
+ position: relative;
43
+ display: inline-block;
44
+ cursor: pointer;
45
+ }
46
+
47
+ .fc-cus-select-single {
48
+ height: 32px;
49
+ }
50
+
51
+ .fc-cus-select-multiple {
52
+ min-height: 32px;
53
+ }
54
+
55
+ .fc-cus-select-selector {
56
+ display: flex;
57
+ width: 100%;
58
+ position: relative;
59
+ background-color: #fff;
60
+ border: 1px solid #d9d9d9;
61
+ border-radius: 6px;
62
+ transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
63
+ cursor: pointer;
64
+ min-height: 32px;
65
+ padding: 1px 11px;
66
+ align-items: center;
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ /* 无边框模式 */
71
+ .fc-cus-select-selector-borderless {
72
+ border: none !important;
73
+ box-shadow: none !important;
74
+ }
75
+
76
+ .fc-cus-select:not(.fc-cus-select-disabled):hover
77
+ .fc-cus-select-selector-borderless {
78
+ border: none !important;
79
+ box-shadow: none !important;
80
+ }
81
+
82
+ .fc-cus-select:focus:not(.fc-cus-select-disabled)
83
+ .fc-cus-select-selector-borderless,
84
+ .fc-cus-select:focus-within:not(.fc-cus-select-disabled)
85
+ .fc-cus-select-selector-borderless {
86
+ border: none !important;
87
+ box-shadow: none !important;
88
+ outline: none !important;
89
+ }
90
+
91
+ .fc-cus-select-single .fc-cus-select-selector {
92
+ height: 32px;
93
+ padding: 0 11px;
94
+ }
95
+
96
+ .fc-cus-select-arrow {
97
+ position: absolute;
98
+ top: 50%;
99
+ right: 11px;
100
+ transform: translateY(-50%);
101
+ display: inline-flex;
102
+ align-items: center;
103
+ color: rgba(0, 0, 0, 0.45);
104
+ font-style: normal;
105
+ line-height: 0;
106
+ text-align: center;
107
+ text-transform: none;
108
+ vertical-align: -0.125em;
109
+ text-rendering: optimizeLegibility;
110
+ pointer-events: none;
111
+ }
112
+
113
+ .fc-cus-select-multiple .fc-cus-select-arrow {
114
+ right: 11px;
115
+ }
116
+
117
+ .fc-cus-select-multiple .fc-cus-select-clear {
118
+ right: 11px;
119
+ }
120
+
121
+ .fc-cus-select-arrow .anticon {
122
+ display: inline-block;
123
+ font-size: 12px;
124
+ line-height: 1;
125
+ vertical-align: baseline;
126
+ }
127
+
128
+ .fc-cus-select-arrow .anticon svg {
129
+ display: inline-block;
130
+ width: 1em;
131
+ height: 1em;
132
+ }
133
+
134
+ .fc-cus-select-clear {
135
+ position: absolute;
136
+ top: 50%;
137
+ right: 11px;
138
+ transform: translateY(-50%);
139
+ display: inline-flex;
140
+ align-items: center;
141
+ color: rgba(0, 0, 0, 0.25);
142
+ font-style: normal;
143
+ line-height: 0;
144
+ text-align: center;
145
+ text-transform: none;
146
+ vertical-align: -0.125em;
147
+ text-rendering: optimizeLegibility;
148
+ cursor: pointer;
149
+ transition: color 0.3s;
150
+ opacity: 1;
151
+ pointer-events: auto;
152
+ }
153
+
154
+ .fc-cus-select-clear:hover {
155
+ color: rgba(0, 0, 0, 0.45);
156
+ }
157
+
158
+ .fc-cus-select-clear .anticon {
159
+ display: inline-block;
160
+ font-size: 12px;
161
+ line-height: 1;
162
+ vertical-align: baseline;
163
+ }
164
+
165
+ .fc-cus-select-clear .anticon svg {
166
+ display: inline-block;
167
+ width: 1em;
168
+ height: 1em;
169
+ }
170
+
171
+ .fc-cus-select:not(.fc-cus-select-disabled):hover .fc-cus-select-selector {
172
+ border-color: #4096ff;
173
+ }
174
+
175
+ .fc-cus-select:focus:not(.fc-cus-select-disabled) .fc-cus-select-selector {
176
+ border-color: #4096ff;
177
+ outline: 0;
178
+ box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
179
+ }
180
+
181
+ .fc-cus-select:focus-within:not(.fc-cus-select-disabled)
182
+ .fc-cus-select-selector {
183
+ border-color: #4096ff;
184
+ outline: 0;
185
+ box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
186
+ }
187
+
188
+ .fc-cus-select-single .fc-cus-select-selection-item {
189
+ display: flex;
190
+ flex: 1;
191
+ align-items: center;
192
+ max-width: 100%;
193
+ line-height: 32px;
194
+ color: rgba(0, 0, 0, 0.88);
195
+ overflow: hidden;
196
+ white-space: nowrap;
197
+ text-overflow: ellipsis;
198
+ padding-right: 24px;
199
+ box-sizing: border-box;
200
+ }
201
+
202
+ .fc-cus-select-selection-placeholder {
203
+ flex: 1;
204
+ overflow: hidden;
205
+ color: rgba(0, 0, 0, 0.25);
206
+ white-space: nowrap;
207
+ text-overflow: ellipsis;
208
+ pointer-events: none;
209
+ }
210
+
211
+ .fc-cus-select-selection-overflow {
212
+ position: relative;
213
+ display: flex;
214
+ flex: auto;
215
+ flex-wrap: wrap;
216
+ max-width: 100%;
217
+ gap: 4px;
218
+ min-width: 0;
219
+ padding-right: 20px;
220
+ box-sizing: border-box;
221
+ }
222
+
223
+ .fc-cus-select-selection-overflow-item {
224
+ flex: none;
225
+ align-self: center;
226
+ max-width: 100%;
227
+ }
228
+
229
+ .fc-cus-select-multiple .fc-cus-select-selection-item {
230
+ position: relative;
231
+ display: inline-flex;
232
+ flex: none;
233
+ box-sizing: border-box;
234
+ max-width: 100%;
235
+ height: 24px;
236
+ margin-top: 2px;
237
+ margin-bottom: 2px;
238
+ line-height: 22px;
239
+ background: #fafafa;
240
+ border: 1px solid #f0f0f0;
241
+ border-radius: 4px;
242
+ cursor: pointer;
243
+ transition: font-size 0.3s, line-height 0.3s, height 0.3s;
244
+ user-select: none;
245
+ padding: 0 4px 0 8px;
246
+ align-items: center;
247
+ gap: 4px;
248
+ }
249
+
250
+ .fc-cus-select-selection-item-content {
251
+ display: inline-block;
252
+ overflow: hidden;
253
+ white-space: pre;
254
+ text-overflow: ellipsis;
255
+ color: rgba(0, 0, 0, 0.88);
256
+ }
257
+
258
+ .fc-cus-select-selection-item-remove {
259
+ display: inline-flex;
260
+ align-items: center;
261
+ color: rgba(0, 0, 0, 0.45);
262
+ cursor: pointer;
263
+ font-weight: bold;
264
+ transition: color 0.3s;
265
+ line-height: 0;
266
+ margin-left: 2px;
267
+ }
268
+
269
+ .fc-cus-select-selection-item-remove:hover {
270
+ color: rgba(0, 0, 0, 0.75);
271
+ }
272
+
273
+ .fc-cus-select-selection-item-remove .anticon {
274
+ display: inline-flex;
275
+ align-items: center;
276
+ font-style: normal;
277
+ line-height: 0;
278
+ text-align: center;
279
+ text-transform: none;
280
+ vertical-align: -0.125em;
281
+ text-rendering: optimizeLegibility;
282
+ font-size: 12px;
283
+ }
284
+
285
+ .fc-cus-select-selection-item-remove .anticon svg {
286
+ display: inline-block;
287
+ width: 1em;
288
+ height: 1em;
289
+ }
290
+
291
+ .fc-cus-select-disabled {
292
+ cursor: not-allowed;
293
+ }
294
+
295
+ .fc-cus-select-disabled .fc-cus-select-selector {
296
+ cursor: not-allowed;
297
+ background-color: #f5f5f5;
298
+ color: rgba(0, 0, 0, 0.25);
299
+ border-color: #d9d9d9;
300
+ }
301
+
302
+ .fc-cus-select-disabled .fc-cus-select-selection-item {
303
+ color: rgba(0, 0, 0, 0.25);
304
+ }
305
+
306
+ .fc-cus-select-disabled .fc-cus-select-selection-placeholder {
307
+ color: rgba(0, 0, 0, 0.25);
308
+ }
@@ -1,23 +1,308 @@
1
1
  .form-create .form-create .ant-form-item {
2
- margin-bottom: 22px;
2
+ margin-bottom: 22px;
3
3
  }
4
4
 
5
5
  .form-create .form-create .ant-form-item.ant-form-item-with-help {
6
- margin-bottom: 3px;
6
+ margin-bottom: 3px;
7
7
  }
8
8
 
9
- .form-create .form-create .ant-form-item .ant-form-item.ant-form-item-with-help {
10
- margin-bottom: -22px;
9
+ .form-create
10
+ .form-create
11
+ .ant-form-item
12
+ .ant-form-item.ant-form-item-with-help {
13
+ margin-bottom: -22px;
11
14
  }
12
15
 
13
- .form-create{
14
- width: 100%;
16
+ .form-create {
17
+ width: 100%;
15
18
  }
16
19
 
17
- .form-create.is-preview .fc-clock, .form-create .fc-none, .form-create.is-preview .ant-form-item .ant-form-item-label >label.ant-form-item-required::before {
18
- display: none !important;
20
+ .form-create.is-preview .fc-clock,
21
+ .form-create .fc-none,
22
+ .form-create.is-preview
23
+ .ant-form-item
24
+ .ant-form-item-label
25
+ > label.ant-form-item-required::before {
26
+ display: none !important;
19
27
  }
20
28
 
21
29
  .fc-form-footer {
22
- margin-top: 12px;
23
- }
30
+ margin-top: 12px;
31
+ }
32
+
33
+ /* CusSelect 组件样式 */
34
+ .fc-cus-select {
35
+ width: 100%;
36
+ box-sizing: border-box;
37
+ font-size: 14px;
38
+ font-variant: tabular-nums;
39
+ line-height: 1.5715;
40
+ list-style: none;
41
+ font-feature-settings: 'tnum';
42
+ position: relative;
43
+ display: inline-block;
44
+ cursor: pointer;
45
+ }
46
+
47
+ .fc-cus-select-single {
48
+ height: 32px;
49
+ }
50
+
51
+ .fc-cus-select-multiple {
52
+ min-height: 32px;
53
+ }
54
+
55
+ .fc-cus-select-selector {
56
+ display: flex;
57
+ width: 100%;
58
+ position: relative;
59
+ background-color: #fff;
60
+ border: 1px solid #d9d9d9;
61
+ border-radius: 6px;
62
+ transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
63
+ cursor: pointer;
64
+ min-height: 32px;
65
+ padding: 1px 11px;
66
+ align-items: center;
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ /* 无边框模式 */
71
+ .fc-cus-select-selector-borderless {
72
+ border: none !important;
73
+ box-shadow: none !important;
74
+ }
75
+
76
+ .fc-cus-select:not(.fc-cus-select-disabled):hover
77
+ .fc-cus-select-selector-borderless {
78
+ border: none !important;
79
+ box-shadow: none !important;
80
+ }
81
+
82
+ .fc-cus-select:focus:not(.fc-cus-select-disabled)
83
+ .fc-cus-select-selector-borderless,
84
+ .fc-cus-select:focus-within:not(.fc-cus-select-disabled)
85
+ .fc-cus-select-selector-borderless {
86
+ border: none !important;
87
+ box-shadow: none !important;
88
+ outline: none !important;
89
+ }
90
+
91
+ .fc-cus-select-single .fc-cus-select-selector {
92
+ height: 32px;
93
+ padding: 0 11px;
94
+ }
95
+
96
+ .fc-cus-select-arrow {
97
+ position: absolute;
98
+ top: 50%;
99
+ right: 11px;
100
+ transform: translateY(-50%);
101
+ display: inline-flex;
102
+ align-items: center;
103
+ color: rgba(0, 0, 0, 0.45);
104
+ font-style: normal;
105
+ line-height: 0;
106
+ text-align: center;
107
+ text-transform: none;
108
+ vertical-align: -0.125em;
109
+ text-rendering: optimizeLegibility;
110
+ pointer-events: none;
111
+ }
112
+
113
+ .fc-cus-select-multiple .fc-cus-select-arrow {
114
+ right: 11px;
115
+ }
116
+
117
+ .fc-cus-select-multiple .fc-cus-select-clear {
118
+ right: 11px;
119
+ }
120
+
121
+ .fc-cus-select-arrow .anticon {
122
+ display: inline-block;
123
+ font-size: 12px;
124
+ line-height: 1;
125
+ vertical-align: baseline;
126
+ }
127
+
128
+ .fc-cus-select-arrow .anticon svg {
129
+ display: inline-block;
130
+ width: 1em;
131
+ height: 1em;
132
+ }
133
+
134
+ .fc-cus-select-clear {
135
+ position: absolute;
136
+ top: 50%;
137
+ right: 11px;
138
+ transform: translateY(-50%);
139
+ display: inline-flex;
140
+ align-items: center;
141
+ color: rgba(0, 0, 0, 0.25);
142
+ font-style: normal;
143
+ line-height: 0;
144
+ text-align: center;
145
+ text-transform: none;
146
+ vertical-align: -0.125em;
147
+ text-rendering: optimizeLegibility;
148
+ cursor: pointer;
149
+ transition: color 0.3s;
150
+ opacity: 1;
151
+ pointer-events: auto;
152
+ }
153
+
154
+ .fc-cus-select-clear:hover {
155
+ color: rgba(0, 0, 0, 0.45);
156
+ }
157
+
158
+ .fc-cus-select-clear .anticon {
159
+ display: inline-block;
160
+ font-size: 12px;
161
+ line-height: 1;
162
+ vertical-align: baseline;
163
+ }
164
+
165
+ .fc-cus-select-clear .anticon svg {
166
+ display: inline-block;
167
+ width: 1em;
168
+ height: 1em;
169
+ }
170
+
171
+ .fc-cus-select:not(.fc-cus-select-disabled):hover .fc-cus-select-selector {
172
+ border-color: #4096ff;
173
+ }
174
+
175
+ .fc-cus-select:focus:not(.fc-cus-select-disabled) .fc-cus-select-selector {
176
+ border-color: #4096ff;
177
+ outline: 0;
178
+ box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
179
+ }
180
+
181
+ .fc-cus-select:focus-within:not(.fc-cus-select-disabled)
182
+ .fc-cus-select-selector {
183
+ border-color: #4096ff;
184
+ outline: 0;
185
+ box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
186
+ }
187
+
188
+ .fc-cus-select-single .fc-cus-select-selection-item {
189
+ display: flex;
190
+ flex: 1;
191
+ align-items: center;
192
+ max-width: 100%;
193
+ line-height: 32px;
194
+ color: rgba(0, 0, 0, 0.88);
195
+ overflow: hidden;
196
+ white-space: nowrap;
197
+ text-overflow: ellipsis;
198
+ padding-right: 24px;
199
+ box-sizing: border-box;
200
+ }
201
+
202
+ .fc-cus-select-selection-placeholder {
203
+ flex: 1;
204
+ overflow: hidden;
205
+ color: rgba(0, 0, 0, 0.25);
206
+ white-space: nowrap;
207
+ text-overflow: ellipsis;
208
+ pointer-events: none;
209
+ }
210
+
211
+ .fc-cus-select-selection-overflow {
212
+ position: relative;
213
+ display: flex;
214
+ flex: auto;
215
+ flex-wrap: wrap;
216
+ max-width: 100%;
217
+ gap: 4px;
218
+ min-width: 0;
219
+ padding-right: 20px;
220
+ box-sizing: border-box;
221
+ }
222
+
223
+ .fc-cus-select-selection-overflow-item {
224
+ flex: none;
225
+ align-self: center;
226
+ max-width: 100%;
227
+ }
228
+
229
+ .fc-cus-select-multiple .fc-cus-select-selection-item {
230
+ position: relative;
231
+ display: inline-flex;
232
+ flex: none;
233
+ box-sizing: border-box;
234
+ max-width: 100%;
235
+ height: 24px;
236
+ margin-top: 2px;
237
+ margin-bottom: 2px;
238
+ line-height: 22px;
239
+ background: #fafafa;
240
+ border: 1px solid #f0f0f0;
241
+ border-radius: 4px;
242
+ cursor: pointer;
243
+ transition: font-size 0.3s, line-height 0.3s, height 0.3s;
244
+ user-select: none;
245
+ padding: 0 4px 0 8px;
246
+ align-items: center;
247
+ gap: 4px;
248
+ }
249
+
250
+ .fc-cus-select-selection-item-content {
251
+ display: inline-block;
252
+ overflow: hidden;
253
+ white-space: pre;
254
+ text-overflow: ellipsis;
255
+ color: rgba(0, 0, 0, 0.88);
256
+ }
257
+
258
+ .fc-cus-select-selection-item-remove {
259
+ display: inline-flex;
260
+ align-items: center;
261
+ color: rgba(0, 0, 0, 0.45);
262
+ cursor: pointer;
263
+ font-weight: bold;
264
+ transition: color 0.3s;
265
+ line-height: 0;
266
+ margin-left: 2px;
267
+ }
268
+
269
+ .fc-cus-select-selection-item-remove:hover {
270
+ color: rgba(0, 0, 0, 0.75);
271
+ }
272
+
273
+ .fc-cus-select-selection-item-remove .anticon {
274
+ display: inline-flex;
275
+ align-items: center;
276
+ font-style: normal;
277
+ line-height: 0;
278
+ text-align: center;
279
+ text-transform: none;
280
+ vertical-align: -0.125em;
281
+ text-rendering: optimizeLegibility;
282
+ font-size: 12px;
283
+ }
284
+
285
+ .fc-cus-select-selection-item-remove .anticon svg {
286
+ display: inline-block;
287
+ width: 1em;
288
+ height: 1em;
289
+ }
290
+
291
+ .fc-cus-select-disabled {
292
+ cursor: not-allowed;
293
+ }
294
+
295
+ .fc-cus-select-disabled .fc-cus-select-selector {
296
+ cursor: not-allowed;
297
+ background-color: #f5f5f5;
298
+ color: rgba(0, 0, 0, 0.25);
299
+ border-color: #d9d9d9;
300
+ }
301
+
302
+ .fc-cus-select-disabled .fc-cus-select-selection-item {
303
+ color: rgba(0, 0, 0, 0.25);
304
+ }
305
+
306
+ .fc-cus-select-disabled .fc-cus-select-selection-placeholder {
307
+ color: rgba(0, 0, 0, 0.25);
308
+ }