form-custom-test 3.0.17 → 3.0.18
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/dist/designer.es.js +11 -9
- package/dist/designer.umd.js +4 -4
- package/dist/render.es.js +9 -9
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -304,7 +304,7 @@ var settle$1 = function settle2(resolve, reject, response) {
|
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
306
|
var utils$9 = utils$d;
|
|
307
|
-
var cookies$
|
|
307
|
+
var cookies$4 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
308
308
|
return {
|
|
309
309
|
write: function write(name, value2, expires, path, domain, secure) {
|
|
310
310
|
var cookie = [];
|
|
@@ -444,7 +444,7 @@ Cancel$3.prototype.__CANCEL__ = true;
|
|
|
444
444
|
var Cancel_1 = Cancel$3;
|
|
445
445
|
var utils$6 = utils$d;
|
|
446
446
|
var settle = settle$1;
|
|
447
|
-
var cookies$
|
|
447
|
+
var cookies$3 = cookies$4;
|
|
448
448
|
var buildURL$1 = buildURL$2;
|
|
449
449
|
var buildFullPath = buildFullPath$1;
|
|
450
450
|
var parseHeaders = parseHeaders$1;
|
|
@@ -535,7 +535,7 @@ var xhr = function xhrAdapter(config) {
|
|
|
535
535
|
request2 = null;
|
|
536
536
|
};
|
|
537
537
|
if (utils$6.isStandardBrowserEnv()) {
|
|
538
|
-
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$
|
|
538
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$3.read(config.xsrfCookieName) : void 0;
|
|
539
539
|
if (xsrfValue) {
|
|
540
540
|
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
541
541
|
}
|
|
@@ -61191,13 +61191,13 @@ function registerIcon(app) {
|
|
|
61191
61191
|
if (typeof window !== "undefined") {
|
|
61192
61192
|
let loadSvg = function() {
|
|
61193
61193
|
var body = document.body;
|
|
61194
|
-
var svgDom = document.getElementById("
|
|
61194
|
+
var svgDom = document.getElementById("__svg__icons__dom__1762907121750__");
|
|
61195
61195
|
if (!svgDom) {
|
|
61196
61196
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
61197
61197
|
svgDom.style.position = "absolute";
|
|
61198
61198
|
svgDom.style.width = "0";
|
|
61199
61199
|
svgDom.style.height = "0";
|
|
61200
|
-
svgDom.id = "
|
|
61200
|
+
svgDom.id = "__svg__icons__dom__1762907121750__";
|
|
61201
61201
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
61202
61202
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
61203
61203
|
}
|
|
@@ -61965,7 +61965,7 @@ var VueCookiesManager = function() {
|
|
|
61965
61965
|
};
|
|
61966
61966
|
return VueCookiesManager2;
|
|
61967
61967
|
}();
|
|
61968
|
-
var cookies = {
|
|
61968
|
+
var cookies$2 = {
|
|
61969
61969
|
install: function(app, options) {
|
|
61970
61970
|
app.config.globalProperties.$cookies = new VueCookiesManager();
|
|
61971
61971
|
if (options) {
|
|
@@ -61981,7 +61981,7 @@ function useCookies() {
|
|
|
61981
61981
|
var cookies2 = reactive(GLOBAL_COOKIES_MANAGER);
|
|
61982
61982
|
return { cookies: cookies2 };
|
|
61983
61983
|
}
|
|
61984
|
-
useCookies();
|
|
61984
|
+
const { cookies: cookies$1 } = useCookies();
|
|
61985
61985
|
const service = axios.create({
|
|
61986
61986
|
baseURL: "/api",
|
|
61987
61987
|
timeout: 5e4,
|
|
@@ -61989,7 +61989,7 @@ const service = axios.create({
|
|
|
61989
61989
|
});
|
|
61990
61990
|
service.interceptors.request.use((config) => {
|
|
61991
61991
|
config.headers["Client"] = "web";
|
|
61992
|
-
const accessToken = "
|
|
61992
|
+
const accessToken = cookies$1.get("Authorization");
|
|
61993
61993
|
config.headers["Authorization"] = accessToken;
|
|
61994
61994
|
return config;
|
|
61995
61995
|
}, (error) => {
|
|
@@ -62126,7 +62126,7 @@ const _sfc_main = {
|
|
|
62126
62126
|
this.initEventHandler();
|
|
62127
62127
|
this.buildFieldRules();
|
|
62128
62128
|
this.handleOnCreated();
|
|
62129
|
-
console.log(cookies, "cookies");
|
|
62129
|
+
console.log(cookies$2, "cookies");
|
|
62130
62130
|
},
|
|
62131
62131
|
mounted() {
|
|
62132
62132
|
this.handleOnMounted();
|
|
@@ -62324,6 +62324,8 @@ VFormRender.install = function(app) {
|
|
|
62324
62324
|
app.component(VFormRender.name, VFormRender);
|
|
62325
62325
|
app.config.globalProperties.$service = service;
|
|
62326
62326
|
app.provide("service", service);
|
|
62327
|
+
app.config.globalProperties.$cookies = cookies;
|
|
62328
|
+
app.provide("cookies", cookies);
|
|
62327
62329
|
};
|
|
62328
62330
|
const components = [
|
|
62329
62331
|
VFormDesigner,
|