sadais-piui 1.2.7-beta13 → 1.2.7-beta131

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 (71) hide show
  1. package/.prettierrc +8 -0
  2. package/components/pi-badge/index.vue +11 -1
  3. package/components/pi-bottom-bar/index.vue +1 -1
  4. package/components/pi-calendar/index.vue +207 -182
  5. package/components/pi-calendar-input/index.vue +61 -30
  6. package/components/pi-calendar-panel/components/calendar-days/index.vue +91 -52
  7. package/components/pi-calendar-panel/index.vue +28 -12
  8. package/components/pi-canvas/index.vue +8 -1
  9. package/components/pi-cascader/index.vue +601 -0
  10. package/components/pi-checkbox/index.vue +8 -4
  11. package/components/pi-checkbox-group/index.vue +12 -11
  12. package/components/pi-circle-progress/index.vue +108 -21
  13. package/components/pi-code-input/index.vue +11 -3
  14. package/components/pi-collapse/index.vue +124 -0
  15. package/components/pi-collapse-item/index.vue +360 -0
  16. package/components/pi-date-picker/index.vue +512 -391
  17. package/components/pi-date-picker-input/index.vue +61 -30
  18. package/components/pi-dropdown/components/dropdown-tab.vue +33 -23
  19. package/components/pi-dropdown/index.vue +34 -19
  20. package/components/pi-dropdown-item/index.vue +70 -58
  21. package/components/pi-form-item/index.vue +99 -21
  22. package/components/pi-grid/index.vue +1 -1
  23. package/components/pi-grid-item/index.vue +4 -4
  24. package/components/pi-img/index.vue +275 -267
  25. package/components/pi-img-cropper/index.vue +110 -110
  26. package/components/pi-input/index.vue +95 -34
  27. package/components/pi-list-item/index.vue +1 -1
  28. package/components/pi-mask/index.vue +3 -1
  29. package/components/pi-pagination/index.vue +13 -0
  30. package/components/pi-popup/index.vue +4 -1
  31. package/components/pi-popup-select/index.vue +8 -1
  32. package/components/pi-radio/index.vue +12 -11
  33. package/components/pi-radio-group/index.vue +25 -5
  34. package/components/pi-regions-select/index.vue +6 -1
  35. package/components/pi-regions-select-input/index.vue +69 -31
  36. package/components/pi-search/index.vue +37 -2
  37. package/components/pi-section/index.vue +1 -1
  38. package/components/pi-select/index.vue +237 -22
  39. package/components/pi-select-input/index.vue +106 -41
  40. package/components/pi-stepper/index.vue +135 -121
  41. package/components/pi-steps/index.vue +115 -36
  42. package/components/pi-swiper/index.vue +22 -7
  43. package/components/pi-switch/index.vue +5 -1
  44. package/components/pi-table/index.vue +351 -0
  45. package/components/pi-tabs/index.vue +46 -10
  46. package/components/pi-tag/index.vue +488 -0
  47. package/components/pi-upload-img/index.vue +541 -37
  48. package/components/pi-webview/index.vue +95 -82
  49. package/config/actionSheet.js +0 -1
  50. package/config/calendarInput.js +2 -1
  51. package/config/calendarPanel.js +2 -1
  52. package/config/cascader.js +22 -0
  53. package/config/circleProgress.js +17 -10
  54. package/config/codeInput.js +2 -1
  55. package/config/collapse.js +7 -0
  56. package/config/collapseItem.js +11 -0
  57. package/config/datePicker.js +29 -24
  58. package/config/datePickerInput.js +2 -1
  59. package/config/dropdown.js +3 -1
  60. package/config/input.js +5 -3
  61. package/config/regionsSelectInput.js +2 -1
  62. package/config/select.js +13 -1
  63. package/config/selectInput.js +2 -1
  64. package/config/steps.js +1 -1
  65. package/config/table.js +9 -0
  66. package/config/tag.js +21 -0
  67. package/config/uploadImg.js +30 -11
  68. package/package.json +5 -2
  69. package/scss/common.scss +11 -14
  70. package/scss/icon/icon.scss +2 -1
  71. package/scss/mixin.scss +5 -5
@@ -1,48 +1,49 @@
1
1
  <!--
2
2
  * @Author: zhangzhenfei
3
3
  * @Date: 2022-05-18 11:08:49
4
- * @LastEditTime: 2022-05-20 17:52:51
4
+ * @LastEditTime: 2023-09-02 11:40:23
5
5
  * @LastEditors: zhangzhenfei
