n20-common-lib 3.1.7 → 3.1.8

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.1.7",
3
+ "version": "3.1.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,13 +1,8 @@
1
1
  .n20-page-header {
2
2
  display: flex;
3
3
  line-height: 20px;
4
- padding: 12px 16px;
5
-
4
+ padding-bottom: 2px;
6
5
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
7
- &__wappr {
8
- display: flex;
9
- flex-wrap: wrap;
10
- }
11
6
 
12
7
  .page-header__left {
13
8
  display: flex;
@@ -37,23 +32,14 @@
37
32
  }
38
33
 
39
34
  .page-header__title {
40
- color: var(--text-2, #4e5969);
41
- /* 14/CN-Regular */
42
- font-family: 'PingFang SC';
43
35
  font-size: 14px;
44
- font-style: normal;
45
- font-weight: 400;
46
- line-height: 22px; /* 157.143% */
36
+ line-height: 20px;
37
+ color: #3d4a57;
47
38
  }
48
39
 
49
40
  .page-header__content {
50
- color: var(--text-1, #1d2129);
51
-
52
- /* 16/CN-Medium */
53
- font-family: 'PingFang SC';
54
- font-size: 16px;
55
- font-style: normal;
56
- font-weight: 500;
57
- line-height: 24px; /* 150% */
41
+ font-size: 14px;
42
+ line-height: 20px;
43
+ color: #3d4a57;
58
44
  }
59
45
  }
@@ -136,14 +136,6 @@ export default {
136
136
  }
137
137
  },
138
138
  props: {
139
- hasSaveView: {
140
- type: Boolean,
141
- default: false
142
- },
143
- isNotClose: {
144
- type: Boolean,
145
- default: false
146
- },
147
139
  maxLength: {
148
140
  type: Number
149
141
  },
@@ -1,24 +1,20 @@
1
1
  <template>
2
2
  <div class="n20-page-header">
3
- <div class="n20-page-header__wappr">
4
- <div v-if="!disable" class="page-header__left" @click="$emit('back')">
5
- <i :class="icon"></i>
6
- <div class="page-header__title">
7
- <slot name="title">{{ title }}</slot>
8
- </div>
9
- </div>
10
- <div class="page-header__content">
11
- <slot name="content">{{ content }}</slot>
3
+ <div v-if="!disable" class="page-header__left" @click="$emit('back')">
4
+ <i :class="icon"></i>
5
+ <div class="page-header__title">
6
+ <slot name="title">{{ title }}</slot>
12
7
  </div>
13
8
  </div>
14
- <div>
15
- <slot></slot>
9
+ <div class="page-header__content">
10
+ <slot name="content">{{ content }}</slot>
16
11
  </div>
17
12
  </div>
18
13
  </template>
19
14
 
20
15
  <script>
21
16
  import { $lc } from '../../utils/i18n/index'
17
+
22
18
  export default {
23
19
  name: 'PageHeader',
24
20
  props: {