Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
f45c2550
authored
Aug 13, 2024
by
芋道源码
Committed by
GitHub
Aug 13, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72 from Mister-Kin/master
fix: failed to render for Boolean type of DictTag
parents
3a1224a2
14192991
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/components/DictTag/src/DictTag.vue
+3
-3
No files found.
src/components/DictTag/src/DictTag.vue
View file @
f45c2550
...
@@ -3,7 +3,7 @@ import { defineComponent, PropType, computed } from 'vue'
...
@@ -3,7 +3,7 @@ import { defineComponent, PropType, computed } from 'vue'
import
{
isHexColor
}
from
'@/utils/color'
import
{
isHexColor
}
from
'@/utils/color'
import
{
ElTag
}
from
'element-plus'
import
{
ElTag
}
from
'element-plus'
import
{
DictDataType
,
getDictOptions
}
from
'@/utils/dict'
import
{
DictDataType
,
getDictOptions
}
from
'@/utils/dict'
import
{
isArray
,
isString
,
isNumber
}
from
'@/utils/is'
import
{
isArray
,
isString
,
isNumber
,
isBoolean
}
from
'@/utils/is'
export
default
defineComponent
({
export
default
defineComponent
({
name
:
'DictTag'
,
name
:
'DictTag'
,
...
@@ -29,8 +29,8 @@ export default defineComponent({
...
@@ -29,8 +29,8 @@ export default defineComponent({
},
},
setup
(
props
)
{
setup
(
props
)
{
const
valueArr
:
any
=
computed
(()
=>
{
const
valueArr
:
any
=
computed
(()
=>
{
// 1.是Number类型的情况
// 1.是Number类型
和Boolean类型
的情况
if
(
isNumber
(
props
.
value
))
{
if
(
isNumber
(
props
.
value
)
||
isBoolean
(
props
.
value
)
)
{
return
[
String
(
props
.
value
)]
return
[
String
(
props
.
value
)]
}
}
// 2.是字符串(进一步判断是否有包含分隔符号 -> props.sepSymbol )
// 2.是字符串(进一步判断是否有包含分隔符号 -> props.sepSymbol )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment