fix(VantComponent): remove optionalTypes (#4501)

* fix(VantComponent): remove optionalTypes

* fix: reset project.config.json
This commit is contained in:
nemo-shen 2021-09-18 10:02:06 +08:00 committed by GitHub
parent 5fcb206f2a
commit 3afe10c0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 17 additions and 33 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,9 +27,8 @@ VantComponent({
value: 1, value: 1,
}, },
value: { value: {
type: Number, type: null,
value: 0, value: 0,
optionalTypes: [Array],
observer(val) { observer(val) {
if (val !== this.value) { if (val !== this.value) {
this.updateValue(val); this.updateValue(val);

View File

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

View File

@ -37,14 +37,12 @@ VantComponent({
}, },
}, },
lineWidth: { lineWidth: {
type: Number, type: null,
optionalTypes: [String],
value: 40, value: 40,
observer: 'resize', observer: 'resize',
}, },
lineHeight: { lineHeight: {
type: Number, type: null,
optionalTypes: [String],
value: -1, value: -1,
}, },
active: { active: {

View File

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

View File

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