6
6
  * @Description: 日历输入
7
- * @FilePath: /hfmp-checkin-front/Users/feilin/workspace/piui/piui-awesome/src/piui/components/pi-date-picker-input/index.vue
7
+ * @FilePath: \piui-awesome\src\piui\components\pi-date-picker-input\index.vue
8
8
  -->
9
9
 
10
10
  <template>
11
11
  <view class="pi-datePicker-input">
12
12
  <!-- 输入框 -->
13
- <view v-if="$slots.default || $slots.$default" class="pi-w-100P" @click="show = true">
13
+ <view v-if="$slots.default || $slots.$default" class="pi-w-100P" @click="handleShow()">
14
14
  <slot />
15
15
  </view>
16
16
  <pi-input
17
17
  v-else
18
18
  type="text"
19
19
  :value="getInputValue"
20
- :custom-class="input.customClass"
21
- :custom-style="input.customStyle"
22
- :placeholder="input.placeholder"
23
- :placeholder-style="input.placeholderStyle"
24
- :placeholder-class="input.placeholderClass"
25
- :disabled="input.disabled"
26
- :border="input.border"
27
- :maxlength="input.maxlength"
28
- :password="input.password"
29
- :cursor-spacing="input.cursorSpacing"
30
- :focus="input.focus"
31
- :confirm-type="input.confirmType"
32
- :confirm-hold="input.confirmHold"
33
- :cursor="input.cursor"
34
- :selection-start="input.selectionStart"
35
- :selection-end="input.selectionEnd"
36
- :adjust-position="input.adjustPosition"
37
- :hold-keyboard="input.holdKeyboard"
38
- :auto-blur="input.autoBlur"
39
- :show-confirmbar="input.showConfirmbar"
40
- :auto-height="input.autoHeight"
41
- :fixed="input.fixed"
42
- :disable-default-padding="input.disableDefaultPadding"
43
- :clearable="input.clearable"
44
- :clear-icon="input.clearIcon"
45
- @click="show = true"
20
+ :custom-class="getInput.customClass"
21
+ :custom-style="getInput.customStyle"
22
+ :placeholder="getInput.placeholder"
23
+ :placeholder-style="getInput.placeholderStyle"
24
+ :placeholder-class="getInput.placeholderClass"
25
+ :disabled="getInput.disabled"
26
+ :border="getInput.border"
27
+ :maxlength="getInput.maxlength"
28
+ :password="getInput.password"
29
+ :cursor-spacing="getInput.cursorSpacing"
30
+ :focus="getInput.focus"
31
+ :confirm-type="getInput.confirmType"
32
+ :confirm-hold="getInput.confirmHold"
33
+ :cursor="getInput.cursor"
34
+ :selection-start="getInput.selectionStart"
35
+ :selection-end="getInput.selectionEnd"
36
+ :adjust-position="getInput.adjustPosition"
37
+ :hold-keyboard="getInput.holdKeyboard"
38
+ :auto-blur="getInput.autoBlur"
39
+ :show-confirmbar="getInput.showConfirmbar"
40
+ :auto-height="getInput.autoHeight"
41
+ :fixed="getInput.fixed"
42
+ :disable-default-padding="getInput.disableDefaultPadding"
43
+ :clearable="getInput.clearable"
44
+ :clear-icon="getInput.clearIcon"
45
+ @click="handleShow()"
46
+ @clear="handleClearValue"
46
47
  />
47
48
 
48
49
  <!-- 日期弹出框 -->
@@ -55,6 +56,11 @@
55
56
  :end-year="getDatePicker.endYear"
56
57
  :field="getDatePicker.field"
57
58
  :date-type="getDatePicker.dateType"
59
+ :year-options="getDatePicker.yearOptions"
60
+ :month-options="getDatePicker.monthOptions"
61
+ :day-options="getDatePicker.dayOptions"
62
+ :hour-options="getDatePicker.hourOptions"
63
+ :minute-options="getDatePicker.minuteOptions"
58
64
  :format="dateFormat"
59
65
  :item-height="getDatePicker.itemHeight"
60
66
  :item-style="getDatePicker.itemStyle"
@@ -64,6 +70,10 @@
64
70
  :confirm-btn="getDatePicker.confirmBtn"
65
71
  :cancel-btn="getDatePicker.cancelBtn"
