Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-30 14:28:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c31ab51c1a989dc822a14731031480b3f7adab3
1c31ab51
1 parent
965f01ef
fix 多选规则控件显示样式调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/components/MultiRuleField/index.vue
src/components/MultiRuleField/index.vue
View file @
1c31ab5
...
...
@@ -15,8 +15,9 @@
</div>
<van-field :name="item.key" :rules="rules" :border="false" style="padding-bottom: 0">
<template #input>
<van-checkbox-group v-model="item.value">
<van-checkbox-group v-model="item.value"
style="width: 100%"
>
<template v-for="(rule, idx) in item.component_props.rules" :key="idx">
<div class="multi-rule-field-box">
<van-checkbox
:name="idx"
shape="square"
...
...
@@ -26,6 +27,7 @@
<div class="rule-box" @click="showRule(rule)">
{{ rule.rule_link }} >>
</div>
</div>
</template>
</van-checkbox-group>
</template>
...
...
@@ -107,6 +109,7 @@ const rules = [{ validator, message: validatorMessage }];
font-size: 0.85rem;
margin-left: 1.8rem;
padding-bottom: 0.5rem;
width: fit-content;
}
}
.rule-wrapper {
...
...
@@ -130,4 +133,11 @@ const rules = [{ validator, message: validatorMessage }];
width: calc(100% - 2rem);
}
}
.multi-rule-field-box {
border: 1px solid #eaeaea;
border-radius: 0.25rem;
padding: 1rem 0.5rem 0 0.5rem;
// width: 100vw;
margin-bottom: 0.5rem;
}
</style>
...
...
Please
register
or
login
to post a comment