mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-10-10 02:39:57 +08:00
build: compile 0.5.20
This commit is contained in:
parent
6df1bd191b
commit
b1cdd7733a
4
dist/area/index.js
vendored
4
dist/area/index.js
vendored
@ -27,8 +27,8 @@ VantComponent({
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.setValues()
|
this.setValues();
|
||||||
}, 0)
|
}, 0);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPicker() {
|
getPicker() {
|
||||||
|
1
dist/button/index.js
vendored
1
dist/button/index.js
vendored
@ -6,6 +6,7 @@ VantComponent({
|
|||||||
classes: ['hover-class', 'loading-class'],
|
classes: ['hover-class', 'loading-class'],
|
||||||
props: {
|
props: {
|
||||||
icon: String,
|
icon: String,
|
||||||
|
color: String,
|
||||||
plain: Boolean,
|
plain: Boolean,
|
||||||
block: Boolean,
|
block: Boolean,
|
||||||
round: Boolean,
|
round: Boolean,
|
||||||
|
1
dist/button/index.wxml
vendored
1
dist/button/index.wxml
vendored
@ -5,6 +5,7 @@
|
|||||||
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
||||||
open-type="{{ openType }}"
|
open-type="{{ openType }}"
|
||||||
hover-class="van-button--active hover-class"
|
hover-class="van-button--active hover-class"
|
||||||
|
style="{{ color ? 'border-color: ' + color + ';' + (plain ? 'color: ' + color : 'color: #fff; background-color: ' + color) : '' }}"
|
||||||
lang="{{ lang }}"
|
lang="{{ lang }}"
|
||||||
business-id="{{ businessId }}"
|
business-id="{{ businessId }}"
|
||||||
session-from="{{ sessionFrom }}"
|
session-from="{{ sessionFrom }}"
|
||||||
|
8
dist/field/index.js
vendored
8
dist/field/index.js
vendored
@ -28,6 +28,14 @@ VantComponent({
|
|||||||
placeholder: String,
|
placeholder: String,
|
||||||
placeholderStyle: String,
|
placeholderStyle: String,
|
||||||
errorMessageAlign: String,
|
errorMessageAlign: String,
|
||||||
|
selectionEnd: {
|
||||||
|
type: Number,
|
||||||
|
value: -1
|
||||||
|
},
|
||||||
|
selectionStart: {
|
||||||
|
type: Number,
|
||||||
|
value: -1
|
||||||
|
},
|
||||||
showConfirmBar: {
|
showConfirmBar: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true
|
value: true
|
||||||
|
4
dist/field/index.wxml
vendored
4
dist/field/index.wxml
vendored
@ -27,6 +27,8 @@
|
|||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
adjust-position="{{ adjustPosition }}"
|
adjust-position="{{ adjustPosition }}"
|
||||||
show-confirm-bar="{{ showConfirmBar }}"
|
show-confirm-bar="{{ showConfirmBar }}"
|
||||||
|
selection-end="{{ selectionEnd }}"
|
||||||
|
selection-start="{{ selectionStart }}"
|
||||||
bindinput="onInput"
|
bindinput="onInput"
|
||||||
bind:blur="onBlur"
|
bind:blur="onBlur"
|
||||||
bind:focus="onFocus"
|
bind:focus="onFocus"
|
||||||
@ -51,6 +53,8 @@
|
|||||||
confirm-hold="{{ confirmHold }}"
|
confirm-hold="{{ confirmHold }}"
|
||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
adjust-position="{{ adjustPosition }}"
|
adjust-position="{{ adjustPosition }}"
|
||||||
|
selection-end="{{ selectionEnd }}"
|
||||||
|
selection-start="{{ selectionStart }}"
|
||||||
password="{{ password || type === 'password' }}"
|
password="{{ password || type === 'password' }}"
|
||||||
bindinput="onInput"
|
bindinput="onInput"
|
||||||
bind:blur="onBlur"
|
bind:blur="onBlur"
|
||||||
|
2
dist/info/index.wxml
vendored
2
dist/info/index.wxml
vendored
@ -1,5 +1,5 @@
|
|||||||
<view
|
<view
|
||||||
wx:if="{{ info !== null }}"
|
wx:if="{{ info !== null && info !== '' }}"
|
||||||
class="custom-class van-info"
|
class="custom-class van-info"
|
||||||
style="{{ customStyle }}"
|
style="{{ customStyle }}"
|
||||||
>{{ info }}</view>
|
>{{ info }}</view>
|
||||||
|
2
dist/mixins/transition.js
vendored
2
dist/mixins/transition.js
vendored
@ -49,7 +49,7 @@ export const transition = function (showDefaultValue) {
|
|||||||
enter() {
|
enter() {
|
||||||
const { duration, name } = this.data;
|
const { duration, name } = this.data;
|
||||||
const classNames = getClassNames(name);
|
const classNames = getClassNames(name);
|
||||||
const currentDuration = isObj(duration) ? duration.leave : duration;
|
const currentDuration = isObj(duration) ? duration.enter : duration;
|
||||||
this.status = 'enter';
|
this.status = 'enter';
|
||||||
Promise.resolve()
|
Promise.resolve()
|
||||||
.then(nextTick)
|
.then(nextTick)
|
||||||
|
6
dist/search/index.js
vendored
6
dist/search/index.js
vendored
@ -3,6 +3,7 @@ VantComponent({
|
|||||||
field: true,
|
field: true,
|
||||||
classes: ['field-class', 'input-class', 'cancel-class'],
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
||||||
props: {
|
props: {
|
||||||
|
label: String,
|
||||||
focus: Boolean,
|
focus: Boolean,
|
||||||
error: Boolean,
|
error: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
@ -24,7 +25,10 @@ VantComponent({
|
|||||||
type: String,
|
type: String,
|
||||||
value: 'square'
|
value: 'square'
|
||||||
},
|
},
|
||||||
label: String
|
clearable: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
|
2
dist/search/index.wxml
vendored
2
dist/search/index.wxml
vendored
@ -9,7 +9,6 @@
|
|||||||
<slot wx:else name="label" />
|
<slot wx:else name="label" />
|
||||||
|
|
||||||
<van-field
|
<van-field
|
||||||
clearable
|
|
||||||
type="search"
|
type="search"
|
||||||
left-icon="search"
|
left-icon="search"
|
||||||
focus="{{ focus }}"
|
focus="{{ focus }}"
|
||||||
@ -20,6 +19,7 @@
|
|||||||
value="{{ value }}"
|
value="{{ value }}"
|
||||||
disabled="{{ disabled }}"
|
disabled="{{ disabled }}"
|
||||||
readonly="{{ readonly }}"
|
readonly="{{ readonly }}"
|
||||||
|
clearable="{{ clearable }}"
|
||||||
maxlength="{{ maxlength }}"
|
maxlength="{{ maxlength }}"
|
||||||
input-align="{{ inputAlign }}"
|
input-align="{{ inputAlign }}"
|
||||||
input-class="input-class"
|
input-class="input-class"
|
||||||
|
2
dist/wxs/utils.wxs
vendored
2
dist/wxs/utils.wxs
vendored
@ -2,7 +2,7 @@ var bem = require('./bem.wxs').bem;
|
|||||||
var memoize = require('./memoize.wxs').memoize;
|
var memoize = require('./memoize.wxs').memoize;
|
||||||
|
|
||||||
function isSrc(url) {
|
function isSrc(url) {
|
||||||
return url.indexOf(".") === 0 || url.indexOf("/") === 0 || url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0;
|
return url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -39,7 +39,10 @@ component_1.VantComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.setValues();
|
var _this = this;
|
||||||
|
setTimeout(function () {
|
||||||
|
_this.setValues();
|
||||||
|
}, 0);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPicker: function () {
|
getPicker: function () {
|
||||||
|
@ -8,6 +8,7 @@ component_1.VantComponent({
|
|||||||
classes: ['hover-class', 'loading-class'],
|
classes: ['hover-class', 'loading-class'],
|
||||||
props: {
|
props: {
|
||||||
icon: String,
|
icon: String,
|
||||||
|
color: String,
|
||||||
plain: Boolean,
|
plain: Boolean,
|
||||||
block: Boolean,
|
block: Boolean,
|
||||||
round: Boolean,
|
round: Boolean,
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
|
||||||
open-type="{{ openType }}"
|
open-type="{{ openType }}"
|
||||||
hover-class="van-button--active hover-class"
|
hover-class="van-button--active hover-class"
|
||||||
|
style="{{ color ? 'border-color: ' + color + ';' + (plain ? 'color: ' + color : 'color: #fff; background-color: ' + color) : '' }}"
|
||||||
lang="{{ lang }}"
|
lang="{{ lang }}"
|
||||||
business-id="{{ businessId }}"
|
business-id="{{ businessId }}"
|
||||||
session-from="{{ sessionFrom }}"
|
session-from="{{ sessionFrom }}"
|
||||||
|
@ -30,6 +30,14 @@ component_1.VantComponent({
|
|||||||
placeholder: String,
|
placeholder: String,
|
||||||
placeholderStyle: String,
|
placeholderStyle: String,
|
||||||
errorMessageAlign: String,
|
errorMessageAlign: String,
|
||||||
|
selectionEnd: {
|
||||||
|
type: Number,
|
||||||
|
value: -1
|
||||||
|
},
|
||||||
|
selectionStart: {
|
||||||
|
type: Number,
|
||||||
|
value: -1
|
||||||
|
},
|
||||||
showConfirmBar: {
|
showConfirmBar: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true
|
value: true
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
adjust-position="{{ adjustPosition }}"
|
adjust-position="{{ adjustPosition }}"
|
||||||
show-confirm-bar="{{ showConfirmBar }}"
|
show-confirm-bar="{{ showConfirmBar }}"
|
||||||
|
selection-end="{{ selectionEnd }}"
|
||||||
|
selection-start="{{ selectionStart }}"
|
||||||
bindinput="onInput"
|
bindinput="onInput"
|
||||||
bind:blur="onBlur"
|
bind:blur="onBlur"
|
||||||
bind:focus="onFocus"
|
bind:focus="onFocus"
|
||||||
@ -51,6 +53,8 @@
|
|||||||
confirm-hold="{{ confirmHold }}"
|
confirm-hold="{{ confirmHold }}"
|
||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
adjust-position="{{ adjustPosition }}"
|
adjust-position="{{ adjustPosition }}"
|
||||||
|
selection-end="{{ selectionEnd }}"
|
||||||
|
selection-start="{{ selectionStart }}"
|
||||||
password="{{ password || type === 'password' }}"
|
password="{{ password || type === 'password' }}"
|
||||||
bindinput="onInput"
|
bindinput="onInput"
|
||||||
bind:blur="onBlur"
|
bind:blur="onBlur"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<view
|
<view
|
||||||
wx:if="{{ info !== null }}"
|
wx:if="{{ info !== null && info !== '' }}"
|
||||||
class="custom-class van-info"
|
class="custom-class van-info"
|
||||||
style="{{ customStyle }}"
|
style="{{ customStyle }}"
|
||||||
>{{ info }}</view>
|
>{{ info }}</view>
|
||||||
|
@ -52,7 +52,7 @@ exports.transition = function (showDefaultValue) {
|
|||||||
var _this = this;
|
var _this = this;
|
||||||
var _a = this.data, duration = _a.duration, name = _a.name;
|
var _a = this.data, duration = _a.duration, name = _a.name;
|
||||||
var classNames = getClassNames(name);
|
var classNames = getClassNames(name);
|
||||||
var currentDuration = utils_1.isObj(duration) ? duration.leave : duration;
|
var currentDuration = utils_1.isObj(duration) ? duration.enter : duration;
|
||||||
this.status = 'enter';
|
this.status = 'enter';
|
||||||
Promise.resolve()
|
Promise.resolve()
|
||||||
.then(nextTick)
|
.then(nextTick)
|
||||||
|
@ -5,6 +5,7 @@ component_1.VantComponent({
|
|||||||
field: true,
|
field: true,
|
||||||
classes: ['field-class', 'input-class', 'cancel-class'],
|
classes: ['field-class', 'input-class', 'cancel-class'],
|
||||||
props: {
|
props: {
|
||||||
|
label: String,
|
||||||
focus: Boolean,
|
focus: Boolean,
|
||||||
error: Boolean,
|
error: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
@ -26,7 +27,10 @@ component_1.VantComponent({
|
|||||||
type: String,
|
type: String,
|
||||||
value: 'square'
|
value: 'square'
|
||||||
},
|
},
|
||||||
label: String
|
clearable: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange: function (event) {
|
onChange: function (event) {
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
<slot wx:else name="label" />
|
<slot wx:else name="label" />
|
||||||
|
|
||||||
<van-field
|
<van-field
|
||||||
clearable
|
|
||||||
type="search"
|
type="search"
|
||||||
left-icon="search"
|
left-icon="search"
|
||||||
focus="{{ focus }}"
|
focus="{{ focus }}"
|
||||||
@ -20,6 +19,7 @@
|
|||||||
value="{{ value }}"
|
value="{{ value }}"
|
||||||
disabled="{{ disabled }}"
|
disabled="{{ disabled }}"
|
||||||
readonly="{{ readonly }}"
|
readonly="{{ readonly }}"
|
||||||
|
clearable="{{ clearable }}"
|
||||||
maxlength="{{ maxlength }}"
|
maxlength="{{ maxlength }}"
|
||||||
input-align="{{ inputAlign }}"
|
input-align="{{ inputAlign }}"
|
||||||
input-class="input-class"
|
input-class="input-class"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user