n20-common-lib 2.7.0-beta.14 → 2.7.0-beta.16
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 +1 -1
- package/src/assets/.DS_Store +0 -0
- package/src/assets/css/_coreLib.scss +4 -1
- package/src/assets/css/advanced-filter.scss +216 -0
- package/src/assets/css/cl-layout-header.scss +3 -1
- package/src/assets/css/cl-pagination.scss +34 -4
- package/src/assets/css/{cl-dialog.scss → dialog.scss} +10 -7
- package/src/assets/css/filter.scss +1 -178
- package/src/assets/css/font-icon.scss +3 -8
- package/src/assets/css/normalize.scss +12 -1
- package/src/assets/getJsonc.js +2 -2
- package/src/assets/iconFont/demo_index.html +1950 -1129
- package/src/assets/iconFont/iconfont.css +182 -68
- package/src/assets/iconFont/iconfont.js +1 -66
- package/src/assets/iconFont/iconfont.json +196 -0
- package/src/assets/iconFont/iconfont.ttf +0 -0
- package/src/assets/iconFont/iconfont.woff +0 -0
- package/src/assets/iconFont/iconfont.woff2 +0 -0
- package/src/assets/realUrl.js +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/AdvancedFilter/FormItem.vue +41 -0
- package/src/components/AdvancedFilter/formItemRender.vue +63 -32
- package/src/components/AdvancedFilter/index.vue +52 -19
- package/src/components/Anchor/AnchorItem.vue +5 -0
- package/src/components/Anchor/index.vue +23 -1
- package/src/components/ApprovalButtons/index.vue +49 -10
- package/src/components/ApprovalButtons/showAppOpi.vue +5 -3
- package/src/components/ApprovalCard/index.vue +1 -1
- package/src/components/DateChoose/index.vue +278 -0
- package/src/components/DatePicker/por.vue +1 -1
- package/src/components/Descriptions/index.vue +4 -0
- package/src/components/ElectronicArchive/index.vue +1 -0
- package/src/components/FileUploadTable/index.vue +90 -29
- package/src/components/InputNumber/index.vue +1 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +2 -2
- package/src/components/Layout/HeaderWrap/indexN.vue +39 -35
- package/src/components/Layout/indexN.vue +14 -3
- package/src/components/Pagination/index.vue +25 -137
- package/src/components/Pagination/remotePagination.vue +201 -0
- package/src/components/Pagination/staticPagination.vue +156 -0
- package/src/components/SecondaryTab/index.vue +27 -1
- package/src/components/TablePro/index.vue +4 -3
- package/src/directives/VRuleKey/index.js +7 -4
- package/src/index.js +3 -4
- package/style/fonts/iconfont.1676b4d9.woff2 +0 -0
- package/{src/assets/iconFont5/iconfont.ttf → style/fonts/iconfont.2be34155.ttf} +0 -0
- package/style/fonts/iconfont.ac432622.woff +0 -0
- package/style/index.css +2 -2
- package/theme/blue.css +2 -2
- package/theme/cctcRed.css +2 -2
- package/theme/fonts/iconfont.1676b4d9.woff2 +0 -0
- package/{style/fonts/iconfont.06971f9f.ttf → theme/fonts/iconfont.2be34155.ttf} +0 -0
- package/theme/fonts/iconfont.ac432622.woff +0 -0
- package/theme/green.css +2 -2
- package/theme/lightBlue.css +2 -2
- package/theme/orange.css +2 -2
- package/theme/purple.css +2 -2
- package/theme/red.css +2 -2
- package/theme/yellow.css +2 -2
- package/src/assets/iconFont3/demo.css +0 -539
- package/src/assets/iconFont3/demo_index.html +0 -1936
- package/src/assets/iconFont3/iconfont.css +0 -319
- package/src/assets/iconFont3/iconfont.js +0 -1
- package/src/assets/iconFont3/iconfont.json +0 -541
- package/src/assets/iconFont3/iconfont.ttf +0 -0
- package/src/assets/iconFont3/iconfont.woff +0 -0
- package/src/assets/iconFont3/iconfont.woff2 +0 -0
- package/src/assets/iconFont4/demo.css +0 -539
- package/src/assets/iconFont4/demo_index.html +0 -2005
- package/src/assets/iconFont4/iconfont.css +0 -331
- package/src/assets/iconFont4/iconfont.js +0 -1
- package/src/assets/iconFont4/iconfont.json +0 -562
- package/src/assets/iconFont4/iconfont.ttf +0 -0
- package/src/assets/iconFont4/iconfont.woff +0 -0
- package/src/assets/iconFont4/iconfont.woff2 +0 -0
- package/src/assets/iconFont5/demo.css +0 -539
- package/src/assets/iconFont5/demo_index.html +0 -2281
- package/src/assets/iconFont5/iconfont.css +0 -379
- package/src/assets/iconFont5/iconfont.js +0 -1
- package/src/assets/iconFont5/iconfont.json +0 -646
- package/src/assets/iconFont5/iconfont.woff +0 -0
- package/src/assets/iconFont5/iconfont.woff2 +0 -0
- package/src/components/Pagination/mixins/index.js +0 -39
- package/style/fonts/iconfont.47f5da25.woff2 +0 -0
- package/style/fonts/iconfont.6ad948fe.woff +0 -0
- package/style/fonts/iconfont.76d19005.woff2 +0 -0
- package/style/fonts/iconfont.84848783.woff2 +0 -0
- package/style/fonts/iconfont.85c70ef9.ttf +0 -0
- package/style/fonts/iconfont.a3597821.woff +0 -0
- package/style/fonts/iconfont.ab8c366d.ttf +0 -0
- package/style/fonts/iconfont.b7ea4726.woff +0 -0
- package/style/fonts/iconfont.e6bdbf43.woff2 +0 -0
- package/style/fonts/iconfont.f1777a50.woff +0 -0
- package/style/fonts/iconfont.fbdd69b3.ttf +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="n20-pagination-1">
|
|
3
|
+
<el-pagination
|
|
4
|
+
layout="prev,next,slot"
|
|
5
|
+
:current-page.sync="pageObj[pageKey.no]"
|
|
6
|
+
:page-size="pageObj[pageKey.size]"
|
|
7
|
+
:total="pageObj[pageKey.total]"
|
|
8
|
+
:size="size"
|
|
9
|
+
@current-change="setnoOrsize"
|
|
10
|
+
/>
|
|
11
|
+
<span class="m-r-ss"
|
|
12
|
+
><span class="color-primary">{{ pageObj[pageKey.no] }}</span
|
|
13
|
+
>/{{ max }}</span
|
|
14
|
+
>
|
|
15
|
+
<span>{{ '到第' | $lc }}</span>
|
|
16
|
+
<el-input-number
|
|
17
|
+
v-model="toNo"
|
|
18
|
+
class="n20-pagination-jumper-1 m-r-ss"
|
|
19
|
+
:min="1"
|
|
20
|
+
:max="max"
|
|
21
|
+
:step="1"
|
|
22
|
+
:step-strictly="true"
|
|
23
|
+
:controls="false"
|
|
24
|
+
:size="size"
|
|
25
|
+
@change="setnoOrsize"
|
|
26
|
+
/>
|
|
27
|
+
<span class="m-r-s">{{ '页' | $lc }}</span>
|
|
28
|
+
<el-popover v-model="settingV" placement="top" trigger="click">
|
|
29
|
+
<el-link slot="reference" icon="n20-icon-shezhi" :underline="false" style="font-size: 16px" />
|
|
30
|
+
<div>
|
|
31
|
+
<span>{{ '每页显示' | $lc }}</span>
|
|
32
|
+
<el-radio-group
|
|
33
|
+
v-model="pageObj[pageKey.size]"
|
|
34
|
+
class="n20-pagination-sizes-1 m-l-s"
|
|
35
|
+
size="mini"
|
|
36
|
+
@change="
|
|
37
|
+
() => {
|
|
38
|
+
setnoOrsize()
|
|
39
|
+
settingV = false
|
|
40
|
+
}
|
|
41
|
+
"
|
|
42
|
+
>
|
|
43
|
+
<el-radio-button v-for="item in pageSizes" :key="item" class="m-r-s" :label="item" />
|
|
44
|
+
</el-radio-group>
|
|
45
|
+
<el-input-number
|
|
46
|
+
v-model="userSize"
|
|
47
|
+
class="n20-pagination-usersizes-1"
|
|
48
|
+
:class="{
|
|
49
|
+
'is-active': !pageSizes.includes(pageObj[pageKey.size])
|
|
50
|
+
}"
|
|
51
|
+
:min="1"
|
|
52
|
+
:max="sizeMax"
|
|
53
|
+
:step="1"
|
|
54
|
+
:step-strictly="true"
|
|
55
|
+
:controls="false"
|
|
56
|
+
size="mini"
|
|
57
|
+
:placeholder="'自定义' | $lc"
|
|
58
|
+
@change="
|
|
59
|
+
() => {
|
|
60
|
+
setnoOrsize()
|
|
61
|
+
settingV = false
|
|
62
|
+
}
|
|
63
|
+
"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</el-popover>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
import { $lc } from '../../utils/i18n/index'
|
|
72
|
+
export default {
|
|
73
|
+
name: 'StaticPagination',
|
|
74
|
+
props: {
|
|
75
|
+
size: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'mini'
|
|
78
|
+
},
|
|
79
|
+
pageObj: {
|
|
80
|
+
type: Object,
|
|
81
|
+
default: () => ({
|
|
82
|
+
no: 1,
|
|
83
|
+
size: 20,
|
|
84
|
+
total: 0
|
|
85
|
+
})
|
|
86
|
+
},
|
|
87
|
+
pageKey: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default: () => ({
|
|
90
|
+
no: 'no',
|
|
91
|
+
size: 'size',
|
|
92
|
+
total: 'total'
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
pageSizes: {
|
|
96
|
+
type: Array,
|
|
97
|
+
default: () => [20, 50, 100]
|
|
98
|
+
},
|
|
99
|
+
sizeMax: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 1000
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
data() {
|
|
105
|
+
return {
|
|
106
|
+
settingV: false,
|
|
107
|
+
noOrsize: ''
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
computed: {
|
|
111
|
+
max() {
|
|
112
|
+
let total = this.pageObj[this.pageKey.total]
|
|
113
|
+
let size = this.pageObj[this.pageKey.size]
|
|
114
|
+
|
|
115
|
+
return Math.ceil(total / size) || 1
|
|
116
|
+
},
|
|
117
|
+
toNo: {
|
|
118
|
+
get() {
|
|
119
|
+
return this.pageObj[this.pageKey.no]
|
|
120
|
+
},
|
|
121
|
+
set(val) {
|
|
122
|
+
if (val) {
|
|
123
|
+
this.pageObj[this.pageKey.no] = Math.ceil(val)
|
|
124
|
+
} else {
|
|
125
|
+
this.pageObj[this.pageKey.no] = 1
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
userSize: {
|
|
130
|
+
get() {
|
|
131
|
+
return this.pageObj[this.pageKey.size]
|
|
132
|
+
},
|
|
133
|
+
set(val) {
|
|
134
|
+
if (val) {
|
|
135
|
+
this.pageObj[this.pageKey.size] = Math.ceil(val)
|
|
136
|
+
} else {
|
|
137
|
+
this.pageObj[this.pageKey.size] = this.pageSizes[0]
|
|
138
|
+
}
|
|
139
|
+
this.pageObj[this.pageKey.no] = 1
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
watch: {
|
|
144
|
+
noOrsize() {
|
|
145
|
+
this.$emit('change', this.pageObj)
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
methods: {
|
|
149
|
+
setnoOrsize() {
|
|
150
|
+
let no = this.pageObj[this.pageKey.no]
|
|
151
|
+
let size = this.pageObj[this.pageKey.size]
|
|
152
|
+
this.noOrsize = no + ',' + size + Date.now()
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</script>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{ data[0].name }}
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
|
-
<el-tabs v-else :value="init" class="
|
|
12
|
+
<el-tabs v-else :value="init" :class="classes" :tabPosition="tabPosition" :before-leave="beforeFn" @tab-click="clickFn">
|
|
13
13
|
<el-tab-pane
|
|
14
14
|
v-for="item of data"
|
|
15
15
|
:key="item.name"
|
|
@@ -44,6 +44,19 @@ export default {
|
|
|
44
44
|
stop: {
|
|
45
45
|
type: Boolean,
|
|
46
46
|
default: false
|
|
47
|
+
},
|
|
48
|
+
tabPosition: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: 'top'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
classes(){
|
|
55
|
+
return {
|
|
56
|
+
'n20-secondary-tab': true,
|
|
57
|
+
'm-b-s': this.tabPosition == 'top',
|
|
58
|
+
'left-css': this.tabPosition == 'left'
|
|
59
|
+
}
|
|
47
60
|
}
|
|
48
61
|
},
|
|
49
62
|
methods: {
|
|
@@ -93,4 +106,17 @@ export default {
|
|
|
93
106
|
.tooltip.show {
|
|
94
107
|
opacity: 1;
|
|
95
108
|
}
|
|
109
|
+
.left-css .el-tabs__item.is-active:after{
|
|
110
|
+
width: 2px;
|
|
111
|
+
height: 20px!important;
|
|
112
|
+
margin-top: -22px!important;
|
|
113
|
+
margin-left: -10px;
|
|
114
|
+
}
|
|
115
|
+
.left-css .el-tabs__item.is-left {
|
|
116
|
+
text-align: left!important;
|
|
117
|
+
}
|
|
118
|
+
.left-css .el-tabs__header.is-left{
|
|
119
|
+
margin-right: 0!important;
|
|
120
|
+
margin-left: 10px!important;
|
|
121
|
+
}
|
|
96
122
|
</style>
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
222
222
|
}
|
|
223
223
|
$table.toggleCheckboxRow(row)
|
|
224
224
|
this.key++
|
|
225
|
-
this.handleSelectionChange()
|
|
225
|
+
this.handleSelectionChange(row)
|
|
226
226
|
},
|
|
227
227
|
customSortMethod({ sortList }) {
|
|
228
228
|
const orders = sortList.map((item) => {
|
|
@@ -264,9 +264,10 @@ export default {
|
|
|
264
264
|
this.$emit('filter-change-method', obj)
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
|
-
|
|
267
|
+
// row当前单次勾选的哪一行数据 包含checked字段
|
|
268
|
+
handleSelectionChange(row = '') {
|
|
268
269
|
const val = this.$refs.vxeTable.getCheckboxRecords()
|
|
269
|
-
this.$emit('selection-change-method', val)
|
|
270
|
+
this.$emit('selection-change-method', val, row)
|
|
270
271
|
},
|
|
271
272
|
sizeUp(size) {
|
|
272
273
|
this.sizeC = size
|
|
@@ -119,7 +119,6 @@ directive.install = (Vue) => {
|
|
|
119
119
|
// 表单验证
|
|
120
120
|
el[VALIDATE] = async (type) => {
|
|
121
121
|
let _value = _this[binding.value || 'value']
|
|
122
|
-
|
|
123
122
|
let _rules = getRules(_this.$attrs['rules'], type)
|
|
124
123
|
|
|
125
124
|
if (_rules.length > 0) {
|
|
@@ -146,6 +145,12 @@ directive.install = (Vue) => {
|
|
|
146
145
|
_this.$on('blur', () => {
|
|
147
146
|
setTimeout(() => el[VALIDATE]('blur'))
|
|
148
147
|
})
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
// 监听值变化
|
|
151
|
+
_this.$watch(binding.value, () => {
|
|
152
|
+
setTimeout(() => el[VALIDATE]('change'))
|
|
153
|
+
})
|
|
149
154
|
}
|
|
150
155
|
})
|
|
151
156
|
// 添加规则验证表单方法
|
|
@@ -187,7 +192,5 @@ function rulesValidateFormClear(query) {
|
|
|
187
192
|
})
|
|
188
193
|
}
|
|
189
194
|
|
|
190
|
-
window.rulesValidateForm = rulesValidateForm
|
|
191
|
-
window.rulesValidateFormClear = rulesValidateFormClear
|
|
192
|
-
|
|
193
195
|
export default directive
|
|
196
|
+
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import './assets/iconFont/iconfont.js' // iconfont导入
|
|
2
|
-
import './assets/iconFont2/iconfont.js' // iconfont导入
|
|
3
|
-
import './assets/iconFont3/iconfont.js' // iconfont导入
|
|
4
|
-
import './assets/iconFont4/iconfont.js' // iconfont导入
|
|
5
|
-
import './assets/iconFont5/iconfont.js' // iconfont导入
|
|
6
2
|
import './utils/storagePro.js' // 扩展Storage
|
|
7
3
|
/** 提供组件给外部使用的入口 */
|
|
8
4
|
import AnchorItem from './components/Anchor/AnchorItem.vue'
|
|
@@ -71,6 +67,7 @@ import AdvancedFilter from './components/AdvancedFilter/index.vue'
|
|
|
71
67
|
import ElectronicArchive from './components/ElectronicArchive/index.vue'
|
|
72
68
|
import SelectTreePro from './components/SelectTree/pro.vue'
|
|
73
69
|
import Tree from './components/Tree/index.vue'
|
|
70
|
+
// import DateChoose from './components/DateChoose/index.vue'
|
|
74
71
|
|
|
75
72
|
// 新版日期选择框
|
|
76
73
|
import BusiDatePicker from './components/DateSelect/busiDate.vue'
|
|
@@ -207,6 +204,7 @@ const components = [
|
|
|
207
204
|
WorkCard,
|
|
208
205
|
UploadMsg,
|
|
209
206
|
Tree,
|
|
207
|
+
// DateChoose,
|
|
210
208
|
SelectTreePro,
|
|
211
209
|
AdvancedFilter,
|
|
212
210
|
ElectronicArchive,
|
|
@@ -336,6 +334,7 @@ export {
|
|
|
336
334
|
TertiaryTab,
|
|
337
335
|
TimePicker,
|
|
338
336
|
Tree,
|
|
337
|
+
// DateChoose,
|
|
339
338
|
Upload,
|
|
340
339
|
UploadMsg,
|
|
341
340
|
WorkCard,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|