uview-plus 3.1.31 → 3.1.32

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,93 @@
1
- ## 3.1.31(2023-05-15
2
- 本地累计修复一些问题提交
1
+ ## 3.1.31(2023-06-08
2
+ 修复dayjs引用
3
+ ## 3.1.30(2023-04-24)
4
+ 修复date-time-picker
5
+ ## 3.1.29(2023-03-11)
6
+ 修复u-tabs标签结束兼容性
7
+ ## 3.1.28(2023-03-03)
8
+ 修复u-tabs标签缺失
9
+ ## 3.1.27(2023-02-28)
10
+ 修复日历组建对dayjs等依赖
11
+ ## 3.1.26(2023-02-04)
12
+ 修复安卓Multiple conflicting contents for sourcemap
13
+ ## 3.1.25(2023-02-04)
14
+ 修复dayjs引入问题导致小程序编译报错
15
+ ## 3.1.24(2023-01-17)
16
+ 修复dayjs报错does not provide an export named 'default'
17
+ ## 3.1.23(2023-01-15)
18
+ 修复 build:h5 cell 和 notice-bar 点击失效的问题
19
+ 修复小程序端报 alert 和 upload 重复定义的bug
20
+ 感谢@dodu2014
21
+ ## 3.1.22(2023-01-14)
22
+ 增加transpileDependencies检测
23
+ ## 3.1.21(2023-01-14)
24
+ 修复路由配置合并问题
25
+ ## 3.1.20(2022-12-16)
26
+ 修复拼写
27
+ ## 3.1.19(2022-11-16)
28
+ 修复u-rate的v-model绑定值不生效#48
29
+ 修复u-grid-item click事件会执行两次 #40
30
+ 修复u--input组建Property "value" was accessed during render but is not defined on instance
31
+ 修复textarea组建confirmType报错
32
+ ## 3.1.18(2022-10-23)
33
+ 新增页面模板
34
+ ## 3.1.17(2022-10-23)
35
+ 演示项目增加国家化支持及多个页面模板
36
+ ## 3.1.16(2022-10-21)
37
+ 修复u-switch、u-picker等
38
+ ## 3.1.15(2022-10-13)
39
+ 修复:数据更新后,上传组件的视图没有更新
40
+ 复选框 超出不换行
41
+ 单选框 超出不换行
42
+ ## 3.1.14(2022-10-11)
43
+ swipe-action-item组件增加emits定义
44
+ ## 3.1.13(2022-09-19)
45
+ 修复富文本解析
46
+ ## 3.1.12(2022-09-15)
47
+ check-box组件清空数组时无法更新视图的问题
48
+ ## 3.1.11(2022-09-14)
49
+ 修复u-checkbox-group等
50
+ ## 3.1.10(2022-09-14)
51
+ 修复u-checkbox-box双向绑定
52
+ ## 3.1.9(2022-09-08)
53
+ 紧急修复缺失endif
54
+ ## 3.1.8(2022-09-07)
55
+ 修复u-checkbox-group双向绑定
56
+ 修复picker缺少emits定义
57
+ ## 3.1.7(2022-08-28)
58
+ 修复布局在微信小程序失效
59
+ ## 3.1.6(2022-08-25)
60
+ 修复微信小程序下tabbar样式问题
61
+ ## 3.1.5(2022-08-24)
62
+ 修复icon/text/tabs点击事件执行两次
63
+ ## 3.1.4(2022-08-20)
64
+ 修复button组件点击事件执行两次
65
+ ## 3.1.3(2022-08-11)
66
+ 修复小程序报错Generated an empty chunk,修复示例工程引入request参数配置无效。
67
+ ## 3.1.2(2022-08-09)
68
+ 修复示例项目对request的调用引入
69
+ ## 3.1.1(2022-08-07)
70
+ 折叠面板在小程序会报'setContentAnimate' of undefined
71
+ ## 3.1.0(2022-08-07)
72
+ 初步解决App端运行时提示props未定义且白屏问题
73
+ ## 3.0.17(2022-08-03)
74
+ 修复u-image组件报borderRadius警告
75
+ ## 3.0.16(2022-07-30)
76
+ 修复方法重复,属性重复等多个编译到APP时的warning
77
+ ## 3.0.15(2022-07-22)
78
+ 修复支付宝下不支持this.$slots导致cell的slot失效
79
+ ## 3.0.14(2022-07-22)
80
+ 修复u-grid-item与u-swipe-action-item在支付宝编译报错问题
81
+ ## 3.0.13(2022-07-22)
82
+ 修复u--input与u--textarea组件多个事件执行两次问题
83
+ ## 3.0.12(2022-07-20)
84
+ 修复u-action-sheet中v-for报错
85
+ u-collapse-item中slot修复
86
+ ## 3.0.11(2022-07-19)
87
+ 修复微信小程序编译报错及其它修复
88
+ ## 3.0.10(2022-07-15)
89
+ 修复文档一批slot示例写法
90
+ 修复u-search缺失emits定义导致warning
3
91
  ## 3.0.9(2022-07-14)
