srcdev-nuxt-forms 0.0.16 → 0.0.17
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.
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
package/pages/index.vue
CHANGED
|
@@ -9,13 +9,12 @@
|
|
|
9
9
|
<template #default>
|
|
10
10
|
<form>
|
|
11
11
|
<p>Form content</p>
|
|
12
|
-
<
|
|
12
|
+
<FormsUiFormField width="wide" :has-gutter="true">
|
|
13
13
|
<template #default>
|
|
14
14
|
<p>Input text</p>
|
|
15
15
|
<FormsInputTextCore />
|
|
16
|
-
<InputTextCore />
|
|
17
16
|
</template>
|
|
18
|
-
</
|
|
17
|
+
</FormsUiFormField>
|
|
19
18
|
</form>
|
|
20
19
|
</template>
|
|
21
20
|
</FormsUiFormWrapper>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<input type="text" class="input-text" v-model="formValue" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
console.log('InputText component loaded')
|
|
8
|
-
|
|
9
|
-
const formValue = ref('')
|
|
10
|
-
|
|
11
|
-
watchEffect(() => {
|
|
12
|
-
console.log('Form value changed to: ', formValue.value)
|
|
13
|
-
})
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<style lang="css">
|
|
17
|
-
.input-text {
|
|
18
|
-
border: var(--input-border-width-thin) solid var(--input-border);
|
|
19
|
-
border-radius: var(--input-border-radius);
|
|
20
|
-
padding: 10px;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
File without changes
|