From c1c3e0098d809a2fad6ed3372df83f3c2e70fc28 Mon Sep 17 00:00:00 2001 From: wlxuqu <1416956117@qq.com> Date: Tue, 4 Aug 2020 15:36:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91readMore?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9Eindex=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=92=8Cclose=EF=BC=8Copen=E4=BA=8B=E4=BB=B6=202.=E3=80=90?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=91=E6=96=B0=E5=A2=9Eman=EF=BC=8Cwoman?= =?UTF-8?q?=EF=BC=8Clevel=E4=B8=89=E4=B8=AA=E5=9B=BE=E6=A0=87=203.?= =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E6=96=B0=E5=A2=9E"?= =?UTF-8?q?=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9"=E4=B8=93=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E8=AE=B0=E5=BD=95=E4=B8=80=E4=BA=9B=E8=B8=A9=E5=9D=91?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E7=82=B9=EF=BC=8C=E8=AE=A9=E5=90=8C=E5=AD=A6?= =?UTF-8?q?=E4=BB=AC=E5=B0=91=E8=B5=B0=E5=BC=AF=E8=B7=AF=EF=BC=8C=E8=AF=A6?= =?UTF-8?q?=E8=A7=81[=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9](https://uviewui?= =?UTF-8?q?.com/components/feature.html)=204.=E3=80=90=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91alertTips=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9Eicon?= =?UTF-8?q?=E3=80=81title-style=E3=80=81desc-style=E3=80=81icon-style?= =?UTF-8?q?=E5=8F=82=E6=95=B0=205.=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8A=82=E6=B5=81=E5=92=8C=E9=98=B2=E6=8A=96?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E9=80=9A=E8=BF=87this.$u.debounce()?= =?UTF-8?q?=E5=92=8Cthis.$u.throttle()=E8=B0=83=E7=94=A8=EF=BC=8C=E8=AF=A6?= =?UTF-8?q?=E8=A7=81[=E8=8A=82=E6=B5=81=E9=98=B2=E6=8A=96](https://uviewui?= =?UTF-8?q?.com/js/debounce.html)=206.=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91?= =?UTF-8?q?button=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=E8=8A=82=E6=B5=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=A5=E5=8F=8A=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=97=B4=E9=9A=94=E6=97=B6=E9=97=B4=E7=9A=84throttle-time?= =?UTF-8?q?=E5=8F=82=E6=95=B0=207.=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91fiel?= =?UTF-8?q?d=E5=92=8Cinput=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9Etrim?= =?UTF-8?q?=E5=8F=82=E6=95=B0=EF=BC=8C=E9=BB=98=E8=AE=A4=E4=B8=BAtrue?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E4=BB=A5=E5=8E=BB=E9=99=A4=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=A4=E7=AB=AF=E7=9A=84=E7=A9=BA=E6=A0=BC?= =?UTF-8?q?=208.=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98=E5=8C=96form?= =?UTF-8?q?-item=E7=BB=84=E4=BB=B6=E7=9A=84label=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E5=86=85=E5=AE=B9=E6=97=B6=EF=BC=8C=E4=BE=9D?= =?UTF-8?q?=E7=84=B6=E6=98=BE=E7=A4=BA=E5=B7=A6=E8=BE=B9=E7=9A=84=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E7=9A=84=E9=97=AE=E9=A2=98=209.=E3=80=90=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=91=E4=BC=98=E5=8C=96lazy-load=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E5=86=8D=E6=AC=A1=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=2010.=E3=80=90=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E4=BC=98=E5=8C=96navbar=EF=BC=8Cupload=EF=BC=8Ctabbar?= =?UTF-8?q?=E7=AD=89=E7=BB=84=E4=BB=B6=E7=94=B1=E4=BA=8E=E5=90=84=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8Fprops=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BAFunction=EF=BC=8C=E7=BB=84=E4=BB=B6=E5=86=85=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=88=B6=E7=BB=84=E4=BB=B6=E6=96=B9=E6=B3=95=E6=97=B6?= =?UTF-8?q?this=E4=B8=8A=E4=B8=8B=E6=96=87=E4=B8=A2=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=2011.=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96numberbox=E7=BB=84=E4=BB=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=98=BB=E6=AD=A2=E4=BA=8B=E4=BB=B6=E5=86=92=E6=B3=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=2012.=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96timeFormat=E7=BB=84=E4=BB=B6=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E4=BD=BF=E7=94=A8es7=E7=9A=84padStart=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=9C=A8=E7=94=B5=E8=84=91?= =?UTF-8?q?=E7=89=88=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=AF=86=E5=88=AB=E7=9A=84=E9=97=AE=E9=A2=98=2013.?= =?UTF-8?q?=E3=80=90=E8=B0=83=E6=95=B4=E3=80=91=E8=B0=83=E6=95=B4this.$u.s?= =?UTF-8?q?ys=E5=92=8Cthis.$u.os=EF=BC=8C=E9=80=9A=E8=BF=87this.$u.sys()?= =?UTF-8?q?=E5=92=8Cthis.$u.os()=E8=B0=83=E7=94=A8=EF=BC=8C=E8=AF=A6?= =?UTF-8?q?=E8=A7=81[=E5=8D=87=E7=BA=A7=E6=8C=87=E5=8D=97](https://uviewui?= =?UTF-8?q?.com/components/changeGuide.html)=2014.=E3=80=90=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E3=80=91=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=89=8B=E5=8A=A8=E8=AE=BE=E7=BD=AEpopup=E7=9A=84v-mo?= =?UTF-8?q?del=E4=B8=BAfalse=E6=9D=A5=E5=85=B3=E9=97=ADpopup=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=2015.=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AA=A8=E6=9E=B6=E5=B1=8F=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=9C=A8=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=9A=84=E7=BB=84=E4=BB=B6=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- manifest.json | 5 +- pages.json | 23 +- pages/componentsA/navbar/index.vue | 7 +- pages/componentsB/readMore/index.vue | 8 +- pages/componentsC/section/index.vue | 12 +- pages/componentsC/test/index.vue | 32 +- pages/example/js.config.js | 5 + pages/library/debounce/index.vue | 94 ++++ .../components/u-alert-tips/u-alert-tips.vue | 65 ++- uview-ui/components/u-button/u-button.vue | 30 +- uview-ui/components/u-field/u-field.vue | 10 +- .../components/u-form-item/u-form-item.vue | 8 +- uview-ui/components/u-icon/u-icon.vue | 6 +- uview-ui/components/u-input/u-input.vue | 14 +- .../components/u-lazy-load/u-lazy-load.vue | 11 +- .../u-loading-page/u-loading-page.vue | 25 + uview-ui/components/u-navbar/u-navbar.vue | 4 +- .../components/u-number-box/u-number-box.vue | 4 +- uview-ui/components/u-popup/u-popup.vue | 6 +- .../components/u-read-more/u-read-more.vue | 7 + uview-ui/components/u-section/u-section.vue | 2 +- uview-ui/components/u-skeleton/u-skeleton.vue | 42 +- uview-ui/components/u-sticky/u-sticky.vue | 3 + uview-ui/components/u-tabbar/u-tabbar.vue | 4 +- uview-ui/components/u-upload/u-upload.vue | 19 +- uview-ui/iconfont.css | 450 +++++++++--------- uview-ui/index.js | 18 +- uview-ui/libs/config/config.js | 4 +- uview-ui/libs/css/common.scss | 2 - uview-ui/libs/function/$parent.js | 6 +- uview-ui/libs/function/debounce.js | 29 ++ uview-ui/libs/function/sys.js | 9 + uview-ui/libs/function/throttle.js | 32 ++ uview-ui/libs/function/timeFormat.js | 24 + uview-ui/package.json | 2 +- 36 files changed, 706 insertions(+), 318 deletions(-) create mode 100644 pages/library/debounce/index.vue create mode 100644 uview-ui/components/u-loading-page/u-loading-page.vue create mode 100644 uview-ui/libs/function/debounce.js create mode 100644 uview-ui/libs/function/sys.js create mode 100644 uview-ui/libs/function/throttle.js diff --git a/README.md b/README.md index e09c1906..d0f4612a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水 -### **欢迎加群交流反馈:249718512** +### **欢迎加群交流反馈:1129077272** ## 特性 diff --git a/manifest.json b/manifest.json index e1e5389c..febcbbd8 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "uView", "appid" : "__UNI__60F4B81", "description" : "多平台快速开发的UI框架", - "versionName" : "1.5.7", + "versionName" : "1.5.8", "versionCode" : "100", "transformPx" : false, "app-plus" : { @@ -126,6 +126,7 @@ "treeShaking" : { "enable" : true } - } + }, + "title" : "uView UI" } } diff --git a/pages.json b/pages.json index c5ba05ea..3168f6c9 100644 --- a/pages.json +++ b/pages.json @@ -2,14 +2,14 @@ "easycom": { "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" }, - "condition": { //模式配置,仅开发期间生效 - "current": 0, //当前激活的模式(list 的索引项) - "list": [{ - "name": "test", //模式名称 - "path": "pages/componentsA/avatar/index", //启动页面,必选 - "query": "id=1&name=2" //启动参数,在页面的onLoad函数里面得到 - }] - }, + // "condition": { //模式配置,仅开发期间生效 + // "current": 0, //当前激活的模式(list 的索引项) + // "list": [{ + // "name": "test", //模式名称 + // "path": "pages/componentsC/test/index", //启动页面,必选 + // "query": "id=1&name=2" //启动参数,在页面的onLoad函数里面得到 + // }] + // }, "pages": [ // 演示-组件 { @@ -328,6 +328,13 @@ { "root": "pages/library", "pages": [ + // debounce-节流防抖 + { + "path": "debounce/index", + "style": { + "navigationBarTitleText": "throttle | debounce-节流防抖" + } + }, // deepClone-对象深度克隆 { "path": "deepClone/index", diff --git a/pages/componentsA/navbar/index.vue b/pages/componentsA/navbar/index.vue index 62aafea1..47badd7e 100644 --- a/pages/componentsA/navbar/index.vue +++ b/pages/componentsA/navbar/index.vue @@ -1,6 +1,11 @@