diff --git a/src/plugin/admin/app/common/LayuiForm.php b/src/plugin/admin/app/common/LayuiForm.php index fb56e79..ca77e9d 100644 --- a/src/plugin/admin/app/common/LayuiForm.php +++ b/src/plugin/admin/app/common/LayuiForm.php @@ -216,9 +216,9 @@ EOF; // 字段 {$options['label']} $field layui.use(['upload', 'layer', 'jquery', 'popup', 'util'], function() { - let input = layui.jquery('#$id').prev(); + let input = layui.$('#$id').prev(); input.prev().html(layui.util.escape(input.val())); - layui.jquery("#attachment-choose-$id").on('click', function() { + layui.$("#attachment-choose-$id").on('click', function() { parent.layer.open({ type: 2, title: "选择附件", @@ -287,10 +287,10 @@ EOF; $this->jsContent .= <<jsContent .= <<图标选择\n' + + '
\n' + + ' \n' + + '
\n' + + ' \n'; + return html; + } + + function multiSelect(size) { + var html = '
\n' + + ' \n' + + '
\n' + + '
\n' + + '
\n' + + '
\n'; + return html; + } + + function tree(size) { + var html = '
\n' + + ' \n' + + '
\n' + + '
\n' + + '
\n' + + '
\n'; + return html; + } + + function treeSelectOne(size) { + var html = '
\n' + + ' \n' + + '
\n' + + '
\n' + + '
\n' + + '
\n'; + return html; + } + + function upload(size) { + var html = '
\n' + + ' \n' + + '
\n' + + ' \n' + + ' \n' + + ' \n' + + '
\n' + + '
\n'; + return html; + } + + function uploadImg(size) { + var html = '
\n' + + ' \n' + + '
\n' + + ' \n' + + ' \n' + + ' \n' + + '
\n' + + '
\n'; + return html; + } + function input(type, size) { var name = type === 'text' ? '输入框' : (type === 'password' ? '密码框' : ''); var html = '
\n' + @@ -149,8 +379,8 @@ layui.define(['layer', 'form'], function(exports) { function submits(size) { var html = '
\n' + '
\n' + - ' \n' + - ' \n' + + ' \n' + //变更 + ' \n' + //变更 '
\n' + '
\n'; return html; @@ -158,8 +388,10 @@ layui.define(['layer', 'form'], function(exports) { function jscode() { var html = '