UNPKG

bd-admin

Version:

一款能根据需求快速配置vue后台管理的脚手架

126 lines (125 loc) 3.33 kB
class Attribute { constructor(key, value) { this.key = key; this.value = value; } } export const mappingData = { sourceUILibrary: "elementUi", componentMappings: { "el-menu": { antdv: "a-menu", }, "el-menu-item": { antdv: "a-menu-item", }, "el-sub-menu": { antdv: "a-sub-menu", }, "el-input": { antdv: "a-input", }, "el-button": { antdv: "a-button", }, "el-breadcrumb": { antdv: "a-breadcrumb", }, "el-breadcrumb-item": { antdv: "a-breadcrumb-item", }, "el-avatar": { antdv: "a-avatar", }, "el-dropdown": { antdv: "a-dropdown", }, "el-dropdown-menu": { antdv: "a-menu", }, "el-dropdown-item": { antdv: "a-menu-item", }, "el-tooltip": { antdv: "a-tooltip", }, "el-form": { antdv: "a-form", }, "el-form-item": { antdv: "a-form-item", }, "el-dialog": { antdv: "a-modal", }, "el-select": { antdv: "a-select", }, "el-option": { antdv: "a-option", }, }, attributeMappings: { "el-menu": { "collapse-transition": { antdv: (value) => new Attribute("", ""), }, collapse: { antdv: (value) => new Attribute("inline-collapsed", ""), }, "active-text-color": { antdv: (value) => new Attribute("", ""), }, "default-active": { antdv: (value) => new Attribute("selectedKeys", `"[${value .replace(/\"/g, "") .replace(/\/n/g, "")}]" \n :openKeys="openKeys" \n`), }, "text-color": { antdv: (value) => new Attribute("", ""), }, "background-color": { antdv: (value) => new Attribute("", ""), }, class: { antdv: (value) => new Attribute("", ""), }, "show-timeout": { antdv: (value) => new Attribute("", ""), }, "hide-timeout": { antdv: (value) => new Attribute("", ""), }, select: { antdv: (value) => new Attribute("select", ""), }, supplement: { antdv: { mode: "inline", theme: "dark", }, }, }, "el-menu-item": {}, "el-tooltip": { content: { antdv: (value) => new Attribute("", ""), }, }, "el-form-item": { prop: { antdv: (value) => new Attribute("name", ""), }, }, "el-input": { "v-model": { antdv: (value) => new Attribute("v-model:value", ""), }, }, "el-dialog": { "v-model": { antdv: (value) => new Attribute("v-model:open", ""), }, }, }, };