antd 指定版本5.11.0
This commit is contained in:
parent
a33c910824
commit
054352b411
|
|
@ -539,8 +539,7 @@ function translatePropertiesToPropertyDefinitions(properties) {
|
|||
type: String,
|
||||
value: properties[prop],
|
||||
};
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
definitions[prop] = String;
|
||||
}
|
||||
break;
|
||||
|
|
@ -566,25 +565,27 @@ function translatePropertiesToPropertyDefinitions(properties) {
|
|||
type: Array,
|
||||
value: properties[prop],
|
||||
};
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
definitions[prop] = Array;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (Object.keys(properties[prop]).length > 0) {
|
||||
definitions[prop] = {
|
||||
type: Object,
|
||||
value: properties[prop],
|
||||
};
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
definitions[prop] = Object;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'function':
|
||||
case 'function': {
|
||||
Object.assign(definitions, {
|
||||
[prop]: Object,
|
||||
});
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
// 小程序也支持传函数 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html
|
||||
// 其它什么类型都写null,小程序能识别出来
|
||||
|
|
|
|||
|
|
@ -587,7 +587,11 @@ function translatePropertiesToPropertyDefinitions(properties) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'function':
|
||||
case 'function': {
|
||||
Object.assign(definitions, {
|
||||
[prop]: Object,
|
||||
});
|
||||
}
|
||||
default: {
|
||||
// 小程序也支持传函数 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html
|
||||
// 其它什么类型都写null,小程序能识别出来
|
||||
|
|
|
|||
22
package.json
22
package.json
|
|
@ -31,16 +31,16 @@
|
|||
"weapp.socket.io": "^2.2.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@ant-design/icons": "^5.2.6",
|
||||
"antd": "^5.8.3",
|
||||
"antd-mobile": "^5.32.0",
|
||||
"antd-mobile-icons": "^0.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.3.0"
|
||||
"@ant-design/icons": ">=5.2.6",
|
||||
"antd": ">=5.11.0",
|
||||
"antd-mobile": ">=5.33.0",
|
||||
"antd-mobile-icons": ">=0.3.0",
|
||||
"react": ">=18.2.0",
|
||||
"react-dom": ">=18.1.0",
|
||||
"react-router-dom": ">=6.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ant-design/icons": "^5.2.6",
|
||||
"@ant-design/icons": "5.2.6",
|
||||
"@babel/cli": "^7.12.13",
|
||||
"@babel/core": "^7.12.13",
|
||||
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
||||
|
|
@ -57,9 +57,9 @@
|
|||
"@types/react-dom": "^18.2.14",
|
||||
"@types/uuid": "^9.0.6",
|
||||
"@types/wechat-miniprogram": "^3.4.5",
|
||||
"antd": "^5.9.0",
|
||||
"antd-mobile": "^5.32.0",
|
||||
"antd-mobile-icons": "^0.3.0",
|
||||
"antd": "5.11.0",
|
||||
"antd-mobile": "5.33.0",
|
||||
"antd-mobile-icons": "0.3.0",
|
||||
"assert": "^2.0.0",
|
||||
"copyfiles": "^2.4.1",
|
||||
"cross-env": "^7.0.2",
|
||||
|
|
|
|||
|
|
@ -815,7 +815,11 @@ function translatePropertiesToPropertyDefinitions(properties?: DataOption) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'function':
|
||||
case 'function': {
|
||||
Object.assign(definitions, {
|
||||
[prop]: Object,
|
||||
});
|
||||
}
|
||||
default: {
|
||||
// 小程序也支持传函数 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html
|
||||
// 其它什么类型都写null,小程序能识别出来
|
||||
|
|
|
|||
Loading…
Reference in New Issue