From 657cc1513d924a4c18bddae8efd8267ddf3a9f6d Mon Sep 17 00:00:00 2001 From: lipan <526551383@qq.com> Date: Mon, 14 Aug 2023 06:10:35 +0000 Subject: [PATCH 001/155] add LICENSE. Signed-off-by: lipan <526551383@qq.com> --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..66f5381 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 lipan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. -- Gitee From 28eaa424233b3635c0e2dd6967aa67067691d747 Mon Sep 17 00:00:00 2001 From: lipan <526551383@qq.com> Date: Mon, 14 Aug 2023 06:11:50 +0000 Subject: [PATCH 002/155] update LICENSE. Signed-off-by: lipan <526551383@qq.com> --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 66f5381..1d6f933 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 lipan +Copyright (c) 2023 www.uvui.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal -- Gitee From f8f0be31c1edcca254e99ed36fd15ed806d527b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=94=80?= <526551383@qq.com> Date: Mon, 14 Aug 2023 23:10:36 +0800 Subject: [PATCH 003/155] =?UTF-8?q?form=E7=AD=89=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uv-form/changelog.md | 2 ++ .../components/uv-form-item/uv-form-item.vue | 4 ++-- uni_modules/uv-form/package.json | 2 +- uni_modules/uv-grid/changelog.md | 2 ++ .../components/uv-grid-item/uv-grid-item.vue | 6 ++++-- uni_modules/uv-grid/package.json | 4 ++-- uni_modules/uv-grid/readme.md | 12 +++++++++--- uni_modules/uv-loading-icon/changelog.md | 2 ++ .../components/uv-loading-icon/props.js | 7 +++++++ .../uv-loading-icon/uv-loading-icon.vue | 5 +++-- uni_modules/uv-loading-icon/package.json | 6 +++--- uni_modules/uv-loading-icon/readme.md | 16 ++++++++++++---- uni_modules/uv-pick-color/changelog.md | 2 ++ .../components/uv-pick-color/props.js | 5 ----- .../components/uv-pick-color/uv-pick-color.vue | 17 ++++++++--------- uni_modules/uv-pick-color/package.json | 2 +- uni_modules/uv-safe-bottom/changelog.md | 2 ++ .../uv-safe-bottom/uv-safe-bottom.vue | 4 ++-- uni_modules/uv-safe-bottom/package.json | 2 +- uni_modules/uv-ui-tools/changelog.md | 2 ++ uni_modules/uv-ui-tools/libs/config/config.js | 4 ++-- uni_modules/uv-ui-tools/package.json | 2 +- uni_modules/uv-ui/changelog.md | 7 +++++++ uni_modules/uv-ui/package.json | 2 +- 24 files changed, 78 insertions(+), 41 deletions(-) diff --git a/uni_modules/uv-form/changelog.md b/uni_modules/uv-form/changelog.md index e7a8fbb..b229bca 100644 --- a/uni_modules/uv-form/changelog.md +++ b/uni_modules/uv-form/changelog.md @@ -1,3 +1,5 @@ +## 1.0.9(2023-08-14) +1. 修复设置labelWidth属性时,节点渲染有闪动的BUG ## 1.0.8(2023-08-13) 1. 修复未设置rules的情况下报错的BUG 2. 优化错误提示 diff --git a/uni_modules/uv-form/components/uv-form-item/uv-form-item.vue b/uni_modules/uv-form/components/uv-form-item/uv-form-item.vue index f82b159..25d93ea 100644 --- a/uni_modules/uv-form/components/uv-form-item/uv-form-item.vue +++ b/uni_modules/uv-form/components/uv-form-item/uv-form-item.vue @@ -115,7 +115,7 @@ } } }, - mounted() { + created() { this.init() }, methods: { @@ -215,7 +215,7 @@ line-height: 16px; } &__message { - margin-top: -10px; + margin-top: -6px; line-height: 24px; font-size: 12px; color: $uv-error; diff --git a/uni_modules/uv-form/package.json b/uni_modules/uv-form/package.json index ab4962e..5e612c2 100644 --- a/uni_modules/uv-form/package.json +++ b/uni_modules/uv-form/package.json @@ -1,7 +1,7 @@ { "id": "uv-form", "displayName": "uv-form 表单 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.8", + "version": "1.0.9", "description": "此组件一般用于表单场景,可以配置Input输入框,Textarea文本域,Checkbox复选框,Radio单选框,开关选择器等,进行表单验证等。", "keywords": [ "form", diff --git a/uni_modules/uv-grid/changelog.md b/uni_modules/uv-grid/changelog.md index 03d911b..cd9c3a9 100644 --- a/uni_modules/uv-grid/changelog.md +++ b/uni_modules/uv-grid/changelog.md @@ -1,3 +1,5 @@ +## 1.0.6(2023-08-14) +1. 修复初始的时候闪动的BUG ## 1.0.5(2023-06-22) 1. 优化修改 ## 1.0.4(2023-06-21) diff --git a/uni_modules/uv-grid/components/uv-grid-item/uv-grid-item.vue b/uni_modules/uv-grid/components/uv-grid-item/uv-grid-item.vue index 01a4c68..7e78505 100644 --- a/uni_modules/uv-grid/components/uv-grid-item/uv-grid-item.vue +++ b/uni_modules/uv-grid/components/uv-grid-item/uv-grid-item.vue @@ -54,6 +54,10 @@ classes: [], // 类名集合,用于判断是否显示右边和下边框 }; }, + created() { + // 父组件的实例 + this.updateParentData() + }, mounted() { this.init() }, @@ -79,8 +83,6 @@ uni.$on('$uvGridItem', () => { this.gridItemClasses() }) - // 父组件的实例 - this.updateParentData() // #ifdef APP-NVUE // 获取元素该有的长度,nvue下要延时才准确 this.$nextTick(function(){ diff --git a/uni_modules/uv-grid/package.json b/uni_modules/uv-grid/package.json index 0a55ee7..e838bbc 100644 --- a/uni_modules/uv-grid/package.json +++ b/uni_modules/uv-grid/package.json @@ -1,7 +1,7 @@ { "id": "uv-grid", - "displayName": "uv-grid 宫格布局 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.5", + "displayName": "uv-grid 宫格布局 全面兼容vue3+2、app、h5、小程序等多端", + "version": "1.0.6", "description": "uv-grid 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。", "keywords": [ "uv-grid", diff --git a/uni_modules/uv-grid/readme.md b/uni_modules/uv-grid/readme.md index 3173e89..cd13cef 100644 --- a/uni_modules/uv-grid/readme.md +++ b/uni_modules/uv-grid/readme.md @@ -4,8 +4,14 @@ 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。 -### 查看文档 +# 查看文档 -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) +### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 + + +![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) + + + +#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file diff --git a/uni_modules/uv-loading-icon/changelog.md b/uni_modules/uv-loading-icon/changelog.md index 710c0f9..f17e074 100644 --- a/uni_modules/uv-loading-icon/changelog.md +++ b/uni_modules/uv-loading-icon/changelog.md @@ -1,3 +1,5 @@ +## 1.0.3(2023-08-14) +1. 新增参数textStyle,自定义文本样式 ## 1.0.2(2023-06-27) 优化 ## 1.0.1(2023-05-16) diff --git a/uni_modules/uv-loading-icon/components/uv-loading-icon/props.js b/uni_modules/uv-loading-icon/components/uv-loading-icon/props.js index c0c953a..4ef0e94 100644 --- a/uni_modules/uv-loading-icon/components/uv-loading-icon/props.js +++ b/uni_modules/uv-loading-icon/components/uv-loading-icon/props.js @@ -35,6 +35,13 @@ export default { type: [String, Number], default: 15 }, + // 文字样式 + textStyle: { + type: Object, + default () { + return {} + } + }, // 文字内容 text: { type: [String, Number], diff --git a/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue b/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue index 054e6d4..5650470 100644 --- a/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue +++ b/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue @@ -49,10 +49,10 @@ {{text}} @@ -77,6 +77,7 @@ * @property {String | Number} size 加载图标的大小,单位px (默认 24 ) * @property {String | Number} textSize 文字大小(默认 15 ) * @property {String | Number} text 文字内容 + * @property {Object} textStyle 文字样式 * @property {String} timingFunction 动画模式 (默认 'ease-in-out' ) * @property {String | Number} duration 动画执行周期时间(默认 1200) * @property {String} inactiveColor mode=circle时的暗边颜色 diff --git a/uni_modules/uv-loading-icon/package.json b/uni_modules/uv-loading-icon/package.json index e245405..1485897 100644 --- a/uni_modules/uv-loading-icon/package.json +++ b/uni_modules/uv-loading-icon/package.json @@ -1,8 +1,8 @@ { "id": "uv-loading-icon", - "displayName": "uv-loading-icon 加载动画 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.2", - "description": "uv-loading-icon 此组件为一个小动画,目前用在uv-ui的loadMore加载更多等组件的正在加载状态场景。", + "displayName": "uv-loading-icon 加载动画 全面兼容vue3+2、app、h5、小程序等多端", + "version": "1.0.3", + "description": "此组件为一个小动画,目前用在uv-ui的uv-load-more加载更多等组件,还可以运用在项目中正在加载状态场景。", "keywords": [ "uv-loading-icon", "uvui", diff --git a/uni_modules/uv-loading-icon/readme.md b/uni_modules/uv-loading-icon/readme.md index 63de21a..7b0cf0f 100644 --- a/uni_modules/uv-loading-icon/readme.md +++ b/uni_modules/uv-loading-icon/readme.md @@ -2,10 +2,18 @@ > **组件名:uv-loading-icon** -此组件为一个小动画,目前用在uv-ui的loadMore加载更多等组件的正在加载状态场景。 +此组件为一个小动画,目前用在 `uv-ui` 的 `uv-load-more` 加载更多等组件,还可以运用在项目中正在加载状态场景。 -### 查看文档 +# 查看文档 -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) +## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 +### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) + + + +![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) + + + +#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file diff --git a/uni_modules/uv-pick-color/changelog.md b/uni_modules/uv-pick-color/changelog.md index 9247223..7788c12 100644 --- a/uni_modules/uv-pick-color/changelog.md +++ b/uni_modules/uv-pick-color/changelog.md @@ -1,3 +1,5 @@ +## 1.0.8(2023-08-14) +1. 取消scrollTop参数,使用clientY ## 1.0.7(2023-08-13) 1. 增加scrollTop参数,设置滚动条的位置。不设置如果页面出现滚动就需要传该值,会出现颜色面板无法进行选颜色的情况。 ## 1.0.6(2023-08-04) diff --git a/uni_modules/uv-pick-color/components/uv-pick-color/props.js b/uni_modules/uv-pick-color/components/uv-pick-color/props.js index a3d92ae..a57f063 100644 --- a/uni_modules/uv-pick-color/components/uv-pick-color/props.js +++ b/uni_modules/uv-pick-color/components/uv-pick-color/props.js @@ -42,11 +42,6 @@ export default { type: String, default: '#3c9cff' }, - // 滚动条的位置 - scrollTop: { - type: [String, Number], - default: 0 - }, ...uni.$uv?.props?.pickColor } } \ No newline at end of file diff --git a/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue b/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue index e701bba..f283a92 100644 --- a/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue +++ b/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue @@ -293,23 +293,22 @@ this.mode = !this.mode; }, touchstart(e, index) { - const { pageX, pageY } = e.touches[0]; - this.pageX = pageX; - this.pageY = pageY; - this.setPosition(pageX, pageY, index); + const { clientX, clientY } = e.touches[0]; + this.pageX = clientX; + this.pageY = clientY; + this.setPosition(clientX, clientY, index); }, touchmove(e, index) { - const { pageX, pageY } = e.touches[0]; - this.moveX = pageX; - this.moveY = pageY; - this.setPosition(pageX, pageY, index); + const { clientX, clientY } = e.touches[0]; + this.moveX = clientX; + this.moveY = clientY; + this.setPosition(clientX, clientY, index); }, touchend(e, index) {}, /** * 设置位置 */ setPosition(x, y, index) { - y = y - this.scrollTop; this.index = index; const { top, left, width, height } = this.position[index]; // 设置最大最小值 diff --git a/uni_modules/uv-pick-color/package.json b/uni_modules/uv-pick-color/package.json index 84c69e6..21a6b9a 100644 --- a/uni_modules/uv-pick-color/package.json +++ b/uni_modules/uv-pick-color/package.json @@ -1,7 +1,7 @@ { "id": "uv-pick-color", "displayName": "uv-pick-color 颜色选择器 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.7", + "version": "1.0.8", "description": "该组件为颜色选择器,支持预制颜色,初始化颜色,简单配置,开箱即用", "keywords": [ "uv-pick-color", diff --git a/uni_modules/uv-safe-bottom/changelog.md b/uni_modules/uv-safe-bottom/changelog.md index f0e1a92..99a4e80 100644 --- a/uni_modules/uv-safe-bottom/changelog.md +++ b/uni_modules/uv-safe-bottom/changelog.md @@ -1,3 +1,5 @@ +## 1.0.3(2023-08-14) +1. 修复百度报错的BUG ## 1.0.2(2023-07-02) uv-safe-bottom 修复,在百度程序,抖音小程序不生效的BUG ## 1.0.1(2023-05-16) diff --git a/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue b/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue index 9f796bd..d0d1ff5 100644 --- a/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue +++ b/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.vue @@ -32,9 +32,9 @@ computed: { style() { const style = {}; - // #ifdef APP-NVUE || MP-TOUTIAO || MP-BAIDU + // #ifdef APP-NVUE || MP-TOUTIAO // nvue下,高度使用js计算填充 - style.height = this.$uv.addUnit(this.$uv.sys().safeAreaInsets.bottom, 'px'); + style.height = this.$uv.addUnit(this.$uv.sys()?.safeAreaInsets?.bottom, 'px'); // #endif return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); }, diff --git a/uni_modules/uv-safe-bottom/package.json b/uni_modules/uv-safe-bottom/package.json index 9ebb43b..62e9290 100644 --- a/uni_modules/uv-safe-bottom/package.json +++ b/uni_modules/uv-safe-bottom/package.json @@ -1,7 +1,7 @@ { "id": "uv-safe-bottom", "displayName": "uv-safe-bottom 底部安全区 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.2", + "version": "1.0.3", "description": "这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。", "keywords": [ "uv-safe-bottom", diff --git a/uni_modules/uv-ui-tools/changelog.md b/uni_modules/uv-ui-tools/changelog.md index 493e765..2803830 100644 --- a/uni_modules/uv-ui-tools/changelog.md +++ b/uni_modules/uv-ui-tools/changelog.md @@ -1,3 +1,5 @@ +## 1.0.15(2023-08-14) +1. 更新uvui版本号 ## 1.0.13(2023-08-06) 1. 优化 ## 1.0.12(2023-08-06) diff --git a/uni_modules/uv-ui-tools/libs/config/config.js b/uni_modules/uv-ui-tools/libs/config/config.js index a7f3fc4..ef46974 100644 --- a/uni_modules/uv-ui-tools/libs/config/config.js +++ b/uni_modules/uv-ui-tools/libs/config/config.js @@ -1,5 +1,5 @@ -// 此版本发布于2023-08-13 -const version = '1.1.4' +// 此版本发布于2023-08-14 +const version = '1.1.5' // 开发环境才提示,生产环境不会提示 if (process.env.NODE_ENV === 'development') { diff --git a/uni_modules/uv-ui-tools/package.json b/uni_modules/uv-ui-tools/package.json index 5a45e28..c209caa 100644 --- a/uni_modules/uv-ui-tools/package.json +++ b/uni_modules/uv-ui-tools/package.json @@ -1,7 +1,7 @@ { "id": "uv-ui-tools", "displayName": "uv-ui-tools 工具集 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.13", + "version": "1.0.15", "description": "uv-ui-tools,集成工具库,强大的Http请求封装,清晰的文档说明,开箱即用。方便使用,可以全局使用", "keywords": [ "uv-ui-tools,uv-ui组件库,工具集,uvui,uView2.x" diff --git a/uni_modules/uv-ui/changelog.md b/uni_modules/uv-ui/changelog.md index ce476c7..8efe8d5 100644 --- a/uni_modules/uv-ui/changelog.md +++ b/uni_modules/uv-ui/changelog.md @@ -1,3 +1,10 @@ +## 1.1.5(2023-08-14) +1. 优化 uv-pick-color 删除scrollTop参数,内部修改后就不需要了 +2. 优化 uv-loading-icon 增加textStyle参数,可自定义文本样式,比如给上边距 +3. 修复 uv-safe-bottom 百度小程序报错的BUG +4. 修复 uv-form 设置labelWidth属性时,节点渲染有闪动的BUG +5. 修复 uv-grid 设置col属性时,节点渲染有闪动的BUG +6. 修复 uv-parse 阻止a标签跳转文档说明 ## 1.1.4(2023-08-13) 1. 优化 nvue自定义图标 [详细文档-nvue中自定义图标库](https://www.uvui.cn/guide/customIcon.html#nvue%E4%B8%AD%E8%87%AA%E5%AE%9A%E4%B9%89%E5%9B%BE%E6%A0%87%E5%BA%93) 2. 优化 uv.$uv.http 在APP.vue页面使用报错的BUG: [Api集中管理](https://www.uvui.cn/js/http.html#_3-api%E9%9B%86%E4%B8%AD%E7%AE%A1%E7%90%86) diff --git a/uni_modules/uv-ui/package.json b/uni_modules/uv-ui/package.json index 0446697..ec8526e 100644 --- a/uni_modules/uv-ui/package.json +++ b/uni_modules/uv-ui/package.json @@ -1,7 +1,7 @@ { "id": "uv-ui", "displayName": "uv-ui 破釜沉舟之兼容vue3+2、app、h5、小程序等多端,灵活导入,利剑出击", - "version": "1.1.4", + "version": "1.1.5", "description": "uv-ui 是基于uni-app、部分组件基于uView2.x、全端兼容、支持独立导入、内容丰富的UI框架。破釜沉舟之兼容vue3+2、app、h5、小程序等多端,利剑出击,开箱即用。", "keywords": [ "uv-ui", -- Gitee From 22c45a18d6883a757de8b8e275b155a759a6c78c Mon Sep 17 00:00:00 2001 From: "@my_dear_li_pan" <526551383@qq.com> Date: Wed, 16 Aug 2023 09:07:38 +0800 Subject: [PATCH 004/155] =?UTF-8?q?uv-checkbox=E6=95=B0=E6=8D=AE=E5=A4=9A?= =?UTF-8?q?=E4=B8=8D=E6=8D=A2=E8=A1=8C=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uv-checkbox/changelog.md | 2 ++ .../uv-checkbox-group/uv-checkbox-group.vue | 3 ++- uni_modules/uv-checkbox/package.json | 4 ++-- uni_modules/uv-checkbox/readme.md | 16 ++++++++++++---- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/uni_modules/uv-checkbox/changelog.md b/uni_modules/uv-checkbox/changelog.md index c12b436..1d77f61 100644 --- a/uni_modules/uv-checkbox/changelog.md +++ b/uni_modules/uv-checkbox/changelog.md @@ -1,3 +1,5 @@ +## 1.0.9(2023-08-16) +1. 解决数据多不换行的BUG ## 1.0.8(2023-07-13) 1. 修复 uv-checkbox设置value属性不生效的BUG ## 1.0.7(2023-07-05) diff --git a/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue b/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue index a53c70c..6ba0a7b 100644 --- a/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue +++ b/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue @@ -105,7 +105,8 @@ @import '@/uni_modules/uv-ui-tools/libs/css/color.scss'; .uv-checkbox-group { - + flex: 1; + &--row { @include flex; flex-wrap: wrap; diff --git a/uni_modules/uv-checkbox/package.json b/uni_modules/uv-checkbox/package.json index ca363df..d0b102e 100644 --- a/uni_modules/uv-checkbox/package.json +++ b/uni_modules/uv-checkbox/package.json @@ -1,7 +1,7 @@ { "id": "uv-checkbox", - "displayName": "uv-checkbox 复选框 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.8", + "displayName": "uv-checkbox 复选框 全面兼容vue3+2、app、h5、小程序等多端", + "version": "1.0.9", "description": "复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。", "keywords": [ "uv-checkbox", diff --git a/uni_modules/uv-checkbox/readme.md b/uni_modules/uv-checkbox/readme.md index 7b48272..43b6f2e 100644 --- a/uni_modules/uv-checkbox/readme.md +++ b/uni_modules/uv-checkbox/readme.md @@ -2,10 +2,18 @@ > **组件名:uv-checkbox** -复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。 +复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。可配合 `uv-form` 组件进行表单验证等场景使用。 -### 查看文档 +# 查看文档 -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) +## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 +### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) + + + +![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) + + + +#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file -- Gitee From 1e0631bea0c075119935dbe2177b49187c7b66b3 Mon Sep 17 00:00:00 2001 From: "@my_dear_li_pan" <526551383@qq.com> Date: Wed, 16 Aug 2023 09:17:09 +0800 Subject: [PATCH 005/155] =?UTF-8?q?uv-list=E7=BB=84=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uv-list/changelog.md | 3 + .../uv-list/components/uv-list-item/props.js | 9 +++ .../components/uv-list-item/uv-list-item.vue | 6 +- .../uv-list/components/uv-list/props.js | 75 +++++++++++++++++++ uni_modules/uv-list/package.json | 2 +- 5 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 uni_modules/uv-list/components/uv-list-item/props.js create mode 100644 uni_modules/uv-list/components/uv-list/props.js diff --git a/uni_modules/uv-list/changelog.md b/uni_modules/uv-list/changelog.md index 8d2261a..5cd84b4 100644 --- a/uni_modules/uv-list/changelog.md +++ b/uni_modules/uv-list/changelog.md @@ -1,3 +1,6 @@ +## 1.0.6(2023-08-16) +1. 修复switch开关返回undefined的问题 +2. 优化初始化可能导致的闪动 ## 1.0.5(2023-08-07) 1. 修复分包页面在ios端,nvue编译不能滚动的BUG ## 1.0.4(2023-08-04) diff --git a/uni_modules/uv-list/components/uv-list-item/props.js b/uni_modules/uv-list/components/uv-list-item/props.js new file mode 100644 index 0000000..f10d683 --- /dev/null +++ b/uni_modules/uv-list/components/uv-list-item/props.js @@ -0,0 +1,9 @@ +export default { + props: { + // 用于滚动到指定item + anchor: { + type: [String, Number], + default: '' + } + } +} \ No newline at end of file diff --git a/uni_modules/uv-list/components/uv-list-item/uv-list-item.vue b/uni_modules/uv-list/components/uv-list-item/uv-list-item.vue index 0fb2cb0..9aaeb22 100644 --- a/uni_modules/uv-list/components/uv-list-item/uv-list-item.vue +++ b/uni_modules/uv-list/components/uv-list-item/uv-list-item.vue @@ -228,6 +228,9 @@ } }; }, + created() { + this.updateParentData(); + }, mounted() { this.init(); this.list = this.getForm() @@ -241,7 +244,6 @@ }, methods: { init(){ - this.updateParentData(); if (!this.parent) { this.$uv.error('uv-list-item必须搭配uv-list组件使用'); } @@ -310,7 +312,7 @@ } }, onSwitchChange(e) { - this.$emit('switchChange', e.detail); + this.$emit('switchChange', e); }, openPage() { if (['navigateTo', 'redirectTo', 'reLaunch', 'switchTab'].indexOf(this.link) !== -1) { diff --git a/uni_modules/uv-list/components/uv-list/props.js b/uni_modules/uv-list/components/uv-list/props.js new file mode 100644 index 0000000..ac38485 --- /dev/null +++ b/uni_modules/uv-list/components/uv-list/props.js @@ -0,0 +1,75 @@ +export default { + props: { + // 控制是否出现滚动条,仅nvue有效 + showScrollbar: { + type: Boolean, + default: false + }, + // 距底部多少时触发scrolltolower事件 + lowerThreshold: { + type: [String, Number], + default: 50 + }, + // 距顶部多少时触发scrolltoupper事件,非nvue有效 + upperThreshold: { + type: [String, Number], + default: 0 + }, + // 设置竖向滚动条位置 + scrollTop: { + type: [String, Number], + default: 0 + }, + // 控制 onscroll 事件触发的频率,仅nvue有效 + offsetAccuracy: { + type: [String, Number], + default: 10 + }, + // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效 + enableFlex: { + type: Boolean, + default: false + }, + // 是否按分页模式显示List,默认值false + pagingEnabled: { + type: Boolean, + default: false + }, + // 是否允许List滚动 + scrollable: { + type: Boolean, + default: true + }, + // 值应为某子元素id(id不能以数字开头) + scrollIntoView: { + type: String, + default: '' + }, + // 在设置滚动条位置时使用动画过渡 + scrollWithAnimation: { + type: Boolean, + default: false + }, + // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效 + enableBackToTop: { + type: Boolean, + default: false + }, + // 列表的高度 + height: { + type: [String, Number], + default: 0 + }, + // 列表宽度 + width: { + type: [String, Number], + default: 0 + }, + // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度 + preLoadScreen: { + type: [String, Number], + default: 1 + }, + ...uni.$uv?.props?.list + } +} \ No newline at end of file diff --git a/uni_modules/uv-list/package.json b/uni_modules/uv-list/package.json index 5156a05..bfa6e41 100644 --- a/uni_modules/uv-list/package.json +++ b/uni_modules/uv-list/package.json @@ -1,7 +1,7 @@ { "id": "uv-list", "displayName": "uv-list 列表 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.5", + "version": "1.0.6", "description": "uv-list 多功能高性能列表组件", "keywords": [ "uv-list", -- Gitee From 79475b9c4f661bacc891ca89b17e810232ad2720 Mon Sep 17 00:00:00 2001 From: "@my_dear_li_pan" <526551383@qq.com> Date: Wed, 16 Aug 2023 12:21:05 +0800 Subject: [PATCH 006/155] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uv-navbar/changelog.md | 2 ++ uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue | 1 + uni_modules/uv-navbar/package.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/uni_modules/uv-navbar/changelog.md b/uni_modules/uv-navbar/changelog.md index 4e1a794..01cc4fd 100644 --- a/uni_modules/uv-navbar/changelog.md +++ b/uni_modules/uv-navbar/changelog.md @@ -1,3 +1,5 @@ +## 1.0.7(2023-08-16) +1. 修复ios可能存在点击返回按钮点不到的情况 ## 1.0.6(2023-08-07) 1. 修复nvue在ios端可能存在背景图样式错乱的BUG ## 1.0.5(2023-08-04) diff --git a/uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue b/uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue index dd04d0e..a46ad7a 100644 --- a/uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue +++ b/uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue @@ -47,6 +47,7 @@ class="uv-line-1 uv-navbar__content__title" :style="[{ width: $uv.addUnit(titleWidth), + flex: '0 1 auto' }, $uv.addStyle(titleStyle)]" >{{ title }} diff --git a/uni_modules/uv-navbar/package.json b/uni_modules/uv-navbar/package.json index 5f737a4..8d429de 100644 --- a/uni_modules/uv-navbar/package.json +++ b/uni_modules/uv-navbar/package.json @@ -1,7 +1,7 @@ { "id": "uv-navbar", "displayName": "uv-navbar 自定义导航栏 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.6", + "version": "1.0.7", "description": "uv-navbar 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用自带的原生导航栏。", "keywords": [ "uv-navbar", -- Gitee From 02a84db666fb45e59c54a5e19a43f8a723a9917d Mon Sep 17 00:00:00 2001 From: "@my_dear_li_pan" <526551383@qq.com> Date: Thu, 17 Aug 2023 15:57:58 +0800 Subject: [PATCH 007/155] =?UTF-8?q?=E6=9B=B4=E6=96=B0README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 74 +++++++++++++++++++++++----------- uni_modules/uv-ui/package.json | 2 +- uni_modules/uv-ui/readme.md | 73 ++++++++++++++++++++++----------- 3 files changed, 100 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 64729df..d4eb079 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) +

