ASTRO轻应用 ASTROZERO-propertiesConfig:组件配置项
组件配置项
配置示例如下,配置后效果如图2所示,组件配置项详细介绍请参见表1。
{ migrateFrom: "advancedSettings", headerTitle: { zh_CN: "下拉选择框设置", en_US: "Setting the select box" }, belong: "configuration", config: [ { type: "text", name: "defaultSelectValue", parentName: "selectConfObj", value: "请选择", label: { zh_CN: "默认选择项", en_US: "Default selection" }, }, { type: "select", name: "fontFamily", parentName: "selectConfObj", label: { zh_CN: "字体", en_US: "Font" }, value: "sans-serif", noClearable: true, options: [ { label: "sans-serif", value: "sans-serif", selected: "true", }, ], showFunc: function () { return false; }, }, { type: "select", name: "fontWeight", parentName: "selectConfObj", value: "normal", label: { zh_CN: "字体粗细", en_US: "Font Weight" }, noClearable: true, options: [ { label: { zh_CN: "正常", en_US: "Normal" }, value: "normal", }, { label: { zh_CN: "粗体", en_US: "Bold" }, value: "bold", }, { label: { zh_CN: "细体", en_US: "Lighter" }, value: "lighter", }, ], showFunc: function () { return false; }, }, { type: "slider", name: "fontSize", parentName: "selectConfObj", label: { zh_CN: "字体大小", en_US: "Font Size" }, value: 12, min: 0, max: 200, showInput: true, showFunc: function () { return false; }, }, { type: "colorpicker", name: "fontColor", parentName: "selectConfObj", label: { zh_CN: "字体颜色", en_US: "Font Color" }, value: "", showFunc: function () { return false; }, }, { type: "font", subType: "notChart", prop: "commProps", parentName: "commProps", label: { zh_CN: "字体", en_US: "Font" }, fontFamilyKey: "fontFamily", fontWeightKey: "fontWeight", fontSizeKey: "fontSize", fontColorKey: "fontColor", }, { type: "colorpicker", name: "backgroundColor", parentName: "selectConfObj", label: { zh_CN: "背景颜色", en_US: "Background Color" }, value: "", }, { type: "colorpicker", name: "borderColor", parentName: "selectConfObj", label: { zh_CN: "边框颜色", en_US: "Border Color" }, value: "", }, { type: "colorpicker", name: "borderColorFocus", parentName: "selectConfObj", label: { zh_CN: "边框聚焦颜色", en_US: "Border Focus Color" }, value: "", }, { type: "colorpicker", name: "borderColorHover", parentName: "selectConfObj", label: { zh_CN: "边框悬浮颜色", en_US: "Border floating Color" }, value: "", }, { type: "text", name: "placeholder", parentName: "selectConfObj", label: { zh_CN: "占位符", en_US: "Placeholder" }, value: "请选择", }, { type: "tab", name: "disabled", parentName: "selectConfObj", label: { zh_CN: "是否禁用", en_US: "Disable" }, value: false, options: [ { label: { zh_CN: "禁用", en_US: "Disable" }, value: true, }, { label: { zh_CN: "可用", en_US: "Available" }, value: false, }, ], }, ], }
字段 |
类型 |
示例 |
说明 |
---|---|---|---|
migrateFrom |
String |
migrateFrom: "advancedSettings" |
固定写法,配置后非AstroCanvas平台右侧属性面板会过滤掉配置项。 |
headerTitle |
Object |
headerTitle: { zh_CN: "行配置", en_US: "Row Configuration" }, |
标题,需要国际化。 |
belong |
String |
belong: "configuration", |
归属于classfication中哪一个分类。 |
config |
Array |
config: [] |
config数组中,每一个对象保存的配置项信息。config中,配置项的介绍,请参见组件配置项(Config配置)。 |
- Astro轻应用_Astro大屏应用_分钟级构建业务大屏
- Astro轻应用_低代码开发平台Astro Zero_新手入门
- Astro轻应用_低代码开发平台Astro Zero_码农防脱神器
- Astro轻应用_零代码平台_开发无忧加速创新
- 华为云低代码平台_低代码开发平台_华为云Astro-华为云
- Astro低代码平台关键能力_低代码开发平台_华为云Astro-华为云
- 华为云Astro低代码开发平台的技术价值与使用体验_低代码开发平台_华为云Astro-华为云
- 华为云零代码平台AstroZero创建培训报名表_低代码开发平台_华为云Astro-华为云
- 低代码开发平台好用吗_低代码平台_Astro低代码-华为云
- 华为云Astro低代码平台能力_华为云Astro_低代码平台-华为云