uview-plus 3.1.29 → 3.1.31

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,89 +1,5 @@
1
- ## 3.1.29(2023-03-11
2
- 修复u-tabs标签结束兼容性
3
- ## 3.1.28(2023-03-03)
4
- 修复u-tabs标签缺失
5
- ## 3.1.27(2023-02-28)
6
- 修复日历组建对dayjs等依赖
7
- ## 3.1.26(2023-02-04)
8
- 修复安卓Multiple conflicting contents for sourcemap
9
- ## 3.1.25(2023-02-04)
10
- 修复dayjs引入问题导致小程序编译报错
11
- ## 3.1.24(2023-01-17)
12
- 修复dayjs报错does not provide an export named 'default'
13
- ## 3.1.23(2023-01-15)
14
- 修复 build:h5 cell 和 notice-bar 点击失效的问题
15
- 修复小程序端报 alert 和 upload 重复定义的bug
16
- 感谢@dodu2014
17
- ## 3.1.22(2023-01-14)
18
- 增加transpileDependencies检测
19
- ## 3.1.21(2023-01-14)
20
- 修复路由配置合并问题
21
- ## 3.1.20(2022-12-16)
22
- 修复拼写
23
- ## 3.1.19(2022-11-16)
24
- 修复u-rate的v-model绑定值不生效#48
25
- 修复u-grid-item click事件会执行两次 #40
26
- 修复u--input组建Property "value" was accessed during render but is not defined on instance
27
- 修复textarea组建confirmType报错
28
- ## 3.1.18(2022-10-23)
29
- 新增页面模板
30
- ## 3.1.17(2022-10-23)
31
- 演示项目增加国家化支持及多个页面模板
32
- ## 3.1.16(2022-10-21)
33
- 修复u-switch、u-picker等
34
- ## 3.1.15(2022-10-13)
35
- 修复:数据更新后,上传组件的视图没有更新
36
- 复选框 超出不换行
37
- 单选框 超出不换行
38
- ## 3.1.14(2022-10-11)
39
- swipe-action-item组件增加emits定义
40
- ## 3.1.13(2022-09-19)
41
- 修复富文本解析
42
- ## 3.1.12(2022-09-15)
43
- check-box组件清空数组时无法更新视图的问题
44
- ## 3.1.11(2022-09-14)
45
- 修复u-checkbox-group等
46
- ## 3.1.10(2022-09-14)
47
- 修复u-checkbox-box双向绑定
48
- ## 3.1.9(2022-09-08)
49
- 紧急修复缺失endif
50
- ## 3.1.8(2022-09-07)
51
- 修复u-checkbox-group双向绑定
52
- 修复picker缺少emits定义
53
- ## 3.1.7(2022-08-28)
54
- 修复布局在微信小程序失效
55
- ## 3.1.6(2022-08-25)
56
- 修复微信小程序下tabbar样式问题
57
- ## 3.1.5(2022-08-24)
58
- 修复icon/text/tabs点击事件执行两次
59
- ## 3.1.4(2022-08-20)
60
- 修复button组件点击事件执行两次
61
- ## 3.1.3(2022-08-11)
62
- 修复小程序报错Generated an empty chunk,修复示例工程引入request参数配置无效。
63
- ## 3.1.2(2022-08-09)
64
- 修复示例项目对request的调用引入
65
- ## 3.1.1(2022-08-07)
66
- 折叠面板在小程序会报'setContentAnimate' of undefined
67
- ## 3.1.0(2022-08-07)
68
- 初步解决App端运行时提示props未定义且白屏问题
69
- ## 3.0.17(2022-08-03)
70
- 修复u-image组件报borderRadius警告
71
- ## 3.0.16(2022-07-30)
72
- 修复方法重复,属性重复等多个编译到APP时的warning
73
- ## 3.0.15(2022-07-22)
74
- 修复支付宝下不支持this.$slots导致cell的slot失效
75
- ## 3.0.14(2022-07-22)
76
- 修复u-grid-item与u-swipe-action-item在支付宝编译报错问题
77
- ## 3.0.13(2022-07-22)
78
- 修复u--input与u--textarea组件多个事件执行两次问题
79
- ## 3.0.12(2022-07-20)
80
- 修复u-action-sheet中v-for报错
81
- u-collapse-item中slot修复
82
- ## 3.0.11(2022-07-19)
83
- 修复微信小程序编译报错及其它修复
84
- ## 3.0.10(2022-07-15)
85
- 修复文档一批slot示例写法
86
- 修复u-search缺失emits定义导致warning
1
+ ## 3.1.31(2023-05-15
2
+ 本地累计修复一些问题提交
87
3
  ## 3.0.9(2022-07-14)
