feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
Deploy to GitHub Pages / deploy (push) Failing after 16s
Regression / regression (push) Failing after 15m2s

This commit is contained in:
aurora-admin
2026-09-12 14:18:41 +08:00
parent 16f365a045
commit c65a69c34e
401 changed files with 22932 additions and 140 deletions
+31
View File
@@ -0,0 +1,31 @@
<template>
<div class="aa-checkcard-grid" :style="{ gridTemplateColumns: `repeat(${cols}, 1fr)` }">
<div class="aa-checkcard" v-for="(o, i) in options" :key="i"
:class="{ 'is-selected': modelValue.indexOf(o.value) >= 0 }" @click="toggle(o.value)">
<div class="aa-checkcard-icon" v-if="o.icon">{{ o.icon }}</div>
<div class="aa-checkcard-body">
<div class="aa-checkcard-title">{{ o.label }}</div>
<div class="aa-checkcard-desc" v-if="o.desc">{{ o.desc }}</div>
</div>
<div class="aa-checkcard-mark"></div>
</div>
</div>
</template>
<script setup>
const props = defineProps({
options: { type: Array, default: () => [] },
modelValue: { type: Array, default: () => [] },
cols: { type: Number, default: 3 }
});
const emit = defineEmits(['update:modelValue']);
function toggle(v) {
const arr = props.modelValue.slice();
const idx = arr.indexOf(v);
if (idx >= 0) arr.splice(idx, 1); else arr.push(v);
emit('update:modelValue', arr);
}
</script>
<style src="./CheckboxCard.css"></style>