srcdev-nuxt-forms 0.0.17 → 0.0.18
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.
|
@@ -0,0 +1,22 @@
|
|
|
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>
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
package/pages/index.vue
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
<div>
|
|
6
6
|
<h1>Sample form page</h1>
|
|
7
7
|
|
|
8
|
-
<
|
|
8
|
+
<FormWrapper width="medium">
|
|
9
9
|
<template #default>
|
|
10
10
|
<form>
|
|
11
11
|
<p>Form content</p>
|
|
12
|
-
<
|
|
12
|
+
<FormField width="wide" :has-gutter="true">
|
|
13
13
|
<template #default>
|
|
14
14
|
<p>Input text</p>
|
|
15
|
-
<
|
|
15
|
+
<InputTextCore />
|
|
16
16
|
</template>
|
|
17
|
-
</
|
|
17
|
+
</FormField>
|
|
18
18
|
</form>
|
|
19
19
|
</template>
|
|
20
|
-
</
|
|
20
|
+
</FormWrapper>
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
23
23
|
</NuxtLayout>
|
|
File without changes
|