mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
build: compile 1.4.0-beta.2
This commit is contained in:
parent
92a0934bdf
commit
eea6059181
1
dist/cell/index.js
vendored
1
dist/cell/index.js
vendored
@ -27,6 +27,7 @@ VantComponent({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true,
|
value: true,
|
||||||
},
|
},
|
||||||
|
titleStyle: String,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
|
2
dist/cell/index.wxml
vendored
2
dist/cell/index.wxml
vendored
@ -16,7 +16,7 @@
|
|||||||
<slot wx:else name="icon" />
|
<slot wx:else name="icon" />
|
||||||
|
|
||||||
<view
|
<view
|
||||||
style="{{ titleWidth ? 'max-width:' + titleWidth + ';min-width:' + titleWidth : '' }}"
|
style="{{ (titleWidth ? 'max-width:' + titleWidth + ';min-width:' + titleWidth + ';' : '') + titleStyle }}"
|
||||||
class="van-cell__title title-class"
|
class="van-cell__title title-class"
|
||||||
>
|
>
|
||||||
<block wx:if="{{ title }}">{{ title }}</block>
|
<block wx:if="{{ title }}">{{ title }}</block>
|
||||||
|
5
dist/dialog/dialog.js
vendored
5
dist/dialog/dialog.js
vendored
@ -14,6 +14,9 @@ const Dialog = (options) => {
|
|||||||
dialog.setData(
|
dialog.setData(
|
||||||
Object.assign({ onCancel: reject, onConfirm: resolve }, options)
|
Object.assign({ onCancel: reject, onConfirm: resolve }, options)
|
||||||
);
|
);
|
||||||
|
wx.nextTick(() => {
|
||||||
|
dialog.setData({ show: true });
|
||||||
|
});
|
||||||
queue.push(dialog);
|
queue.push(dialog);
|
||||||
} else {
|
} else {
|
||||||
console.warn(
|
console.warn(
|
||||||
@ -23,7 +26,7 @@ const Dialog = (options) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Dialog.defaultOptions = {
|
Dialog.defaultOptions = {
|
||||||
show: true,
|
show: false,
|
||||||
title: '',
|
title: '',
|
||||||
width: null,
|
width: null,
|
||||||
message: '',
|
message: '',
|
||||||
|
1
dist/field/index.wxml
vendored
1
dist/field/index.wxml
vendored
@ -10,6 +10,7 @@
|
|||||||
required="{{ required }}"
|
required="{{ required }}"
|
||||||
clickable="{{ clickable }}"
|
clickable="{{ clickable }}"
|
||||||
title-width="{{ titleWidth }}"
|
title-width="{{ titleWidth }}"
|
||||||
|
title-style="margin-right: 12px;"
|
||||||
custom-style="{{ customStyle }}"
|
custom-style="{{ customStyle }}"
|
||||||
arrow-direction="{{ arrowDirection }}"
|
arrow-direction="{{ arrowDirection }}"
|
||||||
custom-class="van-field"
|
custom-class="van-field"
|
||||||
|
2
dist/field/index.wxss
vendored
2
dist/field/index.wxss
vendored
@ -1 +1 @@
|
|||||||
@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566);margin-right:12px;margin-right:var(--field-label-margin-right,12px)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{line-height:1.2em}.van-field__body--textarea,.van-field__input{min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__input{position:relative;display:block;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px)}.van-field__input--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__input--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__input--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__input--center{text-align:center}.van-field__input--right{text-align:right}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
|
@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{line-height:1.2em}.van-field__body--textarea,.van-field__input{min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__input{position:relative;display:block;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px)}.van-field__input--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__input--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__input--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__input--center{text-align:center}.van-field__input--right{text-align:right}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
|
4
dist/nav-bar/index.wxml
vendored
4
dist/nav-bar/index.wxml
vendored
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<view
|
<view
|
||||||
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}"
|
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}"
|
||||||
style="{{ baseStyle }}"
|
style="{{ baseStyle }}; {{ customStyle }}"
|
||||||
>
|
>
|
||||||
<view class="van-nav-bar__content" style="{{ customStyle }}">
|
<view class="van-nav-bar__content">
|
||||||
<view class="van-nav-bar__left" bind:tap="onClickLeft">
|
<view class="van-nav-bar__left" bind:tap="onClickLeft">
|
||||||
<block wx:if="{{ leftArrow || leftText }}">
|
<block wx:if="{{ leftArrow || leftText }}">
|
||||||
<van-icon
|
<van-icon
|
||||||
|
5
dist/popup/index.js
vendored
5
dist/popup/index.js
vendored
@ -68,12 +68,15 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
observeClass() {
|
observeClass() {
|
||||||
const { transition, position } = this.data;
|
const { transition, position, duration } = this.data;
|
||||||
const updateData = {
|
const updateData = {
|
||||||
name: transition || position,
|
name: transition || position,
|
||||||
};
|
};
|
||||||
if (transition === 'none') {
|
if (transition === 'none') {
|
||||||
updateData.duration = 0;
|
updateData.duration = 0;
|
||||||
|
this.originDuration = duration;
|
||||||
|
} else if (this.originDuration != null) {
|
||||||
|
updateData.duration = this.originDuration;
|
||||||
}
|
}
|
||||||
this.setData(updateData);
|
this.setData(updateData);
|
||||||
},
|
},
|
||||||
|
@ -29,6 +29,7 @@ component_1.VantComponent({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true,
|
value: true,
|
||||||
},
|
},
|
||||||
|
titleStyle: String,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClick: function (event) {
|
onClick: function (event) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<slot wx:else name="icon" />
|
<slot wx:else name="icon" />
|
||||||
|
|
||||||
<view
|
<view
|
||||||
style="{{ titleWidth ? 'max-width:' + titleWidth + ';min-width:' + titleWidth : '' }}"
|
style="{{ (titleWidth ? 'max-width:' + titleWidth + ';min-width:' + titleWidth + ';' : '') + titleStyle }}"
|
||||||
class="van-cell__title title-class"
|
class="van-cell__title title-class"
|
||||||
>
|
>
|
||||||
<block wx:if="{{ title }}">{{ title }}</block>
|
<block wx:if="{{ title }}">{{ title }}</block>
|
||||||
|
@ -31,6 +31,9 @@ var Dialog = function (options) {
|
|||||||
dialog.setData(
|
dialog.setData(
|
||||||
__assign({ onCancel: reject, onConfirm: resolve }, options)
|
__assign({ onCancel: reject, onConfirm: resolve }, options)
|
||||||
);
|
);
|
||||||
|
wx.nextTick(function () {
|
||||||
|
dialog.setData({ show: true });
|
||||||
|
});
|
||||||
queue.push(dialog);
|
queue.push(dialog);
|
||||||
} else {
|
} else {
|
||||||
console.warn(
|
console.warn(
|
||||||
@ -40,7 +43,7 @@ var Dialog = function (options) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Dialog.defaultOptions = {
|
Dialog.defaultOptions = {
|
||||||
show: true,
|
show: false,
|
||||||
title: '',
|
title: '',
|
||||||
width: null,
|
width: null,
|
||||||
message: '',
|
message: '',
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
required="{{ required }}"
|
required="{{ required }}"
|
||||||
clickable="{{ clickable }}"
|
clickable="{{ clickable }}"
|
||||||
title-width="{{ titleWidth }}"
|
title-width="{{ titleWidth }}"
|
||||||
|
title-style="margin-right: 12px;"
|
||||||
custom-style="{{ customStyle }}"
|
custom-style="{{ customStyle }}"
|
||||||
arrow-direction="{{ arrowDirection }}"
|
arrow-direction="{{ arrowDirection }}"
|
||||||
custom-class="van-field"
|
custom-class="van-field"
|
||||||
|
@ -1 +1 @@
|
|||||||
@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566);margin-right:12px;margin-right:var(--field-label-margin-right,12px)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{line-height:1.2em}.van-field__body--textarea,.van-field__input{min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__input{position:relative;display:block;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px)}.van-field__input--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__input--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__input--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__input--center{text-align:center}.van-field__input--right{text-align:right}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
|
@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{line-height:1.2em}.van-field__body--textarea,.van-field__input{min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__input{position:relative;display:block;box-sizing:border-box;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px)}.van-field__input--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__input--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__input--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__input--center{text-align:center}.van-field__input--right{text-align:right}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<view
|
<view
|
||||||
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}"
|
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}"
|
||||||
style="{{ baseStyle }}"
|
style="{{ baseStyle }}; {{ customStyle }}"
|
||||||
>
|
>
|
||||||
<view class="van-nav-bar__content" style="{{ customStyle }}">
|
<view class="van-nav-bar__content">
|
||||||
<view class="van-nav-bar__left" bind:tap="onClickLeft">
|
<view class="van-nav-bar__left" bind:tap="onClickLeft">
|
||||||
<block wx:if="{{ leftArrow || leftText }}">
|
<block wx:if="{{ leftArrow || leftText }}">
|
||||||
<van-icon
|
<van-icon
|
||||||
|
@ -72,12 +72,16 @@ component_1.VantComponent({
|
|||||||
observeClass: function () {
|
observeClass: function () {
|
||||||
var _a = this.data,
|
var _a = this.data,
|
||||||
transition = _a.transition,
|
transition = _a.transition,
|
||||||
position = _a.position;
|
position = _a.position,
|
||||||
|
duration = _a.duration;
|
||||||
var updateData = {
|
var updateData = {
|
||||||
name: transition || position,
|
name: transition || position,
|
||||||
};
|
};
|
||||||
if (transition === 'none') {
|
if (transition === 'none') {
|
||||||
updateData.duration = 0;
|
updateData.duration = 0;
|
||||||
|
this.originDuration = duration;
|
||||||
|
} else if (this.originDuration != null) {
|
||||||
|
updateData.duration = this.originDuration;
|
||||||
}
|
}
|
||||||
this.setData(updateData);
|
this.setData(updateData);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user