chore: update build type

This commit is contained in:
zazzaz
2020-11-27 11:15:20 +08:00
committed by hangzou
parent 529b5f3289
commit e35d3f761c
3 changed files with 4 additions and 2 deletions

View File

@@ -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)
}
}

View File

@@ -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)

View File

@@ -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