t-comm
Version:
专业、稳定、纯粹的工具库
13 lines (12 loc) • 354 B
TypeScript
/**
* 为 Vue 组件添加、修正 name 属性
* @param {string} filePath 组件地址
* @param {string} componentName 组件名称
* @returns {string} 新的组件内容
*
* @example
* ```ts
* addNameForComponent('xxx.vue', 'PressUploader');
* ```
*/
export declare function addNameForComponent(filePath: string, componentName: string): any;