|
|
@ -42,9 +42,15 @@ function onClick() { |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="flex" |
|
|
|
class="flex" |
|
|
|
:class="{ 'justify-center': !isForm, 'nc-cell-hover-show': !vModel && !readOnly, 'opacity-0': readOnly && !vModel }" |
|
|
|
:class="{ |
|
|
|
|
|
|
|
'justify-center': !isForm, |
|
|
|
|
|
|
|
'w-full': isForm, |
|
|
|
|
|
|
|
'nc-cell-hover-show': !vModel && !readOnly, |
|
|
|
|
|
|
|
'opacity-0': readOnly && !vModel, |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
@click="onClick" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="px-1 pt-1 rounded-full items-center" :class="{ 'bg-gray-100': !vModel }" @click="onClick"> |
|
|
|
<div class="px-1 pt-1 rounded-full items-center" :class="{ 'bg-gray-100': !vModel }"> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="getMdiIcon(vModel ? checkboxMeta.icon.checked : checkboxMeta.icon.unchecked)" |
|
|
|
:is="getMdiIcon(vModel ? checkboxMeta.icon.checked : checkboxMeta.icon.unchecked)" |
|
|
|
:style="{ |
|
|
|
:style="{ |
|
|
|