mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: update build type
This commit is contained in:
@@ -32,7 +32,7 @@ fs.readdirSync(libDirPath).forEach(comp => {
|
||||
if(outsideImport.test(imp)) {
|
||||
const newImp = imp.replace(outsideImport, (i, c) => {
|
||||
return i.replace(`../${c}`, `../el-${c}`)
|
||||
})
|
||||
}).replace('@element-plus/', '../el-')
|
||||
fs.writeFileSync(path.resolve(__dirname, '../lib', newCompName, 'index.d.ts'), newImp)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { App } from 'vue'
|
||||
import Option from '../select/src/option.vue'
|
||||
import { Option } from '@element-plus/select'
|
||||
|
||||
Option.install = (app: App): void => {
|
||||
app.component(Option.name, Option)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { App } from 'vue'
|
||||
import Select from './src/select.vue'
|
||||
import Option from './src/option.vue'
|
||||
|
||||
Select.install = (app: App): void => {
|
||||
app.component(Select.name, Select)
|
||||
}
|
||||
|
||||
export { Option }
|
||||
export default Select
|
||||
|
||||
Reference in New Issue
Block a user