@hostlink/nuxt-light 1.1.0 → 1.1.1

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.1.0"
4
+ "version": "1.1.1"
5
5
  }
@@ -59,12 +59,11 @@ const isAllowMoveDown = (index) => {
59
59
  return index < localValue.value.length - 1
60
60
  }
61
61
 
62
-
63
-
64
62
  </script>
65
63
 
66
64
  <template>
67
- <FormKit type="list" v-model="localValue" dynamic #default="{ items, node, value }">
65
+ <FormKit type="list" v-model="localValue" dynamic #default="{ items, node, value }" :name="node.name">
66
+
68
67
 
69
68
  <FormKit type="group" v-for="(item, index) in items " :index="index" :key="item">
70
69
 
@@ -76,7 +75,7 @@ const isAllowMoveDown = (index) => {
76
75
  <div class="q-mb-sm">
77
76
  <!-- up -->
78
77
  <q-btn type="button" @click="onMoveUp(index)" icon="sym_o_arrow_upward" color="primary"
79
- dense unelevated :disable="!isAllowMoveUp(index)"/>
78
+ dense unelevated :disable="!isAllowMoveUp(index)" />
80
79
  </div>
81
80
 
82
81
  <div class="q-mb-sm">
@@ -88,13 +87,13 @@ const isAllowMoveDown = (index) => {
88
87
  <div class="q-mb-sm">
89
88
  <!-- down -->
90
89
  <q-btn type="button" @click="onMoveDown(index)" icon="sym_o_arrow_downward" color="primary"
91
- dense unelevated :disable="!isAllowMoveDown(index)"/>
90
+ dense unelevated :disable="!isAllowMoveDown(index)" />
92
91
  </div>
93
92
 
94
93
  </div>
95
94
 
96
95
  <div class="col">
97
- <slot></slot>
96
+ <slot v-bind="{ value: localValue[index] }"></slot>
98
97
  </div>
99
98
  </div>
100
99
  </q-card-section>
@@ -80,7 +80,7 @@ export const createLightPlugin = () => {
80
80
  });
81
81
  case "l-repeater":
82
82
  return node.define({
83
- type: "list",
83
+ type: "input",
84
84
  props: ["min", "max"],
85
85
  component: RepeaterVue
86
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",