Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
cabe326a
Commit
cabe326a
authored
Nov 28, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CheckBtn 修改
parent
3c6c626d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
CheckBtn.vue
src/doctor/components/checkBtn/CheckBtn.vue
+14
-3
Index.vue
src/test/Index.vue
+6
-6
No files found.
src/doctor/components/checkBtn/CheckBtn.vue
View file @
cabe326a
...
...
@@ -4,7 +4,9 @@
@
click=
"onClick(item)"
:class=
"['py-2 px-3 shrink-0 check-btn-item',
{ 'check-btn-item-active': isSelect(item) },
{ 'check-btn-item-disabled': isDisabled(item) }]">
{ 'check-btn-item-disabled': isDisabled(item) },
`text-align-${textAlign}`]"
>
{{
item
[
fieldNames
.
text
]
}}
</div>
</div>
...
...
@@ -26,7 +28,8 @@ export default {
// 点击取消选中 单选
clearable
:
{
default
:
true
},
// 是否多选
multiple
:
Boolean
multiple
:
Boolean
,
textAlign
:
{
default
:
'center'
}
},
emits
:
[
'update:value'
,
'change'
],
data
()
{
...
...
@@ -114,6 +117,15 @@ export default {
// opacity: 0.5;
filter: grayscale(1);
}
.text-align-left {
text-align: left;
}
.text-align-center {
text-align: center;
}
.text-align-right {
text-align: right;
}
}
.check-btn.check-btn-workbench {
...
...
@@ -121,7 +133,6 @@ export default {
border-radius: 30px;
padding-top: 4px;
padding-bottom: 4px;
text-align: center;
color: #595959;
}
.check-btn-item-active {
...
...
src/test/Index.vue
View file @
cabe326a
...
...
@@ -10,7 +10,7 @@
<h4>
多选/单选按键
</h4>
<span>
{{
checkData
}}
</span>
</div>
<CheckBtn
:options=
"checkOptions"
v-model:value=
"checkData"
/>
<CheckBtn
:options=
"checkOptions"
v-model:value=
"checkData"
column-1
text-align=
"center"
/>
<h4>
upload
</h4>
<DocImageUpload
/>
...
...
@@ -57,11 +57,11 @@ export default {
},
checkData
:
undefined
,
checkOptions
:
[
{
name
:
'血常规'
,
cod
e
:
1
,
disabled
:
true
},
{
name
:
'尿常规'
,
cod
e
:
2
},
{
name
:
'肝功能'
,
cod
e
:
3
},
{
name
:
'肾功能'
,
cod
e
:
4
},
{
name
:
'电解质'
,
cod
e
:
5
}
{
name
:
'血常规'
,
valu
e
:
1
,
disabled
:
true
},
{
name
:
'尿常规'
,
valu
e
:
2
},
{
name
:
'肝功能'
,
valu
e
:
3
},
{
name
:
'肾功能'
,
valu
e
:
4
},
{
name
:
'电解质'
,
valu
e
:
5
}
]
}
},
...
...
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