88
4
  修复u-search双向绑定
89
5
  ## 3.0.8(2022-07-12)
@@ -51,7 +51,7 @@
51
51
  */
52
52
  export default {
53
53
  name: 'u-back-top',
54
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
54
+ mixins: [mpMixin, mixin,props],
55
55
  computed: {
56
56
  backTopStyle() {
57
57
  // 动画组件样式
@@ -98,7 +98,7 @@
98
98
  this.init()
99
99
  },
100
100
  // #ifdef VUE3
101
- emits: ['close', 'cancel', 'confirm', 'change'],
101
+ emits: ['close', 'cancel', 'confirm', 'change', 'update:modelValue'],
102
102
  // #endif
103
103
  methods: {
104
104
  init() {
@@ -188,7 +188,7 @@
188
188
  // 发出change时间,value为当前选中的时间戳
189
189
  this.$emit('change', {
190
190
  value: selectValue,
191
- // #ifndef MP-WEIXIN
191
+ // #ifndef MP-WEIXIN || MP-TOUTIAO
192
192
  // 微信小程序不能传递this实例,会因为循环引用而报错
193
193
  picker: this.$refs.picker,
194
194
  // #endif
@@ -164,7 +164,7 @@ export default {
164
164
  this.setIndexs(value)
165
165
 
166
166
  this.$emit('change', {
167
- // #ifndef MP-WEIXIN || MP-LARK
167
+ // #ifndef MP-WEIXIN || MP-LARK || MP-TOUTIAO
168
168
  // 微信小程序不能传递this,会因为循环引用而报错
169
169
  picker: this,
170
170
  // #endif
@@ -0,0 +1,32 @@
1
+ import defprops from '../../libs/config/props';
2
+ export default {
3
+ props: {
4
+ // 是否显示
5
+ show: {
6
+ type: Boolean,
7
+ default: defprops.drawer.show
8
+ },
9
+ // 点击遮罩是否关闭
10
+ mask: {
11
+ type: Boolean,
12
+ default: defprops.drawer.mask
13
+ },
14
+ // 抽屉宽度
15
+ width: {
16
+ type: [String, Number],
17
+ default: defprops.drawer.width
18
+ },
19
+ // 抽屉位置
20
+ placement: {
21
+ type: String,
22
+ default: defprops.drawer.placement
23
+ },
24
+ // 权重
25
+ zIndex: {
26
+ type: Number,
27
+ default: defprops.drawer.zIndex
28
+ },
29
+
30
+
31
+ }
32
+ }
@@ -0,0 +1,129 @@
1
+
2
+ <template>
3
+ <view v-show="visible">
4
+ <view
5
+ class="u-drawer__overlay"
6
+ :style="{ zIndex: zIndex }"
7
+ @click.stop="handleOverlayClick"
8
+ >
9
+ </view>
10
+ <view
11
+ class="u-drawer"
12
+ :class="{
13
+ 'u-drawer--left': placement === 'left',
14
+ 'u-drawer--right': placement === 'right'
15
+ }"
16
+ :style="{ zIndex: zIndex + 1, width: width, [placement]: `-${translate}` }"
17
+ @transitionend="handleTransitionEnd"
18
+ >
19
+ <view class="u-drawer__content">
20
+ <slot></slot>
21
+ </view>
22
+ </view>
23
+ </view>
24
+ </template>
25
+ <script>
26
+ import props from './props.js'
27
+ export default {
28
+ name: 'u-drawer',
29
+ mixins: [props],
30
+ // props: {
31
+ // //
32
+ // visible: {
33
+ // type: Boolean,
34
+ // default: false,
35
+ // },
36
+ // mask: {
37
+ // type: Boolean,
38
+ // default: true,
39
+ // },
40
+ // width: {
41
+ // type: Number,
42
+ // default: 300,
43
+ // },
44
+ // placement: {
45
+ // type: String,
46
+ // default: 'left',
47
+ // validator: (value) => ['left', 'right'].includes(value),
48
+ // },
49
+ // // transition: {
50
+ // // type: String,
51
+ // // default: 'u-slide-down',
52
+ // // },
53
+ // zIndex: {
54
+ // type: Number,
55
+ // default: 100,
56
+ // },
57
+ // },
58
+ data() {
59
+ return {
60
+ translate: 0,
61
+ };
62
+ },
63
+ watch: {
64
+ show: {
65
+ immediate: true,
66
+ handler(value) {
67
+ if (value) {
68
+ this.openDrawer();
69
+ } else {
70
+ this.closeDrawer();
71
+ }
72
+ },
73
+ },
74
+ },
75
+ methods: {
76
+ openDrawer() {
77
+ this.$emit('open');
78
+ this.translate = this.width;
79
+ },
80
+ closeDrawer() {
81
+ this.$emit('close');
82
+ this.translate = 0;
83
+ },
84
+ handleOverlayClick() {
85
+ // console.log('this.mask',this.mask)
86
+ if (this.mask) {
87
+ this.$emit('update:visible', false);
88
+ }
89
+ },
90
+ handleTransitionEnd() {
91
+ if (!this.visible) {
92
+ this.translate = 0;
93
+ }
94
+ },
95
+ },
96
+ };
97
+ </script>
98
+ <style scoped>
99
+ .u-drawer {
100
+ position: fixed;
101
+ top: 0;
102
+ bottom: 0;
103
+ background-color: #fff;
104
+ box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
105
+ overflow: hidden;
106
+ }
107
+
108
+ .u-drawer--left {
109
+ left: 0;
110
+ }
111
+
112
+ .u-drawer--right {
113
+ right: 0;
114
+ }
115
+
116
+ .u-drawer__content {
117
+ height: 100%;
118
+ overflow-y: auto;
119
+ }
120
+
121
+ .u-drawer__overlay {
122
+ position: fixed;
123
+ top: 0;
124
+ left: 0;
125
+ bottom: 0;
126
+ right: 0;
127
+ background-color: rgba(0, 0, 0, 0.5);
128
+ }
129
+ </style>
@@ -0,0 +1,17 @@
1
+ export default {
2
+ // 抽屉组件
3
+ drawer:{
4
+ // 是否显示
5
+ show:false,
6
+ // 点击遮罩是否关闭
7
+ mask:true,
8
+ // // 是否显示关闭按钮
9
+ // closeBtn:true,
10
+ // 抽屉宽度
11
+ width:'40%',
12
+ // 抽屉位置
13
+ placement:'left',
14
+ // 权重
15
+ zIndex: 100,
16
+ }
17
+ }
@@ -93,6 +93,7 @@ import Toolbar from './props/toolbar'
93
93
  import Tooltip from './props/tooltip'
94
94
  import Transition from './props/transition'
95
95
  import Upload from './props/upload'
96
+ import drawer from './props/drawer'
96
97
 
97
98
  const {
98
99
  color
@@ -186,5 +187,6 @@ export default {
186
187
  ...Toolbar,
187
188
  ...Tooltip,
188
189
  ...Transition,
189
- ...Upload
190
+ ...Upload,
191
+ ...drawer,
190
192
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.1.29",
5
+ "version": "3.1.31",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",