diff --git a/dist/action-sheet/index.wxml b/dist/action-sheet/index.wxml index 7ed28196..c2bebcac 100644 --- a/dist/action-sheet/index.wxml +++ b/dist/action-sheet/index.wxml @@ -11,15 +11,15 @@ close-on-click-overlay="{{ closeOnClickOverlay }}" bind:close="onClickOverlay" > - + {{ title }} - + {{ description }} @@ -29,7 +29,7 @@ wx:key="index" open-type="{{ item.openType }}" style="{{ item.color ? 'color: ' + item.color : '' }}" - class="{{ utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) }} van-hairline--top {{ item.className || '' }}" + class="{{ utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) }} {{ item.className || '' }}" hover-class="van-action-sheet__item--hover" data-index="{{ index }}" bind:tap="onSelect" @@ -49,19 +49,21 @@ > {{ item.name }} - {{ item.subname }} + {{ item.subname }} - + - - {{ cancelText }} - + + + + {{ cancelText }} + + diff --git a/dist/action-sheet/index.wxss b/dist/action-sheet/index.wxss index dc54840c..9b247d5d 100644 --- a/dist/action-sheet/index.wxss +++ b/dist/action-sheet/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-action-sheet{max-height:90%!important;max-height:var(--action-sheet-max-height,90%)!important;color:#323233;color:var(--action-sheet-item-text-color,#323233)}.van-action-sheet__cancel,.van-action-sheet__item{text-align:center;font-size:16px;font-size:var(--action-sheet-item-font-size,16px);line-height:50px;line-height:var(--action-sheet-item-height,50px);background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-action-sheet__cancel:before{display:block;content:" ";height:8px;height:var(--action-sheet-cancel-padding-top,8px);background-color:#f7f8fa;background-color:var(--action-sheet-cancel-padding-color,#f7f8fa)}.van-action-sheet__item--disabled{color:#c8c9cc;color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{margin-left:4px;margin-left:var(--padding-base,4px);font-size:12px;font-size:var(--action-sheet-subname-font-size,12px);color:#646566;color:var(--action-sheet-subname-color,#646566)}.van-action-sheet__header{text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--action-sheet-header-font-size,16px);line-height:44px;line-height:var(--action-sheet-header-height,44px)}.van-action-sheet__description{text-align:center;padding:16px;padding:var(--padding-md,16px);color:#646566;color:var(--action-sheet-description-color,#646566);font-size:14px;font-size:var(--action-sheet-description-font-size,14px);line-height:20px;line-height:var(--action-sheet-description-line-height,20px)}.van-action-sheet__close{position:absolute!important;top:0;right:0;line-height:inherit!important;padding:0 12px;padding:var(--action-sheet-close-icon-padding,0 12px);font-size:18px!important;font-size:var(--action-sheet-close-icon-size,18px)!important;color:#969799;color:var(--action-sheet-close-icon-color,#969799)}.van-action-sheet__loading{display:-webkit-flex!important;display:flex!important;height:50px;height:var(--action-sheet-item-height,50px)} \ No newline at end of file +@import '../common/index.wxss';.van-action-sheet{max-height:90%!important;max-height:var(--action-sheet-max-height,90%)!important;color:#323233;color:var(--action-sheet-item-text-color,#323233)}.van-action-sheet__cancel,.van-action-sheet__item{padding:14px 16px;text-align:center;font-size:16px;font-size:var(--action-sheet-item-font-size,16px);line-height:22px;line-height:var(--action-sheet-item-line-height,22px);background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:#646566;color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{display:block;height:8px;height:var(--action-sheet-cancel-padding-top,8px);background-color:#f7f8fa;background-color:var(--action-sheet-cancel-padding-color,#f7f8fa)}.van-action-sheet__item--disabled{color:#c8c9cc;color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{margin-top:8px;margin-top:var(--padding-xs,8px);font-size:12px;font-size:var(--action-sheet-subname-font-size,12px);color:#969799;color:var(--action-sheet-subname-color,#969799);line-height:20px;line-height:var(--action-sheet-subname-line-height,20px)}.van-action-sheet__header{text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--action-sheet-header-font-size,16px);line-height:48px;line-height:var(--action-sheet-header-height,48px)}.van-action-sheet__description{text-align:center;padding:20px 16px;padding:20px var(--padding-md,16px);color:#969799;color:var(--action-sheet-description-color,#969799);font-size:14px;font-size:var(--action-sheet-description-font-size,14px);line-height:20px;line-height:var(--action-sheet-description-line-height,20px)}.van-action-sheet__close{position:absolute!important;top:0;right:0;line-height:inherit!important;padding:0 16px;padding:var(--action-sheet-close-icon-padding,0 16px);font-size:22px!important;font-size:var(--action-sheet-close-icon-size,22px)!important;color:#c8c9cc;color:var(--action-sheet-close-icon-color,#c8c9cc)}.van-action-sheet__loading{display:-webkit-flex!important;display:flex!important} \ No newline at end of file diff --git a/dist/area/index.js b/dist/area/index.js index 17c25b33..1e3e8d50 100644 --- a/dist/area/index.js +++ b/dist/area/index.js @@ -110,7 +110,7 @@ VantComponent({ code, name: list[code], })); - if (code) { + if (code != null) { // oversea code if (code[0] === '9' && type === 'city') { code = '9'; diff --git a/dist/calendar/index.js b/dist/calendar/index.js index ef2ae517..aed6ef83 100644 --- a/dist/calendar/index.js +++ b/dist/calendar/index.js @@ -167,6 +167,7 @@ VantComponent({ minDate, maxDate, } = this.data; + // @ts-ignore const targetDate = type === 'single' ? currentDate : currentDate[0]; const displayed = show || !poppable; if (!targetDate || !displayed) { @@ -198,6 +199,7 @@ VantComponent({ const { date } = event.detail; const { type, currentDate, allowSameDay } = this.data; if (type === 'range') { + // @ts-ignore const [startDay, endDay] = currentDate; if (startDay && !endDay) { const compareToStart = compareDay(date, startDay); @@ -213,6 +215,7 @@ VantComponent({ } } else if (type === 'multiple') { let selectedIndex; + // @ts-ignore const selected = currentDate.some((dateItem, index) => { const equal = compareDay(dateItem, date) === 0; if (equal) { @@ -221,10 +224,12 @@ VantComponent({ return equal; }); if (selected) { + // @ts-ignore const cancelDate = currentDate.splice(selectedIndex, 1); this.setData({ currentDate }); this.unselect(cancelDate); } else { + // @ts-ignore this.select([...currentDate, date]); } } else { @@ -284,6 +289,7 @@ VantComponent({ return; } wx.nextTick(() => { + // @ts-ignore this.$emit('confirm', copyDates(this.data.currentDate)); }); }, diff --git a/dist/calendar/utils.d.ts b/dist/calendar/utils.d.ts index 564c16a6..02af08df 100644 --- a/dist/calendar/utils.d.ts +++ b/dist/calendar/utils.d.ts @@ -14,4 +14,4 @@ export declare function getNextDay(date: Date): Date; export declare function calcDateNum(date: [Date, Date]): number; export declare function copyDates(dates: Date | Date[]): Date | Date[]; export declare function getMonthEndDay(year: number, month: number): number; -export declare function getMonths(minDate: number, maxDate: number): any[]; +export declare function getMonths(minDate: number, maxDate: number): number[]; diff --git a/dist/cell/index.wxss b/dist/cell/index.wxss index fbbe8826..605570db 100644 --- a/dist/cell/index.wxss +++ b/dist/cell/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-cell{position:relative;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);font-size:14px;font-size:var(--cell-font-size,14px);line-height:24px;line-height:var(--cell-line-height,24px);color:#323233;color:var(--cell-text-color,#323233);background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless:after{display:none}.van-cell-group{background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell__label{margin-top:3px;margin-top:var(--cell-label-margin-top,3px);font-size:12px;font-size:var(--cell-label-font-size,12px);line-height:18px;line-height:var(--cell-label-line-height,18px);color:#969799;color:var(--cell-label-color,#969799)}.van-cell__value{overflow:hidden;text-align:right;vertical-align:middle;color:#969799;color:var(--cell-value-color,#969799)}.van-cell__title,.van-cell__value{-webkit-flex:1;flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:24px;height:var(--cell-line-height,24px);font-size:16px;font-size:var(--cell-icon-size,16px)}.van-cell__left-icon-wrap{margin-right:5px}.van-cell__right-icon-wrap{margin-left:5px;color:#969799;color:var(--cell-right-icon-color,#969799)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:24px;line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:#f2f3f5;background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;content:"*";left:8px;left:var(--padding-xs,8px);font-size:14px;font-size:var(--cell-font-size,14px);color:#ee0a24;color:var(--cell-required-color,#ee0a24)}.van-cell--center{-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-top:var(--cell-large-vertical-padding,12px);padding-bottom:12px;padding-bottom:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:16px;font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:16px;font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:14px;font-size:var(--cell-large-label-font-size,14px)} \ No newline at end of file +@import '../common/index.wxss';.van-cell{position:relative;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);font-size:14px;font-size:var(--cell-font-size,14px);line-height:24px;line-height:var(--cell-line-height,24px);color:#323233;color:var(--cell-text-color,#323233);background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless:after{display:none}.van-cell-group{background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell__label{margin-top:3px;margin-top:var(--cell-label-margin-top,3px);font-size:12px;font-size:var(--cell-label-font-size,12px);line-height:18px;line-height:var(--cell-label-line-height,18px);color:#969799;color:var(--cell-label-color,#969799)}.van-cell__value{overflow:hidden;text-align:right;vertical-align:middle;color:#969799;color:var(--cell-value-color,#969799)}.van-cell__title,.van-cell__value{-webkit-flex:1;flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:24px;height:var(--cell-line-height,24px);font-size:16px;font-size:var(--cell-icon-size,16px)}.van-cell__left-icon-wrap{margin-right:4px;margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{margin-left:4px;margin-left:var(--padding-base,4px);color:#969799;color:var(--cell-right-icon-color,#969799)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:24px;line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:#f2f3f5;background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;content:"*";left:8px;left:var(--padding-xs,8px);font-size:14px;font-size:var(--cell-font-size,14px);color:#ee0a24;color:var(--cell-required-color,#ee0a24)}.van-cell--center{-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-top:var(--cell-large-vertical-padding,12px);padding-bottom:12px;padding-bottom:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:16px;font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:16px;font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:14px;font-size:var(--cell-large-label-font-size,14px)} \ No newline at end of file diff --git a/dist/circle/canvas.d.ts b/dist/circle/canvas.d.ts index 84c7caa7..6aa52dea 100644 --- a/dist/circle/canvas.d.ts +++ b/dist/circle/canvas.d.ts @@ -1,6 +1,6 @@ -/// +/// declare type CanvasContext = WechatMiniprogram.CanvasContext; export declare function adaptor( - ctx: CanvasRenderingContext2D -): CanvasContext & CanvasRenderingContext2D; + ctx: CanvasContext & Record +): CanvasContext; export {}; diff --git a/dist/common/component.js b/dist/common/component.js index 4868a064..f482f9e3 100644 --- a/dist/common/component.js +++ b/dist/common/component.js @@ -2,18 +2,23 @@ import { basic } from '../mixins/basic'; const relationFunctions = { ancestor: { linked(parent) { + // @ts-ignore this.parent = parent; }, unlinked() { + // @ts-ignore this.parent = null; }, }, descendant: { linked(child) { + // @ts-ignore this.children = this.children || []; + // @ts-ignore this.children.push(child); }, unlinked(child) { + // @ts-ignore this.children = (this.children || []).filter((it) => it !== child); }, }, diff --git a/dist/common/utils.d.ts b/dist/common/utils.d.ts index 01410548..2454e2b8 100644 --- a/dist/common/utils.d.ts +++ b/dist/common/utils.d.ts @@ -1,4 +1,4 @@ -/// +/// export declare function isDef(value: any): boolean; export declare function isObj(x: any): boolean; export declare function range(num: number, min: number, max: number): number; diff --git a/dist/datetime-picker/index.js b/dist/datetime-picker/index.js index ef9394d9..c0820ee7 100644 --- a/dist/datetime-picker/index.js +++ b/dist/datetime-picker/index.js @@ -20,7 +20,6 @@ function times(n, iteratee) { return result; } function getTrueValue(formattedValue) { - if (!formattedValue) return; while (isNaN(parseInt(formattedValue, 10))) { formattedValue = formattedValue.slice(1); } @@ -29,7 +28,7 @@ function getTrueValue(formattedValue) { function getMonthEndDay(year, month) { return 32 - new Date(year, month - 1, 32).getDate(); } -const defaultFormatter = (_, value) => value; +const defaultFormatter = (type, value) => value; VantComponent({ classes: ['active-class', 'toolbar-class', 'column-class'], props: Object.assign(Object.assign({}, pickerProps), { diff --git a/dist/definitions/index.d.ts b/dist/definitions/index.d.ts index 65e3aab6..f2e8e0d1 100644 --- a/dist/definitions/index.d.ts +++ b/dist/definitions/index.d.ts @@ -1,4 +1,4 @@ -/// +/// import { Weapp } from './weapp'; declare type RecordToAny = { [K in keyof T]: any; diff --git a/dist/definitions/weapp.d.ts b/dist/definitions/weapp.d.ts index bcc203a2..9b7ca5a3 100644 --- a/dist/definitions/weapp.d.ts +++ b/dist/definitions/weapp.d.ts @@ -1,4 +1,4 @@ -/// +/// export declare namespace Weapp { export interface FormField { data: { @@ -6,61 +6,6 @@ export declare namespace Weapp { value: any; }; } - interface Target { - id: string; - tagName: string; - dataset: { - [key: string]: any; - }; - } - export interface Event { - /** - * 代表事件的类型。 - */ - type: string; - /** - * 页面打开到触发事件所经过的毫秒数。 - */ - timeStamp: number; - /** - * 触发事件的源组件。 - */ - target: Target; - /** - * 事件绑定的当前组件。 - */ - currentTarget: Target; - /** - * 额外的信息 - */ - detail: any; - } - interface Touch { - /** - * 触摸点的标识符 - */ - identifier: number; - /** - * 距离文档左上角的距离,文档的左上角为原点 ,横向为X轴,纵向为Y轴 - */ - pageX: number; - /** - * 距离文档左上角的距离,文档的左上角为原点 ,横向为X轴,纵向为Y轴 - */ - pageY: number; - /** - * 距离页面可显示区域(屏幕除去导航条)左上角距离,横向为X轴,纵向为Y轴 - */ - clientX: number; - /** - * 距离页面可显示区域(屏幕除去导航条)左上角距离,横向为X轴,纵向为Y轴 - */ - clientY: number; - } - export interface TouchEvent extends Event { - touches: Array; - changedTouches: Array; - } /** * relation定义,miniprogram-api-typings缺少this定义 */ diff --git a/dist/dialog/dialog.d.ts b/dist/dialog/dialog.d.ts index e964e88b..109a15cb 100644 --- a/dist/dialog/dialog.d.ts +++ b/dist/dialog/dialog.d.ts @@ -1,9 +1,9 @@ -/// -declare type DialogOptions = { +/// +interface DialogOptions { lang?: string; show?: boolean; title?: string; - width?: string | number; + width?: string | number | null; zIndex?: number; theme?: string; context?: @@ -32,10 +32,16 @@ declare type DialogOptions = { showCancelButton?: boolean; closeOnClickOverlay?: boolean; confirmButtonOpenType?: string; -}; +} declare const Dialog: { (options: DialogOptions): Promise< - WechatMiniprogram.Component.TrivialInstance + WechatMiniprogram.Component.Instance< + Record, + Record, + Record, + Record, + false + > >; alert( options: DialogOptions @@ -44,7 +50,8 @@ declare const Dialog: { Record, Record, Record, - Record + Record, + false > >; confirm( @@ -54,7 +61,8 @@ declare const Dialog: { Record, Record, Record, - Record + Record, + false > >; close(): void; diff --git a/dist/dropdown-item/index.wxss b/dist/dropdown-item/index.wxss index e06c2874..7cab3f28 100644 --- a/dist/dropdown-item/index.wxss +++ b/dist/dropdown-item/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#1989fa;color:var(--dropdown-menu-option-active-color,#1989fa)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit} \ No newline at end of file +@import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#ee0a24;color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit} \ No newline at end of file diff --git a/dist/dropdown-item/shared.d.ts b/dist/dropdown-item/shared.d.ts new file mode 100644 index 00000000..c90bd9e1 --- /dev/null +++ b/dist/dropdown-item/shared.d.ts @@ -0,0 +1,5 @@ +export interface Option { + text: string; + value: string | number; + icon: string; +} diff --git a/dist/dropdown-item/shared.js b/dist/dropdown-item/shared.js new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/dist/dropdown-item/shared.js @@ -0,0 +1 @@ +export {}; diff --git a/dist/dropdown-menu/index.wxss b/dist/dropdown-menu/index.wxss index 43efd779..ec6caff6 100644 --- a/dist/dropdown-menu/index.wxss +++ b/dist/dropdown-menu/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#1989fa;color:var(--dropdown-menu-title-active-text-color,#1989fa)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)} \ No newline at end of file +@import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;box-shadow:0 2px 12px rgba(100,101,102,.12);-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#ee0a24;color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)} \ No newline at end of file diff --git a/dist/field/index.wxml b/dist/field/index.wxml index ca82cae8..dcb53d34 100644 --- a/dist/field/index.wxml +++ b/dist/field/index.wxml @@ -14,13 +14,14 @@ custom-style="{{ customStyle }}" arrow-direction="{{ arrowDirection }}" custom-class="van-field" - title-class="label-class" > - + {{ label }} - + + +