File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,59 +94,61 @@ function handleReset() {
9494 </script >
9595
9696<template >
97- <FormKit
98- :id =" id"
99- v-model =" formData"
100- :form-class =" formClass"
101- :actions-class =" actionsClass"
102- type =" form"
103- @submit =" handleSave"
104- >
105- <template #default >
106- <FormKitSchema
107- v-if =" formSchema"
108- :schema =" formSchema"
109- :data =" formData"
110- />
111- <slot />
112- </template >
113- <template #messages >
114- <slot name =" messages" >
115- <FormKitMessages class =" p-formkit-data-edit-messages" />
116- </slot >
117- </template >
118- <template #submit >
119- <slot name =" submit" >
120- <UButton
121- :icon =" submitIcon"
122- type =" submit"
123- :label =" submitLabel"
124- :class =" submitClass"
125- :severity =" submitSeverity"
126- @submit =" handleSave"
97+ <div class =" formkit-data-edit" >
98+ <FormKit
99+ :id =" id"
100+ v-model =" formData"
101+ :form-class =" formClass"
102+ :actions-class =" actionsClass"
103+ type =" form"
104+ @submit =" handleSave"
105+ >
106+ <template #default >
107+ <FormKitSchema
108+ v-if =" formSchema"
109+ :schema =" formSchema"
110+ :data =" formData"
127111 />
128- <UButton
129- v-if =" showReset"
130- type =" reset"
131- :icon =" resetIcon"
132- :label =" resetLabel"
133- :class =" resetClass"
134- :severity =" resetSeverity"
135- @click =" handleReset"
136- />
137- </slot >
138- </template >
139- </FormKit >
140- <FUDataDebug
141- v-if =" debugData"
142- :data =" formData"
143- header =" Data"
144- />
145- <FUDataDebug
146- v-if =" debugSchema"
147- :data =" formSchema as object"
148- header =" Schema"
149- />
112+ <slot />
113+ </template >
114+ <template #messages >
115+ <slot name =" messages" >
116+ <FormKitMessages class =" p-formkit-data-edit-messages" />
117+ </slot >
118+ </template >
119+ <template #submit >
120+ <slot name =" submit" >
121+ <UButton
122+ :icon =" submitIcon"
123+ type =" submit"
124+ :label =" submitLabel"
125+ :class =" submitClass"
126+ :severity =" submitSeverity"
127+ @submit =" handleSave"
128+ />
129+ <UButton
130+ v-if =" showReset"
131+ type =" reset"
132+ :icon =" resetIcon"
133+ :label =" resetLabel"
134+ :class =" resetClass"
135+ :severity =" resetSeverity"
136+ @click =" handleReset"
137+ />
138+ </slot >
139+ </template >
140+ </FormKit >
141+ <FUDataDebug
142+ v-if =" debugData"
143+ :data =" formData"
144+ header =" Data"
145+ />
146+ <FUDataDebug
147+ v-if =" debugSchema"
148+ :data =" formSchema as object"
149+ header =" Schema"
150+ />
151+ </div >
150152</template >
151153
152154<style scoped>
Original file line number Diff line number Diff line change @@ -35,30 +35,32 @@ if (props.data) {
3535 </script >
3636
3737<template >
38- <FormKit
39- v-model =" formData"
40- :actions =" false"
41- :form-class =" formClass"
42- type =" form"
43- >
44- <FormKitSchema
45- v-if =" schema"
46- :schema =" schema"
38+ <div class =" formkit-data-view" >
39+ <FormKit
40+ v-model =" formData"
41+ :actions =" false"
42+ :form-class =" formClass"
43+ type =" form"
44+ >
45+ <FormKitSchema
46+ v-if =" schema"
47+ :schema =" schema"
48+ :data =" formData"
49+ />
50+ </FormKit >
51+
52+ <slot />
53+ <FuDataDebug
54+ v-if =" debugData"
4755 :data =" formData"
56+ header =" Data"
4857 />
49- </FormKit >
50-
51- <slot />
52- <FuDataDebug
53- v-if =" debugData"
54- :data =" formData"
55- header =" Data"
56- />
57- <FuDataDebug
58- v-if =" debugSchema"
59- :data =" schema as object"
60- header =" Debug Schema"
61- />
58+ <FuDataDebug
59+ v-if =" debugSchema"
60+ :data =" schema as object"
61+ header =" Debug Schema"
62+ />
63+ </div >
6264</template >
6365
6466<style scoped>
You can’t perform that action at this time.
0 commit comments