123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import { Config } from "@/types/config";
- const config: Config = {
- url: "https://element.eleme.cn/#/zh-CN/component/date-picker",
- attrs: {
- placeholder: {
- type: "input",
- label: "占位内容"
- },
- format: {
- type: "input",
- label: "显示在输入框中的格式"
- },
- clearable: {
- type: "switch",
- label: "是否显示清除按钮"
- },
- editable: {
- type: "switch",
- label: "文本框可输入"
- },
- size: {
- type: "select",
- label: "输入框尺寸",
- options: [{ text: "默认", value: null }, "medium", "small", "mini"]
- },
- popperClass: {
- type: "input",
- label: "DatePicker 下拉框的类名"
- },
- prefixIcon: {
- type: "input",
- label: "自定义头部图标的类名"
- },
- clearIcon: {
- type: "input",
- label: "自定义清空图标的类名"
- },
- readonly: {
- type: "switch",
- label: "完全只读"
- }
- },
- attrsData: {},
- attrsDefaultData: {
- readonly: false,
- editable: true,
- clearable: true,
- size: null,
- prefixIcon: "el-icon-date",
- clearIcon: "el-icon-circle-close"
- },
- common: {
- default: {
- type: "year",
- label: "默认值"
- }
- },
- commonData: {},
- commonDefaultData: {}
- };
- export default config;
|