adminforth 2.13.0-next.2 → 2.13.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/>
|
|
11
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<textarea
|
|
3
|
+
ref="input"
|
|
4
|
+
class="bg-lightInputBackground border border-lightInputBorder text-lightInputText placeholder-lightInputPlaceholderText text-sm rounded-lg block w-full p-2.5 dark:bg-darkInputBackground dark:border-darkInputBorder dark:placeholder-darkInputPlaceholderText dark:text-darkInputText dark:border-darkInputBorder focus:ring-lightInputFocusRing focus:border-lightInputFocusBorder dark:focus:ring-darkInputFocusRing dark:focus:border-darkInputFocusBorder"
|
|
5
|
+
:placeholder="placeholder"
|
|
6
|
+
:value="modelValue"
|
|
7
|
+
@input="$emit('update:modelValue', ($event.target as HTMLTextAreaElement).value)"
|
|
8
|
+
:readonly="readonly"
|
|
9
|
+
/>
|
|
12
10
|
</template>
|
|
13
11
|
|
|
14
12
|
<script setup lang="ts">
|
|
15
|
-
|
|
16
13
|
import { ref } from 'vue';
|
|
17
14
|
|
|
18
15
|
const props = defineProps<{
|
|
19
|
-
modelValue: string
|
|
20
|
-
readonly?: boolean
|
|
21
|
-
placeholder?: string
|
|
16
|
+
modelValue: string
|
|
17
|
+
readonly?: boolean
|
|
18
|
+
placeholder?: string
|
|
22
19
|
}>()
|
|
23
20
|
|
|
24
|
-
const
|
|
21
|
+
const emit = defineEmits<{
|
|
22
|
+
(e: 'update:modelValue', value: string): void
|
|
23
|
+
}>()
|
|
24
|
+
|
|
25
|
+
const input = ref<HTMLTextAreaElement | null>(null)
|
|
25
26
|
|
|
26
27
|
defineExpose({
|
|
27
28
|
focus: () => input.value?.focus(),
|
|
28
|
-
})
|
|
29
|
-
|
|
29
|
+
})
|
|
30
30
|
</script>
|
|
31
|
-
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<div class="ms-3 text-sm font-normal max-w-xs pr-2" v-if="toast.messageHtml" v-html="toast.messageHtml"></div>
|
|
23
23
|
<div class="ms-3 text-sm font-normal max-w-xs pr-2" v-else>
|
|
24
|
-
<div class="flex flex-col items-center justify-center">
|
|
24
|
+
<div class="flex flex-col items-center justify-center break-all">
|
|
25
25
|
{{toast.message}}
|
|
26
26
|
<div v-if="toast.buttons" class="flex justify-center mt-2 gap-2">
|
|
27
27
|
<div v-for="button in toast.buttons" class="af-toast-button rounded-md bg-lightButtonsBackground hover:bg-lightButtonsHover text-lightButtonsText dark:bg-darkPrimary dark:hover:bg-darkButtonsBackground dark:text-darkButtonsText">
|