From 18cef13bae9cee6de49da10e7592ecc999ecda85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=A6=82=E6=91=B8=E9=B1=BC=E5=8E=BB?= <1780903673@qq.com> Date: Sun, 16 Feb 2025 21:08:25 +0800 Subject: [PATCH] build: compile 1.7.0 --- docs/component/curtain.md | 2 +- docs/component/rate.md | 2 +- docs/component/toast.md | 34 +++--- docs/guide/changelog.md | 30 ++++++ src/uni_modules/wot-design-uni/changelog.md | 30 ++++++ .../components/wd-config-provider/types.ts | 1 + src/uni_modules/wot-design-uni/package.json | 102 +----------------- 7 files changed, 81 insertions(+), 120 deletions(-) diff --git a/docs/component/curtain.md b/docs/component/curtain.md index 3f19b0a3..ce5308dd 100644 --- a/docs/component/curtain.md +++ b/docs/component/curtain.md @@ -87,7 +87,7 @@ function handleClick() { | 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 | |----------------------|----------------------------------------------------|---------|--------------------------------------------------------------------------|--------|----------| | value | 绑定值,展示/关闭幕帘(已废弃,请使用 modelValue) | boolean | - | - | - | -| modelValue | 绑定值,展示/关闭幕帘 | boolean | - | - | $LOWEST_VERSION$ | +| modelValue | 绑定值,展示/关闭幕帘 | boolean | - | - | 1.7.0 | | src | 幕帘图片地址,必须使用网络地址 | string | - | - | - | | width | 幕帘图片宽度,默认单位 px | number | - | - | - | | to | 幕帘图片点击链接 | string | - | - | - | diff --git a/docs/component/rate.md b/docs/component/rate.md index 44cd4ad1..a33d65ed 100644 --- a/docs/component/rate.md +++ b/docs/component/rate.md @@ -82,7 +82,7 @@ function changeValue({ value }) { | active-icon | 选中的图标类名 | string | - | wd-icon-star-on | - | | disabled | 是否禁用 | boolean | - | false | - | | disabled-color | 禁用的图标颜色 | string | - | linear-gradient(315deg, rgba(177,177,177,1) 0%,rgba(199,199,199,1) 100%) | - | -| allow-half | 是否允许半选 | boolean | - | false | $LOWEST_VERSION$ | +| allow-half | 是否允许半选 | boolean | - | false | 1.7.0 | ## Events diff --git a/docs/component/toast.md b/docs/component/toast.md index c9d26eea..d22133d7 100644 --- a/docs/component/toast.md +++ b/docs/component/toast.md @@ -3,7 +3,7 @@ 轻提示组件,用于消息通知、加载提示、操作结果提示等场景,支持函数式调用。 :::tip 提示 -`Toast` 自 $LOWEST_VERSION$ 版本起支持通过 `props` 属性控制组件样式,字段见[props](#props),需要注意的是函数式调用api的`options`优先级高于`props`。 +`Toast` 自 1.7.0 版本起支持通过 `props` 属性控制组件样式,字段见[props](#props),需要注意的是函数式调用api的`options`优先级高于`props`。 ::: ## 基本用法 @@ -124,21 +124,21 @@ toast.close() | 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 | |--------------|------------------------------------------|----------|--------------------------------------------|------------|------------------| | selector | 选择器 | string | - | '' | - | -| msg | 提示信息 | string | - | '' | $LOWEST_VERSION$ | -| direction | 排列方向 | string | vertical / horizontal | horizontal | $LOWEST_VERSION$ | -| iconName | 图标类型 | string | success / error / warning / loading / info | '' | $LOWEST_VERSION$ | -| iconSize | 图标大小 | number | - | - | $LOWEST_VERSION$ | -| loadingType | 加载类型 | string | outline / ring | outline | $LOWEST_VERSION$ | -| loadingColor | 加载颜色 | string | - | #4D80F0 | $LOWEST_VERSION$ | -| loadingSize | 加载大小 | number | - | - | $LOWEST_VERSION$ | -| iconColor | 图标颜色 | string | - | - | $LOWEST_VERSION$ | -| position | 提示信息框的位置 | string | top / middle-top / middle / bottom | middle-top | $LOWEST_VERSION$ | -| zIndex | 层级 | number | - | 100 | $LOWEST_VERSION$ | -| cover | 是否存在遮罩层 | boolean | - | false | $LOWEST_VERSION$ | -| iconClass | 图标类名 | string | - | '' | $LOWEST_VERSION$ | -| classPrefix | 类名前缀,用于使用自定义图标 | string | - | wd-icon | $LOWEST_VERSION$ | -| opened | 完全展示后的回调函数 | Function | - | - | $LOWEST_VERSION$ | -| closed | 完全关闭时的回调函数 | Function | - | - | $LOWEST_VERSION$ | +| msg | 提示信息 | string | - | '' | 1.7.0 | +| direction | 排列方向 | string | vertical / horizontal | horizontal | 1.7.0 | +| iconName | 图标类型 | string | success / error / warning / loading / info | '' | 1.7.0 | +| iconSize | 图标大小 | number | - | - | 1.7.0 | +| loadingType | 加载类型 | string | outline / ring | outline | 1.7.0 | +| loadingColor | 加载颜色 | string | - | #4D80F0 | 1.7.0 | +| loadingSize | 加载大小 | number | - | - | 1.7.0 | +| iconColor | 图标颜色 | string | - | - | 1.7.0 | +| position | 提示信息框的位置 | string | top / middle-top / middle / bottom | middle-top | 1.7.0 | +| zIndex | 层级 | number | - | 100 | 1.7.0 | +| cover | 是否存在遮罩层 | boolean | - | false | 1.7.0 | +| iconClass | 图标类名 | string | - | '' | 1.7.0 | +| classPrefix | 类名前缀,用于使用自定义图标 | string | - | wd-icon | 1.7.0 | +| opened | 完全展示后的回调函数 | Function | - | - | 1.7.0 | +| closed | 完全关闭时的回调函数 | Function | - | - | 1.7.0 | ## Options @@ -146,7 +146,7 @@ toast.close() |--------------|-----------------------------------------------------------------------------|----------|---------------------------|------------|----------| | msg | 消息内容 | string | - | '' | - | | duration | 持续时间,单位 ms,为 0 时表示不自动关闭 | number | - | 2000 | - | -| direction | 排版方向 | string | vertical / horizontal | horizontal | $LOWEST_VERSION$ | +| direction | 排版方向 | string | vertical / horizontal | horizontal | 1.7.0 | | iconName | 图标类型 | string | success / error / warning | '' | - | | iconSize | 左侧图标尺寸 | number | - | - | - | | iconClass | 图标类目,自定义图标,可以使用 Icon 章节的那些图标类名,iconName 优先级更高 | string | - | '' | - | diff --git a/docs/guide/changelog.md b/docs/guide/changelog.md index 2b142f8f..419e7d0e 100644 --- a/docs/guide/changelog.md +++ b/docs/guide/changelog.md @@ -1,6 +1,36 @@ # 更新日志 +## [1.7.0](https://github.com/Moonofweisheng/wot-design-uni/compare/v1.6.1...v1.7.0) (2025-02-16) + + +### ✨ Features | 新功能 + +* ✨ 添加 web-type.json 支持 webstorm 代码提示 ([#871](https://github.com/Moonofweisheng/wot-design-uni/issues/871)) ([4575099](https://github.com/Moonofweisheng/wot-design-uni/commit/4575099b9ba580fee2c03e8f8660bbfd9aa70aa3)), closes [#819](https://github.com/Moonofweisheng/wot-design-uni/issues/819) +* ✨ 重构 Curtain 优化控制展示隐藏的实现逻辑 ([#895](https://github.com/Moonofweisheng/wot-design-uni/issues/895)) ([0e31950](https://github.com/Moonofweisheng/wot-design-uni/commit/0e3195059e0843045533b7ff89b9a3613c5449a8)) +* ✨ ActionSheet 支持 close-on-click-action 控制点击选项后是否关闭菜单功能 ([#891](https://github.com/Moonofweisheng/wot-design-uni/issues/891)) ([a1b035a](https://github.com/Moonofweisheng/wot-design-uni/commit/a1b035a6fe3a9ae3a023032b6c33403853424559)), closes [#698](https://github.com/Moonofweisheng/wot-design-uni/issues/698) +* ✨ NavbarCapsule 导航胶囊组件支持外部传入样式 ([fb980e7](https://github.com/Moonofweisheng/wot-design-uni/commit/fb980e7d9bd90c76570d2069a9d41a6c1187ef30)) +* ✨ Rate 评分新增支持半选和触摸滑动选中 ([#896](https://github.com/Moonofweisheng/wot-design-uni/issues/896)) ([9d34f2e](https://github.com/Moonofweisheng/wot-design-uni/commit/9d34f2e5d90cca1820d69100bca7c546ce16fb0e)), closes [#669](https://github.com/Moonofweisheng/wot-design-uni/issues/669) +* ✨ Toast 支持设置布局方向 ([ed60852](https://github.com/Moonofweisheng/wot-design-uni/commit/ed60852432999d295e4af2efe9f1ee86e235e1ee)), closes [#780](https://github.com/Moonofweisheng/wot-design-uni/issues/780) +* ✨ Toast 支持通过props设置组件属性并新增局中显示的配置 ([#888](https://github.com/Moonofweisheng/wot-design-uni/issues/888)) ([ebbe7e4](https://github.com/Moonofweisheng/wot-design-uni/commit/ebbe7e407904df428564dcf53e5141c14d9e7daa)) + + +### ✏️ Documentation | 文档 + +* ✏️ 标注 Form 组件支持不校验隐藏子组件的版本 ([e5a24c4](https://github.com/Moonofweisheng/wot-design-uni/commit/e5a24c4873baa9db62ad1ab6f3adb078dac89dc2)) +* ✏️ 新增关于页面展示主要团队成员信息 ([031107d](https://github.com/Moonofweisheng/wot-design-uni/commit/031107d5888c2887ea40d47810239cd398f042ef)) +* ✏️ 修复 SwipeAction 文档示例拼写错误的问题 ([1dc48cf](https://github.com/Moonofweisheng/wot-design-uni/commit/1dc48cfce9773a0ec60dd2b6cb8fd6c60bb63281)) +* ✏️ 修复文档拼写的错误 ([8f8cb10](https://github.com/Moonofweisheng/wot-design-uni/commit/8f8cb1077aa318e9fb067dfeebdd04dfbdb12412)) +* ✏️ fix create-uni command error ([#874](https://github.com/Moonofweisheng/wot-design-uni/issues/874)) ([a0da88c](https://github.com/Moonofweisheng/wot-design-uni/commit/a0da88c5db21b7127de9342aabcf6961b611e22d)) + + +### 🐛 Bug Fixes | Bug 修复 + +* 🐛 修复 InputNumber 设置了precision后无法输入小数点的问题 ([#886](https://github.com/Moonofweisheng/wot-design-uni/issues/886)) ([dd1a005](https://github.com/Moonofweisheng/wot-design-uni/commit/dd1a00596472023c9b6e545dbf2a9a8238e67baf)), closes [#878](https://github.com/Moonofweisheng/wot-design-uni/issues/878) +* 🐛 修复 Swiper 在微信小程序平台轮播视频时在iOS平台全屏展示异常的问题 ([#898](https://github.com/Moonofweisheng/wot-design-uni/issues/898)) ([34a15ac](https://github.com/Moonofweisheng/wot-design-uni/commit/34a15ac0786d003825491cc9fa2a8961b307c0d2)), closes [#885](https://github.com/Moonofweisheng/wot-design-uni/issues/885) +* 🐛 修复 Tabs 组件导航地图标题不生效的问题 ([#869](https://github.com/Moonofweisheng/wot-design-uni/issues/869)) ([ccf976a](https://github.com/Moonofweisheng/wot-design-uni/commit/ccf976ad631b4ad0272d4897a6245cdd8f13fa4b)) +* 🐛 修复 Upload 组件自定义上传方法不支持asyncfunction的问题 ([#890](https://github.com/Moonofweisheng/wot-design-uni/issues/890)) ([25649db](https://github.com/Moonofweisheng/wot-design-uni/commit/25649dbca55059cb425ba7d7b4e0af7884366dce)), closes [#859](https://github.com/Moonofweisheng/wot-design-uni/issues/859) + ### [1.6.1](https://github.com/Moonofweisheng/wot-design-uni/compare/v1.6.0...v1.6.1) (2025-01-20) diff --git a/src/uni_modules/wot-design-uni/changelog.md b/src/uni_modules/wot-design-uni/changelog.md index 2b142f8f..419e7d0e 100644 --- a/src/uni_modules/wot-design-uni/changelog.md +++ b/src/uni_modules/wot-design-uni/changelog.md @@ -1,6 +1,36 @@ # 更新日志 +## [1.7.0](https://github.com/Moonofweisheng/wot-design-uni/compare/v1.6.1...v1.7.0) (2025-02-16) + + +### ✨ Features | 新功能 + +* ✨ 添加 web-type.json 支持 webstorm 代码提示 ([#871](https://github.com/Moonofweisheng/wot-design-uni/issues/871)) ([4575099](https://github.com/Moonofweisheng/wot-design-uni/commit/4575099b9ba580fee2c03e8f8660bbfd9aa70aa3)), closes [#819](https://github.com/Moonofweisheng/wot-design-uni/issues/819) +* ✨ 重构 Curtain 优化控制展示隐藏的实现逻辑 ([#895](https://github.com/Moonofweisheng/wot-design-uni/issues/895)) ([0e31950](https://github.com/Moonofweisheng/wot-design-uni/commit/0e3195059e0843045533b7ff89b9a3613c5449a8)) +* ✨ ActionSheet 支持 close-on-click-action 控制点击选项后是否关闭菜单功能 ([#891](https://github.com/Moonofweisheng/wot-design-uni/issues/891)) ([a1b035a](https://github.com/Moonofweisheng/wot-design-uni/commit/a1b035a6fe3a9ae3a023032b6c33403853424559)), closes [#698](https://github.com/Moonofweisheng/wot-design-uni/issues/698) +* ✨ NavbarCapsule 导航胶囊组件支持外部传入样式 ([fb980e7](https://github.com/Moonofweisheng/wot-design-uni/commit/fb980e7d9bd90c76570d2069a9d41a6c1187ef30)) +* ✨ Rate 评分新增支持半选和触摸滑动选中 ([#896](https://github.com/Moonofweisheng/wot-design-uni/issues/896)) ([9d34f2e](https://github.com/Moonofweisheng/wot-design-uni/commit/9d34f2e5d90cca1820d69100bca7c546ce16fb0e)), closes [#669](https://github.com/Moonofweisheng/wot-design-uni/issues/669) +* ✨ Toast 支持设置布局方向 ([ed60852](https://github.com/Moonofweisheng/wot-design-uni/commit/ed60852432999d295e4af2efe9f1ee86e235e1ee)), closes [#780](https://github.com/Moonofweisheng/wot-design-uni/issues/780) +* ✨ Toast 支持通过props设置组件属性并新增局中显示的配置 ([#888](https://github.com/Moonofweisheng/wot-design-uni/issues/888)) ([ebbe7e4](https://github.com/Moonofweisheng/wot-design-uni/commit/ebbe7e407904df428564dcf53e5141c14d9e7daa)) + + +### ✏️ Documentation | 文档 + +* ✏️ 标注 Form 组件支持不校验隐藏子组件的版本 ([e5a24c4](https://github.com/Moonofweisheng/wot-design-uni/commit/e5a24c4873baa9db62ad1ab6f3adb078dac89dc2)) +* ✏️ 新增关于页面展示主要团队成员信息 ([031107d](https://github.com/Moonofweisheng/wot-design-uni/commit/031107d5888c2887ea40d47810239cd398f042ef)) +* ✏️ 修复 SwipeAction 文档示例拼写错误的问题 ([1dc48cf](https://github.com/Moonofweisheng/wot-design-uni/commit/1dc48cfce9773a0ec60dd2b6cb8fd6c60bb63281)) +* ✏️ 修复文档拼写的错误 ([8f8cb10](https://github.com/Moonofweisheng/wot-design-uni/commit/8f8cb1077aa318e9fb067dfeebdd04dfbdb12412)) +* ✏️ fix create-uni command error ([#874](https://github.com/Moonofweisheng/wot-design-uni/issues/874)) ([a0da88c](https://github.com/Moonofweisheng/wot-design-uni/commit/a0da88c5db21b7127de9342aabcf6961b611e22d)) + + +### 🐛 Bug Fixes | Bug 修复 + +* 🐛 修复 InputNumber 设置了precision后无法输入小数点的问题 ([#886](https://github.com/Moonofweisheng/wot-design-uni/issues/886)) ([dd1a005](https://github.com/Moonofweisheng/wot-design-uni/commit/dd1a00596472023c9b6e545dbf2a9a8238e67baf)), closes [#878](https://github.com/Moonofweisheng/wot-design-uni/issues/878) +* 🐛 修复 Swiper 在微信小程序平台轮播视频时在iOS平台全屏展示异常的问题 ([#898](https://github.com/Moonofweisheng/wot-design-uni/issues/898)) ([34a15ac](https://github.com/Moonofweisheng/wot-design-uni/commit/34a15ac0786d003825491cc9fa2a8961b307c0d2)), closes [#885](https://github.com/Moonofweisheng/wot-design-uni/issues/885) +* 🐛 修复 Tabs 组件导航地图标题不生效的问题 ([#869](https://github.com/Moonofweisheng/wot-design-uni/issues/869)) ([ccf976a](https://github.com/Moonofweisheng/wot-design-uni/commit/ccf976ad631b4ad0272d4897a6245cdd8f13fa4b)) +* 🐛 修复 Upload 组件自定义上传方法不支持asyncfunction的问题 ([#890](https://github.com/Moonofweisheng/wot-design-uni/issues/890)) ([25649db](https://github.com/Moonofweisheng/wot-design-uni/commit/25649dbca55059cb425ba7d7b4e0af7884366dce)), closes [#859](https://github.com/Moonofweisheng/wot-design-uni/issues/859) + ### [1.6.1](https://github.com/Moonofweisheng/wot-design-uni/compare/v1.6.0...v1.6.1) (2025-01-20) diff --git a/src/uni_modules/wot-design-uni/components/wd-config-provider/types.ts b/src/uni_modules/wot-design-uni/components/wd-config-provider/types.ts index 8eb22e76..d98e6c4f 100644 --- a/src/uni_modules/wot-design-uni/components/wd-config-provider/types.ts +++ b/src/uni_modules/wot-design-uni/components/wd-config-provider/types.ts @@ -637,6 +637,7 @@ export type toastThemeVars = { toastWithIconMinWidth?: string toastIconSize?: string toastIconMarginRight?: string + toastIconMarginBottom?: string toastLoadingPadding?: string toastBoxShadow?: string } diff --git a/src/uni_modules/wot-design-uni/package.json b/src/uni_modules/wot-design-uni/package.json index 2c8f66a5..7f46edd0 100644 --- a/src/uni_modules/wot-design-uni/package.json +++ b/src/uni_modules/wot-design-uni/package.json @@ -1,101 +1 @@ -{ - "id": "wot-design-uni", - "name": "wot-design-uni", - "displayName": "wot-design-uni 基于vue3+Typescript的高颜值组件库", - "version": "1.6.1", - "license": "MIT", - "description": "一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。", - "keywords": [ - "wot-design-uni", - "国际化", - "组件库", - "vue3", - "暗黑模式" - ], - "main": "index.ts", - "repository": { - "type": "git", - "url": "https://github.com/Moonofweisheng/wot-design-uni.git" - }, - "engines": { - "HBuilderX": "^3.8.7" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/wot-design-uni" - }, - "vetur": { - "tags": "tags.json", - "attributes": "attributes.json" - }, - "web-types": "web-types.json", - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y", - "alipay": "n" - }, - "client": { - "Vue": { - "vue2": "n", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "n", - "app-uvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "u", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "u", - "字节跳动": "u", - "QQ": "y", - "钉钉": "y", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - }, - "peerDependencies": { - "vue": ">=3.2.47" - } -} \ No newline at end of file +{"id":"wot-design-uni","name":"wot-design-uni","displayName":"wot-design-uni 基于vue3+Typescript的高颜值组件库","version":"1.7.0","license":"MIT","description":"一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。","keywords":["wot-design-uni","国际化","组件库","vue3","暗黑模式"],"main":"index.ts","repository":{"type":"git","url":"https://github.com/Moonofweisheng/wot-design-uni.git"},"engines":{"HBuilderX":"^3.8.7"},"dcloudext":{"type":"component-vue","sale":{"regular":{"price":"0.00"},"sourcecode":{"price":"0.00"}},"contact":{"qq":""},"declaration":{"ads":"无","data":"插件不采集任何数据","permissions":"无"},"npmurl":"https://www.npmjs.com/package/wot-design-uni"},"vetur":{"tags":"tags.json","attributes":"attributes.json"},"web-types":"web-types.json","uni_modules":{"dependencies":[],"encrypt":[],"platforms":{"cloud":{"tcb":"y","aliyun":"y","alipay":"n"},"client":{"Vue":{"vue2":"n","vue3":"y"},"App":{"app-vue":"y","app-nvue":"n","app-uvue":"n"},"H5-mobile":{"Safari":"y","Android Browser":"y","微信浏览器(Android)":"y","QQ浏览器(Android)":"y"},"H5-pc":{"Chrome":"y","IE":"u","Edge":"y","Firefox":"y","Safari":"y"},"小程序":{"微信":"y","阿里":"y","百度":"u","字节跳动":"u","QQ":"y","钉钉":"y","快手":"u","飞书":"u","京东":"u"},"快应用":{"华为":"u","联盟":"u"}}}},"peerDependencies":{"vue":">=3.2.47"}} \ No newline at end of file