srcdev-nuxt-forms 0.0.1 → 0.0.5
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/components/HelloWorld.vue +4 -8
- package/components/forms/input-text/InputText.vue +9 -10
- package/package.json +4 -1
- package/.editorconfig +0 -12
- package/.eslintrc.cjs +0 -4
- package/.nuxtrc +0 -1
- package/.playground/app.config.ts +0 -5
- package/.playground/nuxt.config.ts +0 -3
- package/app.config.ts +0 -14
- package/app.vue +0 -3
- package/nuxt.config.ts +0 -10
- package/tsconfig.json +0 -3
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const { myLayer } = useAppConfig()
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<template>
|
|
2
6
|
<div>
|
|
3
7
|
<h1>Hello World!</h1>
|
|
4
8
|
<pre>{{ myLayer }}</pre>
|
|
5
|
-
<div>
|
|
6
|
-
<InputText />
|
|
7
|
-
</div>
|
|
8
9
|
</div>
|
|
9
10
|
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
const { myLayer } = useAppConfig()
|
|
13
|
-
</script>
|
|
14
|
-
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<input type="text" class="input-text" />
|
|
3
|
+
<input type="text" class="input-text" v-model="formValue" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
console.log("InputText component loaded");
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
const formValue = ref("");
|
|
10
|
+
|
|
11
|
+
watchEffect(() => {
|
|
12
|
+
console.log("Form value changed to: ", formValue.value);
|
|
13
|
+
});
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
.input-text {
|
|
13
|
-
border: 1px solid #ccc;
|
|
14
|
-
padding: 10px;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
15
|
+
</script>
|
package/package.json
CHANGED
package/.editorconfig
DELETED
package/.eslintrc.cjs
DELETED
package/.nuxtrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typescript.includeWorkspace = true
|
package/app.config.ts
DELETED
package/app.vue
DELETED
package/nuxt.config.ts
DELETED
package/tsconfig.json
DELETED