+ logo +

-> ## 组件文档:[https://www.uvui.cn](https://www.uvui.cn) -> ## 演示地址:[https://h5.uvui.cn](https://h5.uvui.cn) -> ## gitee地址:[https://gitee.com/my_dear_li_pan/uv-ui.git](https://gitee.com/my_dear_li_pan/uv-ui.git) -> ## github地址:[https://github.com/uLeePan/uv-ui.git](https://github.com/uLeePan/uv-ui.git) -> ## uv-ui 交流QQ群:549833913 -> ## 插件列表:传送门 +

uv-ui

+

兼容vue3+2多平台快速开发的UI框架

-# 如需下载示例项目,请不要使用【下载插件ZIP】按钮。 +[![star](https://gitee.com/Leecreator/uv-ui/badge/star.svg?theme=gvp)](https://gitee.com/Leecreator/uv-ui) +[![star](https://gitee.com/Leecreator/uv-ui/badge/fork.svg?theme=gvp)](https://gitee.com/Leecreator/uv-ui) +[![star](https://img.shields.io/github/stars/Leecreator/uv-ui?style=flat-square&logo=GitHub)](https://github.com/Leecreator/uv-ui) +[![issues](https://img.shields.io/github/issues/Leecreator/uv-ui?style=flat-square&logo=GitHub)](https://github.com/Leecreator/uv-ui/issues) +[![Website](https://img.shields.io/badge/uvui-up-blue?style=flat-square)](https://www.uvui.cn) +[![version](https://img.shields.io/badge/version-1.1.5-brightgreen.svg)](https://www.uvui.cn/components/changelog.html) +[![license](https://img.shields.io/github/license/Leecreator/uv-ui?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License) -## 预览 - -通过微信或浏览器扫码查看演示效果,后续上线小程序端等。 +## 温馨提示:如需下载uv-ui示例项目,请不要使用【下载插件ZIP】按钮。 - - -## uv-ui产品特点 +## uvui特点 1. **uv-ui的前世今生**,`uv-ui` 是基于 `uview2.x` 版本改造而来。重命名也是为了避开发布冲突和很多组件 `u-`在 `nvue` 中不能使用的情况,所以这才诞生了`uv-ui`。感谢 `uview-ui` 作者的开源奉献,再次为开源点赞。 同时 `uv-ui` 也是无条件开源。 @@ -23,34 +23,57 @@ 3. **扩展配置**,`uv-ui`内置的方法默认不再挂载到`uni`对象之上,也就意味着默认情况下不能在项目中直接使用`uni.$uv.xxx`使用内置方法。但是可以通过扩展可以解决,通过如下方式进行配置即可,使用方式请参考[扩展配置](https://www.uvui.cn/components/setting.html)。其中包括[ JS工具库](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-js%E5%B7%A5%E5%85%B7%E5%BA%93)、[ 自定义主题](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E9%A2%98)、[ 基础样式](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-%E5%9F%BA%E7%A1%80%E6%A0%B7%E5%BC%8F)、[ setconfig](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-setconfig)等。 +## 预览 + +通过微信或浏览器扫码查看演示效果。 + + + +## 链接 + +- [官方文档](https://www.uvui.cn) +- [演示地址](https://h5.uvui.cn) +- [更新日志](https://www.uvui.cn/components/changelog.html) +- [关于我们](https://www.uvui.cn/cooperation/about.html) +- 组件列表 + +## 交流反馈 + +欢迎加入我们的QQ群交流反馈:[点此跳转](https://www.uvui.cn/components/addQQGroup.html) + ## 快速开始 -`uv-ui` 目前暂时只支持单独导入个别组件使用方式。后续会根据情况加入其它使用方式,我一直推崇的是,既然开发`uni-app`项目,推荐直接使用`HBuilderX`创建项目和导入组件。 +`uv-ui` 强烈建议通过 `下载插件并导入HbuilderX` 导入组件。或者下载完整 [uv-ui项目](https://ext.dcloud.net.cn/plugin?id=12287) 将 `uni_modules` 复制到自己的项目。道路千万条,选择最适合自己的一条。 + +请通过[快速上手](https://www.uvui.cn/components/quickstart.html)了解更详细的内容。 -**1. 通过uni_modules下载入口,下载插件并导入HbuilderX。** +**注意:导入插件后,建议`HBuilderX`重新运行项目,可能新导入的插件不能实时更新而导致不能运行。** -**温馨提示:** 导入插件后,建议`HBuilderX`重新运行项目,可能新导入的插件不能实时更新而导致不能运行。 +## 使用方法 -**2. 直接在项目中使用,无需通过import引入组件。** +组件导入 `uni_modules` 后,直接在项目中使用,无需通过import引入组件。 ```html - + ``` -**3. 使用更强大的扩展功能。** +## 扩展功能 -`uv-ui`内置了强大的工具函数、请求封装、全局配置等,可以根据自身需求进行扩展配置,详情请查看[扩展配置](https://www.uvui.cn/components/setting.html)。**只有扩展配置后才能在自己的项目页面中使用组件库内置方法**。 +`uv-ui` 内置了强大的工具函数、请求封装等,可以根据自身需求进行扩展配置,详情请查看[扩展配置](https://www.uvui.cn/components/setting.html)。 -**4. 有开发相关的疑问不要生气,不要抱怨,不要骂人哦!直接加 `uv-ui` 的交流群手把手免费解决问题。** +**注意:只有[扩展配置](https://www.uvui.cn/components/setting.html)后才能在自己的项目页面中使用组件库内置方法和变量等**。
-## 通过uni_modules下载入口 +## 组件列表 下表为 `uv-ui` 的扩展组件清单,点击每个组件**点击下载&安装**即可在详情页面导入组件到项目下,导入后建议重新运行即可直接使用,组件无需import和注册。 | 组件名 | 组件说明 | | --- | --- | +| uv-calendars | [日历(新版)](https://www.uvui.cn/components/calendars.html) | | uv-drop-down | [下拉筛选](https://www.uvui.cn/components/dropDown.html) | | uv-scroll-list | [横向滚动列表](https://www.uvui.cn/components/scrollList.html) | | uv-vtabs | [垂直选项卡](https://www.uvui.cn/components/vtabs.html) | @@ -122,7 +145,10 @@ | uv-gap | [间隔槽](https://www.uvui.cn/components/gap.html) | | uv-divider | [分割线](https://www.uvui.cn/components/divider.html) | -## 最后作者想说 +## 版权信息 +uv-ui遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uv-ui应用到您的产品中。 + +## 作者想说 - 开源真的不易,不图大家的钱财,所以希望大家多多鼓励支持,希望不要恶意评论,有问题加群快速解决。 - 遇到BUG,是一件很正常的事情,是程序肯定就有BUG,所以希望大家能以理解的心态去提出BUG,然后作者才有动力去努力修复。 - 最后觉得好用的小伙伴,不要吝啬你的双手,给个好评就是给我们最大的鼓励。 diff --git a/uni_modules/uv-ui/package.json b/uni_modules/uv-ui/package.json index ec8526e..bf01979 100644 --- a/uni_modules/uv-ui/package.json +++ b/uni_modules/uv-ui/package.json @@ -10,7 +10,7 @@ "ui框架", "ui库" ], - "repository": "https://gitee.com/my_dear_li_pan/uv-ui.git", + "repository": "https://github.com/Leecreator/uv-ui", "engines": { "HBuilderX": "^3.1.0" }, diff --git a/uni_modules/uv-ui/readme.md b/uni_modules/uv-ui/readme.md index 15dc5e7..d4eb079 100644 --- a/uni_modules/uv-ui/readme.md +++ b/uni_modules/uv-ui/readme.md @@ -1,21 +1,21 @@ -![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) +

