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 13:32:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
965f01ef54f528e78acd2cb5beb88e00c5f33686
965f01ef
1 parent
ff4dc7ad
fix 多选规则主题配置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
src/components/MultiRuleField/index.vue
src/components/MultiRuleField/index.vue
View file @
965f01e
...
...
@@ -17,7 +17,12 @@
<template #input>
<van-checkbox-group v-model="item.value">
<template v-for="(rule, idx) in item.component_props.rules" :key="idx">
<van-checkbox :name="idx" shape="square">{{ rule.rule_desc }}</van-checkbox>
<van-checkbox
:name="idx"
shape="square"
:checked-color="themeVars.radioColor"
>{{ rule.rule_desc }}</van-checkbox
>
<div class="rule-box" @click="showRule(rule)">
{{ rule.rule_link }} >>
</div>
...
...
@@ -43,10 +48,20 @@
</template>
<script setup>
import { styleColor } from "@/constant.js";
import $ from "jquery";
const props = defineProps({
item: Object,
});
// TAG: 自定义主题颜色
const themeVars = {
radioColor: styleColor.baseColor,
};
onMounted(() => {
$(".rule-box").css("color", themeVars.radioColor);
});
const show = ref(false);
const checked = ref([]);
const showRule = (rule) => {
...
...
@@ -92,7 +107,6 @@ const rules = [{ validator, message: validatorMessage }];
font-size: 0.85rem;
margin-left: 1.8rem;
padding-bottom: 0.5rem;
color: #1989fa;
}
}
.rule-wrapper {
...
...
Please
register
or
login
to post a comment