refactor: 高级属性放到「属性」面板中

This commit is contained in:
mario.gk 2020-07-28 14:04:15 +08:00
parent f5d8c9c002
commit 655192135f

View File

@ -132,10 +132,11 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
let l = propsGroup.length; let l = propsGroup.length;
while (l-- > 0) { while (l-- > 0) {
const item = propsGroup[l]; const item = propsGroup[l];
if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) { // if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) {
advanceGroup = item.items || []; // advanceGroup = item.items || [];
propsGroup.splice(l, 1); // propsGroup.splice(l, 1);
} else if (item.name === '__style__' || item.name === 'containerStyle' || item.name === 'pageStyle') { // }
if (item.name === '__style__' || item.name === 'containerStyle' || item.name === 'pageStyle') {
propsGroup.splice(l, 1); propsGroup.splice(l, 1);
stylesGroup.push(item); stylesGroup.push(item);
if (item.extraProps?.defaultCollapsed && item.name !== 'containerStyle') { if (item.extraProps?.defaultCollapsed && item.name !== 'containerStyle') {