From e2c28f3bf2d76d1cf3fb61d524d6d1b57c0cc8ee Mon Sep 17 00:00:00 2001 From: ln1778 <465410291@qq.com> Date: Tue, 10 Sep 2024 10:09:09 +0800 Subject: [PATCH] da --- package.json | 2 +- packages/agDatePicker/index.js | 2 +- packages/agDatePicker/src/index.vue | 7 +- packages/agForm/src/index.vue | 2 +- packages/agMultifunctionSearch/src/index.vue | 59 +- packages/agMutionCheckbox/index.js | 9 + packages/agMutionCheckbox/src/index.vue | 357 + packages/index.js | 29 +- src/App.vue | 43 +- src/ag-ui.common.js | 43798 +++++++++++++++++ src/main.js | 21 - 11 files changed, 44263 insertions(+), 66 deletions(-) create mode 100644 packages/agMutionCheckbox/index.js create mode 100644 packages/agMutionCheckbox/src/index.vue create mode 100644 src/ag-ui.common.js delete mode 100644 src/main.js diff --git a/package.json b/package.json index 1d951d9..4163646 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ag-element-ui", "version": "0.1.0", "private": true, - "main": "./main.js", + "main": "lib/ag-element-ui.common.js", "scripts": { "dev": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/packages/agDatePicker/index.js b/packages/agDatePicker/index.js index 5dcc28b..9e40d63 100644 --- a/packages/agDatePicker/index.js +++ b/packages/agDatePicker/index.js @@ -6,4 +6,4 @@ agDatePicker.install = function (Vue) { } // 导出组件 -export default agDatePicker +export default agDatePicker; diff --git a/packages/agDatePicker/src/index.vue b/packages/agDatePicker/src/index.vue index 553c7ad..88b8267 100644 --- a/packages/agDatePicker/src/index.vue +++ b/packages/agDatePicker/src/index.vue @@ -14,14 +14,11 @@ /> - + + \ No newline at end of file diff --git a/packages/index.js b/packages/index.js index 3c65633..dbdd0c7 100644 --- a/packages/index.js +++ b/packages/index.js @@ -11,6 +11,11 @@ import agPagination from './agPagination'; import agRow from './agRow'; import agCol from './agCol'; +import agMutionCheckbox from './agMutionCheckbox'; +import agMultifunctionSearch from './agMultifunctionSearch'; +import agDatePicker from "./agDatePicker"; +import agNumberRange from "./agNumberRange"; + // 注册组件 @@ -27,7 +32,12 @@ import agCol from './agCol'; agTabs, agPagination, agCol, - agRow + agRow, + agDatePicker, + agMutionCheckbox, + agMultifunctionSearch, + agNumberRange + ] // 定义 install 方法,接收 Vue 作为参数(使用 use 注册插件,那么所有的组件都会被注册) @@ -35,19 +45,20 @@ import agCol from './agCol'; // 判断是否安装 if (install.installed) return // 遍历注册全局组件 - components.map(component => Vue.component(component.name, component)) + components.forEach(component => { + Vue.component(component.name, component); + }); } // 判断是否是直接引入文件 if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) - } - + } + export default { + version:'2.15.14', // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 install, - } - export { // 以下是具体的组件列表 agInput, agSelect, @@ -60,5 +71,9 @@ import agCol from './agCol'; agTabs, agPagination, agCol, - agRow + agRow, + agMutionCheckbox, + agMultifunctionSearch, + agDatePicker, + agNumberRange } \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 0c8068e..1fefb67 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,9 @@
点击打开 Dialog - - + + + @@ -27,7 +28,7 @@ - - + +