diff --git a/IFLOW.md b/IFLOW.md index 45b34ac..7344dd1 100644 --- a/IFLOW.md +++ b/IFLOW.md @@ -19,7 +19,7 @@ │ ├── styles/ # 全局样式 │ └── utils/ # 工具函数 ├── components/ # 公共组件 -│ └── z-paging/ # z-paging 组件库 +├── uni_modules/ # uni-app 组件 ├── lib/ # 第三方库 │ └── luch-request/ # luch-request 网络请求库 ├── uview-plus/ # uView-Plus 组件库 @@ -83,7 +83,7 @@ npm install ## 组件 -* 项目集成了 `uView-Plus` 和 `z-paging` 两个组件库。 +* 项目集成了 `uView-Plus` 和 `z-paging` 两个组件库,组件均以全局导入,可以直接使用。 * `uView-Plus` 组件的使用方式是 `u-icon`、`u-input`、`u-textarea`。 * 自定义组件应放在 `components/` 目录下。 diff --git a/components/z-paging/changelog.md b/uni_modules/z-paging/changelog.md similarity index 100% rename from components/z-paging/changelog.md rename to uni_modules/z-paging/changelog.md diff --git a/components/z-paging/components/z-paging-cell/z-paging-cell.vue b/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue similarity index 100% rename from components/z-paging/components/z-paging-cell/z-paging-cell.vue rename to uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue diff --git a/components/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue b/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue similarity index 100% rename from components/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue rename to uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue diff --git a/components/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue b/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue similarity index 100% rename from components/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue rename to uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue diff --git a/components/z-paging/components/z-paging-swiper/z-paging-swiper.vue b/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue similarity index 100% rename from components/z-paging/components/z-paging-swiper/z-paging-swiper.vue rename to uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue diff --git a/components/z-paging/components/z-paging/components/z-paging-load-more.vue b/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue similarity index 100% rename from components/z-paging/components/z-paging/components/z-paging-load-more.vue rename to uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue diff --git a/components/z-paging/components/z-paging/components/z-paging-refresh.vue b/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue similarity index 100% rename from components/z-paging/components/z-paging/components/z-paging-refresh.vue rename to uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue diff --git a/components/z-paging/components/z-paging/config/index.js b/uni_modules/z-paging/components/z-paging/config/index.js similarity index 100% rename from components/z-paging/components/z-paging/config/index.js rename to uni_modules/z-paging/components/z-paging/config/index.js diff --git a/components/z-paging/components/z-paging/css/z-paging-main.css b/uni_modules/z-paging/components/z-paging/css/z-paging-main.css similarity index 100% rename from components/z-paging/components/z-paging/css/z-paging-main.css rename to uni_modules/z-paging/components/z-paging/css/z-paging-main.css diff --git a/components/z-paging/components/z-paging/css/z-paging-static.css b/uni_modules/z-paging/components/z-paging/css/z-paging-static.css similarity index 100% rename from components/z-paging/components/z-paging/css/z-paging-static.css rename to uni_modules/z-paging/components/z-paging/css/z-paging-static.css diff --git a/components/z-paging/components/z-paging/i18n/en.json b/uni_modules/z-paging/components/z-paging/i18n/en.json similarity index 100% rename from components/z-paging/components/z-paging/i18n/en.json rename to uni_modules/z-paging/components/z-paging/i18n/en.json diff --git a/components/z-paging/components/z-paging/i18n/index.js b/uni_modules/z-paging/components/z-paging/i18n/index.js similarity index 100% rename from components/z-paging/components/z-paging/i18n/index.js rename to uni_modules/z-paging/components/z-paging/i18n/index.js diff --git a/components/z-paging/components/z-paging/i18n/zh-Hans.json b/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json similarity index 100% rename from components/z-paging/components/z-paging/i18n/zh-Hans.json rename to uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json diff --git a/components/z-paging/components/z-paging/i18n/zh-Hant.json b/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json similarity index 100% rename from components/z-paging/components/z-paging/i18n/zh-Hant.json rename to uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json diff --git a/components/z-paging/components/z-paging/js/hooks/useZPaging.js b/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js similarity index 100% rename from components/z-paging/components/z-paging/js/hooks/useZPaging.js rename to uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js diff --git a/components/z-paging/components/z-paging/js/hooks/useZPagingComp.js b/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js similarity index 100% rename from components/z-paging/components/z-paging/js/hooks/useZPagingComp.js rename to uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js diff --git a/components/z-paging/components/z-paging/js/modules/back-to-top.js b/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/back-to-top.js rename to uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js diff --git a/components/z-paging/components/z-paging/js/modules/chat-record-mode.js b/uni_modules/z-paging/components/z-paging/js/modules/chat-record-mode.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/chat-record-mode.js rename to uni_modules/z-paging/components/z-paging/js/modules/chat-record-mode.js diff --git a/components/z-paging/components/z-paging/js/modules/common-layout.js b/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/common-layout.js rename to uni_modules/z-paging/components/z-paging/js/modules/common-layout.js diff --git a/components/z-paging/components/z-paging/js/modules/data-handle.js b/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/data-handle.js rename to uni_modules/z-paging/components/z-paging/js/modules/data-handle.js diff --git a/components/z-paging/components/z-paging/js/modules/empty.js b/uni_modules/z-paging/components/z-paging/js/modules/empty.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/empty.js rename to uni_modules/z-paging/components/z-paging/js/modules/empty.js diff --git a/components/z-paging/components/z-paging/js/modules/i18n.js b/uni_modules/z-paging/components/z-paging/js/modules/i18n.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/i18n.js rename to uni_modules/z-paging/components/z-paging/js/modules/i18n.js diff --git a/components/z-paging/components/z-paging/js/modules/load-more.js b/uni_modules/z-paging/components/z-paging/js/modules/load-more.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/load-more.js rename to uni_modules/z-paging/components/z-paging/js/modules/load-more.js diff --git a/components/z-paging/components/z-paging/js/modules/loading.js b/uni_modules/z-paging/components/z-paging/js/modules/loading.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/loading.js rename to uni_modules/z-paging/components/z-paging/js/modules/loading.js diff --git a/components/z-paging/components/z-paging/js/modules/nvue.js b/uni_modules/z-paging/components/z-paging/js/modules/nvue.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/nvue.js rename to uni_modules/z-paging/components/z-paging/js/modules/nvue.js diff --git a/components/z-paging/components/z-paging/js/modules/refresher.js b/uni_modules/z-paging/components/z-paging/js/modules/refresher.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/refresher.js rename to uni_modules/z-paging/components/z-paging/js/modules/refresher.js diff --git a/components/z-paging/components/z-paging/js/modules/scroller.js b/uni_modules/z-paging/components/z-paging/js/modules/scroller.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/scroller.js rename to uni_modules/z-paging/components/z-paging/js/modules/scroller.js diff --git a/components/z-paging/components/z-paging/js/modules/virtual-list.js b/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js similarity index 100% rename from components/z-paging/components/z-paging/js/modules/virtual-list.js rename to uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js diff --git a/components/z-paging/components/z-paging/js/z-paging-constant.js b/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-constant.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-constant.js diff --git a/components/z-paging/components/z-paging/js/z-paging-enum.js b/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-enum.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-enum.js diff --git a/components/z-paging/components/z-paging/js/z-paging-interceptor.js b/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-interceptor.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js diff --git a/components/z-paging/components/z-paging/js/z-paging-main.js b/uni_modules/z-paging/components/z-paging/js/z-paging-main.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-main.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-main.js diff --git a/components/z-paging/components/z-paging/js/z-paging-mixin.js b/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-mixin.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js diff --git a/components/z-paging/components/z-paging/js/z-paging-static.js b/uni_modules/z-paging/components/z-paging/js/z-paging-static.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-static.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-static.js diff --git a/components/z-paging/components/z-paging/js/z-paging-utils.js b/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js similarity index 100% rename from components/z-paging/components/z-paging/js/z-paging-utils.js rename to uni_modules/z-paging/components/z-paging/js/z-paging-utils.js diff --git a/components/z-paging/components/z-paging/wxs/z-paging-renderjs.js b/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js similarity index 100% rename from components/z-paging/components/z-paging/wxs/z-paging-renderjs.js rename to uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js diff --git a/components/z-paging/components/z-paging/wxs/z-paging-wxs.wxs b/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs similarity index 100% rename from components/z-paging/components/z-paging/wxs/z-paging-wxs.wxs rename to uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs diff --git a/components/z-paging/components/z-paging/z-paging.vue b/uni_modules/z-paging/components/z-paging/z-paging.vue similarity index 100% rename from components/z-paging/components/z-paging/z-paging.vue rename to uni_modules/z-paging/components/z-paging/z-paging.vue diff --git a/components/z-paging/package.json b/uni_modules/z-paging/package.json similarity index 100% rename from components/z-paging/package.json rename to uni_modules/z-paging/package.json diff --git a/components/z-paging/readme.md b/uni_modules/z-paging/readme.md similarity index 100% rename from components/z-paging/readme.md rename to uni_modules/z-paging/readme.md diff --git a/components/z-paging/types/comps.d.ts b/uni_modules/z-paging/types/comps.d.ts similarity index 100% rename from components/z-paging/types/comps.d.ts rename to uni_modules/z-paging/types/comps.d.ts diff --git a/components/z-paging/types/comps/_common.d.ts b/uni_modules/z-paging/types/comps/_common.d.ts similarity index 100% rename from components/z-paging/types/comps/_common.d.ts rename to uni_modules/z-paging/types/comps/_common.d.ts diff --git a/components/z-paging/types/comps/z-paging-cell.d.ts b/uni_modules/z-paging/types/comps/z-paging-cell.d.ts similarity index 100% rename from components/z-paging/types/comps/z-paging-cell.d.ts rename to uni_modules/z-paging/types/comps/z-paging-cell.d.ts diff --git a/components/z-paging/types/comps/z-paging-empty-view.d.ts b/uni_modules/z-paging/types/comps/z-paging-empty-view.d.ts similarity index 100% rename from components/z-paging/types/comps/z-paging-empty-view.d.ts rename to uni_modules/z-paging/types/comps/z-paging-empty-view.d.ts diff --git a/components/z-paging/types/comps/z-paging-swiper-item.d.ts b/uni_modules/z-paging/types/comps/z-paging-swiper-item.d.ts similarity index 100% rename from components/z-paging/types/comps/z-paging-swiper-item.d.ts rename to uni_modules/z-paging/types/comps/z-paging-swiper-item.d.ts diff --git a/components/z-paging/types/comps/z-paging-swiper.d.ts b/uni_modules/z-paging/types/comps/z-paging-swiper.d.ts similarity index 100% rename from components/z-paging/types/comps/z-paging-swiper.d.ts rename to uni_modules/z-paging/types/comps/z-paging-swiper.d.ts diff --git a/components/z-paging/types/comps/z-paging.d.ts b/uni_modules/z-paging/types/comps/z-paging.d.ts similarity index 100% rename from components/z-paging/types/comps/z-paging.d.ts rename to uni_modules/z-paging/types/comps/z-paging.d.ts diff --git a/components/z-paging/types/index.d.ts b/uni_modules/z-paging/types/index.d.ts similarity index 100% rename from components/z-paging/types/index.d.ts rename to uni_modules/z-paging/types/index.d.ts