diff --git a/example/App.vue b/example/App.vue index 33002c8..033ee5e 100644 --- a/example/App.vue +++ b/example/App.vue @@ -211,6 +211,16 @@ 备选项1 备选项2 +

Descriptions

+ + + + 900000 + + 18100000000 + 苏州市 + 江苏省苏州市吴中区吴中大道 1188 号 + diff --git a/packages/DescriptionsItem/index.ts b/packages/DescriptionsItem/index.ts new file mode 100644 index 0000000..3b65409 --- /dev/null +++ b/packages/DescriptionsItem/index.ts @@ -0,0 +1,8 @@ +import { App } from 'vue' +import DescriptionsItem from './src/descriptions-item.vue' + +DescriptionsItem.install = (vue: App): void => { + vue.component('EmqxDescriptionsItem', DescriptionsItem) +} + +export default DescriptionsItem diff --git a/packages/DescriptionsItem/src/descriptions-item.vue b/packages/DescriptionsItem/src/descriptions-item.vue new file mode 100644 index 0000000..d77ac17 --- /dev/null +++ b/packages/DescriptionsItem/src/descriptions-item.vue @@ -0,0 +1,20 @@ + + + diff --git a/packages/index.ts b/packages/index.ts index 9bba269..bcf955a 100644 --- a/packages/index.ts +++ b/packages/index.ts @@ -37,6 +37,8 @@ import RadioGroup from './RadioGroup' import Dropdown from './Dropdown' import DropdownMenu from './DropdownMenu' import DropdownItem from './DropdownItem' +import Descriptions from './Descriptions' +import DescriptionsItem from './DescriptionsItem' import lang from 'element-plus/lib/locale/lang/zh-cn' import locale from 'element-plus/lib/locale' @@ -84,6 +86,8 @@ const components = [ Dropdown, DropdownMenu, DropdownItem, + Descriptions, + DescriptionsItem, ] const plugins = [Loading] @@ -137,6 +141,8 @@ const packages = { Dropdown, DropdownMenu, DropdownItem, + Descriptions, + DescriptionsItem, } export const EmqxMessage = Message