Browse Source

fixed bug

master
1549469775 3 years ago
parent
commit
333b96e8fb
  1. 2
      packages/build/util.ts
  2. 4
      packages/components/components.ts

2
packages/build/util.ts

@ -30,7 +30,7 @@ export { }`
const n = "Ps" + _.upperFirst(_.kebabCase(name))
componetnsStr.push(`import ${n} from "./${name}"`)
newComp.push(n)
typeArray.push(n + `: typeof import('./lib/${name}')['${n}']`)
typeArray.push(n + `: typeof import('princess-ui')['${n}']`)
})
componetnsStr.push(`export { \n ${newComp.join(",\n ")} \n}`)
typeStr = typeStr.replace("__placeholder__", typeArray.join(',\n '))

4
packages/components/components.ts

@ -1,5 +1,5 @@
// 该文件为自动生成,请勿修改!!!
import PsCaptcha from "./captcha"
export {
PsCaptcha
export {
PsCaptcha
}
Loading…
Cancel
Save