centaline-data-driven 1.2.63 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/src/centaline/dynamicContact/src/dynamicContact.vue +27 -7
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +0 -1
- package/src/centaline/dynamicRichText/index.js +5 -5
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +247 -11
- package/src/centaline/loader/src/ctl/RichText.js +24 -0
- package/src/centaline/loader/src/ctl/Router.js +1 -1
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +20 -16
- package/src/centaline/selectOption/src/selectOptionVertical.vue +1 -1
- package/static/UEditor/dialogs/anchor/anchor.html +40 -0
- package/static/UEditor/dialogs/attachment/attachment.css +681 -0
- package/static/UEditor/dialogs/attachment/attachment.html +60 -0
- package/static/UEditor/dialogs/attachment/attachment.js +768 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.png +0 -0
- package/static/UEditor/dialogs/attachment/images/bg.png +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/image.png +0 -0
- package/static/UEditor/dialogs/attachment/images/progress.png +0 -0
- package/static/UEditor/dialogs/attachment/images/success.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/success.png +0 -0
- package/static/UEditor/dialogs/background/background.css +94 -0
- package/static/UEditor/dialogs/background/background.html +56 -0
- package/static/UEditor/dialogs/background/background.js +376 -0
- package/static/UEditor/dialogs/background/images/bg.png +0 -0
- package/static/UEditor/dialogs/background/images/success.png +0 -0
- package/static/UEditor/dialogs/charts/chart.config.js +65 -0
- package/static/UEditor/dialogs/charts/charts.css +165 -0
- package/static/UEditor/dialogs/charts/charts.html +89 -0
- package/static/UEditor/dialogs/charts/charts.js +519 -0
- package/static/UEditor/dialogs/charts/images/charts0.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts1.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts2.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts3.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts4.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts5.png +0 -0
- package/static/UEditor/dialogs/emotion/emotion.css +43 -0
- package/static/UEditor/dialogs/emotion/emotion.html +54 -0
- package/static/UEditor/dialogs/emotion/emotion.js +186 -0
- package/static/UEditor/dialogs/emotion/images/0.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/bface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/cface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/fface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/jxface2.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/dialogs/emotion/images/tface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/wface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/yface.gif +0 -0
- package/static/UEditor/dialogs/gmap/gmap.html +89 -0
- package/static/UEditor/dialogs/help/help.css +7 -0
- package/static/UEditor/dialogs/help/help.html +82 -0
- package/static/UEditor/dialogs/help/help.js +56 -0
- package/static/UEditor/dialogs/image/image.css +894 -0
- package/static/UEditor/dialogs/image/image.html +120 -0
- package/static/UEditor/dialogs/image/image.js +1156 -0
- package/static/UEditor/dialogs/image/images/alignicon.jpg +0 -0
- package/static/UEditor/dialogs/image/images/bg.png +0 -0
- package/static/UEditor/dialogs/image/images/icons.gif +0 -0
- package/static/UEditor/dialogs/image/images/icons.png +0 -0
- package/static/UEditor/dialogs/image/images/image.png +0 -0
- package/static/UEditor/dialogs/image/images/progress.png +0 -0
- package/static/UEditor/dialogs/image/images/success.gif +0 -0
- package/static/UEditor/dialogs/image/images/success.png +0 -0
- package/static/UEditor/dialogs/insertframe/insertframe.html +98 -0
- package/static/UEditor/dialogs/internal.js +81 -0
- package/static/UEditor/dialogs/link/link.html +126 -0
- package/static/UEditor/dialogs/map/map.html +135 -0
- package/static/UEditor/dialogs/map/show.html +118 -0
- package/static/UEditor/dialogs/music/music.css +30 -0
- package/static/UEditor/dialogs/music/music.html +32 -0
- package/static/UEditor/dialogs/music/music.js +192 -0
- package/static/UEditor/dialogs/preview/preview.html +40 -0
- package/static/UEditor/dialogs/scrawl/images/addimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/brush.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimgH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/empty.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/emptyH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/eraser.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scale.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scaleH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/size.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/scrawl.css +72 -0
- package/static/UEditor/dialogs/scrawl/scrawl.html +95 -0
- package/static/UEditor/dialogs/scrawl/scrawl.js +671 -0
- package/static/UEditor/dialogs/searchreplace/searchreplace.html +102 -0
- package/static/UEditor/dialogs/searchreplace/searchreplace.js +164 -0
- package/static/UEditor/dialogs/snapscreen/snapscreen.html +58 -0
- package/static/UEditor/dialogs/spechars/spechars.html +21 -0
- package/static/UEditor/dialogs/spechars/spechars.js +57 -0
- package/static/UEditor/dialogs/table/dragicon.png +0 -0
- package/static/UEditor/dialogs/table/edittable.css +84 -0
- package/static/UEditor/dialogs/table/edittable.html +64 -0
- package/static/UEditor/dialogs/table/edittable.js +237 -0
- package/static/UEditor/dialogs/table/edittd.html +61 -0
- package/static/UEditor/dialogs/table/edittip.html +33 -0
- package/static/UEditor/dialogs/template/config.js +42 -0
- package/static/UEditor/dialogs/template/images/bg.gif +0 -0
- package/static/UEditor/dialogs/template/images/pre0.png +0 -0
- package/static/UEditor/dialogs/template/images/pre1.png +0 -0
- package/static/UEditor/dialogs/template/images/pre2.png +0 -0
- package/static/UEditor/dialogs/template/images/pre3.png +0 -0
- package/static/UEditor/dialogs/template/images/pre4.png +0 -0
- package/static/UEditor/dialogs/template/template.css +18 -0
- package/static/UEditor/dialogs/template/template.html +26 -0
- package/static/UEditor/dialogs/template/template.js +53 -0
- package/static/UEditor/dialogs/video/images/bg.png +0 -0
- package/static/UEditor/dialogs/video/images/center_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/video/images/icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/icons.png +0 -0
- package/static/UEditor/dialogs/video/images/image.png +0 -0
- package/static/UEditor/dialogs/video/images/left_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/none_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/progress.png +0 -0
- package/static/UEditor/dialogs/video/images/right_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/success.gif +0 -0
- package/static/UEditor/dialogs/video/images/success.png +0 -0
- package/static/UEditor/dialogs/video/video.css +635 -0
- package/static/UEditor/dialogs/video/video.html +86 -0
- package/static/UEditor/dialogs/video/video.js +797 -0
- package/static/UEditor/dialogs/webapp/webapp.html +53 -0
- package/static/UEditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- package/static/UEditor/dialogs/wordimage/imageUploader.swf +0 -0
- package/static/UEditor/dialogs/wordimage/tangram.js +1495 -0
- package/static/UEditor/dialogs/wordimage/wordimage.html +110 -0
- package/static/UEditor/dialogs/wordimage/wordimage.js +157 -0
- package/static/UEditor/index.html +175 -0
- package/static/UEditor/jsp/config.json +94 -0
- package/static/UEditor/jsp/controller.jsp +14 -0
- package/static/UEditor/jsp/lib/commons-codec-1.9.jar +0 -0
- package/static/UEditor/jsp/lib/commons-fileupload-1.3.1.jar +0 -0
- package/static/UEditor/jsp/lib/commons-io-2.4.jar +0 -0
- package/static/UEditor/jsp/lib/json.jar +0 -0
- package/static/UEditor/jsp/lib/ueditor-1.1.2.jar +0 -0
- package/static/UEditor/lang/en/en.js +684 -0
- package/static/UEditor/lang/en/images/addimage.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnupskin.png +0 -0
- package/static/UEditor/lang/en/images/background.png +0 -0
- package/static/UEditor/lang/en/images/button.png +0 -0
- package/static/UEditor/lang/en/images/copy.png +0 -0
- package/static/UEditor/lang/en/images/deletedisable.png +0 -0
- package/static/UEditor/lang/en/images/deleteenable.png +0 -0
- package/static/UEditor/lang/en/images/listbackground.png +0 -0
- package/static/UEditor/lang/en/images/localimage.png +0 -0
- package/static/UEditor/lang/en/images/music.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftenable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightenable.png +0 -0
- package/static/UEditor/lang/en/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/images/copy.png +0 -0
- package/static/UEditor/lang/zh-cn/images/localimage.png +0 -0
- package/static/UEditor/lang/zh-cn/images/music.png +0 -0
- package/static/UEditor/lang/zh-cn/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/zh-cn.js +669 -0
- package/static/UEditor/themes/default/css/ueditor.css +1903 -0
- package/static/UEditor/themes/default/css/ueditor.min.css +8 -0
- package/static/UEditor/themes/default/dialogbase.css +100 -0
- package/static/UEditor/themes/default/images/anchor.gif +0 -0
- package/static/UEditor/themes/default/images/arrow.png +0 -0
- package/static/UEditor/themes/default/images/arrow_down.png +0 -0
- package/static/UEditor/themes/default/images/arrow_up.png +0 -0
- package/static/UEditor/themes/default/images/button-bg.gif +0 -0
- package/static/UEditor/themes/default/images/cancelbutton.gif +0 -0
- package/static/UEditor/themes/default/images/charts.png +0 -0
- package/static/UEditor/themes/default/images/cursor_h.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_h.png +0 -0
- package/static/UEditor/themes/default/images/cursor_v.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_v.png +0 -0
- package/static/UEditor/themes/default/images/dialog-title-bg.png +0 -0
- package/static/UEditor/themes/default/images/filescan.png +0 -0
- package/static/UEditor/themes/default/images/highlighted.gif +0 -0
- package/static/UEditor/themes/default/images/icons-all.gif +0 -0
- package/static/UEditor/themes/default/images/icons.gif +0 -0
- package/static/UEditor/themes/default/images/icons.png +0 -0
- package/static/UEditor/themes/default/images/loaderror.png +0 -0
- package/static/UEditor/themes/default/images/loading.gif +0 -0
- package/static/UEditor/themes/default/images/lock.gif +0 -0
- package/static/UEditor/themes/default/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/themes/default/images/pagebreak.gif +0 -0
- package/static/UEditor/themes/default/images/scale.png +0 -0
- package/static/UEditor/themes/default/images/sortable.png +0 -0
- package/static/UEditor/themes/default/images/spacer.gif +0 -0
- package/static/UEditor/themes/default/images/sparator_v.png +0 -0
- package/static/UEditor/themes/default/images/table-cell-align.png +0 -0
- package/static/UEditor/themes/default/images/tangram-colorpicker.png +0 -0
- package/static/UEditor/themes/default/images/toolbar_bg.png +0 -0
- package/static/UEditor/themes/default/images/unhighlighted.gif +0 -0
- package/static/UEditor/themes/default/images/upload.png +0 -0
- package/static/UEditor/themes/default/images/videologo.gif +0 -0
- package/static/UEditor/themes/default/images/word.gif +0 -0
- package/static/UEditor/themes/default/images/wordpaste.png +0 -0
- package/static/UEditor/themes/iframe.css +1 -0
- package/static/UEditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
- package/static/UEditor/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
- package/static/UEditor/third-party/codemirror/codemirror.css +104 -0
- package/static/UEditor/third-party/codemirror/codemirror.js +3581 -0
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.js +13 -0
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.src.js +313 -0
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.js +15 -0
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.src.js +316 -0
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.js +17 -0
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.src.js +583 -0
- package/static/UEditor/third-party/highcharts/highcharts-more.js +50 -0
- package/static/UEditor/third-party/highcharts/highcharts-more.src.js +2430 -0
- package/static/UEditor/third-party/highcharts/highcharts.js +283 -0
- package/static/UEditor/third-party/highcharts/highcharts.src.js +16974 -0
- package/static/UEditor/third-party/highcharts/modules/annotations.js +7 -0
- package/static/UEditor/third-party/highcharts/modules/annotations.src.js +401 -0
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.js +133 -0
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.src.js +3113 -0
- package/static/UEditor/third-party/highcharts/modules/data.js +17 -0
- package/static/UEditor/third-party/highcharts/modules/data.src.js +582 -0
- package/static/UEditor/third-party/highcharts/modules/drilldown.js +11 -0
- package/static/UEditor/third-party/highcharts/modules/drilldown.src.js +447 -0
- package/static/UEditor/third-party/highcharts/modules/exporting.js +22 -0
- package/static/UEditor/third-party/highcharts/modules/exporting.src.js +709 -0
- package/static/UEditor/third-party/highcharts/modules/funnel.js +12 -0
- package/static/UEditor/third-party/highcharts/modules/funnel.src.js +289 -0
- package/static/UEditor/third-party/highcharts/modules/heatmap.js +1 -0
- package/static/UEditor/third-party/highcharts/modules/heatmap.src.js +53 -0
- package/static/UEditor/third-party/highcharts/modules/map.js +27 -0
- package/static/UEditor/third-party/highcharts/modules/map.src.js +1002 -0
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.js +12 -0
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.src.js +128 -0
- package/static/UEditor/third-party/highcharts/themes/dark-blue.js +254 -0
- package/static/UEditor/third-party/highcharts/themes/dark-green.js +255 -0
- package/static/UEditor/third-party/highcharts/themes/gray.js +257 -0
- package/static/UEditor/third-party/highcharts/themes/grid.js +103 -0
- package/static/UEditor/third-party/highcharts/themes/skies.js +89 -0
- package/static/UEditor/third-party/jquery-1.10.2.js +9789 -0
- package/static/UEditor/third-party/jquery-1.10.2.min.js +6 -0
- package/static/UEditor/third-party/jquery-1.10.2.min.map +1 -0
- package/static/UEditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.eot +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.svg +65 -0
- package/static/UEditor/third-party/video-js/font/vjs.ttf +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.woff +0 -0
- package/static/UEditor/third-party/video-js/video-js.css +766 -0
- package/static/UEditor/third-party/video-js/video-js.min.css +5 -0
- package/static/UEditor/third-party/video-js/video-js.swf +0 -0
- package/static/UEditor/third-party/video-js/video.dev.js +7106 -0
- package/static/UEditor/third-party/video-js/video.js +129 -0
- package/static/UEditor/third-party/webuploader/Uploader.swf +0 -0
- package/static/UEditor/third-party/webuploader/webuploader.css +28 -0
- package/static/UEditor/third-party/webuploader/webuploader.custom.js +5670 -0
- package/static/UEditor/third-party/webuploader/webuploader.custom.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.js +4176 -0
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.html5only.js +5559 -0
- package/static/UEditor/third-party/webuploader/webuploader.html5only.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.js +6733 -0
- package/static/UEditor/third-party/webuploader/webuploader.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.js +4593 -0
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.min.js +2 -0
- package/static/UEditor/third-party/xss.min.js +1 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- package/static/UEditor/ueditor.all.min.js +29574 -0
- package/static/UEditor/ueditor.config.js +497 -0
- package/static/UEditor/ueditor.parse.js +1022 -0
- package/static/UEditor/ueditor.parse.min.js +7 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "centaline-data-driven",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.64",
|
|
4
4
|
"description": "ccai",
|
|
5
5
|
"author": "hjc <3226136347@qq.com>",
|
|
6
6
|
"private": false,
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
"babel-polyfill": "^6.26.0",
|
|
17
17
|
"compression-webpack-plugin": "^2.0.0",
|
|
18
18
|
"element-ui": "^2.15.7",
|
|
19
|
+
"module": "^1.2.5",
|
|
19
20
|
"sass": "^1.34.0",
|
|
20
21
|
"save": "^2.4.0",
|
|
21
|
-
"vue": "2.5.17",
|
|
22
22
|
"v-viewer": "^1.6.4",
|
|
23
|
+
"vue": "2.5.17",
|
|
24
|
+
"vue-ueditor-wrap": "^2.5.6",
|
|
23
25
|
"vuedraggable": "^2.24.3"
|
|
24
26
|
},
|
|
25
27
|
"peerDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="apiRouter!=={} && model && model.listData.length>0"
|
|
2
|
+
<div ref="contact" v-if="apiRouter!=={} && model && model.listData.length>0"
|
|
3
3
|
style="border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;
|
|
4
4
|
padding-bottom: 10px;padding-top: 10px;padding-left: 10px;display: flex;font-size: 12px;width:100%">
|
|
5
5
|
<div class="ct-so" style="width:auto;margin-right: 10px;">
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
<div>
|
|
8
8
|
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
9
9
|
</div>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@
|
|
10
|
+
<div slot="reference" readonly="readonly" ref="ct-input"
|
|
11
|
+
style="font-weight: Bold;color:#333333 !important;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
|
12
|
+
:style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px',width:inputLinewidth+'px'}"
|
|
13
|
+
@focus="focusHandle" @blur="blurHandle" @click="clickHandle" @input="inputHandler($event)" v-html="model.text"
|
|
14
|
+
@change="changeHandler($event)" :disabled="model.lock" :class="model.lock ? 'ct-is-disabled' : 'ct-input_inner'"></div>
|
|
14
15
|
</el-popover>
|
|
15
16
|
<span class="el-input__suffix" @click="clickHandle" :class="[model.attrs.size?'el-input--'+model.attrs.size:'']">
|
|
16
17
|
<span class="el-input__suffix-inner">
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
</span>
|
|
19
20
|
</span>
|
|
20
21
|
</div>
|
|
21
|
-
<div style="margin-left: 5px;display: flex;">
|
|
22
|
+
<div ref="routers" style="margin-left: 5px;display: flex;">
|
|
22
23
|
<component v-for="(router, index) in model.rowRouter" :key="index" :ref="'router'+router.id"
|
|
23
24
|
v-if="!router.rightField || model.listData[model.value][router.rightField] == 1"
|
|
24
25
|
:is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
showDrop: false,
|
|
54
55
|
inputHeight: 26,
|
|
55
56
|
inputLineHeight: 26,
|
|
57
|
+
inputLinewidth: 150,
|
|
56
58
|
}
|
|
57
59
|
},
|
|
58
60
|
created() {
|
|
@@ -69,7 +71,10 @@
|
|
|
69
71
|
}
|
|
70
72
|
});
|
|
71
73
|
},
|
|
72
|
-
activated() {
|
|
74
|
+
activated() {
|
|
75
|
+
this.$nextTick(() => {
|
|
76
|
+
this.setCss();
|
|
77
|
+
})
|
|
73
78
|
},
|
|
74
79
|
methods: {
|
|
75
80
|
load(data) {
|
|
@@ -79,6 +84,12 @@
|
|
|
79
84
|
this.model.text=data.listData[0][data.columns[0].id];
|
|
80
85
|
this.model.value=0;
|
|
81
86
|
}
|
|
87
|
+
this.setCss();
|
|
88
|
+
this.$nextTick(() => {
|
|
89
|
+
window.addEventListener("resize", (ev) => {
|
|
90
|
+
self.setCss();
|
|
91
|
+
});
|
|
92
|
+
});
|
|
82
93
|
},
|
|
83
94
|
focusHandle: function () {
|
|
84
95
|
this.$refs['ct-input'].focus();
|
|
@@ -286,6 +297,15 @@
|
|
|
286
297
|
clickAcion(field,submitData);
|
|
287
298
|
}
|
|
288
299
|
},
|
|
300
|
+
setCss() {
|
|
301
|
+
this.$nextTick(() => {
|
|
302
|
+
if (this.$refs.contact) {
|
|
303
|
+
var w1 = this.$refs.contact.clientWidth | 0;
|
|
304
|
+
var w2 = this.$refs.routers.clientWidth | 0;
|
|
305
|
+
this.inputLinewidth=w1-w2-50;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
},
|
|
289
309
|
}
|
|
290
310
|
}
|
|
291
311
|
</script>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dynamicRichText from './src/dynamicRichText';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Vue.component(
|
|
3
|
+
dynamicRichText.install = function (Vue) {
|
|
4
|
+
Vue.component(dynamicRichText.name, dynamicRichText);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
8
|
-
window.Vue.use(
|
|
8
|
+
window.Vue.use(dynamicRichText);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export default
|
|
11
|
+
export default dynamicRichText;
|
|
@@ -1,31 +1,267 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
|
-
<div class="ct-rich-text"
|
|
4
|
-
|
|
3
|
+
<div class="ct-rich-text"
|
|
4
|
+
style="width: 100%;"
|
|
5
|
+
v-if="model !== null">
|
|
6
|
+
<vue-ueditor-wrap ref="editor" v-model="model.value" :config="config"></vue-ueditor-wrap>
|
|
5
7
|
</div>
|
|
6
8
|
</div>
|
|
7
9
|
</template>
|
|
8
10
|
<script>
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
import VueUeditorWrap from 'vue-ueditor-wrap'
|
|
13
|
+
|
|
14
|
+
import dynamicElement from "../../mixins/dynamicElement";
|
|
15
|
+
import Enum from "../../loader/src/ctl/lib/Enum";
|
|
16
|
+
|
|
10
17
|
export default {
|
|
11
|
-
name:
|
|
18
|
+
name: "ct-rich-text",
|
|
12
19
|
mixins: [dynamicElement],
|
|
20
|
+
components: {
|
|
21
|
+
VueUeditorWrap,
|
|
22
|
+
},
|
|
13
23
|
props: {
|
|
14
|
-
vmodel: Object
|
|
24
|
+
vmodel: Object,
|
|
15
25
|
},
|
|
16
26
|
data() {
|
|
17
|
-
|
|
27
|
+
const that = this;
|
|
28
|
+
return {
|
|
29
|
+
editor: {},
|
|
30
|
+
config: {
|
|
31
|
+
serverUrl: "",
|
|
32
|
+
UEDITOR_HOME_URL: '/static/UEditor/',
|
|
33
|
+
readonly: false,
|
|
34
|
+
initialFrameHeight: 300,
|
|
35
|
+
initialFrameWidth: '100%',
|
|
36
|
+
autoFloatEnabled: true,
|
|
37
|
+
maximumWords: 5000,
|
|
38
|
+
toolbars: [[
|
|
39
|
+
'fullscreen',
|
|
40
|
+
'source',
|
|
41
|
+
'|',
|
|
42
|
+
'undo',
|
|
43
|
+
'redo',
|
|
44
|
+
'|',
|
|
45
|
+
'bold',
|
|
46
|
+
'italic',
|
|
47
|
+
'underline',
|
|
48
|
+
'fontborder',
|
|
49
|
+
'strikethrough',
|
|
50
|
+
'superscript',
|
|
51
|
+
'subscript',
|
|
52
|
+
'removeformat',
|
|
53
|
+
'formatmatch',
|
|
54
|
+
'autotypeset',
|
|
55
|
+
'blockquote',
|
|
56
|
+
'pasteplain',
|
|
57
|
+
'|',
|
|
58
|
+
'forecolor',
|
|
59
|
+
'backcolor',
|
|
60
|
+
'insertorderedlist',
|
|
61
|
+
'insertunorderedlist',
|
|
62
|
+
'selectall',
|
|
63
|
+
'cleardoc',
|
|
64
|
+
'|',
|
|
65
|
+
'rowspacingtop',
|
|
66
|
+
'rowspacingbottom',
|
|
67
|
+
'lineheight',
|
|
68
|
+
'|',
|
|
69
|
+
'customstyle',
|
|
70
|
+
'paragraph',
|
|
71
|
+
'fontfamily',
|
|
72
|
+
'fontsize',
|
|
73
|
+
'|',
|
|
74
|
+
'directionalityltr',
|
|
75
|
+
'directionalityrtl',
|
|
76
|
+
'indent',
|
|
77
|
+
'|',
|
|
78
|
+
'justifyleft',
|
|
79
|
+
'justifycenter',
|
|
80
|
+
'justifyright',
|
|
81
|
+
'justifyjustify',
|
|
82
|
+
'|',
|
|
83
|
+
'touppercase',
|
|
84
|
+
'tolowercase',
|
|
85
|
+
'|',
|
|
86
|
+
'link',
|
|
87
|
+
'unlink',
|
|
88
|
+
'anchor',
|
|
89
|
+
'|',
|
|
90
|
+
'imagenone',
|
|
91
|
+
'imageleft',
|
|
92
|
+
'imageright',
|
|
93
|
+
'imagecenter',
|
|
94
|
+
'|',
|
|
95
|
+
//'simpleupload',
|
|
96
|
+
'insertimage',
|
|
97
|
+
'emotion',
|
|
98
|
+
'scrawl',
|
|
99
|
+
'insertvideo',
|
|
100
|
+
'music',
|
|
101
|
+
'attachment',
|
|
102
|
+
'map',
|
|
103
|
+
'gmap',
|
|
104
|
+
'insertframe',
|
|
105
|
+
'insertcode',
|
|
106
|
+
'webapp',
|
|
107
|
+
'pagebreak',
|
|
108
|
+
'template',
|
|
109
|
+
'background',
|
|
110
|
+
'|',
|
|
111
|
+
'horizontal',
|
|
112
|
+
'date',
|
|
113
|
+
'time',
|
|
114
|
+
'spechars',
|
|
115
|
+
'wordimage',
|
|
116
|
+
'|',
|
|
117
|
+
'inserttable',
|
|
118
|
+
'deletetable',
|
|
119
|
+
'insertparagraphbeforetable',
|
|
120
|
+
'insertrow',
|
|
121
|
+
'deleterow',
|
|
122
|
+
'insertcol',
|
|
123
|
+
'deletecol',
|
|
124
|
+
'mergecells',
|
|
125
|
+
'mergeright',
|
|
126
|
+
'mergedown',
|
|
127
|
+
'splittocells',
|
|
128
|
+
'splittorows',
|
|
129
|
+
'splittocols',
|
|
130
|
+
'charts',
|
|
131
|
+
'|',
|
|
132
|
+
'print',
|
|
133
|
+
'preview',
|
|
134
|
+
'searchreplace',
|
|
135
|
+
'drafts',
|
|
136
|
+
'help'
|
|
137
|
+
]],
|
|
138
|
+
zIndex: 16777271,
|
|
139
|
+
/* 上传图片配置项 */
|
|
140
|
+
"imageActionName": "uploadimage222", /* 执行上传图片的action名称 */
|
|
141
|
+
"imageFieldName": "file", /* 提交的图片表单名称 */
|
|
142
|
+
"imageMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
143
|
+
"imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上传图片格式显示 */
|
|
144
|
+
"imageCompressEnable": true, /* 是否压缩图片,默认是true */
|
|
145
|
+
"imageCompressBorder": 1600, /* 图片压缩最长边限制 */
|
|
146
|
+
"imageInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
147
|
+
"imageUrlPrefix": "", /* 图片访问路径前缀 */
|
|
148
|
+
"imagePathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
149
|
+
/* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */
|
|
150
|
+
/* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */
|
|
151
|
+
/* {time} 会替换成时间戳 */
|
|
152
|
+
/* {yyyy} 会替换成四位年份 */
|
|
153
|
+
/* {yy} 会替换成两位年份 */
|
|
154
|
+
/* {mm} 会替换成两位月份 */
|
|
155
|
+
/* {dd} 会替换成两位日期 */
|
|
156
|
+
/* {hh} 会替换成两位小时 */
|
|
157
|
+
/* {ii} 会替换成两位分钟 */
|
|
158
|
+
/* {ss} 会替换成两位秒 */
|
|
159
|
+
/* 非法字符 \ : * ? " < > | */
|
|
160
|
+
/* 具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename */
|
|
161
|
+
|
|
162
|
+
/* 涂鸦图片上传配置项 */
|
|
163
|
+
"scrawlActionName": "uploadscrawl", /* 执行上传涂鸦的action名称 */
|
|
164
|
+
"scrawlFieldName": "file", /* 提交的图片表单名称 */
|
|
165
|
+
"scrawlPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
166
|
+
"scrawlMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
167
|
+
"scrawlUrlPrefix": "", /* 图片访问路径前缀 */
|
|
168
|
+
"scrawlInsertAlign": "none",
|
|
169
|
+
|
|
170
|
+
/* 截图工具上传 */
|
|
171
|
+
"snapscreenActionName": "uploadimage", /* 执行上传截图的action名称 */
|
|
172
|
+
"snapscreenPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
173
|
+
"snapscreenUrlPrefix": "", /* 图片访问路径前缀 */
|
|
174
|
+
"snapscreenInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
175
|
+
|
|
176
|
+
/* 抓取远程图片配置 */
|
|
177
|
+
"catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"],
|
|
178
|
+
"catcherActionName": "catchimage", /* 执行抓取远程图片的action名称 */
|
|
179
|
+
"catcherFieldName": "source", /* 提交的图片列表表单名称 */
|
|
180
|
+
"catcherPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
181
|
+
"catcherUrlPrefix": "", /* 图片访问路径前缀 */
|
|
182
|
+
"catcherMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
183
|
+
"catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 抓取图片格式显示 */
|
|
184
|
+
|
|
185
|
+
/* 上传视频配置 */
|
|
186
|
+
"videoActionName": "uploadvideo", /* 执行上传视频的action名称 */
|
|
187
|
+
"videoFieldName": "file", /* 提交的视频表单名称 */
|
|
188
|
+
"videoPathFormat": "/ueditor/jsp/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
189
|
+
"videoUrlPrefix": "", /* 视频访问路径前缀 */
|
|
190
|
+
"videoMaxSize": 102400000, /* 上传大小限制,单位B,默认100MB */
|
|
191
|
+
"videoAllowFiles": [
|
|
192
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
193
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* 上传视频格式显示 */
|
|
194
|
+
|
|
195
|
+
/* 上传文件配置 */
|
|
196
|
+
"fileActionName": "uploadfile", /* controller里,执行上传视频的action名称 */
|
|
197
|
+
"fileFieldName": "file", /* 提交的文件表单名称 */
|
|
198
|
+
"filePathFormat": "/ueditor/jsp/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
199
|
+
"fileUrlPrefix": "", /* 文件访问路径前缀 */
|
|
200
|
+
"fileMaxSize": 51200000, /* 上传大小限制,单位B,默认50MB */
|
|
201
|
+
"fileAllowFiles": [
|
|
202
|
+
".png", ".jpg", ".jpeg", ".gif", ".bmp",
|
|
203
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
204
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
|
|
205
|
+
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
|
|
206
|
+
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
|
|
207
|
+
], /* 上传文件格式显示 */
|
|
208
|
+
|
|
209
|
+
/* 列出指定目录下的图片 */
|
|
210
|
+
"imageManagerActionName": "listimage", /* 执行图片管理的action名称 */
|
|
211
|
+
"imageManagerListPath": "/ueditor/jsp/upload/image/", /* 指定要列出图片的目录 */
|
|
212
|
+
"imageManagerListSize": 20, /* 每次列出文件数量 */
|
|
213
|
+
"imageManagerUrlPrefix": "", /* 图片访问路径前缀 */
|
|
214
|
+
"imageManagerInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
215
|
+
"imageManagerAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 列出的文件类型 */
|
|
216
|
+
|
|
217
|
+
/* 列出指定目录下的文件 */
|
|
218
|
+
"fileManagerActionName": "listfile", /* 执行文件管理的action名称 */
|
|
219
|
+
"fileManagerListPath": "/ueditor/jsp/upload/file/", /* 指定要列出文件的目录 */
|
|
220
|
+
"fileManagerUrlPrefix": "", /* 文件访问路径前缀 */
|
|
221
|
+
"fileManagerListSize": 20, /* 每次列出文件数量 */
|
|
222
|
+
"fileManagerAllowFiles": [
|
|
223
|
+
".png", ".jpg", ".jpeg", ".gif", ".bmp",
|
|
224
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
225
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
|
|
226
|
+
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
|
|
227
|
+
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
|
|
228
|
+
] /* 列出的文件类型 */
|
|
229
|
+
},/* 前后端通信相关的配置,注释只允许使用多行方式 */
|
|
230
|
+
|
|
18
231
|
}
|
|
19
232
|
},
|
|
20
233
|
created() {
|
|
21
|
-
if (typeof this.vmodel ===
|
|
234
|
+
if (typeof this.vmodel === "undefined") {
|
|
22
235
|
this.model = this.loaderObj.Base(this.source);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
236
|
+
} else {
|
|
25
237
|
this.model = this.vmodel;
|
|
26
238
|
}
|
|
27
|
-
|
|
28
|
-
|
|
239
|
+
|
|
240
|
+
if (this.model.action == "") {
|
|
241
|
+
this.$message.warning("请配置Action!");
|
|
242
|
+
this.config.toolbars = [['help']];
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
this.config.maximumWords = this.model && this.model.maxValue1 ? parseFloat(this.model.maxValue1) : 5000;
|
|
246
|
+
this.config.serverUrl = this.model.moreActionRouter;
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
|
|
250
|
+
},
|
|
251
|
+
mounted() {
|
|
252
|
+
|
|
253
|
+
},
|
|
254
|
+
beforeDestroy: function () {
|
|
255
|
+
|
|
256
|
+
},
|
|
257
|
+
methods: {
|
|
258
|
+
|
|
259
|
+
},
|
|
260
|
+
watch: {
|
|
261
|
+
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
</script>
|
|
29
265
|
<style>
|
|
30
266
|
.ct-rich-text {
|
|
31
267
|
min-height: 28px;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import base from '../../index';
|
|
2
|
+
import Base from './Base';
|
|
3
|
+
import valid from '../../../validate/index';
|
|
4
|
+
import Axios from 'axios';
|
|
5
|
+
import common from '../../../common';
|
|
6
|
+
import Vue from 'vue';
|
|
7
|
+
const RichText = function (source, router) {
|
|
8
|
+
var rtn = {
|
|
9
|
+
options: [{ code: source.code1, name: source.name1 }],
|
|
10
|
+
get value() {
|
|
11
|
+
return source.code1;
|
|
12
|
+
},
|
|
13
|
+
set value(v) {
|
|
14
|
+
source.code1 = v;
|
|
15
|
+
},
|
|
16
|
+
get action() {
|
|
17
|
+
return router &&router.action ? router.action : "";//上传完整地址
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
rtn = base.copy(Base(source), rtn);
|
|
21
|
+
rtn = base.copy(rtn, valid.Init(rtn));
|
|
22
|
+
return rtn;
|
|
23
|
+
}
|
|
24
|
+
export default RichText;
|
|
@@ -34,12 +34,13 @@ import Cb from '../Cb';
|
|
|
34
34
|
import PhotoSelect from '../PhotoSelect';
|
|
35
35
|
import Repeat from '../Repeat';
|
|
36
36
|
import Compound from '../Compound';
|
|
37
|
+
import RichText from '../RichText';
|
|
37
38
|
|
|
38
39
|
const LibFunction = {
|
|
39
40
|
install(Vue) {
|
|
40
41
|
},
|
|
41
42
|
GetControl(field, source, showLabel, isList) {
|
|
42
|
-
|
|
43
|
+
|
|
43
44
|
let item;
|
|
44
45
|
field.isList = isList;
|
|
45
46
|
if (typeof field.required === 'undefined') {
|
|
@@ -80,7 +81,7 @@ const LibFunction = {
|
|
|
80
81
|
field.width = field.width || 280;
|
|
81
82
|
}
|
|
82
83
|
else if (field.controlType === Enum.ControlType.RadioButton) {
|
|
83
|
-
if(!field.displayLabelAfterSelected){
|
|
84
|
+
if (!field.displayLabelAfterSelected) {
|
|
84
85
|
showLabel = false;
|
|
85
86
|
}
|
|
86
87
|
field.width = field.width || 300;
|
|
@@ -175,9 +176,9 @@ const LibFunction = {
|
|
|
175
176
|
item.is = 'ct-date';
|
|
176
177
|
break;
|
|
177
178
|
case Enum.ControlType.DateYearMonth://年份-月份
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
item = D(field, 'month');
|
|
180
|
+
item.is = 'ct-date';
|
|
181
|
+
break;
|
|
181
182
|
case Enum.ControlType.DateTime://日期时间
|
|
182
183
|
item = D(field, 'datetime');
|
|
183
184
|
item.is = 'ct-date';
|
|
@@ -256,22 +257,22 @@ const LibFunction = {
|
|
|
256
257
|
item = Button(field);
|
|
257
258
|
item.is = 'ct-btn';
|
|
258
259
|
item.action = 'search';
|
|
259
|
-
item.attrs.class=item.attrs.class+' max-search-btn ';
|
|
260
|
+
item.attrs.class = item.attrs.class + ' max-search-btn ';
|
|
260
261
|
break;
|
|
261
262
|
case Enum.ControlType.ButtonAdvancedSearch://高级查询按钮
|
|
262
263
|
item = Button(field);
|
|
263
264
|
item.is = 'ct-btn';
|
|
264
265
|
item.action = 'showHigh';
|
|
265
|
-
item.attrs.class=item.attrs.class+' max-search-btn ';
|
|
266
|
-
item.icon='max-open';
|
|
266
|
+
item.attrs.class = item.attrs.class + ' max-search-btn ';
|
|
267
|
+
item.icon = 'max-open';
|
|
267
268
|
break;
|
|
268
269
|
case Enum.ControlType.ButtonReset://重置查询按钮
|
|
269
270
|
item = Button(field);
|
|
270
271
|
item.is = 'ct-btn';
|
|
271
272
|
item.action = 'reset';
|
|
272
|
-
item.bgColor='#519DA6';
|
|
273
|
-
item.borderColor='#519DA6';
|
|
274
|
-
item.attrs.class=item.attrs.class+' max-reset-btn ';
|
|
273
|
+
item.bgColor = '#519DA6';
|
|
274
|
+
item.borderColor = '#519DA6';
|
|
275
|
+
item.attrs.class = item.attrs.class + ' max-reset-btn ';
|
|
275
276
|
break;
|
|
276
277
|
case Enum.ControlType.File://文件
|
|
277
278
|
var router = source.actionRouters.find((v1) => {
|
|
@@ -314,7 +315,10 @@ const LibFunction = {
|
|
|
314
315
|
item.is = 'ct-text';
|
|
315
316
|
break;
|
|
316
317
|
case Enum.ControlType.RichText://富文本框
|
|
317
|
-
|
|
318
|
+
var router = source.actionRouters.find((v1) => {
|
|
319
|
+
return v1.key === field.fieldName1;
|
|
320
|
+
});
|
|
321
|
+
item = RichText(field, router);
|
|
318
322
|
item.is = 'ct-rich-text';
|
|
319
323
|
break;
|
|
320
324
|
case Enum.ControlType.MultiComboBoxWithTextBox://多个下拉框后面带1个文本框,下拉框最多支持3个
|
|
@@ -341,9 +345,9 @@ const LibFunction = {
|
|
|
341
345
|
item.is = 'ct-hyperLink';
|
|
342
346
|
break;
|
|
343
347
|
case Enum.ControlType.HyperlinkListWithLabel://带标签的超链接列表
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
348
|
+
item = HyperLinkList(field);
|
|
349
|
+
item.is = 'ct-hyperLinkList';
|
|
350
|
+
break;
|
|
347
351
|
case Enum.ControlType.PlaceHolder://占位控件
|
|
348
352
|
item = PlaceHolder(field);
|
|
349
353
|
item.is = 'ct-ph';
|
|
@@ -369,7 +373,7 @@ const LibFunction = {
|
|
|
369
373
|
var num;
|
|
370
374
|
var colNum = source.colSpan ? source.colSpan : 3;
|
|
371
375
|
if (item1.excLine) {
|
|
372
|
-
num =
|
|
376
|
+
num = 24;
|
|
373
377
|
}
|
|
374
378
|
else if (field.spanCols > 0) {
|
|
375
379
|
num = field.spanCols * (24 / colNum);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="ct-selectOptionVertical" style="">
|
|
3
3
|
<ul>
|
|
4
4
|
<li v-for="(op, index) in model.options" :key="index" :class="[getOptionSelect(op[model.optionAttrs.value])?'select':'']" @click="selectOption(op[model.optionAttrs.value])">
|
|
5
|
-
<
|
|
5
|
+
<div v-html="op[model.optionAttrs.displayLabel]||op[model.optionAttrs.label]"></div>
|
|
6
6
|
</li>
|
|
7
7
|
</ul>
|
|
8
8
|
</div>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
6
|
+
<title></title>
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
*{color: #838383;margin: 0;padding: 0}
|
|
9
|
+
html,body {font-size: 12px;overflow: hidden; }
|
|
10
|
+
.content{padding:5px 0 0 15px;}
|
|
11
|
+
input{width:210px;height:21px;line-height:21px;margin-left: 4px;}
|
|
12
|
+
</style>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<div class="content">
|
|
16
|
+
<span><var id="lang_input_anchorName"></var></span><input id="anchorName" value="" />
|
|
17
|
+
</div>
|
|
18
|
+
<script type="text/javascript" src="../internal.js"></script>
|
|
19
|
+
<script type="text/javascript">
|
|
20
|
+
var anchorInput = $G('anchorName'),
|
|
21
|
+
node = editor.selection.getRange().getClosedNode();
|
|
22
|
+
if(node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))){
|
|
23
|
+
anchorInput.value = node;
|
|
24
|
+
}
|
|
25
|
+
anchorInput.onkeydown = function(evt){
|
|
26
|
+
evt = evt || window.event;
|
|
27
|
+
if(evt.keyCode == 13){
|
|
28
|
+
editor.execCommand('anchor', anchorInput.value);
|
|
29
|
+
dialog.close();
|
|
30
|
+
domUtils.preventDefault(evt)
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
dialog.onok = function (){
|
|
34
|
+
editor.execCommand('anchor', anchorInput.value);
|
|
35
|
+
dialog.close();
|
|
36
|
+
};
|
|
37
|
+
$focus(anchorInput);
|
|
38
|
+
</script>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|