@lambo-design/schema-paging-table 1.0.0-beta.50 → 1.0.0-beta.51
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 +5 -5
- package/src/index.vue +19 -1
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.51",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"standard-version": "^9.5.0",
|
|
14
|
-
"@lambo-design/core": "^4.7.1-beta.
|
|
15
|
-
"@lambo-design/
|
|
16
|
-
"@lambo-design/
|
|
17
|
-
"@lambo-design/
|
|
14
|
+
"@lambo-design/core": "^4.7.1-beta.146",
|
|
15
|
+
"@lambo-design/shared": "^1.0.0-beta.222",
|
|
16
|
+
"@lambo-design/paging-table": "^1.0.0-beta.86",
|
|
17
|
+
"@lambo-design/schema-form": "^1.0.0-beta.73"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
package/src/index.vue
CHANGED
|
@@ -199,7 +199,25 @@ export default {
|
|
|
199
199
|
let state = param.row[obj.key]
|
|
200
200
|
return h('span', obj.enums[state])
|
|
201
201
|
}
|
|
202
|
-
}else if(obj.hasOwnProperty("type") && obj.type === "
|
|
202
|
+
} else if (obj.hasOwnProperty("type") && obj.type === "status" && obj.statusList){
|
|
203
|
+
obj.render = function (h, param) {
|
|
204
|
+
let label = "";
|
|
205
|
+
let tagColor = "";
|
|
206
|
+
obj.statusList.forEach(item => {
|
|
207
|
+
if(item.statusKey === param.row[obj.key]){
|
|
208
|
+
label = item.statusValue;
|
|
209
|
+
tagColor = item.color ? item.color : item.customColor;
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
if(label){
|
|
213
|
+
return h('Tag', {
|
|
214
|
+
props: {
|
|
215
|
+
color: tagColor
|
|
216
|
+
}
|
|
217
|
+
}, label);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
} else if(obj.hasOwnProperty("type") && obj.type === "operate"){
|
|
203
221
|
obj.render = (h, param) => {
|
|
204
222
|
let visibleDomsd = [];
|
|
205
223
|
let dropdownDomsd = [];
|