widget.qw 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/widget.qw.es.js +5 -11
- package/build/widget.qw.umd.js +5 -11
- package/package.json +1 -1
- package/src/api/index.js +1 -1
- package/src/components/index.js +3 -4
- package/src/main.js +3 -0
- package/src/views/imagepicker/index.vue +2 -2
- package/src/views/input/index.vue +1 -1
- package/src/vm/index.js +1 -6
package/build/widget.qw.es.js
CHANGED
|
@@ -38,12 +38,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
import { computed, onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, Teleport, withDirectives, vShow, Fragment, createApp, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, withCtx, toDisplayString, renderList, createElementVNode, createTextVNode, createSlots, withModifiers, onBeforeUpdate, normalizeClass, renderSlot } from "vue";
|
|
41
|
-
var vm = {
|
|
42
|
-
urlCallback: null,
|
|
43
|
-
tokenCallback: null,
|
|
44
|
-
needLoginCallback: null,
|
|
45
|
-
gstepBaseUrlCallback: null
|
|
46
|
-
};
|
|
41
|
+
var vm = {};
|
|
47
42
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
48
43
|
function getAugmentedNamespace(n) {
|
|
49
44
|
if (n.__esModule)
|
|
@@ -3281,7 +3276,7 @@ const wx_user_list = (data2) => {
|
|
|
3281
3276
|
};
|
|
3282
3277
|
const file_upload = (data2) => {
|
|
3283
3278
|
return request_upload({
|
|
3284
|
-
url: vm.
|
|
3279
|
+
url: `${vm.fileUploadUrlCallback()}`,
|
|
3285
3280
|
method: "POST",
|
|
3286
3281
|
data: data2
|
|
3287
3282
|
});
|
|
@@ -20893,9 +20888,8 @@ const WidgetQw = {
|
|
|
20893
20888
|
}
|
|
20894
20889
|
};
|
|
20895
20890
|
function setup(params) {
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20891
|
+
Object.keys(params).forEach((key) => {
|
|
20892
|
+
vm[key] = params[key];
|
|
20893
|
+
});
|
|
20900
20894
|
}
|
|
20901
20895
|
export { WidgetQw, secret_notify, setup };
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -41,12 +41,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
41
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.widget = global2.widget || {}, global2.widget.qw = {}), global2.Vue));
|
|
42
42
|
})(this, function(exports, vue) {
|
|
43
43
|
"use strict";
|
|
44
|
-
var vm = {
|
|
45
|
-
urlCallback: null,
|
|
46
|
-
tokenCallback: null,
|
|
47
|
-
needLoginCallback: null,
|
|
48
|
-
gstepBaseUrlCallback: null
|
|
49
|
-
};
|
|
44
|
+
var vm = {};
|
|
50
45
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
51
46
|
function getAugmentedNamespace(n) {
|
|
52
47
|
if (n.__esModule)
|
|
@@ -3284,7 +3279,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3284
3279
|
};
|
|
3285
3280
|
const file_upload = (data2) => {
|
|
3286
3281
|
return request_upload({
|
|
3287
|
-
url: vm.
|
|
3282
|
+
url: `${vm.fileUploadUrlCallback()}`,
|
|
3288
3283
|
method: "POST",
|
|
3289
3284
|
data: data2
|
|
3290
3285
|
});
|
|
@@ -20896,10 +20891,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20896
20891
|
}
|
|
20897
20892
|
};
|
|
20898
20893
|
function setup(params) {
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20894
|
+
Object.keys(params).forEach((key) => {
|
|
20895
|
+
vm[key] = params[key];
|
|
20896
|
+
});
|
|
20903
20897
|
}
|
|
20904
20898
|
exports.WidgetQw = WidgetQw;
|
|
20905
20899
|
exports.secret_notify = secret_notify;
|
package/package.json
CHANGED
package/src/api/index.js
CHANGED
|
@@ -111,7 +111,7 @@ export const wx_user_list = (data) => {
|
|
|
111
111
|
|
|
112
112
|
export const file_upload = (data) => {
|
|
113
113
|
return request_upload({
|
|
114
|
-
url: vm.
|
|
114
|
+
url: `${vm.fileUploadUrlCallback()}`,
|
|
115
115
|
method: "POST",
|
|
116
116
|
data: data,
|
|
117
117
|
})
|
package/src/components/index.js
CHANGED
|
@@ -149,10 +149,9 @@ export const WidgetQw = {
|
|
|
149
149
|
|
|
150
150
|
// 导出初始化方法
|
|
151
151
|
export function setup(params) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
152
|
+
Object.keys(params).forEach(key=>{
|
|
153
|
+
vm[key] = params[key]
|
|
154
|
+
})
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
export * from "./SecretNotify";
|
package/src/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page">
|
|
3
|
-
<widget-qw
|
|
3
|
+
<widget-qw-input label="单号" v-model="data.text" :auth="data.auth" :type="data.type" :rows="data.rows" :autosize="data.autosize" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|