diff --git a/src/App.vue b/src/App.vue index 504d712f7..ccfeeaccf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@ + + + + diff --git a/src/components/sortable/Sortable.vue b/src/components/sortable/Sortable.vue new file mode 100644 index 000000000..04fac213c --- /dev/null +++ b/src/components/sortable/Sortable.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/components/sortable/sortable.scss b/src/components/sortable/sortable.scss new file mode 100644 index 000000000..e31ef7323 --- /dev/null +++ b/src/components/sortable/sortable.scss @@ -0,0 +1,25 @@ +.sortable { + &-box { + font-family: "Open Sans", sans-serif !important; + } + + &-search-box { + display: flex; + align-items: center; + border-color: #cdddee !important; + } + + &-search-icon { + margin: { + left: 16px; + right: 8px; + } + color: #6A7888; + } + + &-btn-new { + background: #1572C2; + color: #ffffff; + } +} + diff --git a/src/components/sortable/sortableList/SortableList.vue b/src/components/sortable/sortableList/SortableList.vue new file mode 100644 index 000000000..182ea0576 --- /dev/null +++ b/src/components/sortable/sortableList/SortableList.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/src/components/sortable/sortableList/sortableList.scss b/src/components/sortable/sortableList/sortableList.scss new file mode 100644 index 000000000..7e276f3c0 --- /dev/null +++ b/src/components/sortable/sortableList/sortableList.scss @@ -0,0 +1,72 @@ +$border-color: #cdddee; + +.sortable { + &-list { + display: flex; + flex-direction: column; + border: 1px solid $border-color !important; + + &-header { + display: flex; + align-items: center; + } + + &-title { + padding-left: 16px; + font-size: 14px; + font-weight: bold; + color: #566877; + } + } + + &-container { + display: flex; + flex-direction: column; + width: 100%; + height: 340px; + overflow-x: auto; + } + + &-item { + display: flex; + align-items: center; + height: 56px; + border-top: 1px solid $border-color; + cursor: move; + + &-icon { + display: flex; + justify-content: center; + align-items: center; + width: 64px; + height: 56px; + } + + & .fas { + color: #6A7888; + } + + &-name { + flex-grow: 1; + padding: 8px 16px; + font-size: 15px; + color: #556271; + } + + &-action { + display: flex; + margin: 0 16px; + border-color: $border-color !important; + } + + &-vr { + height: 22px; + margin: 9px 0; + border-right: 1px solid $border-color; + } + } +} + +.dragging { + box-shadow: 0 1px 5px 0 rgba(86, 104, 119, 0.4); +} diff --git a/src/components/vue-form-builder.vue b/src/components/vue-form-builder.vue index 47b059856..01ae0ddeb 100644 --- a/src/components/vue-form-builder.vue +++ b/src/components/vue-form-builder.vue @@ -149,15 +149,6 @@ - - - {{ - $t("Undo") - }} - {{ - $t("Redo") - }} -