mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Compare commits
1 Commits
dark-list-
...
dark-check
| Author | SHA1 | Date | |
|---|---|---|---|
| fda83907f9 |
@ -15,12 +15,12 @@
|
|||||||
v-if="label"
|
v-if="label"
|
||||||
:for="id"
|
:for="id"
|
||||||
:class="`font-medium ${
|
:class="`font-medium ${
|
||||||
disabled ? 'text-gray-400 cursor-not-allowed' : 'text-gray-600'
|
disabled ? 'text-gray-400 cursor-not-allowed' : 'text-gray-600 dark:text-white'
|
||||||
} cursor-pointer `"
|
} cursor-pointer `"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
<p v-if="description" class="text-gray-500">{{ description }}</p>
|
<p v-if="description" class="text-gray-500 dark:text-gray-400">{{ description }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -51,7 +51,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
checkboxClass: {
|
checkboxClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'w-4 h-4 border-gray-300 rounded cursor-pointer',
|
default: 'w-4 h-4 border-gray-300 rounded cursor-pointer dark:bg-gray-600 dark:border-gray-500',
|
||||||
},
|
},
|
||||||
setInitialValue: {
|
setInitialValue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -28,13 +28,13 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, { slots }) {
|
setup(props, { slots }) {
|
||||||
const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center`
|
const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center`
|
||||||
let hasIconSlot = computed(() => {
|
let hasIconSlot = computed(() => {
|
||||||
return !!slots.icon
|
return !!slots.icon
|
||||||
})
|
})
|
||||||
let containerClass = computed(() => {
|
let containerClass = computed(() => {
|
||||||
if (props.active) return `${defaultClass} text-primary-500 dark:text-primary-400`
|
if (props.active) return `${defaultClass} text-primary-500`
|
||||||
else return `${defaultClass} text-gray-500 dark:text-gray-300`
|
else return `${defaultClass} text-gray-500`
|
||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
hasIconSlot,
|
hasIconSlot,
|
||||||
|
|||||||
Reference in New Issue
Block a user