From ae74afaa41ea017f94d6c9d7fbf3d15aaaaf59b2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 17 十一月 2022 21:45:15 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/layui/lay/modules/formDesigner.js |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/layui/lay/modules/formDesigner.js b/src/main/webapp/static/layui/lay/modules/formDesigner.js
index a25bcb7..530fe04 100644
--- a/src/main/webapp/static/layui/lay/modules/formDesigner.js
+++ b/src/main/webapp/static/layui/lay/modules/formDesigner.js
@@ -78,6 +78,8 @@
                         return options || null;
                     }, getData: function () {
                         return options.data || null;
+                    }, getHtmlData: function () {
+                        return that.getHtmlData() || null;
                     }, geticeEditorObjects: function () {
                         return iceEditorObjects || null;
                     },getImages:function () {
@@ -4694,7 +4696,7 @@
 
             });
 
-            $('.generateHtml').on('click', function () {
+            $('.generateHtmlData').on('click', function () {
                 var _html = $('<div style="height:100%;width:100%;"></div>');
                 var _script = $('<div style="height:100%;width:100%;"></div>');
                 that.generateHtml(options.data, _html,_script);
@@ -4862,6 +4864,17 @@
             return json;
         }
 
+
+        //鑾峰彇琛ㄥ崟鏁版嵁鍥炶皟
+        Class.prototype.getHtmlData = function () {
+            var that = this,
+                options = that.config;
+            var _html = $('<div style="height:100%;width:100%;"></div>');
+            var _script = $('<div style="height:100%;width:100%;"></div>');
+            that.generateHtml(options.data, _html,_script);
+            return _html.html();
+        }
+
         //閫掑綊鏀瑰彉绂佺敤灞炴��
         Class.prototype.findItemToDisable = function (jsondata) {
             var that = this

--
Gitblit v1.9.1