当前位置:网站首页>Drag drag drag
Drag drag drag
2022-06-24 21:55:00 【xiexuzhao】
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/comm.css" rel="stylesheet" type="text/css" />
<link href="js/element/css/2.15.7/index.min.css" rel="stylesheet" />
</head>
<body>
<div id="app">
<div class="left disabled">
<vuedraggable v-model="list" :disabled="!enabled" :group="{ name: 'course', pull: 'clone' }">
<transition-group type="transition">
<div v-for="item in list" :key="item" class="item">{ {item}}</div>
</transition-group>
</vuedraggable>
</div>
<div class="right">
<vuedraggable v-model="list2" :group="{ name: 'course'}">
<!--<div v-for="item in list2" :key="item" class="item">{ {item}}</div>-->
<div v-for="item in list2" :key="item" class="item">
<component :is="item" v-model="form[item]" v-bind="attrs">{ {item}}</component>
</div>
</vuedraggable>
</div>
<div style="clear:both"></div>
<script type="text/x-template" id="temp">
<div class="row">
<div class="col-left">
<vuedraggable v-model="listitem2" :group="{name: 'course'}">
<div v-for="item in listitem2" :key="item" class="item">
<component :is="item" v-model="form[item]" v-bind="attrs">{ {item}}</component>
</div>
</vuedraggable>
</div>
<div class="col-left">
<vuedraggable v-model="listitem2" :group="{name: 'course'}">
<div v-for="item in listitem2" :key="item" class="item">
<component :is="item" v-model="form[item]" v-bind="attrs">{ {item}}</component>
</div>
</vuedraggable>
</div>
</div>
</script>
</div>
</body>
<!--
{ {item}}-->
<script src="js/vue-2.6.14/vue.js"></script>
<script src="js/element/js/2.15.7/index.min.js"></script>
<!--<script src="js/vue-2.6.14/vue.min.js" type="text/javascript"></script>-->
<script src="js/Sortable-1.15.0/Sortable.min.js" type="text/javascript"></script>
<script src="js/Vue.Draggable-2.24.3/vuedraggable.umd.js" type="text/javascript"></script>
<script>
document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
};
Vue.component('layout', {
template: "#temp",
components: {
vuedraggable
},
//components: { vuedraggable },
data() {
return {
form: {},
attrs: { 'type': 'success' }, // , disabled: true
listitem2: [],
}
}
})
/* app.component("draggable", window.vuedraggable);*/
new Vue({
el: '#app',
components: { vuedraggable },
created: function () {
},
data: function () {
return {
listitem1: [],
listitem2: [],
enabled: true,
form: {},
attrs: { 'type': 'success' }, // , disabled: true
list: ['layout', 'el-rate', 'el-tag', 'el-button', 'el-switch', 'el-slider', 'el-time-select', 'el-input'],
list2: [],
}
},
methods: {
}
})
</script>
</html>
边栏推荐
猜你喜欢

(待补充)GAMES101作业7提高-实现微表面模型你需要了解的知识

C language - keyword 1

刷题笔记(十八)--二叉树:公共祖先问题

Li Kou daily question - day 26 -496 Next larger element I

cv2导包时报Could not find a version that satisfies the requirement cv2 (from versions: none)

Datakit agent realizes unified data aggregation in LAN

Multi task model of recommended model: esmm, MMOE

openGauss内核:简单查询的执行
![[camera Foundation (I)] working principle and overall structure of camera](/img/5d/c29d636a90d01e5c3852df2a0dd833.png)
[camera Foundation (I)] working principle and overall structure of camera
![[product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial](/img/0f/e0b261496d04ca3da8a7d7d19e5bf1.png)
[product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial
随机推荐
About transform InverseTransformPoint, transform. InverseTransofrmDirection
【无标题】
[notes of Wu Enda] convolutional neural network
Based on asp Net development of fixed assets management system source code enterprise fixed assets management system source code
旅行商问题(TSP)的相关论文总结
Visit Amazon memorydb and build your own redis memory database
TKKC round#3
You are using pip version 21.1.2; however, version 22.1.2 is available
PyCharm 中出现Cannot find reference ‘imread‘ in ‘__init__.py‘
降低pip到指定版本(通过cmp升级pip,在降低到原来版本)
C语言-关键字1
排查到解决问题的过程:浏览器突然无法访问网页,错误代码:0x80004005,最终定位:“电脑打开热点,电脑就不能上网了”
面试官:你说你精通Redis,你看过持久化的配置吗?
socket(2)
应用实践 | 海量数据,秒级分析!Flink+Doris 构建实时数仓方案
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
印刷行业的ERP软件的领头羊
多路转接select
Blender FAQs
如何化解35岁危机?华为云数据库首席架构师20年技术经验分享