n20-common-lib 3.2.4 → 3.2.5
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/css/_coreLib.scss +1 -0
- package/src/assets/css/dynamic-field.scss +86 -0
- package/src/components/ApprovalCard/index.vue +6 -1
- package/src/components/AttachmentPass/index.vue +1 -1
- package/src/components/DynamicField/DynamicField.vue +727 -301
- package/src/components/DynamicField/DynamicFieldMixin.js +69 -18
- package/src/components/DynamicField/DynamicFormView.vue +28 -13
- package/src/components/DynamicField/contentPop.vue +0 -5
- package/src/components/DynamicField/tableView.vue +0 -5
- package/src/components/FileUploadTable/index.vue +95 -1
- package/src/components/InfoCard/index.vue +249 -0
- package/src/components/ProFilterView/advancedQuery.vue +1 -1
- package/src/components/ViewToggle/index.vue +74 -6
- package/src/index.js +3 -0
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DynamicField 模块样式
|
|
3
|
+
* 包含 DynamicField、DynamicFormView、ContentPop、TableView 组件样式
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* DynamicField 表单组件样式 */
|
|
7
|
+
.cl-dynamic-field.vertical-form {
|
|
8
|
+
.el-form-item__content {
|
|
9
|
+
width: 100%;
|
|
10
|
+
.input-w {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 无标签字段隐藏
|
|
16
|
+
.no-label {
|
|
17
|
+
display: none !important;
|
|
18
|
+
.el-form-item__label {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.n20-form-expandable-pane {
|
|
24
|
+
container-type: inline-size;
|
|
25
|
+
// Anchor Item 标题容器样式
|
|
26
|
+
.anchor-title-wrapper {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
gap: 16px;
|
|
31
|
+
width: calc(100cqw - 44px);
|
|
32
|
+
min-height: 40px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.anchor-title-left {
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.anchor-title-right {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 12px;
|
|
45
|
+
flex: 1;
|
|
46
|
+
justify-content: flex-end;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 块级插槽样式
|
|
50
|
+
.tab-block-slot {
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding: 12px 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.field-block-slot {
|
|
56
|
+
width: 100%;
|
|
57
|
+
padding: 2px 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tab-top-slot {
|
|
61
|
+
border-bottom: 1px solid var(--color-border-lighter, #ebeef5);
|
|
62
|
+
margin-bottom: 16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tab-bottom-slot {
|
|
66
|
+
border-top: 1px solid var(--color-border-lighter, #ebeef5);
|
|
67
|
+
margin-top: 16px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.field-after-index-slot {
|
|
71
|
+
margin-top: 16px;
|
|
72
|
+
padding: 12px;
|
|
73
|
+
background-color: var(--color-bg-light, #f5f7fa);
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* DynamicFormView 表单详情视图样式 */
|
|
80
|
+
.CustomFormView {
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
}
|
|
83
|
+
/* ContentPop / TableView 弹窗内容样式 */
|
|
84
|
+
.contentPop {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
}
|
|
@@ -340,12 +340,14 @@
|
|
|
340
340
|
|
|
341
341
|
<script>
|
|
342
342
|
import 'viewerjs/dist/viewer.css'
|
|
343
|
+
|
|
343
344
|
import getJsonc from '../../assets/getJsonc.js'
|
|
344
345
|
import axios from '../../utils/axios'
|
|
345
346
|
import { $lc } from '../../utils/i18n/index'
|
|
346
347
|
import importG from '../../utils/importGlobal.js'
|
|
347
348
|
import { linkPush } from '../../utils/urlToGo.js'
|
|
348
349
|
import Dialog from '../Dialog/index.vue'
|
|
350
|
+
|
|
349
351
|
const ViewerImg = async function () {
|
|
350
352
|
let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
|
|
351
353
|
return component
|
|
@@ -428,6 +430,10 @@ export default {
|
|
|
428
430
|
align: {
|
|
429
431
|
type: String,
|
|
430
432
|
default: 'left-right'
|
|
433
|
+
},
|
|
434
|
+
seeTypes: {
|
|
435
|
+
type: RegExp,
|
|
436
|
+
default: /\.(jpg|png|gif|svg|pdf|swf|xlsx|xls|docx|doc|txt)$/i
|
|
431
437
|
}
|
|
432
438
|
},
|
|
433
439
|
data() {
|
|
@@ -464,7 +470,6 @@ export default {
|
|
|
464
470
|
imgType: /\.(jpg|png1|gif|svg)$/i,
|
|
465
471
|
previewName: '',
|
|
466
472
|
previewSameOrg: false,
|
|
467
|
-
seeTypes: /\.(jpg|png|gif|svg|pdf|swf|xlsx|xls|docx|doc)$/i,
|
|
468
473
|
seeRow: {},
|
|
469
474
|
showFlowHistory: true,
|
|
470
475
|
showFlowHistoryChild: true
|