n20-common-lib 1.3.24 → 1.3.25

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.
@@ -5,8 +5,8 @@
5
5
  :headers="headers"
6
6
  :accept="accept"
7
7
  :multiple="multiple"
8
- :file-list="fileList || list"
9
- :show-file-list="false"
8
+ :file-list="fileList"
9
+ :show-file-list="multiple ? true : showFileList"
10
10
  v-bind="$attrs"
11
11
  :on-success="successFn"
12
12
  :on-error="errorFn"
@@ -95,6 +95,10 @@ export default {
95
95
  type: [String, Number],
96
96
  default: undefined
97
97
  },
98
+ showFileList: {
99
+ type: Boolean,
100
+ default: false
101
+ },
98
102
  accept: {
99
103
  type: String,
100
104
  default: undefined
@@ -216,9 +220,9 @@ export default {
216
220
  if (this.onSuccess) {
217
221
  this.onSuccess(response, file, fileList)
218
222
  } else {
219
- this.fileNameC = file.name
223
+ this.fileNameC = this.multiple ? '' : file.name
220
224
  this.fileUrlC = response.data
221
- this.fileList = [file]
225
+ this.fileList = fileList
222
226
  }
223
227
 
224
228
  if (this.msgType === 'dialog') {
package/src/index.js CHANGED
@@ -50,8 +50,7 @@ import FlowDialog from './components/ApprovalRecord/flowDialog.vue'
50
50
  import ChildRange from './components/ChildRange/index'
51
51
  import FileImport from './components/FileImport/index'
52
52
  import PageHeader from './components/PageHeader/index'
53
- import PlainText from './components/PlainText/index'
54
- import PlainTextItem from './components/PlainText/PlainTextItem'
53
+ import Descriptions from './components/Descriptions'
55
54
  // ECharts 不要打包进来
56
55
  // import Search from './components/Search/index.vue'
57
56
  import Stamp from './components/Stamp/index.vue'
@@ -140,8 +139,7 @@ const components = [
140
139
  ChildRange,
141
140
  FileImport,
142
141
  PageHeader,
143
- PlainText,
144
- PlainTextItem,
142
+ Descriptions,
145
143
  // Search,
146
144
  approvalImg,
147
145
  Stamp,
@@ -249,8 +247,7 @@ export {
249
247
  ChildRange,
250
248
  FileImport,
251
249
  PageHeader,
252
- PlainText,
253
- PlainTextItem,
250
+ Descriptions,
254
251
  // Search,
255
252
  approvalImg,
256
253
  Stamp