n20-common-lib 1.3.65 → 1.3.66

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": "1.3.65",
3
+ "version": "1.3.66",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -13,7 +13,8 @@
13
13
  "build:gzip": "vue-cli-service build --gzip",
14
14
  "build:report": "vue-cli-service build --analy",
15
15
  "build:css": "node build_css",
16
- "build:js": "vue-cli-service build --formats umd-min --target lib src/index.js --name index --dest lib --analy"
16
+ "build:js": "vue-cli-service build --formats umd-min --target lib src/index.js --name index --dest lib --analy",
17
+ "getI18n": "node ./node_modules/nstc-get-i18n"
17
18
  },
18
19
  "files": [
19
20
  "src/_qiankun",
@@ -55,6 +56,7 @@
55
56
  "@vue/cli-plugin-babel": "~4.5.0",
56
57
  "@vue/cli-plugin-eslint": "~4.5.0",
57
58
  "@vue/cli-service": "~4.5.0",
59
+ "@vue/compiler-sfc": "^3.2.38",
58
60
  "babel-eslint": "^10.1.0",
59
61
  "babel-plugin-component": "^1.1.1",
60
62
  "clipboard": "^2.0.11",
@@ -74,6 +76,7 @@
74
76
  "md2vue-loader": "git+https://gitee.com/bable2000/md2vue-loader.git",
75
77
  "mockjs": "^1.1.0",
76
78
  "node-sass": "6.0.0",
79
+ "nstc-get-i18n": "^0.0.1",
77
80
  "qiankun": "^2.5.1",
78
81
  "sass-loader": "^10.2.0",
79
82
  "screenfull": "^5.1.0",
@@ -2,6 +2,7 @@
2
2
  background-color: #303133;
3
3
  border: none;
4
4
  min-width: auto;
5
+ max-width: 80vw;
5
6
  color: $--color-white;
6
7
  padding: 5px 8px;
7
8
  }
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  <div>
11
11
  <div class="flex-box">
12
- <div class="n20-worker flex-item m-r-s">
12
+ <div v-title="item.assignee" class="n20-worker flex-item m-r-s text-ellipsis" :show-overflow-tooltip="true">
13
13
  <span class="worker-icon cl-icon-user"></span>
14
14
  <span>{{ item.assignee }}</span>
15
15
  </div>
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <div v-if="isEqual">
3
+ {{ value }}
4
+ </div>
5
+ <div v-else class="n20-descriptions">
6
+ <div class="m-b-ss">
7
+ <span class="after-color">{{ value }}</span>
8
+ </div>
9
+ <div>
10
+ <span class="before-color">{{ oldValue }}</span>
11
+ <el-tooltip v-if="tooltip" :content="tooltipContent" placement="top">
12
+ <i class="n20-icon-xinxitishi m-l-ss color-placeholder"></i>
13
+ </el-tooltip>
14
+ </div>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ export default {
20
+ name: 'Diff',
21
+ props: {
22
+ value: {
23
+ type: [String, Boolean, Array],
24
+ default: undefined
25
+ },
26
+ oldValue: {
27
+ type: [String, Boolean, Array],
28
+ default: undefined
29
+ },
30
+ tooltip: {
31
+ type: [String, Boolean],
32
+ default: undefined
33
+ }
34
+ },
35
+ computed: {
36
+ isEqual() {
37
+ if (this.value === this.oldValue) {
38
+ return true
39
+ } else if (
40
+ Array.isArray(this.value) &&
41
+ Array.isArray(this.oldValue) &&
42
+ this.value.toString() === this.oldValue.toString()
43
+ ) {
44
+ return true
45
+ } else {
46
+ return false
47
+ }
48
+ },
49
+ tooltipContent() {
50
+ if (!this.tooltip) {
51
+ return undefined
52
+ } else {
53
+ if (this.tooltip === true) {
54
+ return '修改前数据内容'
55
+ } else {
56
+ return this.tooltip
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ </script>
@@ -250,7 +250,7 @@
250
250
  </component>
251
251
  </div>
252
252
  </el-dialog>
253
- <Dialog title="附件批量上传" :visible.sync="visibleBatch" top="5vh" width="692px">
253
+ <Dialog title="附件批量上传" :visible.sync="visibleBatch" top="5vh" width="692px" :destroy-on-open="true">
254
254
  <clUpload
255
255
  ref="upload-batch"
256
256
  class="n20-upload-drag"
package/src/index.js CHANGED
@@ -57,6 +57,7 @@ import Descriptions from './components/Descriptions/index.vue'
57
57
  import EventBubble from './components/EventBubble/index.vue'
58
58
  // ECharts 不要打包进来
59
59
  import Stamp from './components/Stamp/index.vue'
60
+ import Diff from './components/Diff/index.vue'
60
61
  /* old */
61
62
  import TableO from './components/Table/indexO.vue'
62
63
  import FiltersO from './components/Filters/indexO.vue'
@@ -150,6 +151,7 @@ const components = [
150
151
  EventBubble,
151
152
  ApprovalImg,
152
153
  Stamp,
154
+ Diff,
153
155
  /* old */
154
156
  TableO,
155
157
  FiltersO,
@@ -264,5 +266,6 @@ export {
264
266
  Descriptions,
265
267
  EventBubble,
266
268
  ApprovalImg,
267
- Stamp
269
+ Stamp,
270
+ Diff
268
271
  }