From fa30fee27e49656112a77e55ae68941bc35cdca0 Mon Sep 17 00:00:00 2001 From: XBing <923975676@qq.com> Date: Tue, 2 Jul 2024 18:23:48 +0800 Subject: [PATCH] update --- packages/Input/index.js | 9 --------- packages/Select/index.js | 9 --------- packages/agInput/index.js | 9 +++++++++ packages/{Input => agInput}/src/index.vue | 2 +- packages/agSelect/index.js | 9 +++++++++ packages/{Select => agSelect}/src/index.vue | 2 +- packages/index.js | 10 ++++++---- 7 files changed, 26 insertions(+), 24 deletions(-) delete mode 100644 packages/Input/index.js delete mode 100644 packages/Select/index.js create mode 100644 packages/agInput/index.js rename packages/{Input => agInput}/src/index.vue (98%) create mode 100644 packages/agSelect/index.js rename packages/{Select => agSelect}/src/index.vue (99%) diff --git a/packages/Input/index.js b/packages/Input/index.js deleted file mode 100644 index 457ce03..0000000 --- a/packages/Input/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Input from './src' - -// 为组件提供 install 安装方法,供按需引入 -Input.install = function (Vue) { - Vue.component(Input.name, Input) -} - -// 导出组件 -export default Input diff --git a/packages/Select/index.js b/packages/Select/index.js deleted file mode 100644 index 3f92703..0000000 --- a/packages/Select/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Select from './src' - -// 为组件提供 install 安装方法,供按需引入 -Select.install = function (Vue) { - Vue.component(Select.name, Select) -} - -// 导出组件 -export default Select diff --git a/packages/agInput/index.js b/packages/agInput/index.js new file mode 100644 index 0000000..715425d --- /dev/null +++ b/packages/agInput/index.js @@ -0,0 +1,9 @@ +import agInput from './src' + +// 为组件提供 install 安装方法,供按需引入 +agInput.install = function (Vue) { + Vue.component(agInput.name, agInput) +} + +// 导出组件 +export default agInput diff --git a/packages/Input/src/index.vue b/packages/agInput/src/index.vue similarity index 98% rename from packages/Input/src/index.vue rename to packages/agInput/src/index.vue index fd10083..8bc1bc0 100644 --- a/packages/Input/src/index.vue +++ b/packages/agInput/src/index.vue @@ -20,7 +20,7 @@ * @desc 处理输入的输入框(转大写,不能有中文空格等) */ export default { - name: "AgInput", + name: "agInput", props: { width: { type: String, diff --git a/packages/agSelect/index.js b/packages/agSelect/index.js new file mode 100644 index 0000000..526a9c5 --- /dev/null +++ b/packages/agSelect/index.js @@ -0,0 +1,9 @@ +import agSelect from './src' + +// 为组件提供 install 安装方法,供按需引入 +agSelect.install = function (Vue) { + Vue.component(agSelect.name, agSelect) +} + +// 导出组件 +export default agSelect diff --git a/packages/Select/src/index.vue b/packages/agSelect/src/index.vue similarity index 99% rename from packages/Select/src/index.vue rename to packages/agSelect/src/index.vue index b84b910..3677af9 100644 --- a/packages/Select/src/index.vue +++ b/packages/agSelect/src/index.vue @@ -20,7 +20,7 @@