From 1e61215b48e59e94c1ed98e4ef956227d689d6bc Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 06 Nov 2023 08:48:39 +0800
Subject: [PATCH] fix:小程序订阅消息
---
uni_modules/uview-ui/index.js | 79 +++++++++++++++++++++++++++++++++++++++
1 files changed, 79 insertions(+), 0 deletions(-)
diff --git a/uni_modules/uview-ui/index.js b/uni_modules/uview-ui/index.js
new file mode 100644
index 0000000..651c090
--- /dev/null
+++ b/uni_modules/uview-ui/index.js
@@ -0,0 +1,79 @@
+// ���������������������������������������vue.config.js������transpileDependencies���������������https://www.uviewui.com/components/npmSetting.html#_5-cli������������������
+const pleaseSetTranspileDependencies = {}, babelTest = pleaseSetTranspileDependencies?.test
+
+
+
+// ������������mixin
+import mixin from './libs/mixin/mixin.js'
+// ������������������mixin
+import mpMixin from './libs/mixin/mpMixin.js'
+// ������������������http������������������������
+import Request from './libs/luch-request'
+
+// ������������
+import route from './libs/util/route.js'
+// ������������������,colorGradient-������������,hexToRgb-���������������������rgb������,rgbToHex-rgb���������������
+import colorGradient from './libs/function/colorGradient.js'
+
+// ������������
+import test from './libs/function/test.js'
+// ������������
+import debounce from './libs/function/debounce.js'
+// ������������
+import throttle from './libs/function/throttle.js'
+// ���������������������������
+import index from './libs/function/index.js'
+
+// ������������
+import config from './libs/config/config.js'
+// props������������
+import props from './libs/config/props.js'
+// ������������fixed������������z-index������������
+import zIndex from './libs/config/zIndex.js'
+// ������������������������������������������
+import color from './libs/config/color.js'
+// ������
+import platform from './libs/function/platform'
+
+const $u = {
+ route,
+ date: index.timeFormat, // ������date
+ colorGradient: colorGradient.colorGradient,
+ hexToRgb: colorGradient.hexToRgb,
+ rgbToHex: colorGradient.rgbToHex,
+ colorToRgba: colorGradient.colorToRgba,
+ test,
+ type: ['primary', 'success', 'error', 'warning', 'info'],
+ http: new Request(),
+ config, // uView������������������������������������
+ zIndex,
+ debounce,
+ throttle,
+ mixin,
+ mpMixin,
+ props,
+ ...index,
+ color,
+ platform
+}
+
+// $u���������uni���������
+uni.$u = $u
+
+const install = (Vue) => {
+ // ���������������������������������������date���timeFormat
+ Vue.filter('timeFormat', (timestamp, format) => uni.$u.timeFormat(timestamp, format))
+ Vue.filter('date', (timestamp, format) => uni.$u.timeFormat(timestamp, format))
+ // ���������������������������������������������������
+ Vue.filter('timeFrom', (timestamp, format) => uni.$u.timeFrom(timestamp, format))
+ // ���������������uni���Vue.prototype���
+ // #ifndef APP-NVUE
+ // ������vue������������Vue.prototype���������������������nvue���������Vue.prototype���Vue.mixin������������
+ Vue.prototype.$u = $u
+ Vue.mixin(mixin)
+ // #endif
+}
+
+export default {
+ install
+}
--
Gitblit v1.8.0