diff --git a/example/App.vue b/example/App.vue index 72568a1..d1cae91 100644 --- a/example/App.vue +++ b/example/App.vue @@ -182,6 +182,15 @@ +

Checkbox

+
+ 备选项 +
+

Radio

+
+ 备选项1 + 备选项2 +
diff --git a/packages/Radio/index.ts b/packages/Radio/index.ts new file mode 100644 index 0000000..1bb330f --- /dev/null +++ b/packages/Radio/index.ts @@ -0,0 +1,8 @@ +import { App } from 'vue' +import Radio from './src/radio.vue' + +Radio.install = (Vue: App): void => { + Vue.component(Radio.name, Radio) +} + +export default Radio diff --git a/packages/Radio/src/radio.vue b/packages/Radio/src/radio.vue new file mode 100644 index 0000000..da4b819 --- /dev/null +++ b/packages/Radio/src/radio.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/index.ts b/packages/index.ts index 8b3a30f..dc4bb94 100644 --- a/packages/index.ts +++ b/packages/index.ts @@ -29,6 +29,8 @@ import Tags from './Tags' import KeyValueEditor from './KeyValueEditor' import Loading from './Loading' import Avatar from './Avatar' +import Checkbox from './Checkbox' +import Radio from './Radio' import lang from 'element-plus/lib/locale/lang/zh-cn' import locale from 'element-plus/lib/locale' @@ -69,6 +71,8 @@ const components = [ Tags, KeyValueEditor, Avatar, + Checkbox, + Radio, ] const plugins = [Loading] @@ -115,6 +119,8 @@ const packages = { Tags, KeyValueEditor, Avatar, + Checkbox, + Radio, } export const EmqxMessage = Message