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",
"version": "3.0.19",
"version": "3.0.21",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@vue-unistra/formbuilder",
"version": "3.0.19",
"version": "3.0.21",
"license": "MIT",
"dependencies": {
"@vue/cli-service": "^4.5.13",
{
"name": "@vue-unistra/formbuilder",
"version": "3.0.21",
"version": "3.0.22",
"main": "dist/index.js",
"files": [
"dist/*",
......
......@@ -97,7 +97,12 @@
</v-card-title>
<!-- 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 }">
<v-edit-dialog :return-value="item.label">
{{ item.label }}
......
......@@ -125,9 +125,3 @@ export default Vue.extend({
},
});
</script>
<style>
p {
color : #ff0000;
}
</style>
......@@ -26,7 +26,7 @@ export interface UpdateOptionStructureOptions {
to: string;
};
remove?: {
id: number;
optionIndex: number;
to: number;
};
}
......
......@@ -145,8 +145,8 @@ export const mutations: MutationTree<FormState> = {
const { to, id } = add;
state.fields[to].options!.push(id);
} else if (remove) {
const { id, to } = remove;
state.fields[to].options!.splice(id, 1);
const { optionIndex, to } = remove;
state.fields[to].options!.splice(optionIndex, 1);
}
},
/**
......
Markdown is supported
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