1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import { Config } from "@/types/config";
- const config: Config = {
- url: "https://element.eleme.cn/#/zh-CN/component/radio#an-niu-yang-shi",
- attrs: {
- size: {
- type: "select",
- label: "单选框组尺寸",
- options: [{ text: "默认", value: null }, "medium", "small", "mini"]
- },
- textColor: {
- type: "color",
- label: "Radio 激活时的文本颜色"
- },
- fill: {
- type: "color",
- label: "Radio 激活时的填充色和边框色"
- }
- },
- attrsData: {},
- attrsDefaultData: {
- size: null,
- textColor: "#ffffff",
- fill: "#409EFF"
- },
- common: {
- default: {
- type: "radio",
- label: "默认值",
- isReloadOptions: true,
- options: data => data.options
- },
- options: {
- type: "json-editor",
- label: "选项",
- tip:
- 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
- }
- },
- commonData: {
- options: [
- { text: "选项1", value: 1 },
- { text: "选项2", value: 2 },
- { text: "选项3", value: 3 }
- ]
- },
- commonDefaultData: {}
- };
- export default config;
|