sadais-piui 1.2.3 → 1.2.4-beta3
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.
- package/CHANGELOG.md +27 -0
- package/components/pi-calendar-panel/index.vue +5 -4
- package/components/pi-dropdown/index.vue +1 -1
- package/components/pi-marquee/index.vue +2 -2
- package/components/pi-mask/index.vue +2 -2
- package/components/pi-popup/index.vue +2 -2
- package/components/pi-regions-select/index.vue +11 -4
- package/components/pi-skeleton/index.vue +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<a name="1.2.3"></a>
|
|
4
|
+
## 1.2.3 (2022-03-26)
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
|
|
8
|
+
- ✨ feat: pi-select增加single-confirm选项配置 [def559e]
|
|
9
|
+
- ✨ feat: 增加pi-action-sheet组件 [bf179cd]
|
|
10
|
+
- ✨ feat: 增加文字按钮类型 [767a4a6]
|
|
11
|
+
- ✨ feat: pi-radio pi-radio-group 增加canCancel属性 [7874058]
|
|
12
|
+
- ✨ feat: 优化pi-bottom-bar下按钮显示字数 [a671bd6]
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- 🎨 chore: 增加 changelog 命令 [51238e6]
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- 🐛 fix: 修复input组件keyboardheightchange方法没有声明的问题 [6d26acf]
|
|
21
|
+
- 🐛 fix: 修复表单属性无法覆盖的问题 [b7308e5]
|
|
22
|
+
- 🐛 fix: 修复主题颜色被覆盖的问题 [12666d2]
|
|
23
|
+
- 🐛 fix: 修复pi-img缺失show-menu-by-longpress的问题 [be8a020]
|
|
24
|
+
|
|
25
|
+
### Miscellaneous
|
|
26
|
+
|
|
27
|
+
- 📝 docs: 更新群二维码信息 [796040f]
|
|
28
|
+
|
|
29
|
+
|
|
3
30
|
<a name="1.2.0"></a>
|
|
4
31
|
## 1.2.0 (2021-11-24)
|
|
5
32
|
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
return this.minDate ? this.$pi.date.parseDate(this.minDate) : ''
|
|
224
224
|
},
|
|
225
225
|
getMaxDate() {
|
|
226
|
-
return this.
|
|
226
|
+
return this.maxDate ? this.$pi.date.parseDate(this.maxDate) : ''
|
|
227
227
|
},
|
|
228
228
|
isMinYear() {
|
|
229
229
|
return this.year === parseInt(this.minYear, 10)
|
|
@@ -300,7 +300,6 @@ export default {
|
|
|
300
300
|
},
|
|
301
301
|
watch: {
|
|
302
302
|
value(val) {
|
|
303
|
-
console.log(val)
|
|
304
303
|
this.init()
|
|
305
304
|
}
|
|
306
305
|
},
|
|
@@ -401,8 +400,10 @@ export default {
|
|
|
401
400
|
this.calendarValue = calendarValue
|
|
402
401
|
this.val =
|
|
403
402
|
this.type === 'range'
|
|
404
|
-
? this.calendarValue.map(cv =>
|
|
405
|
-
|
|
403
|
+
? this.calendarValue.map(cv =>
|
|
404
|
+
this.$pi.date.formatDate(new Date(cv.timestamp), this.dateFormat)
|
|
405
|
+
)
|
|
406
|
+
: this.$pi.date.formatDate(new Date(this.calendarValue.timestamp), this.dateFormat)
|
|
406
407
|
this.handleEmitChange()
|
|
407
408
|
}
|
|
408
409
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
:class="[customClass, isVertical ? 'vertical' : '']"
|
|
6
6
|
@mouseenter="handlePause"
|
|
7
7
|
@mouseleave="handleStart"
|
|
8
|
-
@touchmove.stop.prevent
|
|
9
|
-
@mousewheel.stop.prevent
|
|
8
|
+
@touchmove.stop.prevent="() => {}"
|
|
9
|
+
@mousewheel.stop.prevent="() => {}"
|
|
10
10
|
>
|
|
11
11
|
<view class="inner-wrap" :class="direction" :style="[animate]">
|
|
12
12
|
<view v-for="(marqueeItems, index) in getItems" :key="index" class="inner">
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
'animation-duration': getDuration.css
|
|
17
17
|
}
|
|
18
18
|
]"
|
|
19
|
-
@touchmove.stop.prevent
|
|
19
|
+
@touchmove.stop.prevent="() => {}"
|
|
20
20
|
@tap.stop.prevent="handleCloseMask"
|
|
21
21
|
>
|
|
22
22
|
<!-- 遮罩层内区域插槽 -->
|
|
23
|
-
<view @tap.stop.prevent><slot /></view>
|
|
23
|
+
<view @tap.stop.prevent="() => {}"><slot /></view>
|
|
24
24
|
</view>
|
|
25
25
|
</template>
|
|
26
26
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
'animation-duration': getDuration.css
|
|
15
15
|
}
|
|
16
16
|
]"
|
|
17
|
-
@touchmove.stop.prevent
|
|
17
|
+
@touchmove.stop.prevent="() => {}"
|
|
18
18
|
@tap.stop.prevent="handleCloseMask"
|
|
19
19
|
>
|
|
20
20
|
<view
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
positionStyle,
|
|
36
36
|
customStyle
|
|
37
37
|
]"
|
|
38
|
-
@tap.stop.prevent
|
|
38
|
+
@tap.stop.prevent="() => {}"
|
|
39
39
|
>
|
|
40
40
|
<!-- 关闭图标 -->
|
|
41
41
|
<view
|
|
@@ -59,6 +59,8 @@ const TAG = 'PiRegionsSelect'
|
|
|
59
59
|
const { regionsSelect } = getConfig()
|
|
60
60
|
const PLEASE_SELECT_TIP = '请选择'
|
|
61
61
|
|
|
62
|
+
|
|
63
|
+
|
|
62
64
|
export default {
|
|
63
65
|
name: 'PiRegionsSelect',
|
|
64
66
|
// 混入v-model
|
|
@@ -237,14 +239,19 @@ export default {
|
|
|
237
239
|
handler(value) {
|
|
238
240
|
this.init()
|
|
239
241
|
}
|
|
242
|
+
},
|
|
243
|
+
regionsData: {
|
|
244
|
+
handler(value) {
|
|
245
|
+
this.init()
|
|
246
|
+
}
|
|
240
247
|
}
|
|
241
248
|
},
|
|
242
249
|
methods: {
|
|
243
250
|
init() {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
251
|
+
console.log(TAG, '地区选择组件初始化')
|
|
252
|
+
const defaultCode = this.defaultValue ? this.defaultValue.code : ''
|
|
253
|
+
const regions = this.$pi.regions.parseRegions(defaultCode, this.regionsData)
|
|
254
|
+
this.regions = regions
|
|
248
255
|
// 默认都是展示tab最后一个列表
|
|
249
256
|
this.tabCurrentItem = this.getTabItems[this.getTabItems.length - 1]
|
|
250
257
|
},
|