@xuekl/cli-components 1.9.149 → 1.9.151

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.
@@ -23,7 +23,7 @@ const { auth, name } = props
23
23
  const mask = typeof props.mask === 'undefined' ? true : props.mask
24
24
  const doAuth = (auth) => {
25
25
  if (name) {
26
- return isAuth(route.name + ':' + name)
26
+ return isAuth(route?.name + ':' + name)
27
27
  } else {
28
28
  return isAuth(auth)
29
29
  }
package/XklTable.vue CHANGED
@@ -135,9 +135,9 @@ const dictLabel = computed(() => {
135
135
  return function (col: any, row: any) {
136
136
  if (dictStore.value[col.dict]) {
137
137
  const item = dictStore.value[col.dict].find(res => res.dictValue == row[col.prop]) || {}
138
- return item.dictLabel
138
+ return item.dictLabel || row[col.prop]
139
139
  }
140
- return ''
140
+ return row[col.prop]
141
141
  }
142
142
  })
143
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuekl/cli-components",
3
- "version": "1.9.149",
3
+ "version": "1.9.151",
4
4
  "description": "element-plus 组件二次封装",
5
5
  "main": "index.ts",
6
6
  "scripts": {