n20-common-lib 3.0.36 → 3.0.38
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/nstc-g6/components/Form/CheckboxCustom/index.vue +1 -1
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +5 -5
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +1 -1
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +1 -1
- package/package.json +3 -3
- package/src/assets/css/_coreLib.scss +4 -1
- package/src/assets/css/button.scss +8 -19
- package/src/assets/css/element-variables.scss +53 -27
- package/src/assets/css/file-upload-table.scss +35 -9
- package/src/assets/css/filter.scss +1 -1
- package/src/assets/css/layout-aside.scss +3 -9
- package/src/assets/css/layout-content.scss +1 -0
- package/src/assets/css/layout.scss +5 -5
- package/src/{components/PageHeader/style.scss → assets/css/page-header.scss} +22 -7
- package/src/assets/css/page.scss +12 -0
- package/src/assets/css/pagination.scss +75 -17
- package/src/assets/css/rootvar.scss +1 -0
- package/src/assets/css/secondary-tab.scss +60 -43
- package/src/assets/css/table.scss +165 -19
- package/src/assets/css/tabs.scss +68 -0
- package/src/components/FileUploadTable/FileUploadTableV3.vue +79 -7
- package/src/components/FileUploadTable/Png.svg +34 -0
- package/src/components/FileUploadTable/Txt.svg +29 -0
- package/src/components/FileUploadTable/Zip.svg +21 -0
- package/src/components/FileUploadTable/aiCheckDialog.vue +3 -3
- package/src/components/FileUploadTable/not.svg +29 -0
- package/src/components/PageHeader/index.vue +11 -6
- package/src/components/PageLayout/page.vue +15 -3
- package/src/components/Pagination/index.vue +7 -4
- package/src/components/Pagination/main.vue +113 -0
- package/src/components/ProFilterView/advancedQuery.vue +32 -28
- package/src/components/ProFilterView/index.vue +49 -26
- package/src/components/SecondaryTab/index.vue +45 -34
- package/src/components/ShowColumn/index.vue +14 -4
- package/src/components/TableOperate/index.vue +101 -0
- package/src/components/TablePro/index.vue +171 -95
- package/src/components/TableSetSize/index.vue +3 -3
- package/src/components/TableSetSize/index1.vue +82 -0
- package/src/components/Tabs/index.vue +64 -0
- package/src/index.js +4 -1
- package/style/index.css +1 -3
- package/theme/blue.css +1 -3
- package/theme/cctcRed.css +1 -3
- package/theme/green.css +1 -3
- package/theme/lightBlue.css +1 -3
- package/theme/orange.css +1 -3
- package/theme/purple.css +1 -3
- package/theme/red.css +1 -3
- package/theme/yellow.css +1 -3
- package/src/components/TableSetSize/index copy.vue +0 -69
- package/src/components/TableSetSize/style.scss +0 -81
|
@@ -1,69 +0,0 @@
|
|
|
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,81 +0,0 @@
|
|
|
1
|
-
@import '@/assets/css/element-variables.scss';
|
|
2
|
-
.el-table div.hidden-columns {
|
|
3
|
-
visibility: initial;
|
|
4
|
-
position: initial;
|
|
5
|
-
height: 0;
|
|
6
|
-
width: 0;
|
|
7
|
-
|
|
8
|
-
> * {
|
|
9
|
-
visibility: hidden;
|
|
10
|
-
}
|
|
11
|
-
> .el-table-set-size {
|
|
12
|
-
visibility: initial;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.el-table-set-size {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
width: 6px;
|
|
18
|
-
height: 40px;
|
|
19
|
-
|
|
20
|
-
border-radius: 4px 0 0 4px;
|
|
21
|
-
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
right: 0;
|
|
25
|
-
z-index: 9;
|
|
26
|
-
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
|
|
29
|
-
transition: all 0.3s;
|
|
30
|
-
&::before {
|
|
31
|
-
content: '';
|
|
32
|
-
position: absolute;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
background: $--color-primary;
|
|
36
|
-
opacity: 0.7;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
width: 88px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-item {
|
|
44
|
-
margin: 3px 6px;
|
|
45
|
-
width: 36px;
|
|
46
|
-
height: 34px;
|
|
47
|
-
border-radius: 4px;
|
|
48
|
-
|
|
49
|
-
color: $--color-white;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
&:hover {
|
|
53
|
-
background: $--color-primary;
|
|
54
|
-
}
|
|
55
|
-
&.active {
|
|
56
|
-
background: $--color-primary-hover;
|
|
57
|
-
}
|
|
58
|
-
.icon-small,
|
|
59
|
-
.icon-mini {
|
|
60
|
-
display: block;
|
|
61
|
-
width: 17px;
|
|
62
|
-
height: 14px;
|
|
63
|
-
margin: 4px auto 0;
|
|
64
|
-
}
|
|
65
|
-
.icon-small {
|
|
66
|
-
background-size: 100% 100%;
|
|
67
|
-
}
|
|
68
|
-
.icon-mini {
|
|
69
|
-
background-size: 100% 100%;
|
|
70
|
-
}
|
|
71
|
-
.text-small,
|
|
72
|
-
.text-mini {
|
|
73
|
-
margin-top: 3px;
|
|
74
|
-
line-height: 12px;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
text-align: center;
|
|
77
|
-
transform: scale(0.667);
|
|
78
|
-
transform-origin: 50% 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|