adminforth 2.13.0-next.2 → 2.13.0-next.3

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
- <textarea
4
- ref="input"
5
- 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"
6
- :placeholder="placeholder"
7
- :value="modelValue"
8
- @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)"
9
- :readonly="readonly"
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 input = ref<HTMLInputElement | null>(null)
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
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.13.0-next.2",
3
+ "version": "2.13.0-next.3",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",