sprintify-ui 0.6.6 → 0.6.8
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/package.json
CHANGED
|
@@ -136,9 +136,9 @@ const model = computed(() => {
|
|
|
136
136
|
|
|
137
137
|
function onUpdate(newModel: Option | null) {
|
|
138
138
|
if (!newModel) {
|
|
139
|
-
emit('update:modelValue', null);
|
|
139
|
+
emit('update:modelValue', null, null);
|
|
140
140
|
} else {
|
|
141
|
-
emit('update:modelValue', newModel[props.primaryKey]);
|
|
141
|
+
emit('update:modelValue', newModel[props.primaryKey], newModel);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -181,10 +181,10 @@ watch(
|
|
|
181
181
|
function onUpdate(newModel: Option | null) {
|
|
182
182
|
if (!newModel) {
|
|
183
183
|
model.value = null;
|
|
184
|
-
emit('update:modelValue', null);
|
|
184
|
+
emit('update:modelValue', null, null);
|
|
185
185
|
} else {
|
|
186
186
|
model.value = newModel;
|
|
187
|
-
emit('update:modelValue', newModel[props.primaryKey]);
|
|
187
|
+
emit('update:modelValue', newModel[props.primaryKey], newModel);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|