n20-common-lib 3.0.22 → 3.0.23
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/package.json +4 -3
- package/src/assets/css/drag-list.scss +22 -14
- package/src/assets/css/normalize.scss +6 -0
- package/src/assets/css/show-column.scss +72 -14
- package/src/assets/css/table copy.scss +234 -0
- package/src/assets/css/table.scss +159 -13
- package/src/assets/realUrl.js +2 -1
- package/src/components/AdvancedFilter/index.vue +1 -1
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +1 -1
- package/src/components/ApprovalRecord/index.vue +5 -5
- package/src/components/DragList/index.vue +33 -12
- package/src/components/Empty/img/searchNoData.png +0 -0
- package/src/components/HandlingAdvice/index.vue +1 -0
- package/src/components/ShowColumn/index copy.vue +18 -33
- package/src/components/ShowColumn/index.vue +244 -59
- package/src/components/TablePro/index copy.vue +462 -0
- package/src/components/TablePro/index.js +9 -2
- package/src/components/TablePro/index.vue +542 -28
- package/src/components/TableSetSize/index copy.vue +69 -0
- package/src/components/TableSetSize/index.vue +10 -13
- package/src/plugins/Print/print-js/src/js/print.js +0 -6
- package/theme/blue.css +3 -0
- package/theme/cctcRed.css +3 -0
- package/theme/fonts/SIMSUN.5e0c362c.ttf +0 -0
- package/theme/fonts/element-icons.535877f5.woff +0 -0
- package/theme/fonts/element-icons.732389de.ttf +0 -0
- package/theme/fonts/iconfont.09d221ee.woff +0 -0
- package/theme/fonts/iconfont.1c4bfacc.ttf +0 -0
- package/theme/fonts/iconfont.a6f34dc7.woff2 +0 -0
- package/theme/fonts/iconfont.f4c32765.ttf +0 -0
- package/theme/green.css +3 -0
- package/theme/lightBlue.css +3 -0
- package/theme/mapleLeafRed.css +3 -0
- package/theme/orange.css +3 -0
- package/theme/purple.css +3 -0
- package/theme/red.css +3 -0
- package/theme/yellow.css +3 -0
- package/src/components/ShowColumn/index copy 2.vue +0 -545
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="el-table-set-size flex-box">
|
|
3
|
+
<div class="el-table-set-size-item m-r-0" :class="sizeC === 'mini' && 'active'" @click="setSize('mini')">
|
|
4
|
+
<img class="icon-mini" src="./mini.png" />
|
|
5
|
+
<div class="text-mini">{{ _lang === 'zh' ? '小行距' : 'mini' }}</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="el-table-set-size-item" :class="sizeC === 'small' && 'active'" @click="setSize('small')">
|
|
8
|
+
<img class="icon-small" src="./small.png" />
|
|
9
|
+
<div class="text-small">{{ _lang === 'zh' ? '中行距' : 'small' }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: 'TableSetSize',
|
|
17
|
+
props: {
|
|
18
|
+
size: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: 'small'
|
|
21
|
+
},
|
|
22
|
+
mini: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => ({
|
|
25
|
+
border: true,
|
|
26
|
+
size: 'mini',
|
|
27
|
+
stripe: true
|
|
28
|
+
})
|
|
29
|
+
},
|
|
30
|
+
small: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({
|
|
33
|
+
border: true,
|
|
34
|
+
size: 'small',
|
|
35
|
+
stripe: false
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
data() {
|
|
40
|
+
let _this = this
|
|
41
|
+
return {
|
|
42
|
+
sizeC: localStorage.getItem('table-size') || _this.size
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
watch: {
|
|
46
|
+
size() {
|
|
47
|
+
this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
created() {
|
|
51
|
+
this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
setSize(type, t) {
|
|
55
|
+
this.sizeC = type
|
|
56
|
+
localStorage.setItem('table-size', type)
|
|
57
|
+
if (type === 'mini') {
|
|
58
|
+
this.$emit('resize', this.mini)
|
|
59
|
+
} else if (type === 'small') {
|
|
60
|
+
this.$emit('resize', this.small)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (t !== 'pasv') {
|
|
64
|
+
this.$emit('update:size', localStorage.getItem('table-size') || type)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
</script>
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<div class="text-small">{{ _lang === 'zh' ? '中行距' : 'small' }}</div>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
2
|
+
<el-dropdown @command="setSize">
|
|
3
|
+
<i v-title="$lc('行高')" class="iconfont icon-line-height pointer"></i>
|
|
4
|
+
<el-dropdown-menu slot="dropdown">
|
|
5
|
+
<el-dropdown-item command="small">{{ _lang === 'zh' ? '默认' : 'small' }}</el-dropdown-item>
|
|
6
|
+
<el-dropdown-item command="mini">{{ _lang === 'zh' ? '紧凑' : 'mini' }}</el-dropdown-item>
|
|
7
|
+
</el-dropdown-menu>
|
|
8
|
+
</el-dropdown>
|
|
12
9
|
</template>
|
|
13
10
|
|
|
14
11
|
<script>
|
|
@@ -22,15 +19,15 @@ export default {
|
|
|
22
19
|
mini: {
|
|
23
20
|
type: Object,
|
|
24
21
|
default: () => ({
|
|
25
|
-
border:
|
|
22
|
+
border: 'inner',
|
|
26
23
|
size: 'mini',
|
|
27
|
-
stripe:
|
|
24
|
+
stripe: false
|
|
28
25
|
})
|
|
29
26
|
},
|
|
30
27
|
small: {
|
|
31
28
|
type: Object,
|
|
32
29
|
default: () => ({
|
|
33
|
-
border:
|
|
30
|
+
border: 'inner',
|
|
34
31
|
size: 'small',
|
|
35
32
|
stripe: false
|
|
36
33
|
})
|
|
@@ -68,12 +68,6 @@ function performPrint(iframeElement, params) {
|
|
|
68
68
|
} catch (error) {
|
|
69
69
|
params.onError(error)
|
|
70
70
|
} finally {
|
|
71
|
-
if (Browser.isFirefox()) {
|
|
72
|
-
// Move the iframe element off-screen and make it invisible
|
|
73
|
-
iframeElement.style.visibility = 'hidden'
|
|
74
|
-
iframeElement.style.left = '-1px'
|
|
75
|
-
}
|
|
76
|
-
|
|
77
71
|
cleanUp(params)
|
|
78
72
|
}
|
|
79
73
|
}
|