From 0a379b1772ea76fe6a7a53396a3c9a614b29df1b Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期五, 14 六月 2024 17:00:13 +0800 Subject: [PATCH] 1 --- HTML_09/js/hiprint/plugins/config-etype-provider.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/HTML_09/js/hiprint/plugins/config-etype-provider.js b/HTML_09/js/hiprint/plugins/config-etype-provider.js index b4ce7a1..aeede8c 100644 --- a/HTML_09/js/hiprint/plugins/config-etype-provider.js +++ b/HTML_09/js/hiprint/plugins/config-etype-provider.js @@ -2,7 +2,7 @@ //涓氬姟鏂规硶------------------------Start------------------------------------- //鎵撳嵃娓叉煋js configElementTypeProvider鏂规硶 //閰嶇疆瀛楁 -var datalist = [ +datalist = [ { "type": "text", "title": "鍏ュ簱鍗曞彿", @@ -138,16 +138,18 @@ return function (options) { //鍐呭娓叉煋 var addElementTypes = function (context) { + context.testModule = []; + context.allElementTypes = []; context.addPrintElementTypes( "testModule", [ new hiprint.PrintElementTypeGroup("鎵撳嵃鏍囩", datalist), new hiprint.PrintElementTypeGroup("杈呭姪", [ - // { - // tid: 'testModule.tableCustom', - // title: '鑷畾涔夎〃鏍�', - // type: 'tableCustom' - // }, + { + tid: 'testModule.tableCustom', + title: '鑷畾涔夎〃鏍�', + type: 'tableCustom' + }, { tid: 'configModule.customText', title: '鑷畾涔夋枃鏈�', customText: '鑷畾涔夋枃鏈�', custom: true, type: 'text' }, { tid: 'configModule.image', title: '鍥剧墖', data: '../../js/hiprint/hi.png', type: 'image' }, { -- Gitblit v1.8.0