当前位置:网站首页>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>
边栏推荐
- (to be added) games101 job 7 improvement - knowledge you need to know to realize micro surface model
- 并查集+建图
- 《各行业零代码企业应用案例集锦》正式发布
- How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
- 【无标题】
- Network layer & IP
- 2022 international women engineers' Day: Dyson design award shows women's design strength
- leetcode1720_ 2021-10-14
- PyCharm 中出现Cannot find reference ‘imread‘ in ‘__init__.py‘
- Web project deployment
猜你喜欢

Introduce the overall process of bootloader, PM, kernel and system startup

如何做到全彩户外LED显示屏节能环保

煮茶论英雄!福建省发改委、市营商办领导一行莅临育润大健康事业部交流指导

介绍BootLoader、PM、kernel和系统开机的总体流程

LeetCode-513. 找树左下角的值

Tdengine can read and write through dataX

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

将二维数组方阵顺时针旋转90°

字节的软件测试盆友们你们可以跳槽了,这还是你们心心念念的字节吗?

Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
随机推荐
ST表+二分
字节的软件测试盆友们你们可以跳槽了,这还是你们心心念念的字节吗?
[theory] deep learning in the covid-19 epic: a deep model for urban traffic revitalization index
Vscode netless environment rapid migration development environment (VIP collection version)
Guava中这些Map的骚操作,让我的代码量减少了50%
EasyBypass
壹沓科技签约七匹狼,助力「中国男装领导者」数字化转型
煮茶论英雄!福建省发改委、市营商办领导一行莅临育润大健康事业部交流指导
STL+树
CV2 package guide times could not find a version that satisfies the requirement CV2 (from versions: none)
03--- antireflective film
Shengzhe technology AI intelligent drowning prevention service launched
2022 international women engineers' Day: Dyson design award shows women's design strength
基于 KubeSphere 的分级管理实践
Slider controls the playback progress of animator animation
将二维数组方阵顺时针旋转90°
C language - keyword 1
Multithreaded finalization
leetcode_1365
[product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial