���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules
/
@nuxt
/
ui
/
dist
/
runtime
/
components
/
elements
/
Viewing: Chip.vue
<template> <div :class="ui.wrapper" v-bind="attrs"> <slot /> <span v-if="show" :class="chipClass"> <slot name="content"> {{ text }} </slot> </span> </div> </template> <script> import { defineComponent, computed, toRef } from "vue"; import { twJoin } from "tailwind-merge"; import { useUI } from "../../composables/useUI"; import { mergeConfig } from "../../utils"; import appConfig from "#build/app.config"; import { chip } from "#ui/ui.config"; const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.chip, chip); export default defineComponent({ inheritAttrs: false, props: { size: { type: String, default: () => config.default.size, validator(value) { return Object.keys(config.size).includes(value); } }, color: { type: String, default: () => config.default.color, validator(value) { return ["gray", ...appConfig.ui.colors].includes(value); } }, position: { type: String, default: () => config.default.position, validator(value) { return Object.keys(config.position).includes(value); } }, text: { type: [String, Number], default: null }, inset: { type: Boolean, default: () => config.default.inset }, show: { type: Boolean, default: true }, class: { type: [String, Object, Array], default: () => "" }, ui: { type: Object, default: () => ({}) } }, setup(props) { const { ui, attrs } = useUI("chip", toRef(props, "ui"), config, toRef(props, "class")); const chipClass = computed(() => { return twJoin( ui.value.base, ui.value.size[props.size], ui.value.position[props.position], props.inset ? null : ui.value.translate[props.position], ui.value.background.replaceAll("{color}", props.color) ); }); return { // eslint-disable-next-line vue/no-dupe-keys ui, attrs, chipClass }; } }); </script>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa