usable state of Dnd
This commit is contained in:
parent
74521e6068
commit
fa3a97862d
5 changed files with 66 additions and 6 deletions
27
public/b-o/css/app.css
vendored
27
public/b-o/css/app.css
vendored
|
|
@ -10105,4 +10105,31 @@ body {
|
|||
.form-control-dark:focus {
|
||||
border-color: transparent;
|
||||
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.smooth-dnd-container {
|
||||
margin: 1rem;
|
||||
}
|
||||
.smooth-dnd-container.pool {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
.smooth-dnd-container.pool .card {
|
||||
cursor: -webkit-grab;
|
||||
cursor: grab;
|
||||
max-height: 15rem;
|
||||
max-width: 15rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.smooth-dnd-container.selection {
|
||||
border: 1px solid #ccc;
|
||||
min-height: 10rem;
|
||||
min-width: 10rem;
|
||||
}
|
||||
.smooth-dnd-container.selection .card {
|
||||
cursor: -webkit-grab;
|
||||
cursor: grab;
|
||||
max-height: 15rem;
|
||||
max-width: 15rem;
|
||||
overflow: scroll;
|
||||
overflow-y: auto;
|
||||
}
|
||||
6
public/b-o/js/app.js
vendored
6
public/b-o/js/app.js
vendored
|
|
@ -2291,6 +2291,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
name: 'Groups',
|
||||
|
|
@ -6864,7 +6866,7 @@ exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loa
|
|||
|
||||
|
||||
// module
|
||||
exports.push([module.i, "\n.groups[data-v-4aff55b4] {\n /*display: flex;*/\n justify-content: stretch;\n margin-top: 50px;\n margin-right: 50px;\n}\n.ghost[data-v-4aff55b4] {\n opacity: 0.8;\n /*background: #c8ebfb;*/\n background: #f00;\n}\n.group[data-v-4aff55b4] {\n margin-left: 50px;\n flex: 1;\n}\n", ""]);
|
||||
exports.push([module.i, "\n.groups[data-v-4aff55b4] {\n /*display: flex;\n justify-content: stretch;\n margin-top: 50px;\n margin-right: 50px;*/\n}\n.ghost[data-v-4aff55b4] {\n opacity: 0.8;\n /*background: #c8ebfb;*/\n background: #f00;\n}\n.group[data-v-4aff55b4] {\n /*margin-left: 50px;\n flex: 1;*/\n}\n", ""]);
|
||||
|
||||
// exports
|
||||
|
||||
|
|
@ -40285,6 +40287,7 @@ var render = function() {
|
|||
{
|
||||
attrs: {
|
||||
"group-name": "1",
|
||||
tag: { value: "div", props: { class: "pool" } },
|
||||
"get-child-payload": _vm.getChildPayload1,
|
||||
"drag-class": "ghost",
|
||||
orientation: "horizontal"
|
||||
|
|
@ -40318,6 +40321,7 @@ var render = function() {
|
|||
{
|
||||
attrs: {
|
||||
"group-name": "1",
|
||||
tag: { value: "div", props: { class: "selection" } },
|
||||
"get-child-payload": _vm.getChildPayload2,
|
||||
"drag-class": "ghost",
|
||||
"drop-placeholder": _vm.dropOptions,
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<div class="groups">
|
||||
<div class="group">
|
||||
<Container group-name="1"
|
||||
:tag="{value: 'div', props: {class: 'pool'}}"
|
||||
:get-child-payload="getChildPayload1"
|
||||
@drop="onDrop('existingProds', $event)"
|
||||
drag-class="ghost"
|
||||
|
|
@ -13,6 +14,7 @@
|
|||
</div>
|
||||
<div class="group">
|
||||
<Container group-name="1"
|
||||
:tag="{value: 'div', props: {class: 'selection'}}"
|
||||
:get-child-payload="getChildPayload2"
|
||||
drag-class="ghost"
|
||||
:drop-placeholder="dropOptions"
|
||||
|
|
@ -105,10 +107,10 @@ export default {
|
|||
|
||||
<style lang="css" scoped>
|
||||
.groups {
|
||||
/*display: flex;*/
|
||||
/*display: flex;
|
||||
justify-content: stretch;
|
||||
margin-top: 50px;
|
||||
margin-right: 50px;
|
||||
margin-right: 50px;*/
|
||||
}
|
||||
|
||||
.ghost {
|
||||
|
|
@ -118,7 +120,7 @@ export default {
|
|||
}
|
||||
|
||||
.group {
|
||||
margin-left: 50px;
|
||||
flex: 1;
|
||||
/*margin-left: 50px;
|
||||
flex: 1;*/
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
3
resources/sass/app.scss
vendored
3
resources/sass/app.scss
vendored
|
|
@ -7,4 +7,5 @@
|
|||
// Bootstrap
|
||||
@import '~bootstrap/scss/bootstrap';
|
||||
|
||||
@import "dashboard";
|
||||
@import 'dashboard';
|
||||
@import './smoothdnd.scss';
|
||||
|
|
|
|||
26
resources/sass/smoothdnd.scss
vendored
Normal file
26
resources/sass/smoothdnd.scss
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.smooth-dnd-container {
|
||||
margin: 1rem;
|
||||
&.pool {
|
||||
border: 1px solid #ccc;
|
||||
.card {
|
||||
cursor: grab;
|
||||
max-height: 15rem;
|
||||
max-width: 15rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&.selection {
|
||||
border: 1px solid #ccc;
|
||||
min-height: 10rem;
|
||||
min-width: 10rem;
|
||||
|
||||
.card {
|
||||
cursor: grab;
|
||||
max-height: 15rem;
|
||||
max-width: 15rem;
|
||||
overflow: scroll;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue