Skip to content

Commit

Permalink
chore: 待办
Browse files Browse the repository at this point in the history
  • Loading branch information
Dive12300 committed Sep 30, 2024
1 parent 91d03e0 commit af8cb4f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions scripts/genMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ async function createComponent(param) {
version: VERSION,
name: { zh_CN: cleanedName },
component: param.component_name,
// TODO icon 很多不生效需要特殊处理
icon: String(name).toLowerCase(),
description: param.desc,
doc_url: '',
Expand Down Expand Up @@ -495,6 +496,7 @@ async function generateComponent(params) {
let param = params[i]

const c = await createComponent(param)
// TODO 有子组件的需要特殊处理
const component = {
id: components.length + 1,
...c,
Expand Down Expand Up @@ -545,16 +547,6 @@ async function generateMaterial(params) {
return result
}

// function mergeParamTables(to, from, param, params) {
// if (param.component_name === to) {
// const waitParam = params.find(({ component_name }) => component_name === from);
// if (waitParam) {
// param.tables = [...param.tables, ...waitParam.tables]
// }
// }
// return param
// }

async function mergeComponent(params) {
const newArr = []
const ep = ElementPlus
Expand Down

0 comments on commit af8cb4f

Please sign in to comment.