base-vue支持组件库支持前缀类名
This commit is contained in:
1 parent
8f4c696bdd
commit
8bd73b3786
18 files changed
+266
-152
No files matched your search
@@ -2,7 +2,9 @@
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AButton type="primary">
|
||||
primary按钮
|
||||
</AButton>
|
||||
<AConfigProvider>
|
||||
<AButton type="primary">
|
||||
按钮 A
|
||||
</AButton>
|
||||
</AConfigProvider>
|
||||
</template>
|
||||
@@ -9,6 +9,7 @@ export {}
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
AButton: typeof import('@ao/ao-design')['Button']
|
||||
AConfigProvider: typeof import('@ao/ao-design')['ConfigProvider']
|
||||
AIcon: typeof import('@ao/ao-design')['Icon']
|
||||
AInput: typeof import('@ao/ao-design')['Input']
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import '@ao/ao-design/styles'
|
||||
import './style.scss'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
@@ -0,0 +1 @@
|
||||
@import '@ao/ao-design/index.scss';
|
||||
Reference in new issue
Block a user