forked from verdnatura/salix-front
improve QChebox
This commit is contained in:
parent
34ee92ac24
commit
c25b04e075
|
@ -368,6 +368,7 @@ const clickControled = (sale) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="!!row.hasSaleGroupDetail"
|
:model-value="!!row.hasSaleGroupDetail"
|
||||||
color="pink"
|
color="pink"
|
||||||
|
class="pink"
|
||||||
:toggle-indeterminate="false"
|
:toggle-indeterminate="false"
|
||||||
@update:model-value="clickSaleGroupDetail(row)"
|
@update:model-value="clickSaleGroupDetail(row)"
|
||||||
>
|
>
|
||||||
|
@ -378,6 +379,7 @@ const clickControled = (sale) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="!!row.isPreviousSelected"
|
:model-value="!!row.isPreviousSelected"
|
||||||
color="info"
|
color="info"
|
||||||
|
class="info"
|
||||||
:toggle-indeterminate="false"
|
:toggle-indeterminate="false"
|
||||||
@update:model-value="clickPreviousSelected(row)"
|
@update:model-value="clickPreviousSelected(row)"
|
||||||
>
|
>
|
||||||
|
@ -388,6 +390,7 @@ const clickControled = (sale) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="!!row.isPrevious"
|
:model-value="!!row.isPrevious"
|
||||||
color="cyan"
|
color="cyan"
|
||||||
|
class="cyan"
|
||||||
:toggle-indeterminate="false"
|
:toggle-indeterminate="false"
|
||||||
@update:model-value="clickPrevious(row)"
|
@update:model-value="clickPrevious(row)"
|
||||||
>
|
>
|
||||||
|
@ -398,6 +401,7 @@ const clickControled = (sale) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="!!row.isPrepared"
|
:model-value="!!row.isPrepared"
|
||||||
color="warning"
|
color="warning"
|
||||||
|
class="warning"
|
||||||
:toggle-indeterminate="false"
|
:toggle-indeterminate="false"
|
||||||
@update:model-value="clickPrepared(row)"
|
@update:model-value="clickPrepared(row)"
|
||||||
>
|
>
|
||||||
|
@ -408,6 +412,8 @@ const clickControled = (sale) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="!!row.isControled"
|
:model-value="!!row.isControled"
|
||||||
color="yellow"
|
color="yellow"
|
||||||
|
class="yellow"
|
||||||
|
style="stroke: red"
|
||||||
:toggle-indeterminate="false"
|
:toggle-indeterminate="false"
|
||||||
@update:model-value="clickControled(row)"
|
@update:model-value="clickControled(row)"
|
||||||
>
|
>
|
||||||
|
@ -540,3 +546,24 @@ const clickControled = (sale) => {
|
||||||
</QTable>
|
</QTable>
|
||||||
</QDialog>
|
</QDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
$estados: (
|
||||||
|
info: var(--q-info),
|
||||||
|
warning: var(--q-warning),
|
||||||
|
cyan: #00bcd4,
|
||||||
|
pink: pink,
|
||||||
|
yellow: #ffeb3b,
|
||||||
|
);
|
||||||
|
|
||||||
|
@each $estado, $color in $estados {
|
||||||
|
.q-checkbox.#{$estado} {
|
||||||
|
> .q-checkbox__inner > .q-checkbox__bg.absolute {
|
||||||
|
border-radius: 50% !important;
|
||||||
|
& .q-checkbox__svg > .q-checkbox__truthy {
|
||||||
|
stroke: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue