@lambo-design/schema-paging-table 1.0.0-beta.74 → 1.0.0-beta.76
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 +3 -3
- package/src/index.vue +15 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/schema-paging-table",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.76",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"standard-version": "^9.5.0",
|
|
14
|
-
"@lambo-design/
|
|
15
|
-
"@lambo-design/
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.273",
|
|
15
|
+
"@lambo-design/paging-table": "^1.0.0-beta.94",
|
|
16
16
|
"@lambo-design/core": "^4.7.1-beta.167",
|
|
17
17
|
"@lambo-design/schema-form": "^1.0.0-beta.90"
|
|
18
18
|
},
|
package/src/index.vue
CHANGED
|
@@ -298,14 +298,26 @@ export default {
|
|
|
298
298
|
if (visibleDomsd.length > self.operColumnDropdownNum) {
|
|
299
299
|
visibleDomsd.splice(self.operColumnDropdownNum - 1, 2)
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
let style ={}
|
|
302
|
+
if (obj.tooltip) style= {
|
|
303
|
+
display: 'inline-block',
|
|
304
|
+
width: '100%',
|
|
305
|
+
overflow: 'hidden',
|
|
306
|
+
textOverflow: 'ellipsis',
|
|
307
|
+
whiteSpace: 'nowrap'
|
|
308
|
+
}
|
|
309
|
+
return h('span', {
|
|
310
|
+
style: style,
|
|
311
|
+
domProps: { title: item.name ? item.name : param.row[obj.key] }
|
|
312
|
+
},[
|
|
302
313
|
...visibleDomsd,
|
|
303
|
-
dropdownDomsd.length > 1 ? operateMore(self,h,dropdownDomsd) : null
|
|
314
|
+
dropdownDomsd.length > 1 ? operateMore(self, h, dropdownDomsd) : null
|
|
304
315
|
]);
|
|
305
316
|
}
|
|
306
317
|
} else if (obj.hasOwnProperty('type') && (obj.type === 'selection'||obj.type === 'single-selection')) {
|
|
307
318
|
this.selectCondition = item.selectCondition ? item.selectCondition : ''
|
|
308
|
-
} else if (item.
|
|
319
|
+
} else if (item.tooltip) {
|
|
320
|
+
if(typeof obj.render !== 'function')
|
|
309
321
|
obj.render = (h, param) => {
|
|
310
322
|
return h('span', {
|
|
311
323
|
style: {
|