meixioacomponent 2.0.48 → 2.0.49

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.
@@ -0,0 +1,2 @@
1
+ export declare const PluginByReferenceByOss: (Vue: any) => void;
2
+ //# sourceMappingURL=PluginByReferenceByOss.d.ts.map
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "2.0.48",
3
+ "version": "2.0.49",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -78,6 +78,7 @@ var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/P
78
78
  var executeConfirm_1 = require("../config/use/useConfirm/executeConfirm");
79
79
  var registerConfirm_1 = require("../config/use/useConfirm/registerConfirm");
80
80
  var UseNotify_1 = require("../config/use/useConfirm/UseNotify");
81
+ var PluginByReferenceByOss_1 = require("../plugin/PluginByReferenceByOss");
81
82
  var meixicomponents = [
82
83
  baseAnchor_1["default"],
83
84
  baseAppendix_1["default"],
@@ -151,6 +152,7 @@ var install = function (Vue) {
151
152
  componentConfig_1["default"].createDialogCacheWrap();
152
153
  componentConfig_1["default"].eventBus = new componentConfig_1["default"].Vue();
153
154
  ProTableLocalConfigManage_1["default"].initByProTableLocalConfigManage();
155
+ (0, PluginByReferenceByOss_1.PluginByReferenceByOss)(Vue);
154
156
  };
155
157
  //
156
158
  if (typeof window !== "undefined" && window["Vue"]) {
@@ -79,6 +79,7 @@ import {TypeByConfirmOptions, TypeByNotifyOptions, TypeByTheme} from "../typings
79
79
  import {executeConfirm} from "../config/use/useConfirm/executeConfirm";
80
80
  import registerConfirm from "../config/use/useConfirm/registerConfirm";
81
81
  import UseNotify from "../config/use/useConfirm/UseNotify";
82
+ import {PluginByReferenceByOss} from "../plugin/PluginByReferenceByOss";
82
83
 
83
84
 
84
85
  const meixicomponents: any[] = [
@@ -156,6 +157,7 @@ const install = (Vue) => {
156
157
  componentConfig.createDialogCacheWrap();
157
158
  componentConfig.eventBus = new componentConfig.Vue();
158
159
  proTableLocalConfigManage.initByProTableLocalConfigManage();
160
+ PluginByReferenceByOss(Vue);
159
161
  };
160
162
  //
161
163
  if (typeof window !== "undefined" && window[`Vue`]) {
@@ -571,32 +571,20 @@ export default {
571
571
  },
572
572
  },
573
573
 
574
- showTableHeader: {
575
- set(val) {
576
- console.log(val)
577
- },
578
- get() {
579
- return this.tableConfigColumnList.filter((item) => {
580
- if (item.hasOwnProperty('disabledSortable')) {
581
- if (!item.disabledSortable) {
582
- item['sorter'] = false;
583
- }
584
- } else {
585
- item['sorter'] = true;
574
+ showTableHeader() {
575
+ return this.tableConfigColumnList.filter((item) => {
576
+ if (item.hasOwnProperty('disabledSortable')) {
577
+ if (!item.disabledSortable) {
578
+ item['sorter'] = false;
586
579
  }
580
+ } else {
581
+ item['sorter'] = true;
582
+ }
587
583
 
588
- return item.show;
589
- });
590
- }
584
+ return item.show;
585
+ });
591
586
 
592
587
  },
593
- columnControllerConfig() {
594
- return {
595
- fields:this.tableConfigColumnList.map(item=>{
596
- return item.key
597
- })
598
- }
599
- },
600
588
 
601
589
  isCheckTableRow() {
602
590
  const {tableCheckboxConfig} = this.$props;
@@ -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
+ }