meixioacomponent 1.1.61 → 1.1.62
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/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +2 -0
- package/lib/meixioacomponent.common.js +26 -0
- package/lib/meixioacomponent.umd.js +26 -0
- package/lib/meixioacomponent.umd.min.js +1 -1
- package/lib/plugin/PluginByReferenceByOss.d.ts +2 -0
- package/lib/plugin/PluginByReferenceByOss.d.ts.map +1 -0
- package/lib/plugin/PluginByReferenceByOss.js +16 -0
- package/package.json +1 -1
- package/packages/components/index.js +2 -0
- package/packages/components/index.ts +2 -0
- package/packages/plugin/PluginByReferenceByOss.js +16 -0
- package/packages/plugin/PluginByReferenceByOss.ts +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginByReferenceByOss.d.ts","sourceRoot":"","sources":["../../packages/plugin/PluginByReferenceByOss.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,oBAYlC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginByReferenceByOss = void 0;
|
|
4
|
+
const PluginByReferenceByOss = (Vue) => {
|
|
5
|
+
const metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
6
|
+
if (metaTag) {
|
|
7
|
+
metaTag.remove();
|
|
8
|
+
}
|
|
9
|
+
// 创建 meta 元素
|
|
10
|
+
const metaTagByStrict = document.createElement('meta');
|
|
11
|
+
metaTagByStrict.name = 'referrer';
|
|
12
|
+
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
13
|
+
// 添加到 head
|
|
14
|
+
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
15
|
+
};
|
|
16
|
+
exports.PluginByReferenceByOss = PluginByReferenceByOss;
|
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@ var LinkViewClass_1 = require("../config/LinkViewClass");
|
|
|
75
75
|
var useType_1 = require("../useType/useType");
|
|
76
76
|
var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage");
|
|
77
77
|
var baseTimeRangePicker_1 = require("./base/baseTimeRangePicker");
|
|
78
|
+
var PluginByReferenceByOss_1 = require("../plugin/PluginByReferenceByOss");
|
|
78
79
|
var meixicomponents = [
|
|
79
80
|
baseAnchor_1["default"],
|
|
80
81
|
baseAppendix_1["default"],
|
|
@@ -148,6 +149,7 @@ var install = function (Vue) {
|
|
|
148
149
|
componentConfig_1["default"].createDialogCacheWrap();
|
|
149
150
|
componentConfig_1["default"].eventBus = new componentConfig_1["default"].Vue();
|
|
150
151
|
ProTableLocalConfigManage_1["default"].initByProTableLocalConfigManage();
|
|
152
|
+
(0, PluginByReferenceByOss_1.PluginByReferenceByOss)(Vue);
|
|
151
153
|
};
|
|
152
154
|
//
|
|
153
155
|
if (typeof window !== "undefined" && window["Vue"]) {
|
|
@@ -75,6 +75,7 @@ import LinkViewClass from "../config/LinkViewClass";
|
|
|
75
75
|
import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
|
|
76
76
|
import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
|
|
77
77
|
import baseTimeRangePicker from "./base/baseTimeRangePicker";
|
|
78
|
+
import {PluginByReferenceByOss} from "../plugin/PluginByReferenceByOss";
|
|
78
79
|
|
|
79
80
|
|
|
80
81
|
const meixicomponents: any[] = [
|
|
@@ -154,6 +155,7 @@ const install = (Vue) => {
|
|
|
154
155
|
componentConfig.createDialogCacheWrap();
|
|
155
156
|
componentConfig.eventBus = new componentConfig.Vue();
|
|
156
157
|
proTableLocalConfigManage.initByProTableLocalConfigManage();
|
|
158
|
+
PluginByReferenceByOss(Vue);
|
|
157
159
|
};
|
|
158
160
|
//
|
|
159
161
|
if (typeof window !== "undefined" && window[`Vue`]) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.PluginByReferenceByOss = void 0;
|
|
4
|
+
var PluginByReferenceByOss = function (Vue) {
|
|
5
|
+
var metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
6
|
+
if (metaTag) {
|
|
7
|
+
metaTag.remove();
|
|
8
|
+
}
|
|
9
|
+
// 创建 meta 元素
|
|
10
|
+
var metaTagByStrict = document.createElement('meta');
|
|
11
|
+
metaTagByStrict.name = 'referrer';
|
|
12
|
+
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
13
|
+
// 添加到 head
|
|
14
|
+
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
15
|
+
};
|
|
16
|
+
exports.PluginByReferenceByOss = PluginByReferenceByOss;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const PluginByReferenceByOss = (Vue) => {
|
|
2
|
+
const metaTag = document.querySelector('meta[name="referrer"][content="no-referrer"]');
|
|
3
|
+
if (metaTag) {
|
|
4
|
+
metaTag.remove();
|
|
5
|
+
}
|
|
6
|
+
// 创建 meta 元素
|
|
7
|
+
const metaTagByStrict = document.createElement('meta');
|
|
8
|
+
metaTagByStrict.name = 'referrer';
|
|
9
|
+
metaTagByStrict.content = 'strict-origin-when-cross-origin';
|
|
10
|
+
// 添加到 head
|
|
11
|
+
document.getElementsByTagName('head')[0].appendChild(metaTagByStrict);
|
|
12
|
+
|
|
13
|
+
}
|