sone-ui-component-3.2.4 2.0.272 → 2.0.274
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/Notice.md +106 -0
- package/lib/sone-ui.common.js +80 -107
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +80 -107
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +3 -3
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/table/src/main.vue +12 -6
- package/packages/upload/src/main.vue +2 -3
- package/packages/watermark/src/main.js +3 -3
- package/src/index.js +32 -32
- package/src/styles/table.scss +12 -0
package/package.json
CHANGED
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
</el-table-column>
|
|
366
366
|
<!-- 序号+复选 -->
|
|
367
367
|
<el-table-column
|
|
368
|
-
:width="option.indexCheckWidth"
|
|
368
|
+
:width="option.indexCheckWidth||70"
|
|
369
369
|
fixed
|
|
370
370
|
:label="option.indexLabel ? option.indexLabel : '序号'"
|
|
371
371
|
type="index"
|
|
@@ -467,7 +467,6 @@
|
|
|
467
467
|
:align="column.hasOwnProperty('align') ? column.align : 'left'"
|
|
468
468
|
filter-placement="bottom-end"
|
|
469
469
|
:header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
|
|
470
|
-
:show-overflow-tooltip="column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false"
|
|
471
470
|
v-else-if="column.hasOwnProperty('istrue')?column.istrue:true"
|
|
472
471
|
:column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
|
|
473
472
|
:resizable="column.hasOwnProperty('resizable') ? column.resizable : true"
|
|
@@ -486,7 +485,6 @@
|
|
|
486
485
|
:align="childColumn.hasOwnProperty('align') ? childColumn.align : 'left'"
|
|
487
486
|
filter-placement="bottom-end"
|
|
488
487
|
:header-align="childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left'"
|
|
489
|
-
:show-overflow-tooltip="childColumn.hasOwnProperty('showOverflowTooltip') ? childColumn.showOverflowTooltip : false"
|
|
490
488
|
v-if="childColumn.hasOwnProperty('istrue')?childColumn.istrue:true"
|
|
491
489
|
:column-key="childColumn.prop"
|
|
492
490
|
:resizable="childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true"
|
|
@@ -545,7 +543,11 @@
|
|
|
545
543
|
:row="scope.row"
|
|
546
544
|
v-if="childColumn.slotCell"
|
|
547
545
|
></slot>
|
|
548
|
-
<template v-else>
|
|
546
|
+
<template v-else>
|
|
547
|
+
<el-tooltip :content="scope.row[childColumn.prop]" placement="top" effect="light" popper-class="over_popper">
|
|
548
|
+
<span class="over_title">{{ scope.row[childColumn.prop] }}</span>
|
|
549
|
+
</el-tooltip>
|
|
550
|
+
</template>
|
|
549
551
|
</template>
|
|
550
552
|
</el-table-column>
|
|
551
553
|
</template>
|
|
@@ -608,7 +610,11 @@
|
|
|
608
610
|
:row="scope.row"
|
|
609
611
|
v-if="column.slotCell"
|
|
610
612
|
></slot>
|
|
611
|
-
<template v-else>
|
|
613
|
+
<template v-else>
|
|
614
|
+
<el-tooltip :content="scope.row[column.prop]" placement="top" effect="light" popper-class="over_popper">
|
|
615
|
+
<span class="over_title">{{ scope.row[column.prop] }}</span>
|
|
616
|
+
</el-tooltip>
|
|
617
|
+
</template>
|
|
612
618
|
</template>
|
|
613
619
|
</el-table-column>
|
|
614
620
|
</template>
|
|
@@ -693,7 +699,7 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
|
|
|
693
699
|
default: () => {
|
|
694
700
|
return {
|
|
695
701
|
index: true,
|
|
696
|
-
indexWidth:
|
|
702
|
+
indexWidth: 70,
|
|
697
703
|
height: 'auto',
|
|
698
704
|
maxHeight: 'auto',
|
|
699
705
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="sone-upload-box" :class="{ 'sone-upload-box-full': type === 'img' && !multiple }">
|
|
11
|
-
<div>11111</div>
|
|
12
11
|
<el-upload
|
|
13
12
|
ref="upload"
|
|
14
13
|
action
|
|
@@ -87,9 +86,9 @@
|
|
|
87
86
|
<el-tooltip :enterable="false" content="下载" placement="top">
|
|
88
87
|
<i class="sone-upload-mask-icon el-icon-download" @click="download(fileList)"></i>
|
|
89
88
|
</el-tooltip>
|
|
90
|
-
|
|
89
|
+
<el-tooltip v-show="singleDelBtn" :enterable="false" content="删除" placement="top">
|
|
91
90
|
<i class="sone-upload-mask-icon el-icon-delete" v-if="!disabled" @click="del(fileList)"></i>
|
|
92
|
-
</el-tooltip>
|
|
91
|
+
</el-tooltip>
|
|
93
92
|
<el-tooltip v-show="singleEditBtn" :enterable="false" content="编辑" placement="top">
|
|
94
93
|
<i class="sone-upload-mask-icon el-icon-upload2" v-if="!disabled" @click="editImg"></i>
|
|
95
94
|
</el-tooltip>
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: songlin
|
|
4
4
|
* @Date: 2021-09-14 14:33:47
|
|
5
|
-
* @LastEditTime:
|
|
6
|
-
* @LastEditors:
|
|
5
|
+
* @LastEditTime: 2024-06-04 18:01:41
|
|
6
|
+
* @LastEditors: lw
|
|
7
7
|
*/
|
|
8
8
|
import Vue from 'vue';
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ function createSVG(text = "", singal) {
|
|
|
23
23
|
max-width: 160px;
|
|
24
24
|
padding: 6px;
|
|
25
25
|
border: 3px solid #FF6B61;
|
|
26
|
-
opacity: .
|
|
26
|
+
opacity: 0.5;
|
|
27
27
|
border-radius: 10px;
|
|
28
28
|
color: #FF6B61;
|
|
29
29
|
font-size: ${sFontsize};
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* Automatically generated by './build/bin/build-entry.js' */
|
|
2
|
-
|
|
1
|
+
/* Automatically generated by './build/bin/build-entry.js' */
|
|
2
|
+
|
|
3
3
|
import Container from '../packages/container/index.js';
|
|
4
4
|
import MessageBox from '../packages/messageBox/index.js';
|
|
5
5
|
import Tree from '../packages/tree/index.js';
|
|
@@ -16,10 +16,10 @@ import Editor from '../packages/editor/index.js';
|
|
|
16
16
|
import InputNumber from '../packages/inputNumber/index.js';
|
|
17
17
|
import Cascader from '../packages/cascader/index.js';
|
|
18
18
|
import Autocomplete from '../packages/autocomplete/index.js';
|
|
19
|
-
import FileUpload from '../packages/fileUpload/index.js';
|
|
20
|
-
import locale from 'sone-ui-component/src/locale';
|
|
21
|
-
import 'sone-ui-component/src/utils/directives.js';
|
|
22
|
-
const components = [
|
|
19
|
+
import FileUpload from '../packages/fileUpload/index.js';
|
|
20
|
+
import locale from 'sone-ui-component/src/locale';
|
|
21
|
+
import 'sone-ui-component/src/utils/directives.js';
|
|
22
|
+
const components = [
|
|
23
23
|
Container,
|
|
24
24
|
MessageBox,
|
|
25
25
|
Tree,
|
|
@@ -35,30 +35,30 @@ const components = [
|
|
|
35
35
|
InputNumber,
|
|
36
36
|
Cascader,
|
|
37
37
|
Autocomplete,
|
|
38
|
-
FileUpload
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
const install = function(Vue, opts = {}) {
|
|
42
|
-
locale.use(opts.locale);
|
|
43
|
-
locale.i18n(opts.i18n);
|
|
44
|
-
|
|
45
|
-
components.forEach(component => {
|
|
46
|
-
Vue.component(component.name, component);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
Vue.prototype.$watermark = Watermark;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/* istanbul ignore if */
|
|
53
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
54
|
-
install(window.Vue);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default {
|
|
58
|
-
version: '2.0.
|
|
59
|
-
locale: locale.use,
|
|
60
|
-
i18n: locale.i18n,
|
|
61
|
-
install,
|
|
38
|
+
FileUpload
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
const install = function(Vue, opts = {}) {
|
|
42
|
+
locale.use(opts.locale);
|
|
43
|
+
locale.i18n(opts.i18n);
|
|
44
|
+
|
|
45
|
+
components.forEach(component => {
|
|
46
|
+
Vue.component(component.name, component);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
Vue.prototype.$watermark = Watermark;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/* istanbul ignore if */
|
|
53
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
54
|
+
install(window.Vue);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
version: '2.0.273',
|
|
59
|
+
locale: locale.use,
|
|
60
|
+
i18n: locale.i18n,
|
|
61
|
+
install,
|
|
62
62
|
Container,
|
|
63
63
|
MessageBox,
|
|
64
64
|
Tree,
|
|
@@ -75,5 +75,5 @@ export default {
|
|
|
75
75
|
InputNumber,
|
|
76
76
|
Cascader,
|
|
77
77
|
Autocomplete,
|
|
78
|
-
FileUpload
|
|
79
|
-
};
|
|
78
|
+
FileUpload
|
|
79
|
+
};
|