66
72
  @confirm="handleDatePickerConfirm"
73
+ @close="$emit('close', $event)"
74
+ @closed="$emit('closed', $event)"
75
+ @show="$emit('show', $event)"
76
+ @showed="$emit('showed', $event)"
67
77
  />
68
78
  </view>
69
79
  </template>
@@ -139,6 +149,10 @@ export default {
139
149
  fn: datePickerInput.parseValueFn
140
150
  }
141
151
  }
152
+ },
153
+ disabled: {
154
+ type: Boolean,
155
+ default: datePickerInput.disabled
142
156
  }
143
157
  },
144
158
  data() {
@@ -147,6 +161,9 @@ export default {
147
161
  }
148
162
  },
149
163
  computed: {
164
+ getInput() {
165
+ return this.$pi.lang.mergeDeep(datePickerInput.input, this.input)
166
+ },
150
167
  getDatePicker() {
151
168
  return this.$pi.lang.mergeDeep(datePickerInput.datePicker, this.datePicker)
152
169
  },
@@ -164,9 +181,20 @@ export default {
164
181
  if (this.$pi.lang.isEmpty(this.val)) return ''
165
182
  const date = this.$pi.date.parseDate(this.val)
166
183
  return date.format(this.dateFormat)
167
- }
184
+ },
185
+ getDisabled() {
186
+ const parentFormItem = this.$pi.parent(this, 'PiFormItem')
187
+ const disabled = this.disabled || (parentFormItem && parentFormItem.getDisabled)
188
+ return disabled
189
+ },
168
190
  },
169
191
  methods: {
192
+ handleShow() {
193
+ if (this.getDisabled) {
194
+ return
195
+ }
196
+ this.show = true
197
+ },
170
198
  handlePopupClose() {
171
199
  this.val = false
172
200
  // 关闭
@@ -176,6 +204,9 @@ export default {
176
204
  handleDatePickerConfirm(value) {
177
205
  this.val = value
178
206
  this.handleEmitChange()
207
+ },
208
+ handleClearValue() {
209
+ this.handleDatePickerConfirm('')
179
210
  }
180
211
  }
181
212
  }
@@ -1,28 +1,27 @@
1
1
  <template>
2
- <view class="dropdown-tab-item" :class="[{ opened: item.opened }]">
3
- <!-- 注意:slot内不能使用父组件data -->
4
- <view
5
- class="pi-justify-center pi-align-center"
6
- :style="{ color: item.opened && item.activeColor ? item.activeColor : 'inherit' }"
7
- @tap.stop="handleClick"
8
- >
9
- <pi-icon
10
- v-if="item.showIcon"
11
- :name="item.iconOption.name"
12
- :dot="item.iconOption.dot"
13
- :badge="item.iconOption.badge"
14
- :color="item.iconOption.color"
15
- :size="item.iconOption.size"
16
- :class-prefix="item.iconOption.classPrefix"
17
- :custom-style="item.iconOption.customStyle"
18
- :custom-class="`pi-mg-right-8 ${item.iconOption.customClass}`"
19
- />
2
+ <!-- 注意:slot内不能使用父组件data -->
3
+ <view
4
+ class="dropdown-tab-item pi-justify-center pi-align-center"
5
+ :style="[getTabItemStyle]"
6
+ :class="[{ opened: item.opened }]"
7
+ @tap.stop="handleClick"
8
+ >
9
+ <pi-icon
10
+ v-if="item.showIcon"
11
+ :name="item.iconOption.name"
12
+ :dot="item.iconOption.dot"
13
+ :badge="item.iconOption.badge"
14
+ :color="item.iconOption.color"
15
+ :size="item.iconOption.size"
16
+ :class-prefix="item.iconOption.classPrefix"
17
+ :custom-style="item.iconOption.customStyle"
18
+ :custom-class="`pi-mg-right-8 ${item.iconOption.customClass}`"
19
+ />
20
20
 
21
- <text class="pi-pd-right-12 pi-fz-28">
22
- {{ item.text }}
23
- </text>
24
- <pi-icon :class="{ rotate: item.opened }" name="arrow-down_fill" size="26" color="#999" />
25
- </view>
21
+ <text class="pi-pd-right-12 pi-fz-28">
22
+ {{ item.text }}
23
+ </text>
24
+ <pi-icon :class="{ rotate: item.opened }" name="arrow-down_fill" size="26" color="#999" />
26
25
  </view>
27
26
  </template>
28
27
 
@@ -39,6 +38,15 @@ export default {
39
38
  }
40
39
  }
