Compare commits

..

No commits in common. "058a00ed331b73a2db752ccc725e45e0808c6313" and "6bf19926a481c7e4dc7e2d1dcd4f4c5097e05bee" have entirely different histories.

14 changed files with 18 additions and 32 deletions

View File

@ -27,8 +27,7 @@ VantComponent({
observer: 'setValues',
},
columnsNum: {
type: Number,
optionalTypes: [String],
type: null,
value: 3,
},
columnsPlaceholder: {

View File

@ -365,6 +365,7 @@ VantComponent({
if (maxRange && calcDateNum(date) > maxRange) {
if (showRangePrompt) {
Toast({
duration: 0,
context: this,
message: rangePrompt || `选择天数不能超过 ${maxRange}`,
});

View File

@ -31,8 +31,7 @@ VantComponent({
value: 'round',
},
iconSize: {
type: Number,
optionalTypes: [String],
type: null,
value: 20,
},
},

View File

@ -41,8 +41,7 @@ VantComponent({
value: WHITE,
},
color: {
type: String,
optionalTypes: [Object],
type: null,
value: BLUE,
observer() {
this.setHoverColor().then(() => {

View File

@ -10,8 +10,7 @@ VantComponent({
observer: 'updateChildren',
},
gutter: {
type: Number,
optionalTypes: [String],
type: null,
value: 0,
observer: 'updateChildren',
},

View File

@ -5,8 +5,7 @@ VantComponent({
show: Boolean,
customStyle: String,
duration: {
type: Number,
optionalTypes: [String],
type: null,
value: 300,
},
zIndex: {

View File

@ -25,9 +25,8 @@ VantComponent({
value: '#fff',
},
strokeWidth: {
type: Number,
type: null,
value: 4,
optionalTypes: [String],
},
},

View File

@ -27,8 +27,7 @@ VantComponent({
value: 'round',
},
iconSize: {
type: Number,
optionalTypes: [String],
type: null,
value: 20,
},
},

View File

@ -34,8 +34,7 @@ VantComponent({
value: true,
},
duration: {
type: Number,
optionalTypes: [String],
type: null,
value: 300,
},
},

View File

@ -33,10 +33,9 @@ VantComponent({
value: '40%',
},
rowWidth: {
type: String,
optionalTypes: [Array],
type: null,
value: '100%',
observer(val: string | string[]) {
observer(val) {
this.setData({ isArray: val instanceof Array });
},
},

View File

@ -28,8 +28,7 @@ VantComponent({
},
asyncClose: Boolean,
name: {
type: String,
optionalTypes: [Number],
type: null,
value: '',
},
},

View File

@ -37,14 +37,12 @@ VantComponent({
},
},
lineWidth: {
type: Number,
optionalTypes: [String],
type: null,
value: 40,
observer: 'resize',
},
lineHeight: {
type: Number,
optionalTypes: [String],
type: null,
value: -1,
},
active: {
@ -100,7 +98,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,

View File

@ -22,8 +22,7 @@ VantComponent({
observer: 'updateSubItems',
},
height: {
type: Number,
optionalTypes: [String],
type: null,
value: 300,
},
max: {

View File

@ -12,13 +12,11 @@ VantComponent({
afterRead: null,
beforeRead: null,
previewSize: {
type: Number,
optionalTypes: [String],
type: null,
value: 80,
},
name: {
type: String,
optionalTypes: [Number],
type: null,
value: '',
},
accept: {