chore: add combolist component to the test application

This commit is contained in:
aalizzwell 2022-10-03 14:31:58 +08:00
parent 87189e4eeb
commit e781133016
4 changed files with 20 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import type { App } from 'vue';
import FComboList from './src/combo-list.component';
export * from './src/types';
export * from './src/combo-list.props';
export { FComboList };

View File

@ -1,7 +1,14 @@
import { defineComponent } from 'vue';
import { comboListProps } from './combo-list.props';
import { defineComponent, SetupContext } from 'vue';
import { comboListProps, ComboListProps } from './combo-list.props';
export default defineComponent({
name: 'FComboList',
props: comboListProps,
emits: [],
setup(props: ComboListProps, context: SetupContext) {
return () => {
return (
<div id={props.id}>combo-list</div>
);
};
}
});

View File

@ -12,6 +12,7 @@ import RadioGroup from './components/radio-group.vue';
import Section from './components/section.vue';
import Notify from './components/notify.vue';
import Accordion from './components/accordion.vue';
import ComboList from './components/combo-list.vue';
const canEdit = ref(true);
const disable = ref(false);
@ -44,6 +45,7 @@ const canAutoComplete = ref(false);
<Notify></Notify>
<Accordion></Accordion>
<Tabs />
<ComboList />
</template>
<style scoped>

View File

@ -0,0 +1,8 @@
<script setup lang="ts">
import ComboList from '../../components/combo-list/src/combo-list.component';
</script>
<template>
<ComboList/>
</template>