+ logo +

-> ## 组件文档:[https://www.uvui.cn](https://www.uvui.cn) -> ## 演示地址:[https://h5.uvui.cn](https://h5.uvui.cn) -> ## gitee地址:[https://gitee.com/my_dear_li_pan/uv-ui.git](https://gitee.com/my_dear_li_pan/uv-ui.git) -> ## github地址:[https://github.com/uLeePan/uv-ui.git](https://github.com/uLeePan/uv-ui.git) -> ## uv-ui 交流QQ群:549833913 -> ## 插件列表:传送门 +

uv-ui

+

兼容vue3+2多平台快速开发的UI框架

-# 如需下载示例项目,请不要使用【下载插件ZIP】按钮。 +[![star](https://gitee.com/Leecreator/uv-ui/badge/star.svg?theme=gvp)](https://gitee.com/Leecreator/uv-ui) +[![star](https://gitee.com/Leecreator/uv-ui/badge/fork.svg?theme=gvp)](https://gitee.com/Leecreator/uv-ui) +[![star](https://img.shields.io/github/stars/Leecreator/uv-ui?style=flat-square&logo=GitHub)](https://github.com/Leecreator/uv-ui) +[![issues](https://img.shields.io/github/issues/Leecreator/uv-ui?style=flat-square&logo=GitHub)](https://github.com/Leecreator/uv-ui/issues) +[![Website](https://img.shields.io/badge/uvui-up-blue?style=flat-square)](https://www.uvui.cn) +[![version](https://img.shields.io/badge/version-1.1.5-brightgreen.svg)](https://www.uvui.cn/components/changelog.html) +[![license](https://img.shields.io/github/license/Leecreator/uv-ui?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License) -## 预览 - -通过微信或浏览器扫码查看演示效果,后续上线小程序端等。 +## 温馨提示:如需下载uv-ui示例项目,请不要使用【下载插件ZIP】按钮。 - - -## uv-ui产品特点 +## uvui特点 1. **uv-ui的前世今生**,`uv-ui` 是基于 `uview2.x` 版本改造而来。重命名也是为了避开发布冲突和很多组件 `u-`在 `nvue` 中不能使用的情况,所以这才诞生了`uv-ui`。感谢 `uview-ui` 作者的开源奉献,再次为开源点赞。 同时 `uv-ui` 也是无条件开源。 @@ -23,29 +23,51 @@ 3. **扩展配置**,`uv-ui`内置的方法默认不再挂载到`uni`对象之上,也就意味着默认情况下不能在项目中直接使用`uni.$uv.xxx`使用内置方法。但是可以通过扩展可以解决,通过如下方式进行配置即可,使用方式请参考[扩展配置](https://www.uvui.cn/components/setting.html)。其中包括[ JS工具库](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-js%E5%B7%A5%E5%85%B7%E5%BA%93)、[ 自定义主题](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E9%A2%98)、[ 基础样式](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-%E5%9F%BA%E7%A1%80%E6%A0%B7%E5%BC%8F)、[ setconfig](https://www.uvui.cn/components/setting.html#%E6%89%A9%E5%B1%95%E9%85%8D%E7%BD%AE-setconfig)等。 +## 预览 + +通过微信或浏览器扫码查看演示效果。 + + + +## 链接 + +- [官方文档](https://www.uvui.cn) +- [演示地址](https://h5.uvui.cn) +- [更新日志](https://www.uvui.cn/components/changelog.html) +- [关于我们](https://www.uvui.cn/cooperation/about.html) +- 组件列表 + +## 交流反馈 + +欢迎加入我们的QQ群交流反馈:[点此跳转](https://www.uvui.cn/components/addQQGroup.html) + ## 快速开始 -`uv-ui` 目前暂时只支持单独导入个别组件使用方式。后续会根据情况加入其它使用方式,我一直推崇的是,既然开发`uni-app`项目,推荐直接使用`HBuilderX`创建项目和导入组件。 +`uv-ui` 强烈建议通过 `下载插件并导入HbuilderX` 导入组件。或者下载完整 [uv-ui项目](https://ext.dcloud.net.cn/plugin?id=12287) 将 `uni_modules` 复制到自己的项目。道路千万条,选择最适合自己的一条。 + +请通过[快速上手](https://www.uvui.cn/components/quickstart.html)了解更详细的内容。 -**1. 通过uni_modules下载入口,下载插件并导入HbuilderX。** +**注意:导入插件后,建议`HBuilderX`重新运行项目,可能新导入的插件不能实时更新而导致不能运行。** -**温馨提示:** 导入插件后,建议`HBuilderX`重新运行项目,可能新导入的插件不能实时更新而导致不能运行。 +## 使用方法 -**2. 直接在项目中使用,无需通过import引入组件。** +组件导入 `uni_modules` 后,直接在项目中使用,无需通过import引入组件。 ```html - + ``` -**3. 使用更强大的扩展功能。** +## 扩展功能 -`uv-ui`内置了强大的工具函数、请求封装、全局配置等,可以根据自身需求进行扩展配置,详情请查看[扩展配置](https://www.uvui.cn/components/setting.html)。**只有扩展配置后才能在自己的项目页面中使用组件库内置方法**。 +`uv-ui` 内置了强大的工具函数、请求封装等,可以根据自身需求进行扩展配置,详情请查看[扩展配置](https://www.uvui.cn/components/setting.html)。 -**4. 有开发相关的疑问不要生气,不要抱怨,不要骂人哦!直接加 `uv-ui` 的交流群手把手免费解决问题。** +**注意:只有[扩展配置](https://www.uvui.cn/components/setting.html)后才能在自己的项目页面中使用组件库内置方法和变量等**。
-## 通过uni_modules下载入口 +## 组件列表 下表为 `uv-ui` 的扩展组件清单,点击每个组件**点击下载&安装**即可在详情页面导入组件到项目下,导入后建议重新运行即可直接使用,组件无需import和注册。 @@ -123,7 +145,10 @@ | uv-gap | [间隔槽](https://www.uvui.cn/components/gap.html) | | uv-divider | [分割线](https://www.uvui.cn/components/divider.html) | -## 最后作者想说 +## 版权信息 +uv-ui遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uv-ui应用到您的产品中。 + +## 作者想说 - 开源真的不易,不图大家的钱财,所以希望大家多多鼓励支持,希望不要恶意评论,有问题加群快速解决。 - 遇到BUG,是一件很正常的事情,是程序肯定就有BUG,所以希望大家能以理解的心态去提出BUG,然后作者才有动力去努力修复。 - 最后觉得好用的小伙伴,不要吝啬你的双手,给个好评就是给我们最大的鼓励。 -- Gitee From 849647bc744fec87959248747bec9479bdb80886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=94=80?= <526551383@qq.com> Date: Fri, 18 Aug 2023 01:04:45 +0800 Subject: [PATCH 008/155] =?UTF-8?q?1.1.6=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/componentsC/waterfall/waterfall.nvue | 169 ++++++----- uni_modules/uv-ui-tools/changelog.md | 2 + uni_modules/uv-ui-tools/libs/config/config.js | 4 +- uni_modules/uv-ui-tools/package.json | 2 +- uni_modules/uv-ui/changelog.md | 7 + uni_modules/uv-ui/package.json | 2 +- uni_modules/uv-upload/changelog.md | 4 + .../uv-preview-video/uv-preview-video.vue | 52 ++++ .../uv-upload/components/uv-upload/props.js | 7 +- .../components/uv-upload/uv-upload.vue | 280 +++++++----------- uni_modules/uv-upload/package.json | 2 +- uni_modules/uv-waterfall/changelog.md | 2 + .../components/uv-waterfall/uv-waterfall.vue | 11 +- uni_modules/uv-waterfall/package.json | 2 +- 14 files changed, 277 insertions(+), 269 deletions(-) create mode 100644 uni_modules/uv-upload/components/uv-preview-video/uv-preview-video.vue diff --git a/pages/componentsC/waterfall/waterfall.nvue b/pages/componentsC/waterfall/waterfall.nvue index 50fa2d4..5a91f3e 100644 --- a/pages/componentsC/waterfall/waterfall.nvue +++ b/pages/componentsC/waterfall/waterfall.nvue @@ -1,93 +1,95 @@ + \ No newline at end of file diff --git a/uni_modules/uv-upload/components/uv-upload/props.js b/uni_modules/uv-upload/components/uv-upload/props.js index 08104b4..2aad7b6 100644 --- a/uni_modules/uv-upload/components/uv-upload/props.js +++ b/uni_modules/uv-upload/components/uv-upload/props.js @@ -50,11 +50,16 @@ export default { type: Function, default: null }, - // 是否显示组件自带的图片预览功能 + // 是否开启图片预览功能 previewFullImage: { type: Boolean, default: true }, + // 是否开启视频预览功能 + previewFullVideo: { + type: Boolean, + default: true + }, // 最大上传数量 maxCount: { type: [String, Number], diff --git a/uni_modules/uv-upload/components/uv-upload/uv-upload.vue b/uni_modules/uv-upload/components/uv-upload/uv-upload.vue index b05cbbe..be963ea 100644 --- a/uni_modules/uv-upload/components/uv-upload/uv-upload.vue +++ b/uni_modules/uv-upload/components/uv-upload/uv-upload.vue @@ -1,86 +1,49 @@ @@ -90,6 +107,9 @@ endDate: `${year}-${month}-20`, selected: [{date: `${year}-${month}-02`, info: '签到', badge: true, infoColor: '#ff0000'},{date: `${year}-${month}-06`, info: '余10',infoColor: '#19be6b', topinfo: '¥100', topinfoColor: '#19be6b'}], defaultDate: `${year}-${month}-15`, + date5: [`${year}-${month}-08`,`${year}-${month}-20`], + date10: [`${year}-${month}-08`,`${year}-${month}-16`,`${year}-${month}-24`], + date11: [`${year}-${month}-08`,`${year}-${month}-20`], list: [{ title: '插入模式', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/10.png' @@ -98,6 +118,10 @@ title: '单个日期', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/7.png' }, + { + title: '多个日期', + iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/8.png' + }, { title: '日期范围', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/9.png' @@ -109,13 +133,19 @@ title: '自定义文案', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/14.png' },{ - title: '日期最大范围', + title: '限制日期选择范围', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/13.png' },{ title: '显示农历', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/5.png' },{ - title: '默认日期', + title: '默认单个日期', + iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/10.png' + },{ + title: '默认多个日期', + iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/10.png' + },{ + title: '默认日期范围', iconUrl: 'https://cdn.uviewui.com/uview/demo/calendar/10.png' } ] @@ -130,7 +160,14 @@ this.$refs[`calendar${this.index}`].open(); }, confirm(e) { - const time = e.range.before && e.range.after? `${e.range.before} 至 ${e.range.after}`:e.fulldate; + let time = null; + if(e.range.before && e.range.after) { + time = `${e.range.before} 至 ${e.range.after}`; + } else if(e.multiple.data.length) { + time = e.multiple.data.length>1?`${e.multiple.data[0]}等多个日期`:e.multiple.data[0]; + } else { + time = e.fulldate; + } uni.showToast({ icon: 'none', title: time diff --git a/pages/index/components.config.js b/pages/index/components.config.js index a8b73c1..a194f08 100644 --- a/pages/index/components.config.js +++ b/pages/index/components.config.js @@ -12,7 +12,7 @@ export default [{ { path: '/pages/componentsB/calendars/calendars', icon: 'calendar', - title: 'Calendar 日历(新)', + title: 'Calendar 新版日历(强烈推荐)', title_en: 'Calendar', isNew: true }, diff --git a/uni_modules/uv-calendars/changelog.md b/uni_modules/uv-calendars/changelog.md index d876328..32c13d4 100644 --- a/uni_modules/uv-calendars/changelog.md +++ b/uni_modules/uv-calendars/changelog.md @@ -1,3 +1,7 @@ +## 1.0.7(2023-08-26) +1. 去除range参数,由mode="range"替换 +2. 新增mode参数,不传 / multiple / range,分别为单日期, 多个日期,选择日期范围 +3. 与uv-calendar选择日期的功能保持一致 ## 1.0.6(2023-08-25) 1. 修复点击返回今天按钮时,monthSwitch方法回调参数返回月份不是当天对应月份:https://github.com/climblee/uv-ui/issues/7 ## 1.0.5(2023-08-13) diff --git a/uni_modules/uv-calendars/components/uv-calendars/util.js b/uni_modules/uv-calendars/components/uv-calendars/util.js index 494f127..9a62080 100644 --- a/uni_modules/uv-calendars/components/uv-calendars/util.js +++ b/uni_modules/uv-calendars/components/uv-calendars/util.js @@ -6,7 +6,8 @@ class Calendar { selected, startDate, endDate, - range + range, + multiple } = {}) { // 当前日期 this.date = this.getDate(new Date()) // 当前初入日期 @@ -17,7 +18,10 @@ class Calendar { // 范围结束 this.endDate = endDate this.range = range + this.multiple = multiple // 多选状态 + this.cleanRangeStatus() + // 范围状态 this.cleanMultipleStatus() // 每周日期 this.weeks = {} @@ -27,29 +31,70 @@ class Calendar { * 设置日期 * @param {Object} date */ - setDate(date) { - this.selectDate = this.getDate(date) - this._getWeek(this.selectDate.fullDate) + setDate(date,status) { + if (this.range && status=='init') { + this.cleanRangeStatus(); + if (Array.isArray(date)) { + this.rangeStatus.before = date[0]; + this.rangeStatus.after = date.length > 1 ? date[date.length - 1] : ''; + if (this.rangeStatus.after && this.dateCompare(this.rangeStatus.before, this.rangeStatus.after)) { + this.rangeStatus.data = this.geDateAll(this.rangeStatus.before, this.rangeStatus.after) + } + this.selectDate = this.getDate(date[0]) + this._getWeek(this.selectDate.fullDate) + } else { + this.selectDate = this.getDate(date) + this.rangeStatus.before = this.selectDate.fullDate; + this._getWeek(this.selectDate.fullDate) + } + } else if (this.multiple && status=='init') { + this.cleanMultipleStatus(); + if (Array.isArray(date)) { + this.multipleStatus.data = date; + this.selectDate = this.getDate(date[0]) + this._getWeek(this.selectDate.fullDate) + } else { + this.selectDate = this.getDate(date) + this.multipleStatus.data = [this.selectDate.fullDate]; + this._getWeek(this.selectDate.fullDate) + } + } else { + if (Array.isArray(date)) { + this.selectDate = this.getDate(date[0]) + this._getWeek(this.selectDate.fullDate) + } else { + this.selectDate = this.getDate(date) + this._getWeek(this.selectDate.fullDate) + } + } } /** * 清理多选状态 */ - cleanMultipleStatus() { - this.multipleStatus = { + cleanRangeStatus() { + this.rangeStatus = { before: '', after: '', data: [] } } + /** + * 清理多选状态 + */ + cleanMultipleStatus() { + this.multipleStatus = { + data: [] + } + } + /** * 重置开始日期 */ resetSatrtDate(startDate) { // 范围开始 this.startDate = startDate - } /** @@ -76,19 +121,19 @@ class Calendar { dd.setDate(dd.getDate() + AddDayCount) // 获取AddDayCount天后的日期 break case 'month': - if (dd.getDate() === 31 && AddDayCount>0) { + if (dd.getDate() === 31 && AddDayCount > 0) { dd.setDate(dd.getDate() + AddDayCount) } else { const preMonth = dd.getMonth() dd.setMonth(preMonth + AddDayCount) // 获取AddDayCount天后的日期 const nextMonth = dd.getMonth() // 处理 pre 切换月份目标月份为2月没有当前日(30 31) 切换错误问题 - if(AddDayCount<0 && preMonth!==0 && nextMonth-preMonth>AddDayCount){ - dd.setMonth(nextMonth+(nextMonth-preMonth+AddDayCount)) + if (AddDayCount < 0 && preMonth !== 0 && nextMonth - preMonth > AddDayCount) { + dd.setMonth(nextMonth + (nextMonth - preMonth + AddDayCount)) } // 处理 next 切换月份目标月份为2月没有当前日(30 31) 切换错误问题 - if(AddDayCount>0 && nextMonth-preMonth>AddDayCount){ - dd.setMonth(nextMonth-(nextMonth-preMonth-AddDayCount)) + if (AddDayCount > 0 && nextMonth - preMonth > AddDayCount) { + dd.setMonth(nextMonth - (nextMonth - preMonth - AddDayCount)) } } break @@ -158,26 +203,40 @@ class Calendar { // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate) disableAfter = this.dateCompare(nowDate, this.endDate) } - let multiples = this.multipleStatus.data + let ranges = this.rangeStatus.data let checked = false - let multiplesStatus = -1 + let rangesStatus = -1 if (this.range) { + if (ranges) { + rangesStatus = ranges.findIndex((item) => { + return this.dateEqual(item, nowDate) + }) + } + if (rangesStatus !== -1) { + checked = true + } + } + let multiples = this.multipleStatus.data + let checked_multiple = false + let multiplesStatus = -1 + if (this.multiple) { if (multiples) { multiplesStatus = multiples.findIndex((item) => { return this.dateEqual(item, nowDate) }) } if (multiplesStatus !== -1) { - checked = true + checked_multiple = true } } let data = { fullDate: nowDate, year: full.year, date: i, - multiple: this.range ? checked : false, - beforeMultiple: this.dateEqual(this.multipleStatus.before, nowDate), - afterMultiple: this.dateEqual(this.multipleStatus.after, nowDate), + range: this.range ? checked : false, + multiple: this.multiple ? checked_multiple : false, + beforeRange: this.dateEqual(this.rangeStatus.before, nowDate), + afterRange: this.dateEqual(this.rangeStatus.after, nowDate), month: full.month, lunar: this.getlunar(full.year, full.month, i), disable: !(disableBefore && disableAfter), @@ -214,6 +273,8 @@ class Calendar { getInfo(date) { if (!date) { date = new Date() + } else if (Array.isArray(date)) { + date = date[0] } const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate) return dateInfo @@ -248,7 +309,7 @@ class Calendar { return false } } - + /** * 比较after时间是否大于before时间 */ @@ -264,7 +325,6 @@ class Calendar { } } - /** * 获取日期范围内所有日期 * @param {Object} begin @@ -299,34 +359,47 @@ class Calendar { this.selected = value this._getWeek(data) } - /** - * 获取多选状态 + * 获取多选状态 */ setMultiple(fullDate) { + if (!this.multiple) return + let multiples = this.multipleStatus.data; + const findIndex = multiples.findIndex(item => this.dateEqual(fullDate, item)); + if (findIndex < 0) { + this.multipleStatus.data = this.multipleStatus.data.concat([fullDate]); + } else { + this.multipleStatus.data.splice(findIndex, 1); + } + this._getWeek(fullDate) + } + /** + * 获取范围状态 + */ + setRange(fullDate) { let { before, after - } = this.multipleStatus + } = this.rangeStatus if (!this.range) return if (before && after) { - this.cleanMultipleStatus(); - this.multipleStatus.before = fullDate + this.cleanRangeStatus(); + this.rangeStatus.before = fullDate } else { if (!before) { - this.multipleStatus.before = fullDate + this.rangeStatus.before = fullDate } else { - if(!this.dateAfterLgBefore(this.multipleStatus.before,fullDate)) { - this.cleanMultipleStatus(); - this.multipleStatus.before = fullDate + if (!this.dateAfterLgBefore(this.rangeStatus.before, fullDate)) { + this.cleanRangeStatus(); + this.rangeStatus.before = fullDate this._getWeek(fullDate) return; } - this.multipleStatus.after = fullDate - if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); + this.rangeStatus.after = fullDate + if (this.dateCompare(this.rangeStatus.before, this.rangeStatus.after)) { + this.rangeStatus.data = this.geDateAll(this.rangeStatus.before, this.rangeStatus.after); } else { - this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); + this.rangeStatus.data = this.geDateAll(this.rangeStatus.after, this.rangeStatus.before); } } } @@ -376,4 +449,4 @@ class Calendar { } -export default Calendar +export default Calendar \ No newline at end of file diff --git a/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-body.vue b/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-body.vue index 8014fab..d5b67da 100644 --- a/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-body.vue +++ b/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-body.vue @@ -4,7 +4,7 @@ - + {{ (nowDate.year||'') +' / '+( nowDate.month||'')}} @@ -41,7 +41,7 @@ - + @@ -64,7 +64,7 @@ }, props: { date: { - type: String, + type: [String,Array], default: '' }, nowDate: { @@ -108,9 +108,16 @@ endText: { type: String, default: '结束' + }, + multiple: { + type: Boolean, + default: false } }, computed: { + getDate() { + return Array.isArray(this.date) ? this.date[0] : this.date; + }, /** * for i18n */ @@ -140,7 +147,7 @@ }, rangeInfoText(weeks) { return weeks=> { - if(weeks.beforeMultiple) { + if(weeks.beforeRange) { if(weeks.extraInfo) { weeks.extraInfo.info = this.startText; }else { @@ -149,7 +156,7 @@ } } } - if(weeks.afterMultiple) { + if(weeks.afterRange) { if(weeks.extraInfo) { weeks.extraInfo.info = this.endText; }else { diff --git a/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-item.vue b/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-item.vue index 4ca5f87..9af1565 100644 --- a/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-item.vue +++ b/uni_modules/uv-calendars/components/uv-calendars/uv-calendar-item.vue @@ -1,11 +1,12 @@