chore: config install according component
This commit is contained in:
parent
ba863b2c91
commit
5b8165bb38
|
@ -0,0 +1,13 @@
|
||||||
|
import type { App } from 'vue';
|
||||||
|
import According from './src/according.component';
|
||||||
|
import AccordingItem from './src/components/according-item.component';
|
||||||
|
|
||||||
|
export * from './src/according.props';
|
||||||
|
export * from './src/components/according-item.props';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
install(app: App): void {
|
||||||
|
app.component(According.name, According);
|
||||||
|
app.component(AccordingItem.name, AccordingItem);
|
||||||
|
}
|
||||||
|
};
|
|
@ -8,5 +8,5 @@ export { ButtonEdit };
|
||||||
export default {
|
export default {
|
||||||
install(app: App): void {
|
install(app: App): void {
|
||||||
app.component(ButtonEdit.name, ButtonEdit);
|
app.component(ButtonEdit.name, ButtonEdit);
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { defineComponent, SetupContext } from 'vue';
|
||||||
|
import { TabPageProps, tabPageProps } from './tab-page.props';
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
name: 'FTabPage',
|
||||||
|
props: tabPageProps,
|
||||||
|
emits: [],
|
||||||
|
setup(props: TabPageProps, context: SetupContext) {
|
||||||
|
return () => {
|
||||||
|
return context.slots.default && context.slots.default();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@farris/ui-vue",
|
"name": "@farris/ui-vue",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue';
|
||||||
|
|
||||||
defineProps<{ msg: string }>()
|
defineProps<{ msg: string }>();
|
||||||
|
|
||||||
const count = ref(0)
|
const count = ref(0);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -19,9 +19,7 @@ const count = ref(0)
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Check out
|
Check out
|
||||||
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the official Vue + Vite starter
|
||||||
>create-vue</a
|
|
||||||
>, the official Vue + Vite starter
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Install
|
Install
|
||||||
|
|
Loading…
Reference in New Issue