mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
Chore: add missing file when create new component (#11663)
This commit is contained in:
parent
7199da9836
commit
1f24f2abae
@ -66,6 +66,22 @@ describe('${ComponentName}', () => {
|
||||
});
|
||||
});
|
||||
`
|
||||
},
|
||||
{
|
||||
filename: path.join('../../packages/theme-chalk/src', `${componentname}.scss`),
|
||||
content: `@import "mixins/mixins";
|
||||
@import "common/var";
|
||||
|
||||
@include b(${componentname}) {
|
||||
}`
|
||||
},
|
||||
{
|
||||
filename: path.join('../../types', `${componentname}.d.ts`),
|
||||
content: `import { ElementUIComponent } from './component'
|
||||
|
||||
/** ${ComponentName} Component */
|
||||
export declare class El${ComponentName} extends ElementUIComponent {
|
||||
}`
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user