sadais-piui 1.2.3 → 1.2.4-beta1

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 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
 
@@ -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
- if (this.defaultValue) {
245
- const regions = this.$pi.regions.parseRegions(this.defaultValue.code, this.regionsData)
246
- this.regions = regions
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.3",
3
+ "version": "1.2.4-beta1",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {