n20-common-lib 3.2.3 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -51,6 +51,7 @@
51
51
  @import './view-toggle.scss';
52
52
  @import './pivot.scss';
53
53
  @import './dynamic-table.scss';
54
+ @import './dynamic-field.scss';
54
55
  @import './v3/table.scss';
55
56
  @import './v3/secondary-tab.scss';
56
57
  @import './v3/header.scss';
@@ -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
@@ -283,4 +283,4 @@ export default {
283
283
  }
284
284
  </script>
285
285
 
286
- <style lang="less" scoped></style>
286
+ <style lang="scss" scoped></style>