...
代码块 | ||||
---|---|---|---|---|
| ||||
//file = app/default-setting/element.js
import * as ELEMENT from "constants/element-keys";
import * as INLINE from "constants/inline-pages-names";
import ElementTypes from "@fe-plugin/components/lib/constants/element-types";
//导出一个包含按钮元素、图片元素的配置
export default [
{
key: ELEMENT.BTN_A,
name: "这是组件中的按钮",
type: ElementTypes.BTN,
label: "非常好",
style: {
position: "absolute",
left: 42,
top: 353,
width: 235,
height: 39,
backgroundColor: "rgba(224,47,36,1)",
borderRadius: 20,
fontSize: 15,
fontWeight: 600,
color: "rgba(255,255,255,1)",
},
parentName: "组件名称",
},
{
key: ELEMENT.IMAGE_A,
name: "测试图片",
type: ElementTypes.IMAGE,
text: "测试图片",
style: {
position: "absolute",
left: 75,
top: 123,
width: 169,
height: 145,
},
parentName: "组件名称",
src: "https://static.h5no1.com/rp/plugin/assets/484a0326-0091-433c-8133-d5989b7b588d",
},
] |
...