doway-coms 1.3.6 → 1.3.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/.browserslistrc +2 -2
- package/README.md +28 -28
- package/{lib → dist}/doway-coms.common.js +119301 -104053
- package/dist/doway-coms.css +3 -0
- package/{lib → dist}/doway-coms.umd.js +120190 -104942
- package/dist/doway-coms.umd.min.js +317 -0
- package/dist/package.json +12 -0
- package/package.json +51 -51
- package/packages/BasePictureCard/src/index.vue +28 -8
- package/packages/utils/request.js +2 -1
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.7946d50b.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +0 -340
- package/dist/js/index.49bc6add.js +0 -2
- package/lib/doway-coms.css +0 -1
- package/lib/doway-coms.umd.min.js +0 -328
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "doway-coms",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "doway组件库",
|
|
5
|
-
"author": "dowaysoft",
|
|
6
|
-
"main": "packages/index.js",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vue-cli-service serve",
|
|
10
|
-
"build": "vue-cli-service build",
|
|
11
|
-
"lint": "vue-cli-service lint",
|
|
12
|
-
"lib": "vue-cli-service build --target lib --name doway-coms --dest lib packages/index.js",
|
|
13
|
-
"build:test": "vue-cli-service build --report"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"ant-design-vue": "1.7.8",
|
|
17
|
-
"axios": "0.18.0",
|
|
18
|
-
"element-resize-detector": "^1.2.4",
|
|
19
|
-
"js-cookie": "2.2.0",
|
|
20
|
-
"vee-validate": "3.4.14",
|
|
21
|
-
"vue": "2.7.14",
|
|
22
|
-
"vue-router": "3.6.5",
|
|
23
|
-
"vuedraggable": "^2.24.3",
|
|
24
|
-
"vuex": "3.6.2",
|
|
25
|
-
"vxe-table": "3.5.4",
|
|
26
|
-
"xe-clipboard": "1.10.2",
|
|
27
|
-
"xe-utils": "3.5.4"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@vue/cli-plugin-babel": "~4.2.0",
|
|
31
|
-
"@vue/cli-plugin-eslint": "~4.2.0",
|
|
32
|
-
"@vue/cli-plugin-vuex": "~4.2.0",
|
|
33
|
-
"@vue/cli-service": "~4.2.0",
|
|
34
|
-
"babel-eslint": "^10.0.3",
|
|
35
|
-
"babel-plugin-component": "^1.1.1",
|
|
36
|
-
"babel-plugin-import": "^1.13.6",
|
|
37
|
-
"eslint": "^6.7.2",
|
|
38
|
-
"eslint-plugin-vue": "^6.1.2",
|
|
39
|
-
"extract-text-webpack-plugin": "^3.0.2",
|
|
40
|
-
"less-loader": "^6.0.0",
|
|
41
|
-
"node-sass": "8.0.0",
|
|
42
|
-
"sass-loader": "10.4.1",
|
|
43
|
-
"vue-template-compiler": "^2.6.11"
|
|
44
|
-
},
|
|
45
|
-
"bundleDependencies": false,
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "https://www.npmjs.com/package/doway-coms.git"
|
|
49
|
-
},
|
|
50
|
-
"keywords": []
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "doway-coms",
|
|
3
|
+
"version": "1.3.8",
|
|
4
|
+
"description": "doway组件库",
|
|
5
|
+
"author": "dowaysoft",
|
|
6
|
+
"main": "packages/index.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vue-cli-service serve",
|
|
10
|
+
"build": "vue-cli-service build",
|
|
11
|
+
"lint": "vue-cli-service lint",
|
|
12
|
+
"lib": "vue-cli-service build --target lib --name doway-coms --dest lib packages/index.js",
|
|
13
|
+
"build:test": "vue-cli-service build --report"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"ant-design-vue": "1.7.8",
|
|
17
|
+
"axios": "0.18.0",
|
|
18
|
+
"element-resize-detector": "^1.2.4",
|
|
19
|
+
"js-cookie": "2.2.0",
|
|
20
|
+
"vee-validate": "3.4.14",
|
|
21
|
+
"vue": "2.7.14",
|
|
22
|
+
"vue-router": "3.6.5",
|
|
23
|
+
"vuedraggable": "^2.24.3",
|
|
24
|
+
"vuex": "3.6.2",
|
|
25
|
+
"vxe-table": "3.5.4",
|
|
26
|
+
"xe-clipboard": "1.10.2",
|
|
27
|
+
"xe-utils": "3.5.4"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@vue/cli-plugin-babel": "~4.2.0",
|
|
31
|
+
"@vue/cli-plugin-eslint": "~4.2.0",
|
|
32
|
+
"@vue/cli-plugin-vuex": "~4.2.0",
|
|
33
|
+
"@vue/cli-service": "~4.2.0",
|
|
34
|
+
"babel-eslint": "^10.0.3",
|
|
35
|
+
"babel-plugin-component": "^1.1.1",
|
|
36
|
+
"babel-plugin-import": "^1.13.6",
|
|
37
|
+
"eslint": "^6.7.2",
|
|
38
|
+
"eslint-plugin-vue": "^6.1.2",
|
|
39
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
40
|
+
"less-loader": "^6.0.0",
|
|
41
|
+
"node-sass": "8.0.0",
|
|
42
|
+
"sass-loader": "10.4.1",
|
|
43
|
+
"vue-template-compiler": "^2.6.11"
|
|
44
|
+
},
|
|
45
|
+
"bundleDependencies": false,
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://www.npmjs.com/package/doway-coms.git"
|
|
49
|
+
},
|
|
50
|
+
"keywords": []
|
|
51
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="display: inline-block">
|
|
3
|
-
<div class="file-card">
|
|
3
|
+
<div class="file-card" :class="isStyle? 'currentHeight' : ''">
|
|
4
4
|
<div
|
|
5
5
|
class="attach-wrapper"
|
|
6
6
|
v-for="internalRow in internalRows.filter(
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
:key="internalRow.attach.fileName"
|
|
10
10
|
>
|
|
11
11
|
<template v-if="internalRow.sysRowState !== sysRowState.delete">
|
|
12
|
+
<slot name='header' :row="internalRow"></slot>
|
|
12
13
|
<div class="attach" v-if="internalRow.attach.content === 'image'">
|
|
13
14
|
<img
|
|
14
15
|
@click="attachFileClick(internalRow.attach)"
|
|
15
|
-
:style="{
|
|
16
|
+
:style="{ height: height, lineHeight: height }"
|
|
16
17
|
style="
|
|
18
|
+
min-width: 100px;
|
|
19
|
+
width: 100%;
|
|
17
20
|
border: 1px solid #ccc;
|
|
18
21
|
border-radius: 6px;
|
|
19
22
|
overflow: hidden;
|
|
@@ -38,17 +41,18 @@
|
|
|
38
41
|
type="eye"
|
|
39
42
|
@click="viewAttach(internalRow.attach)"
|
|
40
43
|
/>
|
|
41
|
-
<VxeCheckbox
|
|
44
|
+
<!-- <VxeCheckbox
|
|
42
45
|
class="attach-circle"
|
|
43
46
|
v-model="internalRow.isDefault"
|
|
44
47
|
@change="circleAttach(internalRow.attach, internalRow)"
|
|
45
48
|
:disabled="formState == 'view'"
|
|
46
|
-
></VxeCheckbox>
|
|
49
|
+
></VxeCheckbox> -->
|
|
47
50
|
</div>
|
|
48
51
|
<div class="attach" v-else>
|
|
49
52
|
<img
|
|
50
53
|
@click="attachFileClick(internalRow.attach)"
|
|
51
54
|
class="o_image"
|
|
55
|
+
style="width: 100%"
|
|
52
56
|
:data-mimetype="internalRow.attach.contentType"
|
|
53
57
|
/>
|
|
54
58
|
<a-icon
|
|
@@ -67,12 +71,12 @@
|
|
|
67
71
|
type="eye"
|
|
68
72
|
@click="viewAttach(internalRow.attach)"
|
|
69
73
|
/>
|
|
70
|
-
<VxeCheckbox
|
|
74
|
+
<!-- <VxeCheckbox
|
|
71
75
|
class="attach-circle"
|
|
72
76
|
v-model="internalRow.isDefault"
|
|
73
77
|
@change="circleAttach(internalRow.attach, internalRow)"
|
|
74
78
|
:disabled="formState == 'view'"
|
|
75
|
-
></VxeCheckbox>
|
|
79
|
+
></VxeCheckbox> -->
|
|
76
80
|
</div>
|
|
77
81
|
<div
|
|
78
82
|
:style="{ width: width }"
|
|
@@ -199,6 +203,10 @@ export default {
|
|
|
199
203
|
};
|
|
200
204
|
},
|
|
201
205
|
props: {
|
|
206
|
+
isStyle: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: false,
|
|
209
|
+
},
|
|
202
210
|
showEmptyText: {
|
|
203
211
|
type: Boolean,
|
|
204
212
|
default: true,
|
|
@@ -279,7 +287,8 @@ export default {
|
|
|
279
287
|
},
|
|
280
288
|
},
|
|
281
289
|
},
|
|
282
|
-
created() {
|
|
290
|
+
created() {
|
|
291
|
+
},
|
|
283
292
|
mounted() {
|
|
284
293
|
// 请求头加入token
|
|
285
294
|
this.uploadHeaders.Authorization = `Bearer ${this.$store.getters.token}`;
|
|
@@ -354,8 +363,8 @@ export default {
|
|
|
354
363
|
sysRowState: sysRowState.add,
|
|
355
364
|
attach: info.file.response.content,
|
|
356
365
|
};
|
|
366
|
+
|
|
357
367
|
this.internalRows.push(addRow);
|
|
358
|
-
this.$emit("add", this.dataName, info.file.response.content);
|
|
359
368
|
let tempField;
|
|
360
369
|
for (let i = 0; i < this.cols.length; i++) {
|
|
361
370
|
// 赋值关联字段数据
|
|
@@ -374,6 +383,11 @@ export default {
|
|
|
374
383
|
tempValue[tempField] = this.formRow[this.cols[i].linkValueField];
|
|
375
384
|
}
|
|
376
385
|
}
|
|
386
|
+
this.$emit(
|
|
387
|
+
"add",
|
|
388
|
+
this.dataName,
|
|
389
|
+
info.file.response.content
|
|
390
|
+
);
|
|
377
391
|
}
|
|
378
392
|
},
|
|
379
393
|
beforeAvatarUpload(file) {
|
|
@@ -455,6 +469,8 @@ export default {
|
|
|
455
469
|
narrowClick() {
|
|
456
470
|
this.isFullscreen = false;
|
|
457
471
|
},
|
|
472
|
+
// 单选改变事件
|
|
473
|
+
// change
|
|
458
474
|
},
|
|
459
475
|
};
|
|
460
476
|
</script>
|
|
@@ -579,4 +595,8 @@ export default {
|
|
|
579
595
|
.el-upload-list__item is-success {
|
|
580
596
|
float: left;
|
|
581
597
|
}
|
|
598
|
+
.currentHeight {
|
|
599
|
+
display: flex;
|
|
600
|
+
align-items: center;
|
|
601
|
+
}
|
|
582
602
|
</style>
|
|
@@ -47,6 +47,7 @@ service.interceptors.response.use(
|
|
|
47
47
|
}
|
|
48
48
|
notification.error({
|
|
49
49
|
message: '错误信息',
|
|
50
|
+
top:"100px",
|
|
50
51
|
description: h => {
|
|
51
52
|
return h('div', null, [
|
|
52
53
|
h('p', { domProps: { innerHTML: res.msg } }, null)
|
|
@@ -74,7 +75,7 @@ service.interceptors.response.use(
|
|
|
74
75
|
} else {
|
|
75
76
|
errorMsg = error.msg
|
|
76
77
|
}
|
|
77
|
-
notification['error']({ message: '错误信息', description: errorMsg })
|
|
78
|
+
notification['error']({ message: '错误信息', description: errorMsg, top:"100px" })
|
|
78
79
|
return Promise.reject(error)
|
|
79
80
|
}
|
|
80
81
|
)
|