uview-plus 3.1.3 → 3.1.7

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,3 +1,11 @@
1
+ ## 3.1.7(2022-08-28)
2
+ 修复布局在微信小程序失效
3
+ ## 3.1.6(2022-08-25)
4
+ 修复微信小程序下tabbar样式问题
5
+ ## 3.1.5(2022-08-24)
6
+ 修复icon/text/tabs点击事件执行两次
7
+ ## 3.1.4(2022-08-20)
8
+ 修复button组件点击事件执行两次
1
9
  ## 3.1.3(2022-08-11)
2
10
  修复小程序报错Generated an empty chunk,修复示例工程引入request参数配置无效。
3
11
  ## 3.1.2(2022-08-09)
@@ -22,7 +22,6 @@
22
22
  :align="align"
23
23
  :wordWrap="wordWrap"
24
24
  :customStyle="customStyle"
25
- @click="$emit('click')"
26
25
  ></uvText>
27
26
  </template>
28
27
 
@@ -38,7 +37,7 @@ import mpMixin from '../../libs/mixin/mpMixin.js'
38
37
  import mixin from '../../libs/mixin/mixin.js'
39
38
  export default {
40
39
  name: "u--text",
41
- mixins: [mpMixin, mixin, props,],
40
+ mixins: [mpMixin, mixin, props,],
42
41
  components: {
43
42
  uvText,
44
43
  },
@@ -262,6 +262,8 @@ export default {
262
262
  return fontSize;
263
263
  },
264
264
  },
265
+ emits: ['click', 'getphonenumber', 'getuserinfo',
266
+ 'error', 'opensetting', 'launchapp'],
265
267
  methods: {
266
268
  clickHandler() {
267
269
  // 非禁止并且非加载中,才能点击
@@ -41,6 +41,10 @@
41
41
  gridNum: 12
42
42
  }
43
43
  },
44
+ // 微信小程序中 options 选项
45
+ options: {
46
+ virtualHost: true // 将自定义节点设置成虚拟的,更加接近Vue组件的表现。我们不希望自定义组件的这个节点本身可以设置样式、响应 flex 布局等
47
+ },
44
48
  computed: {
45
49
  uJustify() {
46
50
  if (this.justify == 'end' || this.justify == 'start') return 'flex-' + this.justify
@@ -86,6 +86,7 @@
86
86
 
87
87
  }
88
88
  },
89
+ emits: ['click'],
89
90
  mixins: [mpMixin, mixin, props],
90
91
  computed: {
91
92
  uClasses() {
@@ -130,6 +130,7 @@
130
130
  &__item-wrapper {
131
131
  height: 50px;
132
132
  @include flex(row);
133
+ justify-content: space-around;
133
134
  }
134
135
  }
135
136
 
@@ -73,6 +73,10 @@
73
73
  }
74
74
  }
75
75
  },
76
+ // 微信小程序中 options 选项
77
+ options: {
78
+ virtualHost: true //将自定义节点设置成虚拟的,更加接近Vue组件的表现。我们不希望自定义组件的这个节点本身可以设置样式、响应 flex 布局等
79
+ },
76
80
  created() {
77
81
  this.init()
78
82
  },
@@ -114,12 +118,13 @@
114
118
 
115
119
  <style lang="scss" scoped>
116
120
  @import "../../libs/css/components.scss";
117
-
118
121
  .u-tabbar-item {
119
122
  @include flex(column);
120
123
  align-items: center;
121
124
  justify-content: center;
122
125
  flex: 1;
126
+ width: 100%;
127
+ height: 100%;
123
128
 
124
129
  &__icon {
125
130
  @include flex;
@@ -138,7 +143,8 @@
138
143
  /* #ifdef MP */
139
144
  // 由于小程序都使用shadow DOM形式实现,需要给影子宿主设置flex: 1才能让其撑开
140
145
  :host {
141
- flex: 1
146
+ flex: 1;
147
+ width: 100%;
142
148
  }
143
149
  /* #endif */
144
150
  </style>
@@ -156,6 +156,7 @@
156
156
  async mounted() {
157
157
  this.init()
158
158
  },
159
+ emits: ['click', 'change'],
159
160
  methods: {
160
161
  setLineLeft() {
161
162
  const tabItem = this.list[this.innerCurrent];
@@ -112,6 +112,7 @@ export default {
112
112
  // #ifndef MP
113
113
  mixins: [mpMixin, mixin, value, props],
114
114
  // #endif
115
+ emits: ['click'],
115
116
  computed: {
116
117
  valueStyle() {
117
118
  const style = {
@@ -1,5 +1,5 @@
1
1
  // 此版本发布于2022-08-07
2
- const version = '3.1.0'
2
+ const version = '3.1.6'
3
3
 
4
4
  // 开发环境才提示,生产环境不会提示
5
5
  if (process.env.NODE_ENV === 'development') {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "uview-plus3.0重磅发布,利剑出鞘,一统江湖",
5
- "version": "3.1.3",
5
+ "version": "3.1.7",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",