6 Star 24 Fork 8

谁家没一个小强/ayq-layui-labelGeneration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html lang="en" xmlns:th=http://www.thymeleaf.org>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>表单设计器</title>
<link rel="stylesheet" href="./layui/css/layui.css" />
<link rel="stylesheet" href="./ayq/modules/labelGeneration/labelGeneration.css" />
</head>
<body class="layui-layout-body">
<div id="formdesigner">
</div>
<div id="formdesigner1">
</div>
<script type="text/javascript" src="./layui/layui.js"></script>
<script type="text/javascript" src="./ayq/modules/Sortable/Sortable.js"> </script>
<script>
layui.config(
{base: './ayq/modules/labelGeneration/',version:true}).use(['layer', 'labelGeneration'], function () {
var labelGeneration = layui.labelGeneration;
var render = labelGeneration.render({
elem:'#formdesigner',
data:[
{
"ngColor": "",
"value": "标签1"
},
{
"ngColor": "layui-btn-primary",
"value": "标签2"
},
{
"ngColor": "layui-btn-normal",
"value": "标签3"
},
{
"ngColor": "layui-btn-warm",
"value": "标签4"
},
{
"ngColor": "layui-btn-danger",
"value": "标签5"
}
],
isEnter:true
});
var render1 = labelGeneration.render({
elem:'#formdesigner1',
data:[
{
"ngColor": "",
"value": "标签1"
},
{
"ngColor": "layui-btn-primary",
"value": "标签2"
},
{
"ngColor": "layui-btn-normal",
"value": "标签3"
},
{
"ngColor": "layui-btn-warm",
"value": "标签4"
},
{
"ngColor": "layui-btn-danger",
"value": "标签5"
}
],
isEnter:false
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ayq947/ayq-layui-label-generation.git
[email protected]:ayq947/ayq-layui-label-generation.git
ayq947
ayq-layui-label-generation
ayq-layui-labelGeneration
master

搜索帮助