n20-common-lib 2.7.0-beta.2 → 2.7.0-beta.21
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 +356 -0
- package/src/assets/css/cl-layout-header.scss +79 -15
- 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/filterItem.vue +7 -1
- package/src/components/AdvancedFilter/formItemRender.vue +248 -63
- package/src/components/AdvancedFilter/index.vue +113 -23
- package/src/components/AdvancedFilter/main/Form/form-item.vue +87 -0
- package/src/components/AdvancedFilter/main/Form/form.vue +59 -0
- package/src/components/AdvancedFilter/main/index.vue +34 -0
- package/src/components/AdvancedFilter/utils.js +2 -4
- 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 +93 -28
- package/src/components/InputNumber/index.vue +1 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +2 -2
- package/src/components/Layout/HeaderWrap/indexN.vue +151 -84
- package/src/components/Layout/HeaderWrap/menuDrawer.vue +47 -38
- package/src/components/Layout/indexN.vue +30 -5
- package/src/components/LoginTemporary/indexN.vue +10 -57
- 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 +15 -8
- package/src/directives/VRuleKey/index.js +5 -4
- package/src/index.js +3 -4
- package/src/plugins/Print/.DS_Store +0 -0
- 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
|
@@ -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>
|
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
:data="data"
|
|
8
8
|
:height="height"
|
|
9
9
|
:class="{ 'cell-default-set--': cellDefault }"
|
|
10
|
-
:checkbox-config="{
|
|
10
|
+
:checkbox-config="{
|
|
11
|
+
checkField: 'checked',
|
|
12
|
+
checkMethod: forbidSelect,
|
|
13
|
+
...$attrs.checkboxConfig,
|
|
14
|
+
...$attrs['checkbox-config']
|
|
15
|
+
}"
|
|
11
16
|
show-header-overflow
|
|
12
17
|
show-overflow
|
|
13
18
|
:row-config="{ isHover: true, useKey: true, ...$attrs.rowConfig, ...$attrs['row-config'] }"
|
|
@@ -175,10 +180,10 @@ export default {
|
|
|
175
180
|
},
|
|
176
181
|
data() {
|
|
177
182
|
// 翻页清除选中
|
|
178
|
-
if (this.clearSelect) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
183
|
+
// if (this.clearSelect) {
|
|
184
|
+
// this.$refs.vxeTable.clearCheckboxRow()
|
|
185
|
+
// this.$emit('selection-change-method', [])
|
|
186
|
+
// }
|
|
182
187
|
}
|
|
183
188
|
},
|
|
184
189
|
activated() {
|
|
@@ -222,7 +227,7 @@ export default {
|
|
|
222
227
|
}
|
|
223
228
|
$table.toggleCheckboxRow(row)
|
|
224
229
|
this.key++
|
|
225
|
-
this.handleSelectionChange()
|
|
230
|
+
this.handleSelectionChange(row)
|
|
226
231
|
},
|
|
227
232
|
customSortMethod({ sortList }) {
|
|
228
233
|
const orders = sortList.map((item) => {
|
|
@@ -264,9 +269,11 @@ export default {
|
|
|
264
269
|
this.$emit('filter-change-method', obj)
|
|
265
270
|
}
|
|
266
271
|
},
|
|
267
|
-
|
|
272
|
+
// row当前单次勾选的哪一行数据 包含checked字段
|
|
273
|
+
handleSelectionChange(row = '') {
|
|
268
274
|
const val = this.$refs.vxeTable.getCheckboxRecords()
|
|
269
|
-
this.$
|
|
275
|
+
const val1 = this.$refs.vxeTable.getCheckboxReserveRecords() || []
|
|
276
|
+
this.$emit('selection-change-method', [...val, ...val1], row)
|
|
270
277
|
},
|
|
271
278
|
sizeUp(size) {
|
|
272
279
|
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,11 @@ directive.install = (Vue) => {
|
|
|
146
145
|
_this.$on('blur', () => {
|
|
147
146
|
setTimeout(() => el[VALIDATE]('blur'))
|
|
148
147
|
})
|
|
148
|
+
|
|
149
|
+
// 监听值变化
|
|
150
|
+
_this.$watch(binding.value, () => {
|
|
151
|
+
setTimeout(() => el[VALIDATE]('change'))
|
|
152
|
+
})
|
|
149
153
|
}
|
|
150
154
|
})
|
|
151
155
|
// 添加规则验证表单方法
|
|
@@ -187,7 +191,4 @@ function rulesValidateFormClear(query) {
|
|
|
187
191
|
})
|
|
188
192
|
}
|
|
189
193
|
|
|
190
|
-
window.rulesValidateForm = rulesValidateForm
|
|
191
|
-
window.rulesValidateFormClear = rulesValidateFormClear
|
|
192
|
-
|
|
193
194
|
export default directive
|
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'
|
|
@@ -68,6 +64,7 @@ import Upload from './components/Upload/index.vue'
|
|
|
68
64
|
import WornPagination from './components/WornPagination/index.vue'
|
|
69
65
|
|
|
70
66
|
import AdvancedFilter from './components/AdvancedFilter/index.vue'
|
|
67
|
+
import DateChoose from './components/DateChoose/index.vue'
|
|
71
68
|
import ElectronicArchive from './components/ElectronicArchive/index.vue'
|
|
72
69
|
import SelectTreePro from './components/SelectTree/pro.vue'
|
|
73
70
|
import Tree from './components/Tree/index.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,
|
|
@@ -282,6 +280,7 @@ export {
|
|
|
282
280
|
// 组件
|
|
283
281
|
ContentLoading,
|
|
284
282
|
ContentNull,
|
|
283
|
+
DateChoose,
|
|
285
284
|
DatePicker,
|
|
286
285
|
DatePickerPor,
|
|
287
286
|
Descriptions,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|