kui-vue 3.3.12 → 3.4.0

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.
@@ -7,7 +7,7 @@ export default {
7
7
  const parentNode = el.parentNode
8
8
  if (!parentNode) return false;
9
9
 
10
- const target = value === true ? document.body : value || document.body
10
+ const target = (value === true ? document.body : value) || document.body
11
11
  // let empty = document.createComment('')
12
12
 
13
13
  if (target != document.body) {
@@ -16,10 +16,10 @@ export default {
16
16
  } else {
17
17
 
18
18
  let box = document.createElement('div')
19
- box.style.top = 0
20
- box.style.left = 0
21
- box.style.width = '100%'
22
- box.style.position = 'absolute'
19
+ // box.style.top = 0
20
+ // box.style.left = 0
21
+ // box.style.width = '100%'
22
+ // box.style.position = 'absolute'
23
23
 
24
24
  // parentNode.replaceChild(empty, el)
25
25
 
@@ -122,142 +122,7 @@ export function isVnode(element) {
122
122
  element.tag !== undefined
123
123
  );
124
124
  }
125
- export function getPosition(selection, picker, transfer, placement = 'bottom-left', callback) {
126
- let top = 0, left = 0, offset = 3;
127
- let origins = {
128
- top: 'center bottom', 'top-left': 'left bottom', 'top-right': 'right bottom',
129
- left: 'right center', 'left-top': 'right top', 'left-bottom': 'right bottom',
130
- right: 'left center', 'right-top': 'left top', 'right-bottom': 'left bottom',
131
- bottom: 'center top', 'bottom-left': 'left top', 'bottom-right': 'right top'
132
- }
133
-
134
- if (picker && selection) {
135
-
136
- let selectionRect = selection.getBoundingClientRect();
137
- let pickerHeight = picker.offsetHeight
138
- let pickerWidth = picker.offsetWidth
139
- let clientHeight = document.documentElement.clientHeight
140
- let clientWidth = document.documentElement.clientWidth
141
- let scrollTop = document.documentElement.scrollTop
142
- let scrollLeft = document.documentElement.scrollLeft
143
- //是否有足够的空间
144
- //底部
145
- let showInBottom = clientHeight - selectionRect.bottom > pickerHeight
146
- //上面
147
- let showInTop = selectionRect.top > pickerHeight
148
- //左边
149
- let showInLeft = selectionRect.left > pickerWidth
150
- //右边
151
- let showInRight = clientWidth - selectionRect.right > pickerWidth
152
-
153
- // console.log(showInRight, selectionRect.left > pickerWidth, selectionRect.right, pickerWidth)
154
- // console.log('bottom:', showInBottom, 'top:', showInTop, 'left:', showInLeft, 'right:', showInRight)
155
- // console.log(placement, 'showInTop:', showInTop, 'showInBottom:', showInBottom, clientHeight, scrollTop, selectionRect.top, pickerHeight)
156
-
157
- let hasBottom = placement.slice(0, 6) == 'bottom'
158
- let hasTop = placement.slice(0, 3) == 'top'
159
- let hasLeft = placement.slice(0, 4) == 'left'
160
- let hasRight = placement.slice(0, 5) == 'right'
161
- // debugger
162
- if (hasBottom || hasTop) {
163
- if ((hasBottom && showInBottom) || (hasTop && !showInTop)) { //正常在底部显示
164
- if (transfer) {
165
- top = selectionRect.bottom + offset + scrollTop;
166
- left = selectionRect.left + scrollLeft
167
- // left = showInRight ? selectionRect.left + scrollLeft : selectionRect.right - pickerWidth + scrollLeft
168
- if (placement == 'bottom' || placement == 'top') {
169
- left = selectionRect.left - (pickerWidth - selectionRect.width) / 2 + scrollLeft
170
- }
171
- if (placement == 'bottom-right' || placement == 'top-right') {
172
- left = selectionRect.left - (pickerWidth - selectionRect.width) + scrollLeft
173
- }
174
- if (hasTop) {
175
- placement = placement.replace('top', 'bottom')
176
- }
177
- if (!showInRight && showInLeft) {
178
- left = selectionRect.right - pickerWidth + scrollLeft
179
- }
180
- if (!showInRight) {
181
- placement = placement.replace('left', 'right') //右边放不下去
182
- // left = selectionRect.right - pickerWidth + scrollLeft
183
- }
184
- } else {
185
- top = selectionRect.height + offset;
186
- left = 0;
187
- }
188
- } else if ((hasBottom && !showInBottom) || (hasTop && showInTop)) {
189
- if (transfer) {
190
- left = showInRight ? selectionRect.left + scrollLeft : selectionRect.right - pickerWidth + scrollLeft
191
- top = selectionRect.top - pickerHeight - offset + scrollTop
192
- if (placement == 'top' || placement == 'bottom') {
193
- left = selectionRect.left - (pickerWidth - selectionRect.width) / 2 + scrollLeft
194
- }
195
- if (placement == 'top-right' || placement == 'bottom-right') {
196
- left = selectionRect.left - (pickerWidth - selectionRect.width) + scrollLeft
197
- }
198
- if (hasBottom) {
199
- placement = placement.replace('bottom', 'top')
200
- }
201
- if (!showInRight) {
202
- placement = placement.replace('left', 'right')
203
- }
204
- } else {
205
- top = -(pickerHeight + offset);
206
- left = 0;
207
- }
208
- }
209
- } else if (hasLeft || hasRight) {
210
- if ((hasLeft && showInLeft) || (hasRight && !showInRight)) {
211
- if (transfer) {
212
- top = selectionRect.top + scrollTop
213
- left = selectionRect.left - pickerWidth - offset + scrollLeft
214
- if (placement == 'left' || placement == 'right') {
215
- top = selectionRect.top - (pickerHeight - selectionRect.height) / 2 + scrollTop
216
- }
217
- if (placement == 'left-bottom' || placement == 'right-bottom') {
218
- top = selectionRect.top - (pickerHeight - selectionRect.height) + scrollTop
219
- }
220
- if (hasRight) {
221
- placement = placement.replace('right', 'left')
222
- }
223
- } else {
224
- top = 0
225
- left = -(pickerWidth + offset)
226
- }
227
- } else if ((hasRight && showInRight) || (hasLeft && !showInLeft)) {
228
- if (transfer) {
229
- top = selectionRect.top + scrollTop
230
- left = selectionRect.left + selectionRect.width + offset + scrollLeft
231
- if (placement == 'right' || placement == 'left') {
232
- top = selectionRect.top + scrollTop - (pickerHeight - selectionRect.height) / 2
233
- }
234
- if (placement == 'right-bottom' || placement == 'left-bottom') {
235
- top = selectionRect.top + scrollTop - (pickerHeight - selectionRect.height)
236
- }
237
- if (hasLeft) {
238
- placement = placement.replace('left', 'right')
239
- }
240
- } else {
241
125
 
242
- }
243
- }
244
- if (transfer && !showInBottom && (hasRight || hasLeft)) {
245
- top = selectionRect.top - (pickerHeight - selectionRect.height) + scrollTop
246
- if (hasRight) {
247
- placement = showInRight ? 'right-bottom' : 'left-bottom'
248
- }
249
- if (hasLeft) {
250
- placement = showInLeft ? 'left-bottom' : 'right-bottom'
251
- }
252
- }
253
- }
254
- // console.log(placement, showInBottom,picker, pickerHeight,pickerWidth)
255
- }
256
- let origin = origins[placement]
257
- if (callback) {
258
- callback(top, left, origin, placement)
259
- }
260
- }
261
126
  export function getOffset(el) {
262
127
  // const rect = el.getBoundingClientRect();
263
128
  const pos = el ? {
@@ -17,14 +17,17 @@ export default {
17
17
  transitionName: { type: String, default: 'dropdown' },
18
18
  selection: { validator: v => true },
19
19
  updateKey: [String, Object, Array],
20
- offsetLeft: { type: Number, default: 0 }
20
+ offsetLeft: { type: Number, default: 0 },
21
+ extendWidth: Boolean
21
22
  },
22
23
 
23
24
  watch: {
24
- updateKey() {
25
- this.$nextTick(e => {
26
- this.setPosition()
27
- })
25
+ updateKey(o, v) {
26
+ if (o != v) {
27
+ this.$nextTick(e => {
28
+ this.setPosition()
29
+ })
30
+ }
28
31
  },
29
32
  rendered(value) {
30
33
  this.$emit('render')
@@ -32,9 +35,14 @@ export default {
32
35
  value(value) {
33
36
  this.rendered = true
34
37
  this.visible = value
35
- this.$nextTick(e => {
36
- this.setPosition()
37
- })
38
+
39
+ if (value) {
40
+ this.left = 0
41
+ this.top = 0
42
+ this.$nextTick(e => {
43
+ this.setPosition()
44
+ })
45
+ }
38
46
  },
39
47
  placement(value) {
40
48
  this.currentPlacement = value
@@ -115,18 +123,223 @@ export default {
115
123
  onMouseDown({ target }) {
116
124
  this.mousedownIn = this.visible && this.$el.contains(target)
117
125
  },
118
- setPosition(e) {
126
+ setPosition() {
119
127
  if (this.trigger == 'contextmenu' || !this.rendered || !this.value) {
120
128
  return;
121
129
  }
122
- let { selection, transfer, placement } = this
123
- getPosition(selection, this.$el, transfer, placement, (top, left, origin, placement) => {
124
- this.top = top
125
- this.left = left + (placement.includes('right') ? this.offsetLeft : -this.offsetLeft)
126
- // this.minWidth = this.selection.offsetWidth
127
- this.transformOrigin = origin
128
- this.currentPlacement = placement
129
- })
130
+ let { selection, placement = 'bottom', offsetLeft } = this
131
+ let picker = this.$el
132
+ if (this.extendWidth) {
133
+ picker.style.width = selection.offsetWidth + 'px'
134
+ }
135
+ let top = 0, left = 0, offset = 3;
136
+
137
+ let origin = ["", ""]
138
+
139
+ if (picker && selection) {
140
+
141
+ let selectionRect = selection.getBoundingClientRect();
142
+ let pickerHeight = picker.offsetHeight
143
+ let pickerWidth = picker.offsetWidth
144
+ let clientHeight = document.documentElement.clientHeight
145
+ let clientWidth = document.documentElement.clientWidth
146
+ let scrollTop = document.documentElement.scrollTop
147
+ let scrollLeft = document.documentElement.scrollLeft
148
+
149
+ //是否有足够的空间
150
+ //底部
151
+ let enoughBottom = clientHeight - selectionRect.bottom > pickerHeight
152
+ let enoughBottomC = clientHeight - selectionRect.top > pickerHeight
153
+ //上面
154
+ let enoughTop = selectionRect.top > pickerHeight
155
+ let enoughTopC = selectionRect.bottom > pickerHeight
156
+ //左边
157
+ let enoughLeft = selectionRect.left > pickerWidth
158
+ let enoughLeftC = selectionRect.right > pickerWidth
159
+ //右边
160
+ let enoughRight = clientWidth - selectionRect.right > pickerWidth
161
+ let enoughRightC = clientWidth - selectionRect.left > pickerWidth
162
+
163
+ // console.log(showInRight, selectionRect.left > pickerWidth, selectionRect.right, pickerWidth)
164
+ // console.log(selectionRect.right, pickerWidth, placement, ', bottom:', enoughBottom, 'top:', enoughTop, 'left:', enoughLeft, 'leftC:', enoughLeftC, 'right:', enoughRight, 'rightC:', enoughRightC)
165
+ // console.log(placement, 'showInTop:', showInTop, 'showInBottom:', showInBottom, clientHeight, scrollTop, selectionRect.top, pickerHeight)
166
+
167
+ //reset placement
168
+ if (placement.startsWith('top')) {
169
+ if (!enoughTop) {
170
+ placement = placement.replace('top', 'bottom')
171
+ }
172
+ if (!enoughLeftC) {
173
+ placement = placement.replace('right', 'left')
174
+
175
+ if (placement == 'top') {
176
+ placement = "top-left"
177
+ }
178
+ if (placement == 'bottom') {
179
+ placement = "bottom-left"
180
+ }
181
+ }
182
+ if (!enoughRightC) {
183
+ placement = placement.replace('left', 'right')
184
+
185
+ if (placement == 'bottom') {
186
+ placement = "bottom-right"
187
+ }
188
+
189
+ if (placement == 'top') {
190
+ placement = "top-right"
191
+ }
192
+ }
193
+
194
+
195
+ } else if (placement.startsWith('right')) {
196
+ if (!enoughRight) {
197
+ placement = placement.replace('right', 'left')
198
+ }
199
+ if (!enoughBottomC) {
200
+ placement = placement.replace('top', 'bottom')
201
+ if (placement == 'right') {
202
+ placement = 'right-bottom'
203
+ }
204
+ if (placement == 'left') {
205
+ placement = 'left-bottom'
206
+ }
207
+ }
208
+ if (!enoughTopC) {
209
+ placement = placement.replace('bottom', 'top')// ok
210
+ if (placement == 'left') {
211
+ placement = 'left-top'
212
+ }
213
+ if (placement == 'right') {
214
+ placement = 'right-top'
215
+ }
216
+ }
217
+
218
+ } else if (placement.startsWith('bottom')) {
219
+ if (!enoughBottom) {
220
+ placement = placement.replace('bottom', 'top')
221
+ }
222
+
223
+ if (!enoughLeftC) {
224
+ placement = placement.replace('right', 'left')
225
+
226
+ if (placement == 'bottom') {
227
+ placement = "bottom-left"
228
+ }
229
+
230
+ if (placement == 'top') {
231
+ placement = "top-left"
232
+ }
233
+ }
234
+ if (!enoughRightC) {
235
+ placement = placement.replace('left', 'right')
236
+
237
+ if (placement == 'top') {
238
+ placement = "top-right"
239
+ }
240
+ if (placement == 'bottom') {
241
+ placement = "bottom-right"
242
+ }
243
+ }
244
+
245
+ } else if (placement.startsWith('left')) {
246
+ if (!enoughLeft) {
247
+ placement = placement.replace('left', 'right')
248
+ }
249
+ if (!enoughTopC) {
250
+ placement = placement.replace('bottom', 'top')
251
+ if (placement == 'right') {
252
+ placement = 'right-top'
253
+ }
254
+ if (placement == 'left') {
255
+ placement = 'left-top'
256
+ }
257
+ }
258
+ if (!enoughBottomC) {
259
+ placement = placement.replace('top', 'bottom')
260
+ if (placement == 'right') {
261
+ placement = 'right-bottom'
262
+ }
263
+ if (placement == 'left') {
264
+ placement = 'left-bottom'
265
+ }
266
+ }
267
+
268
+ }
269
+
270
+
271
+ // console.log('result:' + placement)
272
+
273
+ // set postion
274
+ if (!placement.includes('-')) {
275
+ //equal
276
+ if (placement == 'top') {
277
+ top = selectionRect.top - pickerHeight - offset + scrollTop
278
+ left = selectionRect.left + (selectionRect.width - pickerWidth) / 2 + scrollLeft
279
+ origin = ['center', 'bottom']
280
+ }
281
+ if (placement == 'bottom') {
282
+ top = selectionRect.bottom + offset + scrollTop
283
+ left = selectionRect.left + (selectionRect.width - pickerWidth) / 2 + scrollLeft
284
+ origin = ['center', 'top']
285
+ }
286
+ if (placement == 'left') {
287
+ left = selectionRect.left - pickerWidth - offset + scrollLeft
288
+ top = selectionRect.top + (selectionRect.height - pickerHeight) / 2 + scrollTop
289
+ origin = ['right', 'center']
290
+ }
291
+ if (placement == 'right') {
292
+ left = selectionRect.right + offset + scrollLeft
293
+ top = selectionRect.top + (selectionRect.height - pickerHeight) / 2 + scrollTop
294
+ origin = ['left', 'center']
295
+ }
296
+ } else {
297
+ //start
298
+ if (placement.startsWith('bottom')) {
299
+ top = selectionRect.bottom + offset + scrollTop
300
+ origin[1] = 'top'
301
+ }
302
+ if (placement.startsWith('right')) {
303
+ left = selectionRect.right + offset + scrollLeft
304
+ origin[0] = 'left'
305
+ }
306
+ if (placement.startsWith('top')) {
307
+ top = selectionRect.top - pickerHeight - offset + scrollTop
308
+ origin[1] = 'bottom'
309
+ }
310
+ if (placement.startsWith('left')) {
311
+ left = selectionRect.left - pickerWidth - offset + scrollLeft
312
+ origin[0] = 'right'
313
+ }
314
+ //end
315
+
316
+ if (placement.endsWith('left')) {
317
+ left = selectionRect.left + scrollLeft
318
+ origin[0] = 'left'
319
+ }
320
+ if (placement.endsWith('right')) {
321
+ left = selectionRect.right - pickerWidth + scrollLeft - 0.5
322
+ origin[0] = 'right'
323
+ }
324
+
325
+ if (placement.endsWith('bottom')) {
326
+ top = selectionRect.bottom - pickerHeight + scrollTop
327
+ origin[1] = 'bottom'
328
+ }
329
+ if (placement.endsWith('top')) {
330
+ top = selectionRect.top + scrollTop
331
+ origin[1] = 'top'
332
+ }
333
+
334
+ }
335
+ }
336
+ // console.log(placement, origin)
337
+ this.top = top
338
+ this.left = left + (placement.includes('right') ? offsetLeft : -offsetLeft)
339
+
340
+ this.transformOrigin = origin.join(' ')
341
+ this.currentPlacement = placement
342
+
130
343
  },
131
344
  hide(e) {
132
345
  let { target } = e
@@ -148,7 +148,7 @@ export default {
148
148
  ref: 'overlay',
149
149
  key: this.$vnode.key,
150
150
  props: {
151
- transfer,
151
+ transfer: true,
152
152
  offsetLeft: this.offsetLeft,
153
153
  value: this.opened,
154
154
  className: [`k-${preCls}`, {
@@ -1,6 +1,6 @@
1
1
  import { canvasHelper, limit, hslToRgb, rgbToHsl, parseColor, rgbToHex, cssColorToRgba } from './canvasHelper'
2
2
  import { Input } from '../input'
3
- import {Button} from '../button'
3
+ import { Button } from '../button'
4
4
  import Icon from '../icon'
5
5
  import Drop from '../base/drop'
6
6
  import { ChevronDown, CaretHor } from 'kui-icons'
@@ -364,7 +364,8 @@ export default {
364
364
  const props = {
365
365
  ref: 'overlay',
366
366
  props: {
367
- transfer: this.transfer,
367
+ placement: 'bottom-left',
368
+ transfer: true,
368
369
  value: this.opened,
369
370
  selection: this.$el,
370
371
  className: 'k-color-picker-dropdown',
@@ -430,7 +431,7 @@ export default {
430
431
  <div class="k-color-picker-color">
431
432
  <div class="k-color-picker-color-inner" style={`background-color:${this.currentColor}`}></div>
432
433
  </div>
433
- {showArrow && <Icon type={icon || ChevronDown} />}
434
+ {showArrow && <Icon class="k-color-picker-arrow" type={icon || ChevronDown} />}
434
435
  </div>
435
436
  {drop}
436
437
  </div >)
@@ -2,13 +2,14 @@
2
2
 
3
3
  .k-color-picker {
4
4
  // width: 55px;
5
- height: 30px;
5
+ height: 32px;
6
6
  border: 1px solid var(--kui-color-border);
7
7
  border-radius: var(--kui-border-radius);
8
8
  position: relative;
9
- display: inline-block;
10
- box-sizing: content-box;
11
-
9
+ display: inline-flex;
10
+ box-sizing: border-box;
11
+ align-items: center;
12
+ padding: 0 2px;
12
13
  &:hover,
13
14
  &:focus {
14
15
  border-color: var(--kui-color-main-hover);
@@ -21,7 +22,7 @@
21
22
  .k-color-picker-selection {
22
23
  display: flex;
23
24
  align-items: center;
24
- padding: 2px;
25
+ // padding: 2px;
25
26
  cursor: pointer;
26
27
  }
27
28
 
@@ -41,28 +42,22 @@
41
42
  }
42
43
  }
43
44
 
44
- .k-icon {
45
- // position: absolute;
46
- // right: 5px;
47
- // top: 50%;
48
- // transform: translateY(-50%);
45
+ .k-color-picker-arrow {
49
46
  margin: 0 5px;
50
47
  font-size: 16px;
51
48
  color: var(--kui-color-icon);
52
-
53
- #chevron-up {
54
- transform: rotate(180deg);
55
- }
49
+ transition: transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);
56
50
  }
57
51
 
58
- .k-icon-default {
59
- transform: rotate(180deg);
60
- }
61
52
  }
62
53
 
63
54
  .k-color-picker-opened {
64
55
  border: 1px solid var(--kui-color-main);
65
56
  box-shadow: 0 0 0 2px var(--kui-color-main-90);
57
+
58
+ .k-color-picker-arrow {
59
+ transform: rotate(180deg);
60
+ }
66
61
  }
67
62
 
68
63
  .k-color-picker-disabled {
@@ -92,11 +87,11 @@
92
87
  height: 40px;
93
88
 
94
89
  .k-color-picker-color {
95
- width: 35.5px;
96
- height: 35.5px;
90
+ width: 34px;
91
+ height: 34px;
97
92
  }
98
93
 
99
- .k-icon {
94
+ .k-color-picker-arrow {
100
95
  font-size: 22px;
101
96
  }
102
97
  }
@@ -105,16 +100,12 @@
105
100
  // width: 45px;
106
101
  height: 22px;
107
102
 
108
- .k-color-picker-selection {
109
- padding: 3px;
110
- }
111
-
112
103
  .k-color-picker-color {
113
104
  width: 16px;
114
105
  height: 16px;
115
106
  }
116
107
 
117
- .k-icon {
108
+ .k-color-picker-arrow {
118
109
  font-size: 14px;
119
110
  }
120
111
  }
@@ -331,7 +331,10 @@ export default {
331
331
  calendar.push(presetsNode)
332
332
  }
333
333
  const leftProps = {
334
- props: { format, mode, opened, disabledTime, disabledDate, value: dv1, date: d1, v1, v2, h2, pickerSize },
334
+ props: {
335
+ format, mode, opened, disabledTime,
336
+ disabledDate, value: dv1, date: d1, v1, v2, h2, pickerSize: pickerSize || size
337
+ },
335
338
  on: {
336
339
  input: (e, f) => this.picker1Update(e, f),
337
340
  close: (v) => {
@@ -380,7 +383,7 @@ export default {
380
383
  const props = {
381
384
  props: {
382
385
  className: ['k-datepicker-dropdown', { 'k-datepicker-range-dropdown': isRange }],
383
- transfer: transfer,
386
+ transfer: true,
384
387
  selection: this.$el,
385
388
  value: this.opened,
386
389
  placement: 'bottom-left',
@@ -15,6 +15,10 @@
15
15
  .k-dropdown-menu {
16
16
  min-width: 150px;
17
17
  }
18
+
19
+ .k-dropdown-menu-item-icon {
20
+ margin-right: 8px;
21
+ }
18
22
  }
19
23
 
20
24
  .k-dropdown-has-arrow {
@@ -18,7 +18,7 @@
18
18
  <Input />
19
19
  </FormItem>
20
20
  <FormItem label="Select">
21
- <Select >
21
+ <Select style="width:100%">
22
22
  <Option value="0" label="Apple" />
23
23
  <Option value="1" label="Banana" />
24
24
  <Option value="2" label="Orange" />
@@ -25,7 +25,7 @@
25
25
  <InputNumber placeholder="inputnumber..."/>
26
26
  </FormItem>
27
27
  <FormItem label="Select">
28
- <Select >
28
+ <Select style="width:100%;">
29
29
  <Option value="0" label="Apple" />
30
30
  <Option value="1" label="Banana" />
31
31
  <Option value="2" label="Orange" />
@@ -24,7 +24,7 @@
24
24
  { required: true, message: '请输入性别' }
25
25
  ]"
26
26
  >
27
- <Select clearable>
27
+ <Select clearable style="width:100%;">
28
28
  <Option value="1" label="男" />
29
29
  <Option value="0" label="女" />
30
30
  </Select>
@@ -27,13 +27,13 @@
27
27
  </FormItem>
28
28
  <FormItem label="Country">
29
29
  <FormItem prop="country">
30
- <Select clearable>
30
+ <Select clearable style="width:100%;">
31
31
  <Option value="0" label="China" />
32
32
  <Option value="1" label="Russia" />
33
33
  </Select>
34
34
  </FormItem>
35
35
  <FormItem prop="city">
36
- <Select clearable>
36
+ <Select clearable style="width:100%;">
37
37
  <Option value="0" label="Shanghai" />
38
38
  <Option value="1" label="Wuhan" />
39
39
  <Option value="2" label="Hangzhou" />
@@ -39,13 +39,13 @@
39
39
  </FormItem>
40
40
  <FormItem label="Country">
41
41
  <FormItem prop="country">
42
- <Select clearable >
42
+ <Select clearable style="width:100%">
43
43
  <Option value="0" label="China" />
44
44
  <Option value="1" label="Russia" />
45
45
  </Select>
46
46
  </FormItem>
47
47
  <FormItem prop="city">
48
- <Select clearable >
48
+ <Select clearable style="width:100%">
49
49
  <Option value="0" label="Shanghai" />
50
50
  <Option value="1" label="Wuhan" />
51
51
  <Option value="2" label="Hangzhou" />