4
92
  修复u-search双向绑定
5
93
  ## 3.0.8(2022-07-12)
@@ -51,7 +51,7 @@
51
51
  */
52
52
  export default {
53
53
  name: 'u-back-top',
54
- mixins: [mpMixin, mixin,props],
54
+ mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
55
55
  computed: {
56
56
  backTopStyle() {
57
57
  // 动画组件样式
@@ -35,7 +35,7 @@
35
35
  import mixin from '../../libs/mixin/mixin.js';
36
36
  import defprops from '../../libs/config/props';
37
37
  // import dayjs from '../../libs/util/dayjs.js';
38
- import dayjs from 'dayjs'
38
+ import dayjs from 'dayjs/esm/index'
39
39
  export default {
40
40
  name: 'u-calendar-month',
41
41
  mixins: [mpMixin, mixin],
@@ -69,7 +69,7 @@ import uMonth from './month.vue'
69
69
  import props from './props.js'
70
70
  import util from './util.js'
71
71
  // import dayjs from '../../libs/util/dayjs.min.js'
72
- import dayjs from 'dayjs'
72
+ import dayjs from 'dayjs/esm/index'
73
73
  import Calendar from '../../libs/util/calendar.js'
74
74
  import mpMixin from '../../libs/mixin/mpMixin.js'
75
75
  import mixin from '../../libs/mixin/mixin.js'
@@ -1,4 +1,4 @@
1
- import dayjs from 'dayjs'
1
+ import dayjs from 'dayjs/esm/index'
2
2
  export default {
3
3
  methods: {
4
4
  // 设置月份数据
@@ -34,7 +34,7 @@
34
34
  import mpMixin from '../../libs/mixin/mpMixin.js';
35
35
  import mixin from '../../libs/mixin/mixin.js';
36
36
  // import dayjs from '../../libs/util/dayjs.js';
37
- import dayjs from 'dayjs'
37
+ import dayjs from 'dayjs/esm/index'
38
38
 
39
39
  /**
40
40
  * DatetimePicker 时间日期选择器
@@ -188,7 +188,7 @@
188
188
  // 发出change时间,value为当前选中的时间戳
189
189
  this.$emit('change', {
190
190
  value: selectValue,
191
- // #ifndef MP-WEIXIN || MP-TOUTIAO
191
+ // #ifndef MP-WEIXIN
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 || MP-TOUTIAO
167
+ // #ifndef MP-WEIXIN || MP-LARK
168
168
  // 微信小程序不能传递this,会因为循环引用而报错
169
169
  picker: this,
170
170
  // #endif
@@ -93,7 +93,6 @@ 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'
97
96
 
98
97
  const {
99
98
  color
@@ -187,6 +186,5 @@ export default {
187
186
  ...Toolbar,
188
187
  ...Tooltip,
189
188
  ...Transition,
190
- ...Upload,
191
- ...drawer,
189
+ ...Upload
192
190
  }
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.31",
5
+ "version": "3.1.32",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -1,32 +0,0 @@
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
- }
@@ -1,129 +0,0 @@
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>
@@ -1,17 +0,0 @@
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
- }