Compare commits

...

3 Commits

Author SHA1 Message Date
nemo-shen
058a00ed33
fix(Calendar): remove duration 0 (#4474) 2021-09-10 11:06:58 +08:00
nemo-shen
e2e0a2bcb1
refactor(VantComponent): remove null type (#4476) 2021-09-10 11:06:32 +08:00
nemo-shen
687c7c10f9
refactor(Progress): remove null type (#4475) 2021-09-10 11:06:06 +08:00
14 changed files with 32 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 });
},
},

View File

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

View File

@ -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,

View File

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

View File

@ -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: {