diff --git a/dist/actionsheet/index.wxss b/dist/actionsheet/index.wxss index 509b0874..c0189673 100644 --- a/dist/actionsheet/index.wxss +++ b/dist/actionsheet/index.wxss @@ -1 +1 @@ -.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom::after,.van-hairline--left::after,.van-hairline--right::after,.van-hairline--surround::after,.van-hairline--top-bottom::after,.van-hairline--top::after,.van-hairline::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}.van-actionsheet{color:#333;max-height:90%;overflow-y:auto;-webkit-overflow-scrolling:touch;background-color:#f8f8f8}.van-actionsheet--withtitle{background-color:#fff}.van-actionsheet__cancel,.van-actionsheet__item{height:50px;line-height:50px;font-size:16px;text-align:center;background-color:#fff}.van-actionsheet__cancel:active,.van-actionsheet__item:active{background-color:#e8e8e8}.van-actionsheet__item--disabled{color:#c9c9c9}.van-actionsheet__item--disabled:active{background-color:#fff}.van-actionsheet__subname{font-size:12px;color:#666;margin-left:5px}.van-actionsheet__loading{display:inline-block}.van-actionsheet__cancel{margin-top:10px}.van-actionsheet__header{font-size:16px;line-height:44px;text-align:center}.van-actionsheet__close{top:0;right:0;padding:0 15px;font-size:18px;color:#999;position:absolute;line-height:inherit} \ No newline at end of file +.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom::after,.van-hairline--left::after,.van-hairline--right::after,.van-hairline--surround::after,.van-hairline--top-bottom::after,.van-hairline--top::after,.van-hairline::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}.van-actionsheet{color:#333;max-height:90%;overflow-y:auto;-webkit-overflow-scrolling:touch;background-color:#f8f8f8}.van-actionsheet--withtitle{background-color:#fff}.van-actionsheet__cancel,.van-actionsheet__item{height:50px;line-height:50px;font-size:16px;text-align:center;background-color:#fff}.van-actionsheet__cancel:active,.van-actionsheet__item:active{background-color:#e8e8e8}.van-actionsheet__item--disabled{color:#c9c9c9}.van-actionsheet__item--disabled:active{background-color:#fff}.van-actionsheet__subname{font-size:12px;color:#666;margin-left:5px}.van-actionsheet__loading{display:inline-block}.van-actionsheet__cancel{margin-top:10px}.van-actionsheet__header{font-size:16px;line-height:44px;text-align:center}.van-actionsheet__close{top:0;right:0;padding:0 15px;font-size:18px!important;color:#999;position:absolute!important;line-height:inherit!important} \ No newline at end of file diff --git a/dist/field/index.js b/dist/field/index.js index f07713d2..ca6be95e 100644 --- a/dist/field/index.js +++ b/dist/field/index.js @@ -53,6 +53,10 @@ Component({ border: { type: Boolean, value: true + }, + titleWidth: { + type: Number, + value: 90 } }, diff --git a/dist/field/index.wxml b/dist/field/index.wxml index da40aca7..16689cf1 100644 --- a/dist/field/index.wxml +++ b/dist/field/index.wxml @@ -6,7 +6,7 @@ is-link="{{ isLink }}" required="{{ required }}" custom-style="{{ customStyle }}" - title-width="90px" + title-width="{{ titleWidth }}" custom-class="{{ customClass }} van-field {{ labelAlign ? 'van-field--label-' + labelAlign : '' }}" > diff --git a/dist/search/index.js b/dist/search/index.js index e92094c3..50f4a6a4 100644 --- a/dist/search/index.js +++ b/dist/search/index.js @@ -9,6 +9,7 @@ Component({ }, properties: { + focus: Boolean, disabled: Boolean, readonly: Boolean, showAction: Boolean, diff --git a/dist/search/index.wxml b/dist/search/index.wxml index 04b18d49..1a3bc847 100644 --- a/dist/search/index.wxml +++ b/dist/search/index.wxml @@ -7,6 +7,7 @@ clearable type="search" left-icon="search" + focus="{{ focus }}" border="{{ false }}" confirm-type="search" value="{{ value }}" diff --git a/packages/search/index.js b/packages/search/index.js index e92094c3..50f4a6a4 100644 --- a/packages/search/index.js +++ b/packages/search/index.js @@ -9,6 +9,7 @@ Component({ }, properties: { + focus: Boolean, disabled: Boolean, readonly: Boolean, showAction: Boolean, diff --git a/packages/search/index.wxml b/packages/search/index.wxml index 04b18d49..1a3bc847 100644 --- a/packages/search/index.wxml +++ b/packages/search/index.wxml @@ -7,6 +7,7 @@ clearable type="search" left-icon="search" + focus="{{ focus }}" border="{{ false }}" confirm-type="search" value="{{ value }}"