mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-20 17:42:57 +00:00
55 lines
1.2 KiB
TypeScript
55 lines
1.2 KiB
TypeScript
import { Component } from 'rax';
|
|
|
|
class Slot extends Component {
|
|
static displayName = 'Slot';
|
|
|
|
static componentMetadata = {
|
|
componentName: 'Slot',
|
|
configure: {
|
|
props: [{
|
|
name: '___title',
|
|
title: {
|
|
type: 'i18n',
|
|
'en-US': 'Slot Title',
|
|
'zh-CN': '插槽标题',
|
|
},
|
|
setter: 'StringSetter',
|
|
defaultValue: '插槽容器',
|
|
}, {
|
|
name: '___params',
|
|
title: {
|
|
type: 'i18n',
|
|
'en-US': 'Slot Params',
|
|
'zh-CN': '插槽入参',
|
|
},
|
|
setter: {
|
|
componentName: 'ArraySetter',
|
|
props: {
|
|
itemSetter: {
|
|
componentName: 'StringSetter',
|
|
props: {
|
|
placeholder: {
|
|
type: 'i18n',
|
|
'zh-CN': '参数名称',
|
|
'en-US': 'Argument Name',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}],
|
|
// events/className/style/general/directives
|
|
supports: false,
|
|
},
|
|
};
|
|
|
|
render() {
|
|
const { children } = this.props;
|
|
return (
|
|
<div className="lc-container">{children}</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Slot;
|