diff --git a/yudao-ui-app/components/yd-banner/yd-banner.vue b/yudao-ui-app/components/yd-banner/yd-banner.vue new file mode 100644 index 000000000..cef660699 --- /dev/null +++ b/yudao-ui-app/components/yd-banner/yd-banner.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/yudao-ui-app/components/yd-product-box/yd-product-box.vue b/yudao-ui-app/components/yd-product-box/yd-product-box.vue new file mode 100644 index 000000000..ad35b968f --- /dev/null +++ b/yudao-ui-app/components/yd-product-box/yd-product-box.vue @@ -0,0 +1,173 @@ + + + + diff --git a/yudao-ui-app/components/yd-product-more/yd-product-more.vue b/yudao-ui-app/components/yd-product-more/yd-product-more.vue new file mode 100644 index 000000000..c5f637721 --- /dev/null +++ b/yudao-ui-app/components/yd-product-more/yd-product-more.vue @@ -0,0 +1,114 @@ + + + + diff --git a/yudao-ui-app/components/custom-text-price/custom-text-price.vue b/yudao-ui-app/components/yd-text-price/yd-text-price.vue similarity index 97% rename from yudao-ui-app/components/custom-text-price/custom-text-price.vue rename to yudao-ui-app/components/yd-text-price/yd-text-price.vue index dd5da4620..fab033972 100644 --- a/yudao-ui-app/components/custom-text-price/custom-text-price.vue +++ b/yudao-ui-app/components/yd-text-price/yd-text-price.vue @@ -11,7 +11,7 @@ * 此组件简单的显示特定样式的(人名币)价格数字 */ export default { - name: 'custom-text-price', + name: 'yd-text-price', components: {}, props: { price: { diff --git a/yudao-ui-app/pages/index/index.vue b/yudao-ui-app/pages/index/index.vue index 8abb50891..137de3b22 100644 --- a/yudao-ui-app/pages/index/index.vue +++ b/yudao-ui-app/pages/index/index.vue @@ -8,17 +8,13 @@ - - - - - + - + + {{ item.title }} @@ -30,81 +26,11 @@ - - - - - 每日上新 - 查看更多 - - - - - - - - - - - - - - - - - + + + - - - - 商品热卖 - 更多 > - - - - - - - - - - - - - - - - - - - - - - - 更多宝贝 - - - - - - - - - - - - - - - - - - - - - - - + @@ -115,9 +41,23 @@ export default { components: {}, data() { return { - current: 0, - currentNum: 0, - bannerList: ['https://cdn.uviewui.com/uview/swiper/swiper3.png', 'https://cdn.uviewui.com/uview/swiper/swiper2.png', 'https://cdn.uviewui.com/uview/swiper/swiper1.png'], + bannerList: [ + { + id: 1, + title: '山不在高,有仙则名', + url: 'https://cdn.uviewui.com/uview/swiper/swiper1.png' + }, + { + id: 2, + title: '水不在深,有龙则灵', + url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png' + }, + { + id: 3, + title: '斯是陋室,惟吾德馨', + url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png' + } + ], menuList: [ { icon: 'gift', title: '热门推荐' }, { icon: 'star', title: '收藏转发' }, @@ -162,15 +102,12 @@ export default { price: '53.00' } ], - status: 'nomore', - loadingText: '努力加载中...', - loadmoreText: '轻轻上拉', - nomoreText: '实在没有了...' + moreStatus: 'nomore' } }, onLoad() { - this.loadBannerData(); - this.loadNoticeData(); + this.loadBannerData() + this.loadNoticeData() }, methods: { loadBannerData() { @@ -185,24 +122,9 @@ export default { }, handleSearchClick(e) { uni.$u.route('/pages/search/search') - }, - handleSwiperClick(index) { - console.log('点击了图片索引值:', index) - }, - handleProdItemClick(productId) { - uni.$u.route('/pages/product/product', { - productId: productId - }) } }, computed: { - swiperList() { - return this.bannerList.map(item => { - if (item) { - return item - } - }) - }, noticeTextList() { return this.noticeList.map(item => { if (item.title) { @@ -220,131 +142,8 @@ export default { padding: 20rpx; } -.indicator { - @include flex(row); - justify-content: center; - - &__dot { - height: 15rpx; - width: 15rpx; - border-radius: 100rpx; - background-color: rgba(255, 255, 255, 0.35); - margin: 0 10rpx; - transition: background-color 0.3s; - - &--active { - background-color: $custom-bg-color; - } - } -} - .grid-title { line-height: 50rpx; font-size: 26rpx; } - -.prod-block { - margin-top: -160px; - .bloc-header { - @include flex-space-between; - padding: 10rpx 20rpx; - - .bloc-title { - color: $custom-bg-color; - font-size: 34rpx; - } - .see-more { - color: $custom-bg-color; - background: $u-primary; - padding: 0 30rpx; - height: 50rpx; - line-height: 50rpx; - border-radius: 50rpx; - font-size: 24rpx; - } - } - - &.half, - &.list { - margin-top: 0; - .bloc-header { - margin-top: 50rpx; - margin-bottom: 20rpx; - .bloc-title { - color: #333333; - } - .more { - font-size: 24rpx; - } - } - } - - .prod-grid { - width: 730rpx; - margin: 0 auto; - @include flex; - flex-wrap: wrap; - justify-content: left; - - &.half { - .prod-item { - width: 345rpx; - margin: 10rpx; - .prod-image { - width: 345rpx; - height: 345rpx; - } - } - } - - .prod-item { - width: 223rpx; - margin: 10rpx; - background: #ffffff; - border-radius: 10rpx; - box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2); - .prod-image { - width: 223rpx; - height: 223rpx; - border-radius: 10rpx 10rpx 0 0; - } - .item-info { - padding: 15rpx; - .info-text { - height: 70rpx; - padding-bottom: 10rpx; - } - .price-and-cart { - @include flex-space-between; - } - } - } - } -} - -.prod-list { - .prod-item { - background: #ffffff; - @include flex-space-between; - border-bottom: $custom-border-style; - padding: 20rpx; - .prod-image { - width: 200rpx; - height: 200rpx; - border-radius: 10rpx; - } - - .item-info { - flex: 1; - padding: 20rpx 20rpx 0; - .info-text { - height: 100rpx; - padding-bottom: 10rpx; - } - .price-and-cart { - @include flex-space-between; - } - } - } -} diff --git a/yudao-ui-app/pages/profile/profile.vue b/yudao-ui-app/pages/profile/profile.vue index 9b66ea80e..28dd56bc2 100644 --- a/yudao-ui-app/pages/profile/profile.vue +++ b/yudao-ui-app/pages/profile/profile.vue @@ -10,43 +10,22 @@ 昵称: - - {{ userInfo.nickname }} - - - - - - - - + + 手机: {{ userInfo.mobile }} - + + + + + @@ -62,8 +41,13 @@ export default { mobile: '' }, avatarFiles: [], - nameEditOn: false, - tempName: '' + tempName: '', + borderStyle: 'none' + } + }, + computed: { + nameUpdateVisible: function () { + return this.userInfo.nickname !== this.tempName } }, onLoad() { @@ -73,6 +57,7 @@ export default { loadUserInfoData() { getUserInfo().then(res => { this.userInfo = res.data + this.tempName = this.userInfo.nickname }) }, handleAvatarClick() { @@ -86,11 +71,22 @@ export default { } }) }, + handleNameChange(val) { + let str = uni.$u.trim(val, 'all') + this.$nextTick(() => { + this.userInfo.nickname = str + }) + }, handleSaveBtnClick() { - updateNickname({ nickname: this.tempName }).then(res => { - this.nameEditOn = false; - this.userInfo.nickname = this.tempName + updateNickname({ nickname: this.userInfo.nickname }).then(res => { + this.tempName = this.userInfo.nickname this.$store.commit('SET_USER_INFO', this.userInfo) + uni.$u.toast('已保存') + setTimeout(() => { + uni.switchTab({ + url: '/pages/user/user' + }) + }, 300) }) } } @@ -107,7 +103,7 @@ export default { font-size: 30rpx; } .info { - @include flex-right; + @include flex-left; .value { font-size: 30rpx; } @@ -126,4 +122,8 @@ export default { } } } + +.btn-group { + padding: 0 30rpx; +} diff --git a/yudao-ui-app/uni_modules/uview-ui/README.md b/yudao-ui-app/uni_modules/uview-ui/README.md index 31bd594da..c78ff479e 100644 --- a/yudao-ui-app/uni_modules/uview-ui/README.md +++ b/yudao-ui-app/uni_modules/uview-ui/README.md @@ -1,73 +1,56 @@

logo

-

uView

+

uView 2.0

多平台快速开发的UI框架

+[![stars](https://img.shields.io/github/stars/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0) +[![forks](https://img.shields.io/github/forks/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0) +[![issues](https://img.shields.io/github/issues/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0/issues) +[![Website](https://img.shields.io/badge/uView-up-blue?style=flat-square)](https://uviewui.com) +[![release](https://img.shields.io/github/v/release/umicro/uView2.0?style=flat-square)](https://gitee.com/umicro/uView2.0/releases) +[![license](https://img.shields.io/github/license/umicro/uView2.0?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License) + ## 说明 -uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水 +uView UI,是[uni-app](https://uniapp.dcloud.io/)全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水 -## 特性 +## [官方文档:https://uviewui.com](https://uviewui.com) -- 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序 -- 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用 -- 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨 -- 众多的常用页面和布局,让您专注逻辑,事半功倍 -- 详尽的文档支持,现代化的演示效果 -- 按需引入,精简打包体积 +## 预览 + +您可以通过**微信**扫码,查看最佳的演示效果。 +
+
+ + + +## 链接 + +- [官方文档](https://www.uviewui.com/) +- [更新日志](https://www.uviewui.com/components/changelog.html) +- [升级指南](https://www.uviewui.com/components/changeGuide.html) +- [关于我们](https://www.uviewui.com/cooperation/about.html) + +## 交流反馈 + +欢迎加入我们的QQ群交流反馈:[点此跳转](https://www.uviewui.com/components/addQQGroup.html) + +## 关于PR + +> 我们非常乐意接受各位的优质PR,但在此之前我希望您了解uView2.0是一个需要兼容多个平台的(小程序、h5、ios app、android app)包括nvue页面、vue页面。 +> 所以希望在您修复bug并提交之前尽可能的去这些平台测试一下兼容性。最好能携带测试截图以方便审核。非常感谢! ## 安装 -```bash -# npm方式安装,插件市场导入无需执行此命令 -npm i uview-ui -``` +#### **uni-app插件市场链接** —— [https://ext.dcloud.net.cn/plugin?id=1593](https://ext.dcloud.net.cn/plugin?id=1593) + +请通过[官网安装文档](https://www.uviewui.com/components/install.html)了解更详细的内容 ## 快速上手 -1. `main.js`引入uView库 -```js -// main.js -import uView from 'uview-ui'; -Vue.use(uView); -``` - -2. `App.vue`引入基础样式(注意style标签需声明scss属性支持) -```css -/* App.vue */ - -``` - -3. `uni.scss`引入全局scss变量文件 -```css -/* uni.scss */ -@import "uview-ui/theme.scss"; -``` - -4. `pages.json`配置easycom规则(按需引入) - -```js -// pages.json -{ - "easycom": { - // npm安装的方式不需要前面的"@/",下载安装的方式需要"@/" - // npm安装方式 - "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" - // 下载安装方式 - // "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" - }, - // 此为本身已有的内容 - "pages": [ - // ...... - ] -} -``` - -请通过[快速上手](https://www.uviewui.com/components/quickstart.html)了解更详细的内容 +请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容 ## 使用方法 配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。 @@ -78,27 +61,6 @@ Vue.use(uView); ``` -请通过[快速上手](https://www.uviewui.com/components/quickstart.html)了解更详细的内容 - -## 链接 - -- [官方文档](https://www.uviewui.com/) -- [更新日志](https://www.www.uviewui.com/components/changelog.html) -- [升级指南](https://www.uviewui.com/components/changelog.html) -- [关于我们](https://www.uviewui.com/cooperation/about.html) - -## 预览 - -您可以通过**微信**扫码,查看最佳的演示效果。 -
-
- - -## 捐赠uView的研发 - -uView文档和源码全部开源免费,如果您认为uView帮到了您的开发工作,您可以捐赠uView的研发工作,捐赠无门槛,哪怕是一杯可乐也好(相信这比打赏主播更有意义)。 - - - ## 版权信息 uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。 + diff --git a/yudao-ui-app/uni_modules/uview-ui/changelog.md b/yudao-ui-app/uni_modules/uview-ui/changelog.md index 7a54275a2..ca502516f 100644 --- a/yudao-ui-app/uni_modules/uview-ui/changelog.md +++ b/yudao-ui-app/uni_modules/uview-ui/changelog.md @@ -1,3 +1,42 @@ +## 2.0.34(2022-09-25) +# uView2.0重磅发布,利剑出鞘,一统江湖 + +1. `u-input`、`u-textarea`增加`ignoreCompositionEvent`属性 +2. 修复`route`方法调用可能报错的问题 +3. 修复`u-no-network`组件`z-index`无效的问题 +4. 修复`textarea`组件在h5上confirmType=""报错的问题 +5. `u-rate`适配`nvue` +6. 优化验证手机号码的正则表达式(根据工信部发布的《电信网编号计划(2017年版)》进行修改。) +7. `form-item`添加`labelPosition`属性 +8. `u-calendar`修复`maxDate`设置为当前日期,并且当前时间大于08:00时无法显示日期列表的问题 (#724) +9. `u-radio`增加一个默认插槽用于自定义修改label内容 (#680) +10. 修复`timeFormat`函数在safari重的兼容性问题 (#664) +## 2.0.33(2022-06-17) +# uView2.0重磅发布,利剑出鞘,一统江湖 + +1. 修复`loadmore`组件`lineColor`类型错误问题 +2. 修复`u-parse`组件`imgtap`、`linktap`不生效问题 +## 2.0.32(2022-06-16) +# uView2.0重磅发布,利剑出鞘,一统江湖 +1. `u-loadmore`新增自定义颜色、虚/实线 +2. 修复`u-swiper-action`组件部分平台不能上下滑动的问题 +3. 修复`u-list`回弹问题 +4. 修复`notice-bar`组件动画在低端安卓机可能会抖动的问题 +5. `u-loading-page`添加控制图标大小的属性`iconSize` +6. 修复`u-tooltip`组件`color`参数不生效的问题 +7. 修复`u--input`组件使用`blur`事件输出为`undefined`的bug +8. `u-code-input`组件新增键盘弹起时,是否自动上推页面参数`adjustPosition` +9. 修复`image`组件`load`事件无回调对象问题 +10. 修复`button`组件`loadingSize`设置无效问题 +10. 其他修复 +## 2.0.31(2022-04-19) +# uView2.0重磅发布,利剑出鞘,一统江湖 + +1. 修复`upload`在`vue`页面上传成功后没有成功标志的问题 +2. 解决演示项目中微信小程序模拟上传图片一直出于上传中问题 +3. 修复`u-code-input`组件在`nvue`页面编译到`app`平台上光标异常问题(`app`去除此功能) +4. 修复`actionSheet`组件标题关闭按钮点击事件名称错误的问题 +5. 其他修复 ## 2.0.30(2022-04-04) # uView2.0重磅发布,利剑出鞘,一统江湖 diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u--input/u--input.vue b/yudao-ui-app/uni_modules/uview-ui/components/u--input/u--input.vue index 2887e4cf9..1e58b0107 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u--input/u--input.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u--input/u--input.vue @@ -35,8 +35,9 @@ :shape="shape" :customStyle="customStyle" :formatter="formatter" + :ignoreCompositionEvent="ignoreCompositionEvent" @focus="$emit('focus')" - @blur="$emit('blur')" + @blur="e => $emit('blur', e)" @keyboardheightchange="$emit('keyboardheightchange')" @change="e => $emit('change', e)" @input="e => $emit('input', e)" diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u--textarea/u--textarea.vue b/yudao-ui-app/uni_modules/uview-ui/components/u--textarea/u--textarea.vue index 9dbcfbb32..f4df0b9a4 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u--textarea/u--textarea.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u--textarea/u--textarea.vue @@ -21,6 +21,7 @@ :border="border" :customStyle="customStyle" :formatter="formatter" + :ignoreCompositionEvent="ignoreCompositionEvent" @focus="e => $emit('focus')" @blur="e => $emit('blur')" @linechange="e => $emit('linechange', e)" diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue index 98a73d876..26d5d8d9f 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue @@ -15,7 +15,7 @@ {{title}} - + + + @@ -70,7 +75,8 @@ mixins: [uni.$u.mpMixin, uni.$u.mixin, props], data() { return { - inputValue: '' + inputValue: '', + isFocus: this.focus } }, watch: { @@ -203,6 +209,7 @@ width: 40px; background-color: $u-content-color; } + /* #ifndef APP-PLUS */ &__cursor { position: absolute; top: 50%; @@ -212,6 +219,8 @@ height: $u-code-input-cursor-height; animation: $u-code-input-cursor-animation-duration u-cursor-flicker infinite; } + /* #endif */ + } &__input { @@ -226,6 +235,7 @@ } } + /* #ifndef APP-PLUS */ @keyframes u-cursor-flicker { 0% { opacity: 0; @@ -237,4 +247,6 @@ opacity: 0; } } + /* #endif */ + diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-code/u-code.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-code/u-code.vue index cdf9f825a..f79a09ac9 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-code/u-code.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-code/u-code.vue @@ -16,11 +16,11 @@ * @property {String} endText 倒计结束的提示语,见官网说明(默认 '重新获取' ) * @property {Boolean} keepRunning 是否在H5刷新或各端返回再进入时继续倒计时( 默认false ) * @property {String} uniqueKey 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了 - * + * * @event {Function} change 倒计时期间,每秒触发一次 * @event {Function} start 开始倒计时触发 * @event {Function} end 结束倒计时触发 - * @example + * @example */ export default { name: "u-code", @@ -74,7 +74,6 @@ this.canGetCode = false // 这里放这句,是为了一开始时就提示,否则要等setInterval的1秒后才会有提示 this.changeEvent(this.changeText.replace(/x|X/, this.secNum)) - this.setTimeToStorage() this.timer = setInterval(() => { if (--this.secNum) { // 用当前倒计时的秒数替换提示字符串中的"x"字母 @@ -88,7 +87,8 @@ this.canGetCode = true } }, 1000) - }, + this.setTimeToStorage() + }, // 重置,可以让用户再次获取验证码 reset() { this.canGetCode = true diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue index 07de583d6..f830291a2 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown-item/u-dropdown-item.vue @@ -1,146 +1,127 @@ - diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue index 9c50bfe71..f830291a2 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-dropdown/u-dropdown.vue @@ -1,127 +1,127 @@ diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/props.js b/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/props.js index 53a019155..7b1665561 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/props.js +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/props.js @@ -15,6 +15,11 @@ export default { type: [String, Boolean], default: uni.$u.props.formItem.borderBottom }, + // label的位置,left-左边,top-上边 + labelPosition: { + type: String, + default: uni.$u.props.formItem.labelPosition + }, // label的宽度,单位px labelWidth: { type: [String, Number], diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/u-form-item.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/u-form-item.vue index 701d7cc0b..6aa8d6909 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/u-form-item.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-form-item/u-form-item.vue @@ -4,7 +4,7 @@ class="u-form-item__body" @tap="clickHandler" :style="[$u.addStyle(customStyle), { - flexDirection: parentData.labelPosition === 'left' ? 'row' : 'column' + flexDirection: (labelPosition || parentData.labelPosition) === 'left' ? 'row' : 'column' }]" > diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-image/u-image.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-image/u-image.vue index d7105c2fc..473e35b44 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-image/u-image.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-image/u-image.vue @@ -161,10 +161,10 @@ this.$emit('error', err) }, // 图片加载完成,标记loading结束 - onLoadHandler() { + onLoadHandler(event) { this.loading = false this.isError = false - this.$emit('load') + this.$emit('load', event) this.removeBgColor() // 如果不需要动画效果,就不执行下方代码,同时移除加载时的背景颜色 // 否则无需fade效果时,png图片依然能看到下方的背景色 diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-input/props.js b/yudao-ui-app/uni_modules/uview-ui/components/u-input/props.js index 88917c353..2c5087010 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-input/props.js +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-input/props.js @@ -177,6 +177,11 @@ export default { formatter: { type: [Function, null], default: uni.$u.props.input.formatter + }, + // 是否忽略组件内对文本合成系统事件的处理 + ignoreCompositionEvent: { + type: Boolean, + default: true } } } diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-input/u-input.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-input/u-input.vue index c755390aa..30073eb25 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-input/u-input.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-input/u-input.vue @@ -38,6 +38,7 @@ :selection-end="selectionEnd" :selection-start="selectionStart" :password="password || type === 'password' || undefined" + :ignoreCompositionEvent="ignoreCompositionEvent" @input="onInput" @blur="onBlur" @focus="onFocus" @@ -114,7 +115,7 @@ import props from "./props.js"; * @property {Boolean} readonly 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 ( 默认 false ) * @property {String} shape 输入框形状,circle-圆形,square-方形 ( 默认 'square' ) * @property {Object} customStyle 定义需要用到的外部样式 - * + * @property {Boolean} ignoreCompositionEvent 是否忽略组件内对文本合成系统事件的处理。 * @example */ export default { diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-line/props.js b/yudao-ui-app/uni_modules/uview-ui/components/u-line/props.js index 866bade95..2308cc364 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-line/props.js +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-line/props.js @@ -24,7 +24,7 @@ export default { type: [String, Number], default: uni.$u.props.line.margin }, - // 是否虚线,true-实线,false-虚线 + // 是否虚线,true-虚线,false-实线 dashed: { type: Boolean, default: uni.$u.props.line.dashed diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-list/u-list.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-list/u-list.vue index 513decc78..4447cab65 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-list/u-list.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-list/u-list.vue @@ -29,9 +29,7 @@ @scrolltolower="scrolltolower" @scrolltoupper="scrolltoupper" > - + diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/props.js b/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/props.js index 438ab6437..e239b6124 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/props.js +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/props.js @@ -35,6 +35,11 @@ export default { type: [String, Number], default: uni.$u.props.loadingPage.fontSize }, + // 图标大小 + iconSize: { + type: [String, Number], + default: uni.$u.props.loadingPage.fontSize + }, // 加载中图标的颜色,只能rgb或者十六进制颜色值 loadingColor: { type: String, diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue index c6b51b973..03a78ad8b 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue @@ -19,11 +19,15 @@ :src="image" class="u-loading-page__warpper__loading-icon__img" mode="widthFit" + :style="{ + width: $u.addUnit(iconSize), + height: $u.addUnit(iconSize) + }" > @@ -55,6 +59,7 @@ import props from "./props.js"; * @property {String} bgColor 背景色 (默认 '#ffffff' ) * @property {String} color 文字颜色 (默认 '#C8C8C8' ) * @property {String | Number} fontSize 文字大小 (默认 19 ) + * @property {String | Number} iconSize 图标大小 (默认 28 ) * @property {String} loadingColor 加载中图标的颜色,只能rgb或者十六进制颜色值 (默认 '#C8C8C8' ) * @property {Object} customStyle 自定义样式 * @example diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/props.js b/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/props.js index 125ad3eb7..1e67d8919 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/props.js +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/props.js @@ -19,13 +19,17 @@ export default { fontSize: { type: [String, Number], default: uni.$u.props.loadmore.fontSize + }, + // 图标大小 + iconSize: { + type: [String, Number], + default: uni.$u.props.loadmore.iconSize }, // 字体颜色 color: { type: String, default: uni.$u.props.loadmore.color }, - // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆 loadingIcon: { type: String, @@ -75,6 +79,16 @@ export default { line: { type: Boolean, default: uni.$u.props.loadmore.line + }, + // 线条颜色 + lineColor: { + type: String, + default: uni.$u.props.loadmore.lineColor + }, + // 是否虚线,true-虚线,false-实线 + dashed: { + type: Boolean, + default: uni.$u.props.loadmore.dashed } } } diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue index 24fb4b6a0..73c79feff 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue @@ -13,8 +13,9 @@ > @@ -28,7 +29,7 @@ > @@ -42,8 +43,9 @@ @@ -60,6 +62,7 @@ * @property {String} bgColor 组件背景颜色,在页面是非白色时会用到(默认 'transparent' ) * @property {Boolean} icon 加载中时是否显示图标(默认 true ) * @property {String | Number} fontSize 字体大小(默认 14 ) + * @property {String | Number} iconSize 图标大小(默认 17 ) * @property {String} color 字体颜色(默认 '#606266' ) * @property {String} loadingIcon 加载图标(默认 'circle' ) * @property {String} loadmoreText 加载前的提示语(默认 '加载更多' ) @@ -67,10 +70,12 @@ * @property {String} nomoreText 没有更多的提示语(默认 '没有更多了' ) * @property {Boolean} isDot 到上一个相邻元素的距离 (默认 false ) * @property {String} iconColor 加载中图标的颜色 (默认 '#b7b7b7' ) + * @property {String} lineColor 线条颜色(默认 #E6E8EB ) * @property {String | Number} marginTop 上边距 (默认 10 ) * @property {String | Number} marginBottom 下边距 (默认 10 ) * @property {String | Number} height 高度,单位px (默认 'auto' ) * @property {Boolean} line 是否显示左边分割线 (默认 false ) + * @property {Boolean} dashed // 是否虚线,true-虚线,false-实线 (默认 false ) * @event {Function} loadmore status为loadmore时,点击组件会发出此事件 * @example */ diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-no-network/u-no-network.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-no-network/u-no-network.vue index 53db90588..9710729eb 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-no-network/u-no-network.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-no-network/u-no-network.vue @@ -1,6 +1,7 @@ diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-rate/u-rate.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-rate/u-rate.vue index 5992038a9..1aa5dd0fe 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-rate/u-rate.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-rate/u-rate.vue @@ -35,7 +35,8 @@ : inactiveColor " :custom-style="{ - padding: `0 ${$u.addUnit(gutter / 2)}`, + 'padding-left': $u.addUnit(gutter / 2), + 'padding-right': $u.addUnit(gutter / 2) }" :size="size" > @@ -63,7 +64,8 @@ : inactiveColor " :custom-style="{ - padding: `0 ${$u.addUnit(gutter / 2)}` + 'padding-left': $u.addUnit(gutter / 2), + 'padding-right': $u.addUnit(gutter / 2) }" :size="size" > diff --git a/yudao-ui-app/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue b/yudao-ui-app/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue index e5a2f4afc..20f43c376 100644 --- a/yudao-ui-app/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue +++ b/yudao-ui-app/uni_modules/uview-ui/components/u-row-notice/u-row-notice.vue @@ -19,11 +19,17 @@ class="u-notice__content" ref="u-notice__content" > - {{text}} + :style="[animationStyle]" + > + {{item}} + - -