widget.qw 1.0.11 → 1.0.13
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)
|
|
@@ -3280,7 +3275,7 @@ const wx_user_list = (data2) => {
|
|
|
3280
3275
|
};
|
|
3281
3276
|
const file_upload = (data2) => {
|
|
3282
3277
|
return request_upload({
|
|
3283
|
-
url: vm.
|
|
3278
|
+
url: `${vm.fileUploadUrlCallback()}`,
|
|
3284
3279
|
method: "POST",
|
|
3285
3280
|
data: data2
|
|
3286
3281
|
});
|
|
@@ -20892,9 +20887,8 @@ const WidgetQw = {
|
|
|
20892
20887
|
}
|
|
20893
20888
|
};
|
|
20894
20889
|
function setup(params) {
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20890
|
+
Object.keys(params).forEach((key) => {
|
|
20891
|
+
vm[key] = params[key];
|
|
20892
|
+
});
|
|
20899
20893
|
}
|
|
20900
20894
|
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)
|
|
@@ -3283,7 +3278,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3283
3278
|
};
|
|
3284
3279
|
const file_upload = (data2) => {
|
|
3285
3280
|
return request_upload({
|
|
3286
|
-
url: vm.
|
|
3281
|
+
url: `${vm.fileUploadUrlCallback()}`,
|
|
3287
3282
|
method: "POST",
|
|
3288
3283
|
data: data2
|
|
3289
3284
|
});
|
|
@@ -20895,10 +20890,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20895
20890
|
}
|
|
20896
20891
|
};
|
|
20897
20892
|
function setup(params) {
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
vm.gstepBaseUrlCallback = params.gstepBaseUrlCallback;
|
|
20893
|
+
Object.keys(params).forEach((key) => {
|
|
20894
|
+
vm[key] = params[key];
|
|
20895
|
+
});
|
|
20902
20896
|
}
|
|
20903
20897
|
exports.WidgetQw = WidgetQw;
|
|
20904
20898
|
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
|
|