1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

feat: 新增投票功能

This commit is contained in:
小莫唐尼
2025-08-20 21:56:34 +08:00
parent 9c6a054b12
commit c0d8cb2c3b
12 changed files with 2939 additions and 1266 deletions
@@ -2,7 +2,7 @@
<view @click="onclick" class=" tm-checkbox " :class="[dense?'':'pa-20',inline?'d-inline-block':'']">
<view class=" flex-start">
<slot name="default" :checkData="{label:label,checked:changValue}" :on="onclick">
<slot name="default" :checkData="{label:label,checked:changValue,extendData}" :on="onclick">
<view :style="{width: sizes.wk,height: sizes.wk}" class="tm-checkbox-boey relative d-inline-block"
:class="[black?'bk':'','flex-shrink mr-10',
changValue?'ani':'',
@@ -51,6 +51,10 @@
*/
import tmIcons from "@/tm-vuetify/components/tm-icons/tm-icons.vue"
export default {
options: {
virtualHost: true,
styleIsolation: 'shared'
},
components:{tmIcons},
name: 'tm-checkbox',
model: {
@@ -117,6 +121,10 @@
fllowTheme:{
type:Boolean|String,
default:true
},
extendData:{
type:Object,
default:()=>({})
}
},
data() {
@@ -17,6 +17,10 @@
*
*/
export default {
options: {
virtualHost: true,
styleIsolation: 'shared'
},
name:'tm-groupcheckbox',
props:{
// 最大选择数量
+6 -3
View File
@@ -2,7 +2,7 @@
<view @click="onclick" class=" tm-checkbox " :class="[dense?'':'pa-20',inline?'d-inline-block ':'fulled']">
<view class="flex-start fulled">
<slot name="default" :checkData="{label:label,checked:changValue}" :on="onclick">
<slot name="default" :checkData="{label:label,checked:changValue,extendData}" :on="onclick">
<view :style="{width: sizes.wk,height: sizes.wk}" class="tm-checkbox-boey relative d-inline-block"
:class="[black?'bk':'','flex-shrink mr-10 ',
changValue?'ani':'',
@@ -119,8 +119,11 @@
fllowTheme:{
type:Boolean|String,
default:true
}
},
extendData:{
type:Object,
default:()=>({})
},
},
data() {
return {