base-vue支持组件库支持前缀类名

This commit is contained in:
oneao committed 2025-08-31 21:39:22 +08:00
1 parent 8f4c696bdd
commit 8bd73b3786
18 files changed
+266 -152

No files matched your search

+5 -3
View File
@@ -2,7 +2,9 @@
</script>
<template>
<AButton type="primary">
primary按钮
</AButton>
<AConfigProvider>
<AButton type="primary">
按钮 A
</AButton>
</AConfigProvider>
</template>
+1
View File
@@ -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 -1
View File
@@ -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';