dai-vue-temp-iview-admin

自动化上传

2024/7/22 18:48:17

更改列表

jsconfig.json 7(+7 -0)

main/modules.js 2(+1 -1)

package.json 4(+2 -2)

src/page/404.vue 12(+11 -1)

types/type.d.ts 168(+15 -153)

详细信息

jsconfig.json 7(+7 -0)

diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..c7c03d9
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,7 @@
+{
+    "compilerOptions": {
+        "typeRoots": [
+            "types"
+        ]
+    }
+}

main/modules.js 2(+1 -1)

diff --git a/main/modules.js b/main/modules.js
index 9124704..921965d 100644
--- a/main/modules.js
+++ b/main/modules.js
@@ -1 +1 @@
-export { default as main } from '../src/index.js';
\ No newline at end of file
+export { default as zzz } from '../src/index.js';
\ No newline at end of file

package.json 4(+2 -2)

diff --git a/package.json b/package.json
index 5798075..161a445 100644
--- a/package.json
+++ b/package.json
@@ -10,8 +10,8 @@
     "author": "description",
     "license": "ISC",
     "dependencies": {
-        "dai-vue": "^1.0.42",
-        "dai-vue-iview": "^1.0.23",
+        "dai-vue": "^1.0.47",
+        "dai-vue-iview": "^1.0.25",
         "view-design": "^4.7.0"
     }
 }

src/page/404.vue 12(+11 -1)

diff --git a/src/page/404.vue b/src/page/404.vue
index afaa80d..50048d3 100644
--- a/src/page/404.vue
+++ b/src/page/404.vue
@@ -19,7 +19,17 @@ export default {
         return {};
     },
     methods: {
-        async init() {}
+        async init() {
+            this.$api.test.test;
+            this.$dai;
+            this.$vx;
+            this.$attrs;
+            this.$dialog.alert;
+            this.$config;
+            this.$route;
+            this.$Notice;
+            this.$Loading;
+        }
     },
     watch: {},
     created() {

types/type.d.ts 168(+15 -153)

diff --git a/types/type.d.ts b/types/type.d.ts
index 4c078d4..443a633 100644
--- a/types/type.d.ts
+++ b/types/type.d.ts
@@ -1,154 +1,16 @@
-declare module uni {
-    // /**
-    //  * 保留当前页面,跳转到应用内的某个页面,使用uni.navigateBack可以返回到原页面。
-    //  * @param object
-    //  */
-    function navigateTo(object: object);
-    /**
-     * 关闭当前页面,跳转到应用内的某个页面。
-     * @param object
-     */
-    function redirectTo(object: object);
-    /**
-     * 关闭所有页面,打开到应用内的某个页面。
-     * @param object
-     */
-    function reLaunch(object: object);
-    /**
-     * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
-     * @param object
-     */
-    function switchTab(object: object);
-    /**
-     * 关闭当前页面,返回上一页面或多级页面。
-     * @param object
-     */
-    function navigateBack(object: object): null;
-    /**
-     * 预加载页面,是一种性能优化技术。被预载的页面,在打开时速度更快。
-     * @param object {Object}
-     */
-    function preloadPage(object: object);
-    /**
-     * 将数据存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
-     * @param object
-     */
-    function setStorage(object: object);
-    /**
-     * 将 data 存储在本地缓存中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
-     * @param key
-     * @param value
-     */
-    function setStorageSync(key: string, value: string);
-    /**
-     * 从本地缓存中异步获取指定 key 对应的内容。
-     * @param object
-     */
-    function getStorage(object: object);
-    /**
-     * 从本地缓存中同步获取指定 key 对应的内容。
-     * @param key
-     */
-    function getStorageSync(key: string): string;
-    /**
-     * 异步获取当前 storage 的相关信息。
-     * @param object
-     */
-    function getStorageInfo(object: object);
-    /**
-     * 同步获取当前 storage 的相关信息。
-     * @param object
-     */
-    function getStorageInfoSync(object: string): object;
-    /**
-     * 从本地缓存中异步移除指定 key。
-     * @param object
-     */
-    function removeStorage(object: object);
-    /**
-     * 从本地缓存中同步移除指定 key。
-     * @param object
-     */
-    function removeStorageSync(object: object);
-    /**
-     * 同步清理本地数据缓存。
-     * @param object
-     */
-    function clearStorage(object: object);
-    /**
-     * 同步清理本地数据缓存。
-     * @param object
-     */
-    function clearStorageSync(object: object);
-    /**
-     * 获取当前的地理位置、速度。 在微信小程序中,当用户离开应用后,此接口无法调用,除非申请后台持续定位权限;当用户点击“显示在聊天顶部”时,此接口可继续调用。
-     * @param object
-     */
-    function getLocation(object: object);
-    /**
-     * 打开地图选择位置。
-     * @param object
-     */
-    function chooseLocation(object: object);
-    /**
-     * 使用应用内置地图查看位置。
-     * @param object
-     */
-    function openLocation(object: object);
-    /**
-     * 显示消息提示框。
-     * @param object
-     */
-    function showToast(object: object);
-    /**
-     * 隐藏消息框
-     * @param object
-     */
-    function hideToast(object: object);
-    /**
-     * 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
-     * @param object
-     */
-    function showLoading(object: object);
-    /**
-     * 隐藏 loading 提示框。
-     * @param object
-     */
-    function hideLoading(object: object);
-    /**
-     * 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
-     * @param object
-     */
-    function showModal(object: object);
-    /**
-     * 从底部向上弹出操作菜单
-     * @param object
-     */
-    function showActionSheet(object: object);
-    /**
-     * 动态设置当前页面的标题。
-     * @param object
-     */
-    function setNavigationBarTitle(object: object);
-    /**
-     * 设置页面导航条颜色。如果需要进入页面就设置颜色,请延迟执行,防止被框架内设置颜色逻辑覆盖
-     * @param object
-     */
-    function setNavigationBarColor(object: object);
-    /**
-     * 在当前页面显示导航条加载动画。
-     * @param object
-     */
-    function showNavigationBarLoading(object: object);
-    /**
-     * 在当前页面隐藏导航条加载动画。
-     * @param object
-     */
-    function hideNavigationBarLoading(object: object);
-    /**
-     * 隐藏返回首页按钮。
-     * @param object
-     */
-    function hideHomeButton(object: object);
-    function xxxxxxxxx(object: object);
+import Vue from 'vue';
+import config from '../main/config/configPro.js';
+import * as modules from '../main/modules.js';
+import { state as vx } from '../main/store.js';
+import dai from 'dai';
+type api = {
+    test: typeof modules.zzz.api.test;
+};
+declare module 'vue/types/vue' {
+    interface Vue {
+        $config: typeof config;
+        $vx: typeof vx;
+        $api: api;
+        $dai: dai;
+    }
 }