From ab7a53d9d87da11ac64a8e1fd94b16a432938a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B1=9F=E9=BE=99?= Date: Mon, 3 Oct 2022 10:24:43 +0800 Subject: [PATCH] chore: initial combolist component --- packages/ui-vue/components/combo-list/index.ts | 12 ++++++++++++ .../combo-list/src/combo-list.component.tsx | 7 +++++++ .../components/combo-list/src/combo-list.props.ts | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 packages/ui-vue/components/combo-list/index.ts create mode 100644 packages/ui-vue/components/combo-list/src/combo-list.component.tsx create mode 100644 packages/ui-vue/components/combo-list/src/combo-list.props.ts diff --git a/packages/ui-vue/components/combo-list/index.ts b/packages/ui-vue/components/combo-list/index.ts new file mode 100644 index 0000000..35c5240 --- /dev/null +++ b/packages/ui-vue/components/combo-list/index.ts @@ -0,0 +1,12 @@ +import type { App } from 'vue'; +import FComboList from './src/combo-list.component'; + +export * from './src/combo-list.props'; + +export { FComboList }; + +export default { + install(app: App): void { + app.component(FComboList.name, FComboList); + }, +}; diff --git a/packages/ui-vue/components/combo-list/src/combo-list.component.tsx b/packages/ui-vue/components/combo-list/src/combo-list.component.tsx new file mode 100644 index 0000000..28f6816 --- /dev/null +++ b/packages/ui-vue/components/combo-list/src/combo-list.component.tsx @@ -0,0 +1,7 @@ +import { defineComponent } from 'vue'; +import { comboListProps } from './combo-list.props'; +export default defineComponent({ + name: 'FComboList', + props: comboListProps, + emits: [], +}); \ No newline at end of file diff --git a/packages/ui-vue/components/combo-list/src/combo-list.props.ts b/packages/ui-vue/components/combo-list/src/combo-list.props.ts new file mode 100644 index 0000000..0a64ea7 --- /dev/null +++ b/packages/ui-vue/components/combo-list/src/combo-list.props.ts @@ -0,0 +1,9 @@ +import { ExtractPropTypes } from "vue"; + +export const comboListProps = { + /** + * 组件标识 + */ + id: String, +}; +export type ButtonProps = ExtractPropTypes; \ No newline at end of file