41
40
  },
41
+ computed: {
42
+ getTabItemStyle() {
43
+ const styles = {}
44
+ if (this.item.opened && this.item.activeColor) {
45
+ styles.color = this.item.activeColor
46
+ }
47
+ return styles
48
+ }
49
+ },
42
50
  methods: {
43
51
  handleClick() {
44
52
  this.$emit('click', this.item)
@@ -49,6 +57,8 @@ export default {
49
57
 
50
58
  <style lang="scss" scoped>
51
59
  .dropdown-tab-item {
60
+ width: 100%;
61
+ height: 100%;
52
62
  &.opened {
53
63
  color: $pi-primary-color;
54
64
  }
@@ -7,6 +7,7 @@
7
7
  :show-slider-bar="false"
8
8
  show-item-split-line
9
9
  :stretch="stretch"
10
+ :height="tabHeight"
10
11
  active-text-color="inherit"
11
12
  >
12
13
  <!-- 注意:slot内不能使用父组件data -->
@@ -14,6 +15,7 @@
14
15
  slot="item"
15
16
  slot-scope="{ item, index }"
16
17
  :item="item"
18
+ class="pi-w-100P pi-h-100P"
17
19
  @click="handleClickTab(item, index)"
18
20
  />
19
21
  </pi-tabs>
@@ -21,7 +23,7 @@
21
23
  <!-- 展示dropdownItem下的数据 -->
22
24
  <view
23
25
  class="pi-dropdown-content"
24
- :class="[contentClass, show ? 'pi-ani-slide-top-show' : 'pi-ani-slide-top-hide']"
26
+ :class="[contentClass]"
25
27
  :style="[contentStyle, contentCombinationStyle]"
26
28
  >
27
29
  <slot />
@@ -128,6 +130,22 @@ export default {
128
130
  return dropdown.activeColor
129
131
  }
130
132
  },
133
+ // 标签是否均分布局,可选值 `true`
134
+ stretch: {
135
+ type: Boolean,
136
+ // `false`
137
+ default() {
138
+ return dropdown.stretch
139
+ }
140
+ },
141
+ // 标签的高度,单位rpx
142
+ tabHeight: {
143
+ type: [String, Number],
144
+ // `80`
145
+ default() {
146
+ return dropdown.tabHeight
147
+ }
148
+ },
131
149
  // -------------以下属性为子组件pi-dropdown-item继承用--------------
132
150
  // 行高 值为数字,则单位默认rpx
133
151
  itemHeight: {
@@ -169,14 +187,6 @@ export default {
169
187
  return dropdown.selectedCheckbox
170
188
  }
171
189
  },
172
- // 标签是否均分布局,可选值 `true`
173
- stretch: {
174
- type: Boolean,
175
- // `false`
176
- default() {
177
- return dropdown.stretch
178
- }
179
- },
180
190
  // 是否需要蒙层顶部对齐组件,可选值 `false`
181
191
  maskAlignTop: {
182
192
  type: Boolean,
@@ -184,6 +194,10 @@ export default {
184
194
  default() {
185
195
  return dropdown.maskAlignTop
186
196
  }
197
+ },
198
+ disabled: {
199
+ type: Boolean,
200
+ default: dropdown.disabled
187
201
  }
188
202
  },
189
203
  data() {
@@ -195,7 +209,8 @@ export default {
195
209
 
196
210
  show: false, // 是否显示节点
197
211
  showed: false, // 是否显示动画执行完毕
198
- closed: true // 是否已关闭(用来防止val为false的情况,动画无法执行)
212
+ closed: true, // 是否已关闭(用来防止val为false的情况,动画无法执行)
213
+ submiting: false // 正在更新值(防止快速切换提交)
199
214
  }
200
215
  },
201
216
  computed: {
@@ -239,13 +254,7 @@ export default {
239
254
  // 同步父子组件的值
240
255
  if (this.val[index] !== item.val) {
241
256
  console.log(TAG, 'Dropdown和DropdownItem绑定值不一致,即将同步')
242
- if (item.val) {
243
- // 以子组件的值为准
244
- hasValueChange = true
245
- val[index] = item.val
246
- } else if (this.val[index]) {
247
- item.emitChange(this.val[index])
248
- }
257
+ item.emitChange(this.val[index])
249
258
  }
250
259
  const currentOption = item.options?.find(
251
260
  opt => !opt.clearable && opt[item.getKeyField] === this.val[index]
@@ -268,7 +277,8 @@ export default {
268
277
  },
269
278
  // 显示当前Tab
270
279
  async handleClickTab(item) {
271
- if (item.disabled) return
280
+ if (this.disabled || item.disabled) return
281
+ if (this.submiting) return console.log(TAG, '你点得太快了')
272
282
  if (this.show && item.id === this.activeItem.id) {
273
283
  this.closeMask()
274
284
  return
@@ -282,7 +292,7 @@ export default {
282
292
  // 每次点击都重新更新父容器的位置
283
293
  this.containerRect = await this.$pi.common.queryRect(this, '.pi-dropdown', false)
284
294
  this.openMask()
285
- this._children.find(child => {
295
+ this._children.forEach(child => {
286
296
  child.show = child._uid === item.id
287
297
  })
288
298
  },
@@ -301,6 +311,9 @@ export default {
301
311
  closeMask() {
302
312
  if (!this.show || !this.showed) return
303
313
  console.log(TAG, '隐藏下拉菜单遮罩层')
314
+ this._children.forEach(child => {
315
+ child.show = false
316
+ })
304
317
  this.show = false
305
318
  this.showed = false
306
319
  this.tabs = this.tabs.map(tab => {
@@ -309,11 +322,13 @@ export default {
309
322
  })
310
323
  setTimeout(() => {
311
324
  this.closed = true
325
+ this.submiting = false
312
326
  this.getMask.hideTabBar && uni.showTabBar()
313
327
  }, this.getDuration.js)
314
328
  },
315
329
  // 关闭弹窗并返回结果
316
330
  submit() {
331
+ this.submiting = true
317
332
  this.closeMask()
318
333
  setTimeout(() => {
319
334
  // 延迟执行,防止父子组件的值同步不上
@@ -1,60 +1,64 @@
1
1
  <template>
2
- <scroll-view v-if="show" scroll-y class="pi-dropdown-item pi-w-100P">
3
- <slot>
4
- <view
5
- v-for="item in options"
6
- :key="item[getKeyField]"
7
- class="item-wrap pi-pd-tb-24 pi-pd-lr-32 pi-w-100P pi-align-center"
8
- :class="[
9
- customClass,
10
- item[getDisabledField] ? 'disabled' : '',
11
- getSelectedCheckbox === 'none' ? 'pi-justify-center' : 'pi-justify-between'
12
- ]"
13
- :style="[customStyle, getItemStyle]"
14
- @tap="handleSelectItem(item)"
15
- >
16
- <view :class="[{ 'pi-primary': item[keyField] === val }]">
17
- {{ item[getDisplayField] }}
2
+ <view class="pi-dropdown-item pi-w-100P pi-flex-column" :class="[{ show }]">
3
+ <!-- extra slot -->
4
+ <slot name="extra" />
5
+ <scroll-view scroll-y class="pi-scroll">
6
+ <slot>
7
+ <view
8
+ v-for="item in options"
9
+ :key="item[getKeyField]"
10
+ class="item-wrap pi-pd-tb-24 pi-pd-lr-32 pi-w-100P pi-align-center"
11
+ :class="[
12
+ customClass,
13
+ item[getDisabledField] ? 'disabled' : '',
14
+ getSelectedCheckbox === 'none' ? 'pi-justify-center' : 'pi-justify-between'
15
+ ]"
16
+ :style="[customStyle, getItemStyle]"
17
+ @tap="handleSelectItem(item)"
18
+ >
19
+ <view :class="[{ 'pi-primary': item[getKeyField] === val }]">
20
+ {{ item[getDisplayField] }}
21
+ </view>
22
+ <!-- 如果配置了图片地址,使用图片 -->
23
+ <pi-img
24
+ v-if="getSelectedImg.src && item[getKeyField] === val"
25
+ :src="getSelectedImg.src"
26
+ :mode="getSelectedImg.mode"
27
+ :width="getSelectedImg.width"
28
+ :height="getSelectedImg.height"
29
+ :dot="getSelectedImg.dot"
30
+ :dot-radius="getSelectedImg.dotRadius"
31
+ :badge="getSelectedImg.badge"
32
+ :shape="getSelectedImg.shape"
33
+ :border-radius="getSelectedImg.borderRadius"
34
+ :show-loading="getSelectedImg.showLoading"
35
+ :loading-color="getSelectedImg.loadingColor"
36
+ :loading-type="getSelectedImg.loadingType"
37
+ :loading-size="getSelectedImg.loadingSize"
38
+ :show-error="getSelectedImg.showError"
39
+ :webp="getSelectedImg.webp"
40
+ custom-class="pi-mg-left-24"
41
+ />
42
+ <!-- 默认使用复选框 -->
43
+ <pi-checkbox
44
+ v-if="!getSelectedImg.src && getSelectedCheckbox !== 'none'"
45
+ readonly
46
+ :value="item[getKeyField] === val"
47
+ :name="getSelectedCheckbox.name"
48
+ :shape="getSelectedCheckbox.shape"
49
+ :border-radius="getSelectedCheckbox.borderRadius"
50
+ :border="getSelectedCheckbox.border"
51
+ :disabled="getSelectedCheckbox.disabled"
52
+ :size="getSelectedCheckbox.size"
53
+ :icon-size="getSelectedCheckbox.iconSize"
54
+ :active-color="getSelectedCheckbox.activeColor"
55
+ :active-mode="getSelectedCheckbox.activeMode"
56
+ custom-class="pi-mg-left-24"
57
+ />
18
58
  </view>
19
- <!-- 如果配置了图片地址,使用图片 -->
20
- <pi-img
21
- v-if="getSelectedImg.src && item[keyField] === val"
22
- :src="getSelectedImg.src"
23
- :mode="getSelectedImg.mode"
24
- :width="getSelectedImg.width"
25
- :height="getSelectedImg.height"
26
- :dot="getSelectedImg.dot"
27
- :dot-radius="getSelectedImg.dotRadius"
28
- :badge="getSelectedImg.badge"
29
- :shape="getSelectedImg.shape"
30
- :border-radius="getSelectedImg.borderRadius"
31
- :show-loading="getSelectedImg.showLoading"
32
- :loading-color="getSelectedImg.loadingColor"
33
- :loading-type="getSelectedImg.loadingType"
34
- :loading-size="getSelectedImg.loadingSize"
35
- :show-error="getSelectedImg.showError"
36
- :webp="getSelectedImg.webp"
37
- custom-class="pi-mg-left-24"
38
- />
39
- <!-- 默认使用复选框 -->
40
- <pi-checkbox
41
- v-if="!getSelectedImg.src && getSelectedCheckbox !== 'none'"
42
- readonly
43
- :value="item[keyField] === val"
44
- :name="getSelectedCheckbox.name"
45
- :shape="getSelectedCheckbox.shape"
46
- :border-radius="getSelectedCheckbox.borderRadius"
47
- :border="getSelectedCheckbox.border"
48
- :disabled="getSelectedCheckbox.disabled"
49
- :size="getSelectedCheckbox.size"
50
- :icon-size="getSelectedCheckbox.iconSize"
51
- :active-color="getSelectedCheckbox.activeColor"
52
- :active-mode="getSelectedCheckbox.activeMode"
53
- custom-class="pi-mg-left-24"
54
- />
55
- </view>
56
- </slot>
57
- </scroll-view>
59
+ </slot>
60
+ </scroll-view>
61
+ </view>
58
62
  </template>
59
63
 
60
64
  <script>
@@ -210,7 +214,7 @@ export default {
210
214
  if (item[this.getDisabledField]) {
211
215
  return
212
216
  }
213
- this.emitChange(item.id)
217
+ this.emitChange(item[this.getKeyField])
214
218
  setTimeout(() => {
215
219
  this._parent.submit()
216
220
  }, 300) // 延迟 可见按钮点击动画
@@ -223,11 +227,19 @@ export default {
223
227
  @import '../../scss/mixin.scss';
224
228
 
225
229
  .pi-dropdown-item {
226
- max-height: 600rpx;
230
+ max-height: 0;
231
+ opacity: 0;
232
+ transition: opacity $pi-animation-duration $pi-animation-timing-function,
233
+ max-height $pi-animation-duration $pi-animation-timing-function;
234
+ &.show {
235
+ max-height: 600rpx;
236
+ height: 600rpx;
237
+ opacity: 1;
238
+ }
227
239
  .item-wrap {
228
240
  &:not(:last-child) {
229
241
  @include pi-border;
230
- &::after {
242
+ &::before {
231
243
  border: 0 solid $pi-list-border-color;
232
244
  border-bottom-width: $pi-list-border-width;
233
245
  }