mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-06-07 02:34:23 +08:00
Compare commits
No commits in common. "71244b2086d5225752dedd55e8ea316e7c900297" and "8ab55b28fe6a1e1ddb9ee8e12fdc5e5bf9fa0246" have entirely different histories.
71244b2086
...
8ab55b28fe
@ -1,9 +0,0 @@
|
||||
import { defineComponent } from 'vue'
|
||||
export default defineComponent({
|
||||
name: 'AButton',
|
||||
setup(props, { slots }) {
|
||||
return () => {
|
||||
return <button>{slots.default?.()}</button>
|
||||
}
|
||||
}
|
||||
})
|
@ -1,8 +0,0 @@
|
||||
import type { App } from 'vue'
|
||||
import Button from './button'
|
||||
|
||||
Button.install = function (app: App) {
|
||||
app.component(Button.name, Button)
|
||||
}
|
||||
|
||||
export default Button
|
@ -1 +0,0 @@
|
||||
export { default as Button } from './button'
|
@ -1,15 +1,7 @@
|
||||
import type { App, Plugin } from 'vue'
|
||||
import * as components from './components'
|
||||
import version from './version'
|
||||
export * from './components'
|
||||
export {}
|
||||
|
||||
export default {
|
||||
install(app: App) {
|
||||
Object.values(components).forEach(component => {
|
||||
if (component.install) {
|
||||
app.use(component as any)
|
||||
const aaa = () => {
|
||||
// TODO
|
||||
}
|
||||
})
|
||||
},
|
||||
version
|
||||
} as Plugin
|
||||
|
||||
export default aaa
|
||||
|
@ -10,7 +10,7 @@ title: 基础按钮
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<template>
|
||||
<div></div>
|
||||
<div>按钮</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user