diff --git a/dist/button/index.wxml b/dist/button/index.wxml index 80348459..beb46cd4 100644 --- a/dist/button/index.wxml +++ b/dist/button/index.wxml @@ -25,6 +25,7 @@ binderror="onError" bindlaunchapp="onLaunchApp" bindopensetting="onOpenSetting" + bindchooseavatar="onChooseAvatar" > /// +/// +/// +/// export { isDef } from './validator'; export declare function range(num: number, min: number, max: number): number; export declare function nextTick(cb: (...args: any[]) => void): void; diff --git a/dist/dialog/dialog.d.ts b/dist/dialog/dialog.d.ts index e1f48c26..8726f6cc 100644 --- a/dist/dialog/dialog.d.ts +++ b/dist/dialog/dialog.d.ts @@ -1,4 +1,5 @@ /// +/// export declare type Action = 'confirm' | 'cancel' | 'overlay'; interface DialogOptions { lang?: string; diff --git a/dist/mixins/button.js b/dist/mixins/button.js index ac1e5697..bc48768c 100644 --- a/dist/mixins/button.js +++ b/dist/mixins/button.js @@ -37,5 +37,8 @@ export const button = Behavior({ onOpenSetting(event) { this.triggerEvent('opensetting', event.detail); }, + onChooseAvatar(event) { + this.triggerEvent('chooseavatar', event.detail); + }, }, }); diff --git a/dist/mixins/page-scroll.d.ts b/dist/mixins/page-scroll.d.ts index a316bb86..16d17d33 100644 --- a/dist/mixins/page-scroll.d.ts +++ b/dist/mixins/page-scroll.d.ts @@ -1,4 +1,5 @@ /// +/// declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption; declare type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void; export declare const pageScrollMixin: (scroller: Scroller) => string; diff --git a/dist/nav-bar/index.wxss b/dist/nav-bar/index.wxss index 94c5b449..d11c31e1 100644 --- a/dist/nav-bar/index.wxss +++ b/dist/nav-bar/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)} \ No newline at end of file +@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)} \ No newline at end of file diff --git a/dist/toast/toast.d.ts b/dist/toast/toast.d.ts index db3f40e6..0c55025a 100644 --- a/dist/toast/toast.d.ts +++ b/dist/toast/toast.d.ts @@ -1,4 +1,5 @@ /// +/// declare type ToastMessage = string | number; interface ToastOptions { show?: boolean; diff --git a/lib/button/index.wxml b/lib/button/index.wxml index 80348459..beb46cd4 100644 --- a/lib/button/index.wxml +++ b/lib/button/index.wxml @@ -25,6 +25,7 @@ binderror="onError" bindlaunchapp="onLaunchApp" bindopensetting="onOpenSetting" + bindchooseavatar="onChooseAvatar" > /// +/// +/// +/// export { isDef } from './validator'; export declare function range(num: number, min: number, max: number): number; export declare function nextTick(cb: (...args: any[]) => void): void; diff --git a/lib/dialog/dialog.d.ts b/lib/dialog/dialog.d.ts index e1f48c26..8726f6cc 100644 --- a/lib/dialog/dialog.d.ts +++ b/lib/dialog/dialog.d.ts @@ -1,4 +1,5 @@ /// +/// export declare type Action = 'confirm' | 'cancel' | 'overlay'; interface DialogOptions { lang?: string; diff --git a/lib/mixins/button.js b/lib/mixins/button.js index 83640cef..24c54bc4 100644 --- a/lib/mixins/button.js +++ b/lib/mixins/button.js @@ -40,5 +40,8 @@ exports.button = Behavior({ onOpenSetting: function (event) { this.triggerEvent('opensetting', event.detail); }, + onChooseAvatar: function (event) { + this.triggerEvent('chooseavatar', event.detail); + }, }, }); diff --git a/lib/mixins/page-scroll.d.ts b/lib/mixins/page-scroll.d.ts index a316bb86..16d17d33 100644 --- a/lib/mixins/page-scroll.d.ts +++ b/lib/mixins/page-scroll.d.ts @@ -1,4 +1,5 @@ /// +/// declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption; declare type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void; export declare const pageScrollMixin: (scroller: Scroller) => string; diff --git a/lib/nav-bar/index.wxss b/lib/nav-bar/index.wxss index 94c5b449..d11c31e1 100644 --- a/lib/nav-bar/index.wxss +++ b/lib/nav-bar/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)} \ No newline at end of file +@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)} \ No newline at end of file diff --git a/lib/search/index.js b/lib/search/index.js index d954ca3f..0b00a1f3 100644 --- a/lib/search/index.js +++ b/lib/search/index.js @@ -63,7 +63,7 @@ var version_1 = require("../common/version"); var _this = this; /** * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效 - * https://github.com/youzan/@vant/weapp/issues/1768 + * https://github.com/vant-ui/vant-weapp/issues/1768 */ setTimeout(function () { if ((0, version_1.canIUseModel)()) { diff --git a/lib/toast/toast.d.ts b/lib/toast/toast.d.ts index db3f40e6..0c55025a 100644 --- a/lib/toast/toast.d.ts +++ b/lib/toast/toast.d.ts @@ -1,4 +1,5 @@ /// +/// declare type ToastMessage = string | number; interface ToastOptions { show?: boolean;