mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2026-07-06 14:51:06 +08:00
Compare commits
3 Commits
6bf19926a4
...
058a00ed33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
058a00ed33 | ||
|
|
e2e0a2bcb1 | ||
|
|
687c7c10f9 |
@ -27,7 +27,8 @@ VantComponent({
|
||||
observer: 'setValues',
|
||||
},
|
||||
columnsNum: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 3,
|
||||
},
|
||||
columnsPlaceholder: {
|
||||
|
||||
@ -365,7 +365,6 @@ VantComponent({
|
||||
if (maxRange && calcDateNum(date) > maxRange) {
|
||||
if (showRangePrompt) {
|
||||
Toast({
|
||||
duration: 0,
|
||||
context: this,
|
||||
message: rangePrompt || `选择天数不能超过 ${maxRange} 天`,
|
||||
});
|
||||
|
||||
@ -31,7 +31,8 @@ VantComponent({
|
||||
value: 'round',
|
||||
},
|
||||
iconSize: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 20,
|
||||
},
|
||||
},
|
||||
|
||||
@ -41,7 +41,8 @@ VantComponent({
|
||||
value: WHITE,
|
||||
},
|
||||
color: {
|
||||
type: null,
|
||||
type: String,
|
||||
optionalTypes: [Object],
|
||||
value: BLUE,
|
||||
observer() {
|
||||
this.setHoverColor().then(() => {
|
||||
|
||||
@ -10,7 +10,8 @@ VantComponent({
|
||||
observer: 'updateChildren',
|
||||
},
|
||||
gutter: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 0,
|
||||
observer: 'updateChildren',
|
||||
},
|
||||
|
||||
@ -5,7 +5,8 @@ VantComponent({
|
||||
show: Boolean,
|
||||
customStyle: String,
|
||||
duration: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 300,
|
||||
},
|
||||
zIndex: {
|
||||
|
||||
@ -25,8 +25,9 @@ VantComponent({
|
||||
value: '#fff',
|
||||
},
|
||||
strokeWidth: {
|
||||
type: null,
|
||||
type: Number,
|
||||
value: 4,
|
||||
optionalTypes: [String],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@ -27,7 +27,8 @@ VantComponent({
|
||||
value: 'round',
|
||||
},
|
||||
iconSize: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 20,
|
||||
},
|
||||
},
|
||||
|
||||
@ -34,7 +34,8 @@ VantComponent({
|
||||
value: true,
|
||||
},
|
||||
duration: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 300,
|
||||
},
|
||||
},
|
||||
|
||||
@ -33,9 +33,10 @@ VantComponent({
|
||||
value: '40%',
|
||||
},
|
||||
rowWidth: {
|
||||
type: null,
|
||||
type: String,
|
||||
optionalTypes: [Array],
|
||||
value: '100%',
|
||||
observer(val) {
|
||||
observer(val: string | string[]) {
|
||||
this.setData({ isArray: val instanceof Array });
|
||||
},
|
||||
},
|
||||
|
||||
@ -28,7 +28,8 @@ VantComponent({
|
||||
},
|
||||
asyncClose: Boolean,
|
||||
name: {
|
||||
type: null,
|
||||
type: String,
|
||||
optionalTypes: [Number],
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
|
||||
@ -37,12 +37,14 @@ VantComponent({
|
||||
},
|
||||
},
|
||||
lineWidth: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 40,
|
||||
observer: 'resize',
|
||||
},
|
||||
lineHeight: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: -1,
|
||||
},
|
||||
active: {
|
||||
@ -98,7 +100,7 @@ VantComponent({
|
||||
scrollLeft: 0,
|
||||
scrollable: false,
|
||||
currentIndex: 0,
|
||||
container: null as unknown as () => WechatMiniprogram.NodesRef,
|
||||
container: (null as unknown) as () => WechatMiniprogram.NodesRef,
|
||||
skipTransition: true,
|
||||
scrollWithAnimation: false,
|
||||
lineOffsetLeft: 0,
|
||||
|
||||
@ -22,7 +22,8 @@ VantComponent({
|
||||
observer: 'updateSubItems',
|
||||
},
|
||||
height: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 300,
|
||||
},
|
||||
max: {
|
||||
|
||||
@ -12,11 +12,13 @@ VantComponent({
|
||||
afterRead: null,
|
||||
beforeRead: null,
|
||||
previewSize: {
|
||||
type: null,
|
||||
type: Number,
|
||||
optionalTypes: [String],
|
||||
value: 80,
|
||||
},
|
||||
name: {
|
||||
type: null,
|
||||
type: String,
|
||||
optionalTypes: [Number],
|
||||
value: '',
|
||||
},
|
||||
accept: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user