sone-ui-component-3.2.4 2.1.58 → 2.1.59
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/lib/sone-ui.common.js +88 -72
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +88 -72
- 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/index.js +4 -4
- package/packages/table/src/mainNew.vue +20 -4
- package/src/index.js +1 -1
package/package.json
CHANGED
package/packages/table/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: songlin
|
|
4
4
|
* @Date: 2021-08-26 16:39:21
|
|
5
|
-
* @LastEditTime:
|
|
6
|
-
* @LastEditors:
|
|
5
|
+
* @LastEditTime: 2025-07-10 11:33:01
|
|
6
|
+
* @LastEditors: Please set LastEditors
|
|
7
7
|
*/
|
|
8
|
-
// import Table from './src/main';
|
|
9
|
-
import Table from './src/mainNew';
|
|
8
|
+
// import Table from './src/main'; //dev分支使用(列显隐里 不带保存按钮)
|
|
9
|
+
import Table from './src/mainNew'; //0903分支及newgl分支使用(列显隐里 带保存按钮)
|
|
10
10
|
|
|
11
11
|
Table.install = function(Vue) {
|
|
12
12
|
Vue.component(Table.name, Table);
|
|
@@ -306,6 +306,7 @@
|
|
|
306
306
|
:key="i"
|
|
307
307
|
>
|
|
308
308
|
<el-button
|
|
309
|
+
v-if="buttonDisplay=='separate'"
|
|
309
310
|
:icon="item.icon"
|
|
310
311
|
:style="{color:item.color}"
|
|
311
312
|
:title="item.label"
|
|
@@ -314,6 +315,16 @@
|
|
|
314
315
|
>
|
|
315
316
|
{{item.label}}
|
|
316
317
|
</el-button>
|
|
318
|
+
<el-button
|
|
319
|
+
v-else
|
|
320
|
+
:icon="['icon','iconName'].includes(buttonDisplay)?item.icon:''"
|
|
321
|
+
:style="{color:item.color}"
|
|
322
|
+
:title="item.label"
|
|
323
|
+
type="text"
|
|
324
|
+
@click.native.stop="handButton(item.function, scope, item.id)"
|
|
325
|
+
>
|
|
326
|
+
{{['name','iconName'].includes(buttonDisplay)?item.label:''}}
|
|
327
|
+
</el-button>
|
|
317
328
|
</el-dropdown-item>
|
|
318
329
|
</el-dropdown-menu>
|
|
319
330
|
</el-dropdown>
|
|
@@ -786,10 +797,15 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
|
|
|
786
797
|
indexMethod: Function,
|
|
787
798
|
load: Function,
|
|
788
799
|
// 默认显示按钮图标加提示,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
800
|
+
tooltipDisabled: {
|
|
801
|
+
type: Boolean,
|
|
802
|
+
default: false,
|
|
803
|
+
},
|
|
804
|
+
buttonDisplay:{
|
|
805
|
+
type:String,
|
|
806
|
+
default:"separate",
|
|
807
|
+
remark:"按钮显示方式:按照按钮设置-separate; 图标-icon; 名称-name; 图标+名称-iconName"
|
|
808
|
+
}
|
|
793
809
|
},
|
|
794
810
|
data() {
|
|
795
811
|
return {
|