vendor: amis 6.13.0 base (fork root)
This commit is contained in:
42
packages/amis-editor/examples/layout/plugin/Layout1_3.tsx
Normal file
42
packages/amis-editor/examples/layout/plugin/Layout1_3.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* @file Flex 常见布局 1:3
|
||||
*/
|
||||
import {FlexPluginBase} from '../../../src/plugin/Layout/FlexPluginBase';
|
||||
|
||||
export default class Layout1_3 extends FlexPluginBase {
|
||||
name = '1:3 布局';
|
||||
isBaseComponent = false;
|
||||
pluginIcon = 'layout-2cols-plugin';
|
||||
description = '常见布局:1:3 布局(基于 CSS Flex 实现的布局容器)。';
|
||||
tags = ['常见布局'];
|
||||
order = 202;
|
||||
scaffold: any = {
|
||||
type: 'flex',
|
||||
className: 'p-1',
|
||||
items: [
|
||||
{
|
||||
type: 'wrapper',
|
||||
size: 'xs',
|
||||
body: [],
|
||||
style: {
|
||||
flex: '1 1 auto',
|
||||
flexBasis: 'auto',
|
||||
flexGrow: 1,
|
||||
display: 'block'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'wrapper',
|
||||
size: 'xs',
|
||||
body: [],
|
||||
style: {
|
||||
flex: '1 1 auto',
|
||||
flexBasis: 'auto',
|
||||
flexGrow: 3,
|
||||
display: 'block'
|
||||
}
|
||||
}
|
||||
],
|
||||
alignItems: 'stretch'
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user