meixioacomponent 1.1.61 → 1.1.63
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 +64 -22
- package/lib/meixioacomponent.umd.js +64 -22
- package/lib/meixioacomponent.umd.min.js +8 -8
- 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/components/proPageTable/oa_pro_table.vue +25 -5
- 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`]) {
|
|
@@ -146,9 +146,6 @@
|
|
|
146
146
|
<slot :scope="props.row" name="tableExpand"></slot>
|
|
147
147
|
</template>
|
|
148
148
|
</el-table-column>
|
|
149
|
-
<!--序号-->
|
|
150
|
-
<el-table-column type="index" width="50" v-if="useIndex" label="序号"></el-table-column>
|
|
151
|
-
|
|
152
149
|
<el-table-column
|
|
153
150
|
v-for="(item, index) in showTableHeader"
|
|
154
151
|
:key="index"
|
|
@@ -259,7 +256,7 @@ import componentConfig from "../../config/componentConfig";
|
|
|
259
256
|
import {tableSectionMixins} from "../mixins/tableSectionMixins";
|
|
260
257
|
import TableCheckControl from "./TableCheckControl";
|
|
261
258
|
import proTableLocalConfigManage from "../../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
|
|
262
|
-
|
|
259
|
+
const ColIndexStr = 'colIndex'
|
|
263
260
|
export default {
|
|
264
261
|
name: "baseProTable",
|
|
265
262
|
data() {
|
|
@@ -520,7 +517,7 @@ export default {
|
|
|
520
517
|
// 使用序号下标
|
|
521
518
|
useIndex: {
|
|
522
519
|
type: Boolean,
|
|
523
|
-
default:
|
|
520
|
+
default: true
|
|
524
521
|
}
|
|
525
522
|
|
|
526
523
|
},
|
|
@@ -632,6 +629,20 @@ export default {
|
|
|
632
629
|
},
|
|
633
630
|
mixins: [tableSectionMixins],
|
|
634
631
|
methods: {
|
|
632
|
+
/**
|
|
633
|
+
* 初始化表格下标
|
|
634
|
+
*/
|
|
635
|
+
initTableIndex() {
|
|
636
|
+
if (this.$props.useIndex) {
|
|
637
|
+
this.tableConfigColumnList.unshift({
|
|
638
|
+
key: ColIndexStr,
|
|
639
|
+
colKey: ColIndexStr,
|
|
640
|
+
label: '序号',
|
|
641
|
+
title: '序号',
|
|
642
|
+
disabledSortable:true
|
|
643
|
+
})
|
|
644
|
+
}
|
|
645
|
+
},
|
|
635
646
|
isToolTip(value) {
|
|
636
647
|
if (!value) {
|
|
637
648
|
return false;
|
|
@@ -641,6 +652,7 @@ export default {
|
|
|
641
652
|
init() {
|
|
642
653
|
this.setTableConfigColumList();
|
|
643
654
|
const {rowKey} = this.$props;
|
|
655
|
+
this.initTableIndex();
|
|
644
656
|
if (rowKey) {
|
|
645
657
|
this.initTableControl();
|
|
646
658
|
}
|
|
@@ -985,6 +997,14 @@ export default {
|
|
|
985
997
|
this.refreshData(false);
|
|
986
998
|
} else {
|
|
987
999
|
const {refreshLayout} = this.$props;
|
|
1000
|
+
|
|
1001
|
+
if (this.$props.useIndex) {
|
|
1002
|
+
const size = this.$props.pageProps[this.$props.pageConfig.size];
|
|
1003
|
+
data.forEach((item, index) => {
|
|
1004
|
+
item[`${ColIndexStr}`] = (((pageNum - 1) * size) + (index+1))
|
|
1005
|
+
})
|
|
1006
|
+
}
|
|
1007
|
+
|
|
988
1008
|
this.tableData = [];
|
|
989
1009
|
this.tableData = data;
|
|
990
1010
|
|
|
@@ -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
|
+
}
|