diff --git a/frontend/src/components/widget/DeWidget/DeButton.vue b/frontend/src/components/widget/DeWidget/DeButton.vue index 3139c3a308..b4ccf843a7 100644 --- a/frontend/src/components/widget/DeWidget/DeButton.vue +++ b/frontend/src/components/widget/DeWidget/DeButton.vue @@ -13,27 +13,24 @@ export default { props: { - options: { + element: { type: Object, default: null + }, + inDraw: { + type: Boolean, + default: true } }, data() { return { - + options: null, + operator: 'eq', + values: null } }, - mounted() { - this.$nextTick(() => { - // this.defaultOptions = Object.assign({}, this.options) - // const dom = this.$refs[this.options.refId] - // for (const key in this.options.attrs) { - // if (Object.hasOwnProperty.call(this.defaultOptions.attrs, key)) { - // const element = this.defaultOptions.attrs[key] - // dom.$props[key] = element - // } - // } - }) + created() { + this.options = this.element.options } } diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index a65add192b..6c35974ae3 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -14,10 +14,24 @@ export default { props: { - options: { + element: { type: Object, default: null + }, + inDraw: { + type: Boolean, + default: true } + }, + data() { + return { + options: null, + operator: 'eq', + values: null + } + }, + created() { + this.options = this.element.options } } diff --git a/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue b/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue deleted file mode 100644 index 0cebb0cd2d..0000000000 --- a/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue +++ /dev/null @@ -1,39 +0,0 @@ - diff --git a/frontend/src/components/widget/DeWidget/DeInputSearch.vue b/frontend/src/components/widget/DeWidget/DeInputSearch.vue index 4626a4b688..227c854393 100644 --- a/frontend/src/components/widget/DeWidget/DeInputSearch.vue +++ b/frontend/src/components/widget/DeWidget/DeInputSearch.vue @@ -1,6 +1,6 @@