Commit 143ebc2d authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃攢 Merge branch 'release/3.0.22'

parents ad79fe63 de2b62fa
Pipeline #62135 passed with stage
in 12 seconds
{ {
"name": "@vue-unistra/formbuilder", "name": "@vue-unistra/formbuilder",
"version": "3.0.19", "version": "3.0.21",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@vue-unistra/formbuilder", "name": "@vue-unistra/formbuilder",
"version": "3.0.19", "version": "3.0.21",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@vue/cli-service": "^4.5.13", "@vue/cli-service": "^4.5.13",
{ {
"name": "@vue-unistra/formbuilder", "name": "@vue-unistra/formbuilder",
"version": "3.0.21", "version": "3.0.22",
"main": "dist/index.js", "main": "dist/index.js",
"files": [ "files": [
"dist/*", "dist/*",
......
...@@ -97,7 +97,12 @@ ...@@ -97,7 +97,12 @@
</v-card-title> </v-card-title>
<!-- Data table with the option list --> <!-- Data table with the option list -->
<v-data-table dense :headers="optionsTableHeaders" :items="fieldOptions" :search="searchOption"> <v-data-table
dense
:headers="optionsTableHeaders"
:items="fieldOptions"
:search="searchOption"
>
<template v-slot:item.label="{ item }"> <template v-slot:item.label="{ item }">
<v-edit-dialog :return-value="item.label"> <v-edit-dialog :return-value="item.label">
{{ item.label }} {{ item.label }}
......
...@@ -125,9 +125,3 @@ export default Vue.extend({ ...@@ -125,9 +125,3 @@ export default Vue.extend({
}, },
}); });
</script> </script>
<style>
p {
color : #ff0000;
}
</style>
...@@ -26,7 +26,7 @@ export interface UpdateOptionStructureOptions { ...@@ -26,7 +26,7 @@ export interface UpdateOptionStructureOptions {
to: string; to: string;
}; };
remove?: { remove?: {
id: number; optionIndex: number;
to: number; to: number;
}; };
} }
......
...@@ -145,8 +145,8 @@ export const mutations: MutationTree<FormState> = { ...@@ -145,8 +145,8 @@ export const mutations: MutationTree<FormState> = {
const { to, id } = add; const { to, id } = add;
state.fields[to].options!.push(id); state.fields[to].options!.push(id);
} else if (remove) { } else if (remove) {
const { id, to } = remove; const { optionIndex, to } = remove;
state.fields[to].options!.splice(id, 1); state.fields[to].options!.splice(optionIndex, 1);
} }
}, },
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment