dai-cli
更改列表
site-m/jsconfig.json 7(+7 -0)
site-m/types/type.d.ts 166(+13 -153)
site-w/jsconfig.json 7(+7 -0)
site-w/types/type.d.ts 166(+13 -153)
详细信息
site-m/jsconfig.json 7(+7 -0)
diff --git a/site-m/jsconfig.json b/site-m/jsconfig.json
new file mode 100644
index 0000000..c7c03d9
--- /dev/null
+++ b/site-m/jsconfig.json
@@ -0,0 +1,7 @@
+{
+ "compilerOptions": {
+ "typeRoots": [
+ "types"
+ ]
+ }
+}
site-m/types/type.d.ts 166(+13 -153)
diff --git a/site-m/types/type.d.ts b/site-m/types/type.d.ts
index 4c078d4..d7cf832 100644
--- a/site-m/types/type.d.ts
+++ b/site-m/types/type.d.ts
@@ -1,154 +1,14 @@
-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';
+type api = {
+ test: typeof modules.gimg.api.test;
+};
+declare module 'vue/types/vue' {
+ interface Vue {
+ $config: typeof config;
+ $vx: typeof vx;
+ $api: api;
+ }
}
site-w/jsconfig.json 7(+7 -0)
diff --git a/site-w/jsconfig.json b/site-w/jsconfig.json
new file mode 100644
index 0000000..c7c03d9
--- /dev/null
+++ b/site-w/jsconfig.json
@@ -0,0 +1,7 @@
+{
+ "compilerOptions": {
+ "typeRoots": [
+ "types"
+ ]
+ }
+}
site-w/types/type.d.ts 166(+13 -153)
diff --git a/site-w/types/type.d.ts b/site-w/types/type.d.ts
index 4c078d4..d7cf832 100644
--- a/site-w/types/type.d.ts
+++ b/site-w/types/type.d.ts
@@ -1,154 +1,14 @@
-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';
+type api = {
+ test: typeof modules.gimg.api.test;
+};
+declare module 'vue/types/vue' {
+ interface Vue {
+ $config: typeof config;
+ $vx: typeof vx;
+ $api: api;
+ }
}