1
0
mirror of synced 2026-03-25 04:28:34 +08:00

feat: 新增蒙层组件

This commit is contained in:
roymondchen
2022-05-27 18:47:29 +08:00
committed by jia000
parent 0397c6887a
commit 44aa56bd52
62 changed files with 1045 additions and 41 deletions

View File

@@ -34,7 +34,7 @@ const Text: React.FC<TextProps> = ({ config }) => {
const [displayText] = useState(config.text);
return (
<p ref={ref} className="magic-ui-text" style={app.transformStyle(config.style || {})} id={config.id as string}>
<p ref={ref} className="magic-ui-text" style={app.transformStyle(config.style || {})} id={`${config.id || ''}`}>
{displayText}
</p>
);

View File

@@ -16,4 +16,14 @@
* limitations under the License.
*/
export default [];
export default [
{
name: 'text',
text: '文本',
},
{
name: 'multiple',
text: '多行文本',
type: 'switch',
},
];