hoeditor-web 0.3.56 → 0.3.57
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/lib/hoeditor.common.js +2047 -249
- package/lib/hoeditor.umd.js +2047 -249
- package/lib/hoeditor.umd.min.js +24 -24
- package/package.json +2 -3
package/lib/hoeditor.common.js
CHANGED
|
@@ -2681,6 +2681,8 @@ module.exports = function (bitmap, value) {
|
|
|
2681
2681
|
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("48c4");
|
|
2682
2682
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("3365");
|
|
2683
2683
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("8d1d");
|
|
2684
|
+
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("e802");
|
|
2685
|
+
|
|
2684
2686
|
|
|
2685
2687
|
|
|
2686
2688
|
|
|
@@ -2942,16 +2944,25 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
2942
2944
|
|
|
2943
2945
|
if (!isDelete || isDisplay) {
|
|
2944
2946
|
var iend = istart;
|
|
2945
|
-
var irestLength = 0;
|
|
2947
|
+
var irestLength = 0; //是否标点
|
|
2948
|
+
|
|
2949
|
+
var bIsPunctuation = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_20__[/* UnitConvert */ "a"].isPuctuation(this._text[0]);
|
|
2950
|
+
var bForceAppend = false;
|
|
2946
2951
|
|
|
2947
2952
|
while (istart <= this.text.length - 1) {
|
|
2953
|
+
bForceAppend = false;
|
|
2948
2954
|
irestLength = dline.calcRestWidth();
|
|
2949
2955
|
var dFirst = new createjs.Text(this._text[0], this._dStyleKey, this._dColor);
|
|
2950
2956
|
|
|
2951
2957
|
if (irestLength < dFirst.getMeasuredWidth()) {
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2958
|
+
if (istart == 0 && bIsPunctuation) {
|
|
2959
|
+
bForceAppend = true;
|
|
2960
|
+
} else {
|
|
2961
|
+
bForceAppend = false;
|
|
2962
|
+
dline.fitLines();
|
|
2963
|
+
dline = dline.paragraphNode.getNextDline(dline);
|
|
2964
|
+
irestLength = dline.calcRestWidth();
|
|
2965
|
+
}
|
|
2955
2966
|
}
|
|
2956
2967
|
|
|
2957
2968
|
var dItem = new _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_17__[/* DrawTextNode */ "a"](this._hoEditorFactoryID, this._rootPath, this, istart, irestLength, this._text.length - 1, paragraphNode.combineParagraph.charSpace);
|
|
@@ -17039,7 +17050,7 @@ module.exports.f = function getOwnPropertyNames(it) {
|
|
|
17039
17050
|
/*
|
|
17040
17051
|
* @Author: your name
|
|
17041
17052
|
* @Date: 2021-01-19 10:05:08
|
|
17042
|
-
* @LastEditTime: 2021-
|
|
17053
|
+
* @LastEditTime: 2021-09-26 19:07:01
|
|
17043
17054
|
* @LastEditors: Please set LastEditors
|
|
17044
17055
|
* @Description: In User Settings Edit
|
|
17045
17056
|
* @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
|
|
@@ -17058,8 +17069,7 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
17058
17069
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
17059
17070
|
this._node = node;
|
|
17060
17071
|
this._drawNode = drawNode;
|
|
17061
|
-
this._imageY = imageY;
|
|
17062
|
-
this.drawBorders(drawNode.dWidth, drawNode.dHeight, false);
|
|
17072
|
+
this._imageY = imageY; //this.drawBorders(drawNode.dWidth, drawNode.dHeight, false);
|
|
17063
17073
|
|
|
17064
17074
|
this._drawNode.addEventListener("mousedown", function (e) {
|
|
17065
17075
|
return _this.onMouseDown(e);
|
|
@@ -17111,6 +17121,7 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
17111
17121
|
value: function onMouseDown(e) {
|
|
17112
17122
|
var _this2 = this;
|
|
17113
17123
|
|
|
17124
|
+
this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true);
|
|
17114
17125
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__[/* HOEditorFactorys */ "a"].instance().getFactory(this._hoEditorFactoryID);
|
|
17115
17126
|
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(this.drawNode);
|
|
17116
17127
|
var index = drawLine.drawItems.indexOf(this.drawNode);
|
|
@@ -17120,17 +17131,15 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
17120
17131
|
this.sLocation = new createjs.Point(e.stageX, e.stageY);
|
|
17121
17132
|
var shapes = this.drawNode.children;
|
|
17122
17133
|
shapes.forEach(function (value, index) {
|
|
17123
|
-
if (value.name !==
|
|
17124
|
-
|
|
17125
|
-
}
|
|
17126
|
-
|
|
17134
|
+
// if (value.name !== this.node.id && value.alpha !== 1) {
|
|
17135
|
+
// value.alpha = 1;
|
|
17136
|
+
// }
|
|
17127
17137
|
if (value.name == "event") {
|
|
17128
17138
|
_this2.drawNode.removeChild(value);
|
|
17129
|
-
}
|
|
17139
|
+
} // if (value.name === this.node.id) {
|
|
17140
|
+
// value.alpha = 1;
|
|
17141
|
+
// }
|
|
17130
17142
|
|
|
17131
|
-
if (value.name === _this2.node.id) {
|
|
17132
|
-
value.alpha = 1;
|
|
17133
|
-
}
|
|
17134
17143
|
});
|
|
17135
17144
|
hoEditorFactory.docTree.curOnDragNode = this.node;
|
|
17136
17145
|
drawLine.addChild(this.drawNode);
|
|
@@ -17147,13 +17156,12 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
17147
17156
|
value: function drawBorders(dWidth, dHeight, isDisplay) {
|
|
17148
17157
|
var _this3 = this;
|
|
17149
17158
|
|
|
17150
|
-
this.drawNode.children.splice(1, this.drawNode.children.length - 1);
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
alpha = 1;
|
|
17155
|
-
}
|
|
17159
|
+
this.drawNode.children.splice(1, this.drawNode.children.length - 1); // let alpha = 0;
|
|
17160
|
+
// if (isDisplay) {
|
|
17161
|
+
// alpha = 1;
|
|
17162
|
+
// }
|
|
17156
17163
|
|
|
17164
|
+
var alpha = 1;
|
|
17157
17165
|
this.drawNode.uncache();
|
|
17158
17166
|
var leftTop = new createjs.Shape();
|
|
17159
17167
|
leftTop.name = "leftTop";
|
|
@@ -18682,6 +18690,9 @@ var HOEditorFactorys = __webpack_require__("8d1d");
|
|
|
18682
18690
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SeparateCharNode.ts
|
|
18683
18691
|
var SeparateCharNode = __webpack_require__("2913");
|
|
18684
18692
|
|
|
18693
|
+
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
18694
|
+
var UnitConvert = __webpack_require__("e802");
|
|
18695
|
+
|
|
18685
18696
|
// CONCATENATED MODULE: ./src/editor/draw/DrawLine.ts
|
|
18686
18697
|
|
|
18687
18698
|
|
|
@@ -18701,6 +18712,7 @@ var SeparateCharNode = __webpack_require__("2913");
|
|
|
18701
18712
|
|
|
18702
18713
|
|
|
18703
18714
|
|
|
18715
|
+
|
|
18704
18716
|
var DrawLine_DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
18705
18717
|
Object(inherits["a" /* default */])(DrawLine, _DrawContainer);
|
|
18706
18718
|
|
|
@@ -19056,26 +19068,28 @@ var DrawLine_DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
19056
19068
|
|
|
19057
19069
|
|
|
19058
19070
|
if (actualWidth + dWidth > lwidth && actualWidth > 0) {
|
|
19059
|
-
|
|
19071
|
+
if (this.drawItems[i] instanceof DrawTextNode["a" /* DrawTextNode */] && UnitConvert["a" /* UnitConvert */].isPuctuation(this._drawItems[i].text)) {} else {
|
|
19072
|
+
var nextLine = this._paragraphNode.getNextDline(this);
|
|
19060
19073
|
|
|
19061
|
-
|
|
19074
|
+
var ditems = this._drawItems.slice(i, this._drawItems.length);
|
|
19062
19075
|
|
|
19063
|
-
|
|
19076
|
+
nextLine.insert(ditems, 0);
|
|
19064
19077
|
|
|
19065
|
-
|
|
19066
|
-
|
|
19078
|
+
for (var n = i; n < this.drawItems.length; n++) {
|
|
19079
|
+
var ditem = this.drawItems[n];
|
|
19067
19080
|
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19081
|
+
if (ditem) {
|
|
19082
|
+
// this._islastline = false;
|
|
19083
|
+
this.removeChild(ditem);
|
|
19084
|
+
nextLine.addChild(ditem);
|
|
19085
|
+
}
|
|
19072
19086
|
}
|
|
19073
|
-
}
|
|
19074
19087
|
|
|
19075
|
-
|
|
19088
|
+
this._drawItems.splice(i, this._drawItems.length - i + 1);
|
|
19076
19089
|
|
|
19077
|
-
|
|
19078
|
-
|
|
19090
|
+
nextLine.fitLines();
|
|
19091
|
+
break;
|
|
19092
|
+
}
|
|
19079
19093
|
}
|
|
19080
19094
|
|
|
19081
19095
|
this._charCount = iCount;
|
|
@@ -19606,6 +19620,9 @@ var es_string_iterator = __webpack_require__("3ca3");
|
|
|
19606
19620
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
19607
19621
|
var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
19608
19622
|
|
|
19623
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
19624
|
+
var es_array_concat = __webpack_require__("99af");
|
|
19625
|
+
|
|
19609
19626
|
// EXTERNAL MODULE: ./src/editor/events/Exception.ts
|
|
19610
19627
|
var Exception = __webpack_require__("ff91");
|
|
19611
19628
|
|
|
@@ -19890,6 +19907,1580 @@ var DrawPrintRecord_DrawPrintRecord = /*#__PURE__*/function (_DrawPrintBase) {
|
|
|
19890
19907
|
// EXTERNAL MODULE: ./src/editor/draw/drawPrint/DrawPrintSelected.ts
|
|
19891
19908
|
var DrawPrintSelected = __webpack_require__("8905");
|
|
19892
19909
|
|
|
19910
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
19911
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
19912
|
+
|
|
19913
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
19914
|
+
var es_string_replace = __webpack_require__("5319");
|
|
19915
|
+
|
|
19916
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
19917
|
+
var es_regexp_constructor = __webpack_require__("4d63");
|
|
19918
|
+
|
|
19919
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
19920
|
+
var es_regexp_to_string = __webpack_require__("25f0");
|
|
19921
|
+
|
|
19922
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
|
|
19923
|
+
var es_array_fill = __webpack_require__("cb29");
|
|
19924
|
+
|
|
19925
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
19926
|
+
var es_array_slice = __webpack_require__("fb6a");
|
|
19927
|
+
|
|
19928
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
19929
|
+
var es_array_join = __webpack_require__("a15b");
|
|
19930
|
+
|
|
19931
|
+
// CONCATENATED MODULE: ./src/canvas2svg/canvas2svg.js
|
|
19932
|
+
|
|
19933
|
+
|
|
19934
|
+
|
|
19935
|
+
|
|
19936
|
+
|
|
19937
|
+
|
|
19938
|
+
|
|
19939
|
+
|
|
19940
|
+
|
|
19941
|
+
|
|
19942
|
+
|
|
19943
|
+
/*!!
|
|
19944
|
+
* Canvas 2 Svg v1.0.21
|
|
19945
|
+
* A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.
|
|
19946
|
+
*
|
|
19947
|
+
* Licensed under the MIT license:
|
|
19948
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
19949
|
+
*
|
|
19950
|
+
* Author:
|
|
19951
|
+
* Kerry Liu
|
|
19952
|
+
*
|
|
19953
|
+
* Copyright (c) 2014 Gliffy Inc.
|
|
19954
|
+
*/
|
|
19955
|
+
var STYLES, _ctx, CanvasGradient, CanvasPattern, namedEntities; //helper function to format a string
|
|
19956
|
+
|
|
19957
|
+
|
|
19958
|
+
function format(str, args) {
|
|
19959
|
+
var keys = Object.keys(args),
|
|
19960
|
+
i;
|
|
19961
|
+
|
|
19962
|
+
for (i = 0; i < keys.length; i++) {
|
|
19963
|
+
str = str.replace(new RegExp("\\{" + keys[i] + "\\}", "gi"), args[keys[i]]);
|
|
19964
|
+
}
|
|
19965
|
+
|
|
19966
|
+
return str;
|
|
19967
|
+
} //helper function that generates a random string
|
|
19968
|
+
|
|
19969
|
+
|
|
19970
|
+
function randomString(holder) {
|
|
19971
|
+
var chars, randomstring, i;
|
|
19972
|
+
|
|
19973
|
+
if (!holder) {
|
|
19974
|
+
throw new Error("cannot create a random attribute name for an undefined object");
|
|
19975
|
+
}
|
|
19976
|
+
|
|
19977
|
+
chars = "ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
|
|
19978
|
+
randomstring = "";
|
|
19979
|
+
|
|
19980
|
+
do {
|
|
19981
|
+
randomstring = "";
|
|
19982
|
+
|
|
19983
|
+
for (i = 0; i < 12; i++) {
|
|
19984
|
+
randomstring += chars[Math.floor(Math.random() * chars.length)];
|
|
19985
|
+
}
|
|
19986
|
+
} while (holder[randomstring]);
|
|
19987
|
+
|
|
19988
|
+
return randomstring;
|
|
19989
|
+
} //helper function to map named to numbered entities
|
|
19990
|
+
|
|
19991
|
+
|
|
19992
|
+
function createNamedToNumberedLookup(items, radix) {
|
|
19993
|
+
var i,
|
|
19994
|
+
entity,
|
|
19995
|
+
lookup = {},
|
|
19996
|
+
base10,
|
|
19997
|
+
base16;
|
|
19998
|
+
items = items.split(',');
|
|
19999
|
+
radix = radix || 10; // Map from named to numbered entities.
|
|
20000
|
+
|
|
20001
|
+
for (i = 0; i < items.length; i += 2) {
|
|
20002
|
+
entity = '&' + items[i + 1] + ';';
|
|
20003
|
+
base10 = parseInt(items[i], radix);
|
|
20004
|
+
lookup[entity] = '&#' + base10 + ';';
|
|
20005
|
+
} //FF and IE need to create a regex from hex values ie == \xa0
|
|
20006
|
+
|
|
20007
|
+
|
|
20008
|
+
lookup["\\xa0"] = ' ';
|
|
20009
|
+
return lookup;
|
|
20010
|
+
} //helper function to map canvas-textAlign to svg-textAnchor
|
|
20011
|
+
|
|
20012
|
+
|
|
20013
|
+
function getTextAnchor(textAlign) {
|
|
20014
|
+
//TODO: support rtl languages
|
|
20015
|
+
var mapping = {
|
|
20016
|
+
"left": "start",
|
|
20017
|
+
"right": "end",
|
|
20018
|
+
"center": "middle",
|
|
20019
|
+
"start": "start",
|
|
20020
|
+
"end": "end"
|
|
20021
|
+
};
|
|
20022
|
+
return mapping[textAlign] || mapping.start;
|
|
20023
|
+
} //helper function to map canvas-textBaseline to svg-dominantBaseline
|
|
20024
|
+
|
|
20025
|
+
|
|
20026
|
+
function getDominantBaseline(textBaseline) {
|
|
20027
|
+
//INFO: not supported in all browsers
|
|
20028
|
+
var mapping = {
|
|
20029
|
+
"alphabetic": "alphabetic",
|
|
20030
|
+
"hanging": "hanging",
|
|
20031
|
+
"top": "text-before-edge",
|
|
20032
|
+
"bottom": "text-after-edge",
|
|
20033
|
+
"middle": "central"
|
|
20034
|
+
};
|
|
20035
|
+
return mapping[textBaseline] || mapping.alphabetic;
|
|
20036
|
+
} // Unpack entities lookup where the numbers are in radix 32 to reduce the size
|
|
20037
|
+
// entity mapping courtesy of tinymce
|
|
20038
|
+
|
|
20039
|
+
|
|
20040
|
+
namedEntities = createNamedToNumberedLookup('50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,' + '5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,' + '5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,' + '5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,' + '68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,' + '6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,' + '6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,' + '75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,' + '7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,' + '7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,' + 'sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,' + 'st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,' + 't9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,' + 'tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,' + 'u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,' + '81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,' + '8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,' + '8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,' + '8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,' + '8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,' + 'nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,' + 'rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,' + 'Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,' + '80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,' + '811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro', 32); //Some basic mappings for attributes and default values.
|
|
20041
|
+
|
|
20042
|
+
STYLES = {
|
|
20043
|
+
"strokeStyle": {
|
|
20044
|
+
svgAttr: "stroke",
|
|
20045
|
+
//corresponding svg attribute
|
|
20046
|
+
canvas: "#000000",
|
|
20047
|
+
//canvas default
|
|
20048
|
+
svg: "none",
|
|
20049
|
+
//svg default
|
|
20050
|
+
apply: "stroke" //apply on stroke() or fill()
|
|
20051
|
+
|
|
20052
|
+
},
|
|
20053
|
+
"fillStyle": {
|
|
20054
|
+
svgAttr: "fill",
|
|
20055
|
+
canvas: "#000000",
|
|
20056
|
+
svg: null,
|
|
20057
|
+
//svg default is black, but we need to special case this to handle canvas stroke without fill
|
|
20058
|
+
apply: "fill"
|
|
20059
|
+
},
|
|
20060
|
+
"lineCap": {
|
|
20061
|
+
svgAttr: "stroke-linecap",
|
|
20062
|
+
canvas: "butt",
|
|
20063
|
+
svg: "butt",
|
|
20064
|
+
apply: "stroke"
|
|
20065
|
+
},
|
|
20066
|
+
"lineJoin": {
|
|
20067
|
+
svgAttr: "stroke-linejoin",
|
|
20068
|
+
canvas: "miter",
|
|
20069
|
+
svg: "miter",
|
|
20070
|
+
apply: "stroke"
|
|
20071
|
+
},
|
|
20072
|
+
"miterLimit": {
|
|
20073
|
+
svgAttr: "stroke-miterlimit",
|
|
20074
|
+
canvas: 10,
|
|
20075
|
+
svg: 4,
|
|
20076
|
+
apply: "stroke"
|
|
20077
|
+
},
|
|
20078
|
+
"lineWidth": {
|
|
20079
|
+
svgAttr: "stroke-width",
|
|
20080
|
+
canvas: 1,
|
|
20081
|
+
svg: 1,
|
|
20082
|
+
apply: "stroke"
|
|
20083
|
+
},
|
|
20084
|
+
"globalAlpha": {
|
|
20085
|
+
svgAttr: "opacity",
|
|
20086
|
+
canvas: 1,
|
|
20087
|
+
svg: 1,
|
|
20088
|
+
apply: "fill stroke"
|
|
20089
|
+
},
|
|
20090
|
+
"font": {
|
|
20091
|
+
//font converts to multiple svg attributes, there is custom logic for this
|
|
20092
|
+
canvas: "10px sans-serif"
|
|
20093
|
+
},
|
|
20094
|
+
"shadowColor": {
|
|
20095
|
+
canvas: "#000000"
|
|
20096
|
+
},
|
|
20097
|
+
"shadowOffsetX": {
|
|
20098
|
+
canvas: 0
|
|
20099
|
+
},
|
|
20100
|
+
"shadowOffsetY": {
|
|
20101
|
+
canvas: 0
|
|
20102
|
+
},
|
|
20103
|
+
"shadowBlur": {
|
|
20104
|
+
canvas: 0
|
|
20105
|
+
},
|
|
20106
|
+
"textAlign": {
|
|
20107
|
+
canvas: "start"
|
|
20108
|
+
},
|
|
20109
|
+
"textBaseline": {
|
|
20110
|
+
canvas: "alphabetic"
|
|
20111
|
+
},
|
|
20112
|
+
"lineDash": {
|
|
20113
|
+
svgAttr: "stroke-dasharray",
|
|
20114
|
+
canvas: [],
|
|
20115
|
+
svg: null,
|
|
20116
|
+
apply: "stroke"
|
|
20117
|
+
}
|
|
20118
|
+
};
|
|
20119
|
+
/**
|
|
20120
|
+
*
|
|
20121
|
+
* @param gradientNode - reference to the gradient
|
|
20122
|
+
* @constructor
|
|
20123
|
+
*/
|
|
20124
|
+
|
|
20125
|
+
CanvasGradient = function CanvasGradient(gradientNode, ctx) {
|
|
20126
|
+
this.__root = gradientNode;
|
|
20127
|
+
this.__ctx = ctx;
|
|
20128
|
+
};
|
|
20129
|
+
/**
|
|
20130
|
+
* Adds a color stop to the gradient root
|
|
20131
|
+
*/
|
|
20132
|
+
|
|
20133
|
+
|
|
20134
|
+
CanvasGradient.prototype.addColorStop = function (offset, color) {
|
|
20135
|
+
var stop = this.__ctx.__createElement("stop"),
|
|
20136
|
+
regex,
|
|
20137
|
+
matches;
|
|
20138
|
+
|
|
20139
|
+
stop.setAttribute("offset", offset);
|
|
20140
|
+
|
|
20141
|
+
if (color.indexOf("rgba") !== -1) {
|
|
20142
|
+
//separate alpha value, since webkit can't handle it
|
|
20143
|
+
regex = /rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi;
|
|
20144
|
+
matches = regex.exec(color);
|
|
20145
|
+
stop.setAttribute("stop-color", format("rgb({r},{g},{b})", {
|
|
20146
|
+
r: matches[1],
|
|
20147
|
+
g: matches[2],
|
|
20148
|
+
b: matches[3]
|
|
20149
|
+
}));
|
|
20150
|
+
stop.setAttribute("stop-opacity", matches[4]);
|
|
20151
|
+
} else {
|
|
20152
|
+
stop.setAttribute("stop-color", color);
|
|
20153
|
+
}
|
|
20154
|
+
|
|
20155
|
+
this.__root.appendChild(stop);
|
|
20156
|
+
};
|
|
20157
|
+
|
|
20158
|
+
CanvasPattern = function CanvasPattern(pattern, ctx) {
|
|
20159
|
+
this.__root = pattern;
|
|
20160
|
+
this.__ctx = ctx;
|
|
20161
|
+
};
|
|
20162
|
+
/**
|
|
20163
|
+
* The mock canvas context
|
|
20164
|
+
* @param o - options include:
|
|
20165
|
+
* ctx - existing Context2D to wrap around
|
|
20166
|
+
* width - width of your canvas (defaults to 500)
|
|
20167
|
+
* height - height of your canvas (defaults to 500)
|
|
20168
|
+
* enableMirroring - enables canvas mirroring (get image data) (defaults to false)
|
|
20169
|
+
* document - the document object (defaults to the current document)
|
|
20170
|
+
*/
|
|
20171
|
+
|
|
20172
|
+
|
|
20173
|
+
_ctx = function ctx(o) {
|
|
20174
|
+
var defaultOptions = {
|
|
20175
|
+
width: 500,
|
|
20176
|
+
height: 500,
|
|
20177
|
+
enableMirroring: false
|
|
20178
|
+
},
|
|
20179
|
+
options; //keep support for this way of calling C2S: new C2S(width,height)
|
|
20180
|
+
|
|
20181
|
+
if (arguments.length > 1) {
|
|
20182
|
+
options = defaultOptions;
|
|
20183
|
+
options.width = arguments[0];
|
|
20184
|
+
options.height = arguments[1];
|
|
20185
|
+
} else if (!o) {
|
|
20186
|
+
options = defaultOptions;
|
|
20187
|
+
} else {
|
|
20188
|
+
options = o;
|
|
20189
|
+
}
|
|
20190
|
+
|
|
20191
|
+
if (!(this instanceof _ctx)) {
|
|
20192
|
+
//did someone call this without new?
|
|
20193
|
+
return new _ctx(options);
|
|
20194
|
+
} //setup options
|
|
20195
|
+
|
|
20196
|
+
|
|
20197
|
+
this.width = options.width || defaultOptions.width;
|
|
20198
|
+
this.height = options.height || defaultOptions.height;
|
|
20199
|
+
this.enableMirroring = options.enableMirroring !== undefined ? options.enableMirroring : defaultOptions.enableMirroring;
|
|
20200
|
+
this.canvas = this; ///point back to this instance!
|
|
20201
|
+
|
|
20202
|
+
this.__document = options.document || document; // allow passing in an existing context to wrap around
|
|
20203
|
+
// if a context is passed in, we know a canvas already exist
|
|
20204
|
+
|
|
20205
|
+
if (options.ctx) {
|
|
20206
|
+
this.__ctx = options.ctx;
|
|
20207
|
+
} else {
|
|
20208
|
+
this.__canvas = this.__document.createElement("canvas");
|
|
20209
|
+
this.__ctx = this.__canvas.getContext("2d");
|
|
20210
|
+
}
|
|
20211
|
+
|
|
20212
|
+
this.__setDefaultStyles();
|
|
20213
|
+
|
|
20214
|
+
this.__stack = [this.__getStyleState()];
|
|
20215
|
+
this.__groupStack = []; //the root svg element
|
|
20216
|
+
|
|
20217
|
+
this.__root = this.__document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
20218
|
+
|
|
20219
|
+
this.__root.setAttribute("version", 1.1);
|
|
20220
|
+
|
|
20221
|
+
this.__root.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
20222
|
+
|
|
20223
|
+
this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
20224
|
+
|
|
20225
|
+
this.__root.setAttribute("width", this.width);
|
|
20226
|
+
|
|
20227
|
+
this.__root.setAttribute("height", this.height); //make sure we don't generate the same ids in defs
|
|
20228
|
+
|
|
20229
|
+
|
|
20230
|
+
this.__ids = {}; //defs tag
|
|
20231
|
+
|
|
20232
|
+
this.__defs = this.__document.createElementNS("http://www.w3.org/2000/svg", "defs");
|
|
20233
|
+
|
|
20234
|
+
this.__root.appendChild(this.__defs); //also add a group child. the svg element can't use the transform attribute
|
|
20235
|
+
|
|
20236
|
+
|
|
20237
|
+
this.__currentElement = this.__document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
20238
|
+
|
|
20239
|
+
this.__root.appendChild(this.__currentElement);
|
|
20240
|
+
};
|
|
20241
|
+
/**
|
|
20242
|
+
* Creates the specified svg element
|
|
20243
|
+
* @private
|
|
20244
|
+
*/
|
|
20245
|
+
|
|
20246
|
+
|
|
20247
|
+
_ctx.prototype.__createElement = function (elementName, properties, resetFill) {
|
|
20248
|
+
if (typeof properties === "undefined") {
|
|
20249
|
+
properties = {};
|
|
20250
|
+
}
|
|
20251
|
+
|
|
20252
|
+
var element = this.__document.createElementNS("http://www.w3.org/2000/svg", elementName),
|
|
20253
|
+
keys = Object.keys(properties),
|
|
20254
|
+
i,
|
|
20255
|
+
key;
|
|
20256
|
+
|
|
20257
|
+
if (resetFill) {
|
|
20258
|
+
//if fill or stroke is not specified, the svg element should not display. By default SVG's fill is black.
|
|
20259
|
+
element.setAttribute("fill", "none");
|
|
20260
|
+
element.setAttribute("stroke", "none");
|
|
20261
|
+
}
|
|
20262
|
+
|
|
20263
|
+
for (i = 0; i < keys.length; i++) {
|
|
20264
|
+
key = keys[i];
|
|
20265
|
+
element.setAttribute(key, properties[key]);
|
|
20266
|
+
}
|
|
20267
|
+
|
|
20268
|
+
return element;
|
|
20269
|
+
};
|
|
20270
|
+
/**
|
|
20271
|
+
* Applies default canvas styles to the context
|
|
20272
|
+
* @private
|
|
20273
|
+
*/
|
|
20274
|
+
|
|
20275
|
+
|
|
20276
|
+
_ctx.prototype.__setDefaultStyles = function () {
|
|
20277
|
+
//default 2d canvas context properties see:http://www.w3.org/TR/2dcontext/
|
|
20278
|
+
var keys = Object.keys(STYLES),
|
|
20279
|
+
i,
|
|
20280
|
+
key;
|
|
20281
|
+
|
|
20282
|
+
for (i = 0; i < keys.length; i++) {
|
|
20283
|
+
key = keys[i];
|
|
20284
|
+
this[key] = STYLES[key].canvas;
|
|
20285
|
+
}
|
|
20286
|
+
};
|
|
20287
|
+
/**
|
|
20288
|
+
* Applies styles on restore
|
|
20289
|
+
* @param styleState
|
|
20290
|
+
* @private
|
|
20291
|
+
*/
|
|
20292
|
+
|
|
20293
|
+
|
|
20294
|
+
_ctx.prototype.__applyStyleState = function (styleState) {
|
|
20295
|
+
var keys = Object.keys(styleState),
|
|
20296
|
+
i,
|
|
20297
|
+
key;
|
|
20298
|
+
|
|
20299
|
+
for (i = 0; i < keys.length; i++) {
|
|
20300
|
+
key = keys[i];
|
|
20301
|
+
this[key] = styleState[key];
|
|
20302
|
+
}
|
|
20303
|
+
};
|
|
20304
|
+
/**
|
|
20305
|
+
* Gets the current style state
|
|
20306
|
+
* @return {Object}
|
|
20307
|
+
* @private
|
|
20308
|
+
*/
|
|
20309
|
+
|
|
20310
|
+
|
|
20311
|
+
_ctx.prototype.__getStyleState = function () {
|
|
20312
|
+
var i,
|
|
20313
|
+
styleState = {},
|
|
20314
|
+
keys = Object.keys(STYLES),
|
|
20315
|
+
key;
|
|
20316
|
+
|
|
20317
|
+
for (i = 0; i < keys.length; i++) {
|
|
20318
|
+
key = keys[i];
|
|
20319
|
+
styleState[key] = this[key];
|
|
20320
|
+
}
|
|
20321
|
+
|
|
20322
|
+
return styleState;
|
|
20323
|
+
};
|
|
20324
|
+
/**
|
|
20325
|
+
* Apples the current styles to the current SVG element. On "ctx.fill" or "ctx.stroke"
|
|
20326
|
+
* @param type
|
|
20327
|
+
* @private
|
|
20328
|
+
*/
|
|
20329
|
+
|
|
20330
|
+
|
|
20331
|
+
_ctx.prototype.__applyStyleToCurrentElement = function (type) {
|
|
20332
|
+
var currentElement = this.__currentElement;
|
|
20333
|
+
var currentStyleGroup = this.__currentElementsToStyle;
|
|
20334
|
+
|
|
20335
|
+
if (currentStyleGroup) {
|
|
20336
|
+
currentElement.setAttribute(type, "");
|
|
20337
|
+
currentElement = currentStyleGroup.element;
|
|
20338
|
+
currentStyleGroup.children.forEach(function (node) {
|
|
20339
|
+
node.setAttribute(type, "");
|
|
20340
|
+
});
|
|
20341
|
+
}
|
|
20342
|
+
|
|
20343
|
+
var keys = Object.keys(STYLES),
|
|
20344
|
+
i,
|
|
20345
|
+
style,
|
|
20346
|
+
value,
|
|
20347
|
+
id,
|
|
20348
|
+
regex,
|
|
20349
|
+
matches;
|
|
20350
|
+
|
|
20351
|
+
for (i = 0; i < keys.length; i++) {
|
|
20352
|
+
style = STYLES[keys[i]];
|
|
20353
|
+
value = this[keys[i]];
|
|
20354
|
+
|
|
20355
|
+
if (style.apply) {
|
|
20356
|
+
//is this a gradient or pattern?
|
|
20357
|
+
if (value instanceof CanvasPattern) {
|
|
20358
|
+
//pattern
|
|
20359
|
+
if (value.__ctx) {
|
|
20360
|
+
//copy over defs
|
|
20361
|
+
while (value.__ctx.__defs.childNodes.length) {
|
|
20362
|
+
id = value.__ctx.__defs.childNodes[0].getAttribute("id");
|
|
20363
|
+
this.__ids[id] = id;
|
|
20364
|
+
|
|
20365
|
+
this.__defs.appendChild(value.__ctx.__defs.childNodes[0]);
|
|
20366
|
+
}
|
|
20367
|
+
}
|
|
20368
|
+
|
|
20369
|
+
currentElement.setAttribute(style.apply, format("url(#{id})", {
|
|
20370
|
+
id: value.__root.getAttribute("id")
|
|
20371
|
+
}));
|
|
20372
|
+
} else if (value instanceof CanvasGradient) {
|
|
20373
|
+
//gradient
|
|
20374
|
+
currentElement.setAttribute(style.apply, format("url(#{id})", {
|
|
20375
|
+
id: value.__root.getAttribute("id")
|
|
20376
|
+
}));
|
|
20377
|
+
} else if (style.apply.indexOf(type) !== -1 && style.svg !== value) {
|
|
20378
|
+
if ((style.svgAttr === "stroke" || style.svgAttr === "fill") && value.indexOf("rgba") !== -1) {
|
|
20379
|
+
//separate alpha value, since illustrator can't handle it
|
|
20380
|
+
regex = /rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi;
|
|
20381
|
+
matches = regex.exec(value);
|
|
20382
|
+
currentElement.setAttribute(style.svgAttr, format("rgb({r},{g},{b})", {
|
|
20383
|
+
r: matches[1],
|
|
20384
|
+
g: matches[2],
|
|
20385
|
+
b: matches[3]
|
|
20386
|
+
})); //should take globalAlpha here
|
|
20387
|
+
|
|
20388
|
+
var opacity = matches[4];
|
|
20389
|
+
var globalAlpha = this.globalAlpha;
|
|
20390
|
+
|
|
20391
|
+
if (globalAlpha != null) {
|
|
20392
|
+
opacity *= globalAlpha;
|
|
20393
|
+
}
|
|
20394
|
+
|
|
20395
|
+
currentElement.setAttribute(style.svgAttr + "-opacity", opacity);
|
|
20396
|
+
} else {
|
|
20397
|
+
var attr = style.svgAttr;
|
|
20398
|
+
|
|
20399
|
+
if (keys[i] === 'globalAlpha') {
|
|
20400
|
+
attr = type + '-' + style.svgAttr;
|
|
20401
|
+
|
|
20402
|
+
if (currentElement.getAttribute(attr)) {
|
|
20403
|
+
//fill-opacity or stroke-opacity has already been set by stroke or fill.
|
|
20404
|
+
continue;
|
|
20405
|
+
}
|
|
20406
|
+
} //otherwise only update attribute if right type, and not svg default
|
|
20407
|
+
|
|
20408
|
+
|
|
20409
|
+
currentElement.setAttribute(attr, value);
|
|
20410
|
+
}
|
|
20411
|
+
}
|
|
20412
|
+
}
|
|
20413
|
+
}
|
|
20414
|
+
};
|
|
20415
|
+
/**
|
|
20416
|
+
* Will return the closest group or svg node. May return the current element.
|
|
20417
|
+
* @private
|
|
20418
|
+
*/
|
|
20419
|
+
|
|
20420
|
+
|
|
20421
|
+
_ctx.prototype.__closestGroupOrSvg = function (node) {
|
|
20422
|
+
node = node || this.__currentElement;
|
|
20423
|
+
|
|
20424
|
+
if (node.nodeName === "g" || node.nodeName === "svg") {
|
|
20425
|
+
return node;
|
|
20426
|
+
} else {
|
|
20427
|
+
return this.__closestGroupOrSvg(node.parentNode);
|
|
20428
|
+
}
|
|
20429
|
+
};
|
|
20430
|
+
/**
|
|
20431
|
+
* Returns the serialized value of the svg so far
|
|
20432
|
+
* @param fixNamedEntities - Standalone SVG doesn't support named entities, which document.createTextNode encodes.
|
|
20433
|
+
* If true, we attempt to find all named entities and encode it as a numeric entity.
|
|
20434
|
+
* @return serialized svg
|
|
20435
|
+
*/
|
|
20436
|
+
|
|
20437
|
+
|
|
20438
|
+
_ctx.prototype.getSerializedSvg = function (fixNamedEntities) {
|
|
20439
|
+
var serialized = new XMLSerializer().serializeToString(this.__root),
|
|
20440
|
+
keys,
|
|
20441
|
+
i,
|
|
20442
|
+
key,
|
|
20443
|
+
value,
|
|
20444
|
+
regexp,
|
|
20445
|
+
xmlns; //IE search for a duplicate xmnls because they didn't implement setAttributeNS correctly
|
|
20446
|
+
|
|
20447
|
+
xmlns = /xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi;
|
|
20448
|
+
|
|
20449
|
+
if (xmlns.test(serialized)) {
|
|
20450
|
+
serialized = serialized.replace('xmlns="http://www.w3.org/2000/svg', 'xmlns:xlink="http://www.w3.org/1999/xlink');
|
|
20451
|
+
}
|
|
20452
|
+
|
|
20453
|
+
if (fixNamedEntities) {
|
|
20454
|
+
keys = Object.keys(namedEntities); //loop over each named entity and replace with the proper equivalent.
|
|
20455
|
+
|
|
20456
|
+
for (i = 0; i < keys.length; i++) {
|
|
20457
|
+
key = keys[i];
|
|
20458
|
+
value = namedEntities[key];
|
|
20459
|
+
regexp = new RegExp(key, "gi");
|
|
20460
|
+
|
|
20461
|
+
if (regexp.test(serialized)) {
|
|
20462
|
+
serialized = serialized.replace(regexp, value);
|
|
20463
|
+
}
|
|
20464
|
+
}
|
|
20465
|
+
}
|
|
20466
|
+
|
|
20467
|
+
return serialized;
|
|
20468
|
+
};
|
|
20469
|
+
/**
|
|
20470
|
+
* Returns the root svg
|
|
20471
|
+
* @return
|
|
20472
|
+
*/
|
|
20473
|
+
|
|
20474
|
+
|
|
20475
|
+
_ctx.prototype.getSvg = function () {
|
|
20476
|
+
return this.__root;
|
|
20477
|
+
};
|
|
20478
|
+
/**
|
|
20479
|
+
* Will generate a group tag.
|
|
20480
|
+
*/
|
|
20481
|
+
|
|
20482
|
+
|
|
20483
|
+
_ctx.prototype.save = function () {
|
|
20484
|
+
var group = this.__createElement("g");
|
|
20485
|
+
|
|
20486
|
+
var parent = this.__closestGroupOrSvg();
|
|
20487
|
+
|
|
20488
|
+
this.__groupStack.push(parent);
|
|
20489
|
+
|
|
20490
|
+
parent.appendChild(group);
|
|
20491
|
+
this.__currentElement = group;
|
|
20492
|
+
|
|
20493
|
+
this.__stack.push(this.__getStyleState());
|
|
20494
|
+
};
|
|
20495
|
+
/**
|
|
20496
|
+
* Sets current element to parent, or just root if already root
|
|
20497
|
+
*/
|
|
20498
|
+
|
|
20499
|
+
|
|
20500
|
+
_ctx.prototype.restore = function () {
|
|
20501
|
+
this.__currentElement = this.__groupStack.pop();
|
|
20502
|
+
this.__currentElementsToStyle = null; //Clearing canvas will make the poped group invalid, currentElement is set to the root group node.
|
|
20503
|
+
|
|
20504
|
+
if (!this.__currentElement) {
|
|
20505
|
+
this.__currentElement = this.__root.childNodes[1];
|
|
20506
|
+
}
|
|
20507
|
+
|
|
20508
|
+
var state = this.__stack.pop();
|
|
20509
|
+
|
|
20510
|
+
this.__applyStyleState(state);
|
|
20511
|
+
};
|
|
20512
|
+
/**
|
|
20513
|
+
* Helper method to add transform
|
|
20514
|
+
* @private
|
|
20515
|
+
*/
|
|
20516
|
+
|
|
20517
|
+
|
|
20518
|
+
_ctx.prototype.__addTransform = function (t) {
|
|
20519
|
+
//if the current element has siblings, add another group
|
|
20520
|
+
var parent = this.__closestGroupOrSvg();
|
|
20521
|
+
|
|
20522
|
+
if (parent.childNodes.length > 0) {
|
|
20523
|
+
if (this.__currentElement.nodeName === "path") {
|
|
20524
|
+
if (!this.__currentElementsToStyle) this.__currentElementsToStyle = {
|
|
20525
|
+
element: parent,
|
|
20526
|
+
children: []
|
|
20527
|
+
};
|
|
20528
|
+
|
|
20529
|
+
this.__currentElementsToStyle.children.push(this.__currentElement);
|
|
20530
|
+
|
|
20531
|
+
this.__applyCurrentDefaultPath();
|
|
20532
|
+
}
|
|
20533
|
+
|
|
20534
|
+
var group = this.__createElement("g");
|
|
20535
|
+
|
|
20536
|
+
parent.appendChild(group);
|
|
20537
|
+
this.__currentElement = group;
|
|
20538
|
+
}
|
|
20539
|
+
|
|
20540
|
+
var transform = this.__currentElement.getAttribute("transform");
|
|
20541
|
+
|
|
20542
|
+
if (transform) {
|
|
20543
|
+
transform += " ";
|
|
20544
|
+
} else {
|
|
20545
|
+
transform = "";
|
|
20546
|
+
}
|
|
20547
|
+
|
|
20548
|
+
transform += t;
|
|
20549
|
+
|
|
20550
|
+
this.__currentElement.setAttribute("transform", transform);
|
|
20551
|
+
};
|
|
20552
|
+
/**
|
|
20553
|
+
* scales the current element
|
|
20554
|
+
*/
|
|
20555
|
+
|
|
20556
|
+
|
|
20557
|
+
_ctx.prototype.scale = function (x, y) {
|
|
20558
|
+
if (y === undefined) {
|
|
20559
|
+
y = x;
|
|
20560
|
+
}
|
|
20561
|
+
|
|
20562
|
+
this.__addTransform(format("scale({x},{y})", {
|
|
20563
|
+
x: x,
|
|
20564
|
+
y: y
|
|
20565
|
+
}));
|
|
20566
|
+
};
|
|
20567
|
+
/**
|
|
20568
|
+
* rotates the current element
|
|
20569
|
+
*/
|
|
20570
|
+
|
|
20571
|
+
|
|
20572
|
+
_ctx.prototype.rotate = function (angle) {
|
|
20573
|
+
var degrees = angle * 180 / Math.PI;
|
|
20574
|
+
|
|
20575
|
+
this.__addTransform(format("rotate({angle},{cx},{cy})", {
|
|
20576
|
+
angle: degrees,
|
|
20577
|
+
cx: 0,
|
|
20578
|
+
cy: 0
|
|
20579
|
+
}));
|
|
20580
|
+
};
|
|
20581
|
+
/**
|
|
20582
|
+
* translates the current element
|
|
20583
|
+
*/
|
|
20584
|
+
|
|
20585
|
+
|
|
20586
|
+
_ctx.prototype.translate = function (x, y) {
|
|
20587
|
+
this.__addTransform(format("translate({x},{y})", {
|
|
20588
|
+
x: x,
|
|
20589
|
+
y: y
|
|
20590
|
+
}));
|
|
20591
|
+
};
|
|
20592
|
+
/**
|
|
20593
|
+
* applies a transform to the current element
|
|
20594
|
+
*/
|
|
20595
|
+
|
|
20596
|
+
|
|
20597
|
+
_ctx.prototype.transform = function (a, b, c, d, e, f) {
|
|
20598
|
+
this.__addTransform(format("matrix({a},{b},{c},{d},{e},{f})", {
|
|
20599
|
+
a: a,
|
|
20600
|
+
b: b,
|
|
20601
|
+
c: c,
|
|
20602
|
+
d: d,
|
|
20603
|
+
e: e,
|
|
20604
|
+
f: f
|
|
20605
|
+
}));
|
|
20606
|
+
};
|
|
20607
|
+
/**
|
|
20608
|
+
* Create a new Path Element
|
|
20609
|
+
*/
|
|
20610
|
+
|
|
20611
|
+
|
|
20612
|
+
_ctx.prototype.beginPath = function () {
|
|
20613
|
+
var path, parent; // Note that there is only one current default path, it is not part of the drawing state.
|
|
20614
|
+
// See also: https://html.spec.whatwg.org/multipage/scripting.html#current-default-path
|
|
20615
|
+
|
|
20616
|
+
this.__currentDefaultPath = "";
|
|
20617
|
+
this.__currentPosition = {};
|
|
20618
|
+
path = this.__createElement("path", {}, true);
|
|
20619
|
+
parent = this.__closestGroupOrSvg();
|
|
20620
|
+
parent.appendChild(path);
|
|
20621
|
+
this.__currentElement = path;
|
|
20622
|
+
};
|
|
20623
|
+
/**
|
|
20624
|
+
* Helper function to apply currentDefaultPath to current path element
|
|
20625
|
+
* @private
|
|
20626
|
+
*/
|
|
20627
|
+
|
|
20628
|
+
|
|
20629
|
+
_ctx.prototype.__applyCurrentDefaultPath = function () {
|
|
20630
|
+
var currentElement = this.__currentElement;
|
|
20631
|
+
|
|
20632
|
+
if (currentElement.nodeName === "path") {
|
|
20633
|
+
currentElement.setAttribute("d", this.__currentDefaultPath);
|
|
20634
|
+
} else {}
|
|
20635
|
+
};
|
|
20636
|
+
/**
|
|
20637
|
+
* Helper function to add path command
|
|
20638
|
+
* @private
|
|
20639
|
+
*/
|
|
20640
|
+
|
|
20641
|
+
|
|
20642
|
+
_ctx.prototype.__addPathCommand = function (command) {
|
|
20643
|
+
this.__currentDefaultPath += " ";
|
|
20644
|
+
this.__currentDefaultPath += command;
|
|
20645
|
+
};
|
|
20646
|
+
/**
|
|
20647
|
+
* Adds the move command to the current path element,
|
|
20648
|
+
* if the currentPathElement is not empty create a new path element
|
|
20649
|
+
*/
|
|
20650
|
+
|
|
20651
|
+
|
|
20652
|
+
_ctx.prototype.moveTo = function (x, y) {
|
|
20653
|
+
if (this.__currentElement.nodeName !== "path") {
|
|
20654
|
+
this.beginPath();
|
|
20655
|
+
} // creates a new subpath with the given point
|
|
20656
|
+
|
|
20657
|
+
|
|
20658
|
+
this.__currentPosition = {
|
|
20659
|
+
x: x,
|
|
20660
|
+
y: y
|
|
20661
|
+
};
|
|
20662
|
+
|
|
20663
|
+
this.__addPathCommand(format("M {x} {y}", {
|
|
20664
|
+
x: x,
|
|
20665
|
+
y: y
|
|
20666
|
+
}));
|
|
20667
|
+
};
|
|
20668
|
+
/**
|
|
20669
|
+
* Closes the current path
|
|
20670
|
+
*/
|
|
20671
|
+
|
|
20672
|
+
|
|
20673
|
+
_ctx.prototype.closePath = function () {
|
|
20674
|
+
if (this.__currentDefaultPath) {
|
|
20675
|
+
this.__addPathCommand("Z");
|
|
20676
|
+
}
|
|
20677
|
+
};
|
|
20678
|
+
/**
|
|
20679
|
+
* Adds a line to command
|
|
20680
|
+
*/
|
|
20681
|
+
|
|
20682
|
+
|
|
20683
|
+
_ctx.prototype.lineTo = function (x, y) {
|
|
20684
|
+
this.__currentPosition = {
|
|
20685
|
+
x: x,
|
|
20686
|
+
y: y
|
|
20687
|
+
};
|
|
20688
|
+
|
|
20689
|
+
if (this.__currentDefaultPath.indexOf('M') > -1) {
|
|
20690
|
+
this.__addPathCommand(format("L {x} {y}", {
|
|
20691
|
+
x: x,
|
|
20692
|
+
y: y
|
|
20693
|
+
}));
|
|
20694
|
+
} else {
|
|
20695
|
+
this.__addPathCommand(format("M {x} {y}", {
|
|
20696
|
+
x: x,
|
|
20697
|
+
y: y
|
|
20698
|
+
}));
|
|
20699
|
+
}
|
|
20700
|
+
};
|
|
20701
|
+
/**
|
|
20702
|
+
* Add a bezier command
|
|
20703
|
+
*/
|
|
20704
|
+
|
|
20705
|
+
|
|
20706
|
+
_ctx.prototype.bezierCurveTo = function (cp1x, cp1y, cp2x, cp2y, x, y) {
|
|
20707
|
+
this.__currentPosition = {
|
|
20708
|
+
x: x,
|
|
20709
|
+
y: y
|
|
20710
|
+
};
|
|
20711
|
+
|
|
20712
|
+
this.__addPathCommand(format("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}", {
|
|
20713
|
+
cp1x: cp1x,
|
|
20714
|
+
cp1y: cp1y,
|
|
20715
|
+
cp2x: cp2x,
|
|
20716
|
+
cp2y: cp2y,
|
|
20717
|
+
x: x,
|
|
20718
|
+
y: y
|
|
20719
|
+
}));
|
|
20720
|
+
};
|
|
20721
|
+
/**
|
|
20722
|
+
* Adds a quadratic curve to command
|
|
20723
|
+
*/
|
|
20724
|
+
|
|
20725
|
+
|
|
20726
|
+
_ctx.prototype.quadraticCurveTo = function (cpx, cpy, x, y) {
|
|
20727
|
+
this.__currentPosition = {
|
|
20728
|
+
x: x,
|
|
20729
|
+
y: y
|
|
20730
|
+
};
|
|
20731
|
+
|
|
20732
|
+
this.__addPathCommand(format("Q {cpx} {cpy} {x} {y}", {
|
|
20733
|
+
cpx: cpx,
|
|
20734
|
+
cpy: cpy,
|
|
20735
|
+
x: x,
|
|
20736
|
+
y: y
|
|
20737
|
+
}));
|
|
20738
|
+
};
|
|
20739
|
+
/**
|
|
20740
|
+
* Return a new normalized vector of given vector
|
|
20741
|
+
*/
|
|
20742
|
+
|
|
20743
|
+
|
|
20744
|
+
var normalize = function normalize(vector) {
|
|
20745
|
+
var len = Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1]);
|
|
20746
|
+
return [vector[0] / len, vector[1] / len];
|
|
20747
|
+
};
|
|
20748
|
+
/**
|
|
20749
|
+
* Adds the arcTo to the current path
|
|
20750
|
+
*
|
|
20751
|
+
* @see http://www.w3.org/TR/2015/WD-2dcontext-20150514/#dom-context-2d-arcto
|
|
20752
|
+
*/
|
|
20753
|
+
|
|
20754
|
+
|
|
20755
|
+
_ctx.prototype.arcTo = function (x1, y1, x2, y2, radius) {
|
|
20756
|
+
// Let the point (x0, y0) be the last point in the subpath.
|
|
20757
|
+
var x0 = this.__currentPosition && this.__currentPosition.x;
|
|
20758
|
+
var y0 = this.__currentPosition && this.__currentPosition.y; // First ensure there is a subpath for (x1, y1).
|
|
20759
|
+
|
|
20760
|
+
if (typeof x0 == "undefined" || typeof y0 == "undefined") {
|
|
20761
|
+
return;
|
|
20762
|
+
} // Negative values for radius must cause the implementation to throw an IndexSizeError exception.
|
|
20763
|
+
|
|
20764
|
+
|
|
20765
|
+
if (radius < 0) {
|
|
20766
|
+
throw new Error("IndexSizeError: The radius provided (" + radius + ") is negative.");
|
|
20767
|
+
} // If the point (x0, y0) is equal to the point (x1, y1),
|
|
20768
|
+
// or if the point (x1, y1) is equal to the point (x2, y2),
|
|
20769
|
+
// or if the radius radius is zero,
|
|
20770
|
+
// then the method must add the point (x1, y1) to the subpath,
|
|
20771
|
+
// and connect that point to the previous point (x0, y0) by a straight line.
|
|
20772
|
+
|
|
20773
|
+
|
|
20774
|
+
if (x0 === x1 && y0 === y1 || x1 === x2 && y1 === y2 || radius === 0) {
|
|
20775
|
+
this.lineTo(x1, y1);
|
|
20776
|
+
return;
|
|
20777
|
+
} // Otherwise, if the points (x0, y0), (x1, y1), and (x2, y2) all lie on a single straight line,
|
|
20778
|
+
// then the method must add the point (x1, y1) to the subpath,
|
|
20779
|
+
// and connect that point to the previous point (x0, y0) by a straight line.
|
|
20780
|
+
|
|
20781
|
+
|
|
20782
|
+
var unit_vec_p1_p0 = normalize([x0 - x1, y0 - y1]);
|
|
20783
|
+
var unit_vec_p1_p2 = normalize([x2 - x1, y2 - y1]);
|
|
20784
|
+
|
|
20785
|
+
if (unit_vec_p1_p0[0] * unit_vec_p1_p2[1] === unit_vec_p1_p0[1] * unit_vec_p1_p2[0]) {
|
|
20786
|
+
this.lineTo(x1, y1);
|
|
20787
|
+
return;
|
|
20788
|
+
} // Otherwise, let The Arc be the shortest arc given by circumference of the circle that has radius radius,
|
|
20789
|
+
// and that has one point tangent to the half-infinite line that crosses the point (x0, y0) and ends at the point (x1, y1),
|
|
20790
|
+
// and that has a different point tangent to the half-infinite line that ends at the point (x1, y1), and crosses the point (x2, y2).
|
|
20791
|
+
// The points at which this circle touches these two lines are called the start and end tangent points respectively.
|
|
20792
|
+
// note that both vectors are unit vectors, so the length is 1
|
|
20793
|
+
|
|
20794
|
+
|
|
20795
|
+
var cos = unit_vec_p1_p0[0] * unit_vec_p1_p2[0] + unit_vec_p1_p0[1] * unit_vec_p1_p2[1];
|
|
20796
|
+
var theta = Math.acos(Math.abs(cos)); // Calculate origin
|
|
20797
|
+
|
|
20798
|
+
var unit_vec_p1_origin = normalize([unit_vec_p1_p0[0] + unit_vec_p1_p2[0], unit_vec_p1_p0[1] + unit_vec_p1_p2[1]]);
|
|
20799
|
+
var len_p1_origin = radius / Math.sin(theta / 2);
|
|
20800
|
+
var x = x1 + len_p1_origin * unit_vec_p1_origin[0];
|
|
20801
|
+
var y = y1 + len_p1_origin * unit_vec_p1_origin[1]; // Calculate start angle and end angle
|
|
20802
|
+
// rotate 90deg clockwise (note that y axis points to its down)
|
|
20803
|
+
|
|
20804
|
+
var unit_vec_origin_start_tangent = [-unit_vec_p1_p0[1], unit_vec_p1_p0[0]]; // rotate 90deg counter clockwise (note that y axis points to its down)
|
|
20805
|
+
|
|
20806
|
+
var unit_vec_origin_end_tangent = [unit_vec_p1_p2[1], -unit_vec_p1_p2[0]];
|
|
20807
|
+
|
|
20808
|
+
var getAngle = function getAngle(vector) {
|
|
20809
|
+
// get angle (clockwise) between vector and (1, 0)
|
|
20810
|
+
var x = vector[0];
|
|
20811
|
+
var y = vector[1];
|
|
20812
|
+
|
|
20813
|
+
if (y >= 0) {
|
|
20814
|
+
// note that y axis points to its down
|
|
20815
|
+
return Math.acos(x);
|
|
20816
|
+
} else {
|
|
20817
|
+
return -Math.acos(x);
|
|
20818
|
+
}
|
|
20819
|
+
};
|
|
20820
|
+
|
|
20821
|
+
var startAngle = getAngle(unit_vec_origin_start_tangent);
|
|
20822
|
+
var endAngle = getAngle(unit_vec_origin_end_tangent); // Connect the point (x0, y0) to the start tangent point by a straight line
|
|
20823
|
+
|
|
20824
|
+
this.lineTo(x + unit_vec_origin_start_tangent[0] * radius, y + unit_vec_origin_start_tangent[1] * radius); // Connect the start tangent point to the end tangent point by arc
|
|
20825
|
+
// and adding the end tangent point to the subpath.
|
|
20826
|
+
|
|
20827
|
+
this.arc(x, y, radius, startAngle, endAngle);
|
|
20828
|
+
};
|
|
20829
|
+
/**
|
|
20830
|
+
* Sets the stroke property on the current element
|
|
20831
|
+
*/
|
|
20832
|
+
|
|
20833
|
+
|
|
20834
|
+
_ctx.prototype.stroke = function () {
|
|
20835
|
+
if (this.__currentElement.nodeName === "path") {
|
|
20836
|
+
this.__currentElement.setAttribute("paint-order", "fill stroke markers");
|
|
20837
|
+
}
|
|
20838
|
+
|
|
20839
|
+
this.__applyCurrentDefaultPath();
|
|
20840
|
+
|
|
20841
|
+
this.__applyStyleToCurrentElement("stroke");
|
|
20842
|
+
};
|
|
20843
|
+
/**
|
|
20844
|
+
* Sets fill properties on the current element
|
|
20845
|
+
*/
|
|
20846
|
+
|
|
20847
|
+
|
|
20848
|
+
_ctx.prototype.fill = function () {
|
|
20849
|
+
if (this.__currentElement.nodeName === "path") {
|
|
20850
|
+
this.__currentElement.setAttribute("paint-order", "stroke fill markers");
|
|
20851
|
+
}
|
|
20852
|
+
|
|
20853
|
+
this.__applyCurrentDefaultPath();
|
|
20854
|
+
|
|
20855
|
+
this.__applyStyleToCurrentElement("fill");
|
|
20856
|
+
};
|
|
20857
|
+
/**
|
|
20858
|
+
* Adds a rectangle to the path.
|
|
20859
|
+
*/
|
|
20860
|
+
|
|
20861
|
+
|
|
20862
|
+
_ctx.prototype.rect = function (x, y, width, height) {
|
|
20863
|
+
if (this.__currentElement.nodeName !== "path") {
|
|
20864
|
+
this.beginPath();
|
|
20865
|
+
}
|
|
20866
|
+
|
|
20867
|
+
this.moveTo(x, y);
|
|
20868
|
+
this.lineTo(x + width, y);
|
|
20869
|
+
this.lineTo(x + width, y + height);
|
|
20870
|
+
this.lineTo(x, y + height);
|
|
20871
|
+
this.lineTo(x, y);
|
|
20872
|
+
this.closePath();
|
|
20873
|
+
};
|
|
20874
|
+
/**
|
|
20875
|
+
* adds a rectangle element
|
|
20876
|
+
*/
|
|
20877
|
+
|
|
20878
|
+
|
|
20879
|
+
_ctx.prototype.fillRect = function (x, y, width, height) {
|
|
20880
|
+
var rect, parent;
|
|
20881
|
+
rect = this.__createElement("rect", {
|
|
20882
|
+
x: x,
|
|
20883
|
+
y: y,
|
|
20884
|
+
width: width,
|
|
20885
|
+
height: height
|
|
20886
|
+
}, true);
|
|
20887
|
+
parent = this.__closestGroupOrSvg();
|
|
20888
|
+
parent.appendChild(rect);
|
|
20889
|
+
this.__currentElement = rect;
|
|
20890
|
+
|
|
20891
|
+
this.__applyStyleToCurrentElement("fill");
|
|
20892
|
+
};
|
|
20893
|
+
/**
|
|
20894
|
+
* Draws a rectangle with no fill
|
|
20895
|
+
* @param x
|
|
20896
|
+
* @param y
|
|
20897
|
+
* @param width
|
|
20898
|
+
* @param height
|
|
20899
|
+
*/
|
|
20900
|
+
|
|
20901
|
+
|
|
20902
|
+
_ctx.prototype.strokeRect = function (x, y, width, height) {
|
|
20903
|
+
var rect, parent;
|
|
20904
|
+
rect = this.__createElement("rect", {
|
|
20905
|
+
x: x,
|
|
20906
|
+
y: y,
|
|
20907
|
+
width: width,
|
|
20908
|
+
height: height
|
|
20909
|
+
}, true);
|
|
20910
|
+
parent = this.__closestGroupOrSvg();
|
|
20911
|
+
parent.appendChild(rect);
|
|
20912
|
+
this.__currentElement = rect;
|
|
20913
|
+
|
|
20914
|
+
this.__applyStyleToCurrentElement("stroke");
|
|
20915
|
+
};
|
|
20916
|
+
/**
|
|
20917
|
+
* Clear entire canvas:
|
|
20918
|
+
* 1. save current transforms
|
|
20919
|
+
* 2. remove all the childNodes of the root g element
|
|
20920
|
+
*/
|
|
20921
|
+
|
|
20922
|
+
|
|
20923
|
+
_ctx.prototype.__clearCanvas = function () {
|
|
20924
|
+
var current = this.__closestGroupOrSvg(),
|
|
20925
|
+
transform = current.getAttribute("transform");
|
|
20926
|
+
|
|
20927
|
+
var rootGroup = this.__root.childNodes[1];
|
|
20928
|
+
var childNodes = rootGroup.childNodes;
|
|
20929
|
+
|
|
20930
|
+
for (var i = childNodes.length - 1; i >= 0; i--) {
|
|
20931
|
+
if (childNodes[i]) {
|
|
20932
|
+
rootGroup.removeChild(childNodes[i]);
|
|
20933
|
+
}
|
|
20934
|
+
}
|
|
20935
|
+
|
|
20936
|
+
this.__currentElement = rootGroup; //reset __groupStack as all the child group nodes are all removed.
|
|
20937
|
+
|
|
20938
|
+
this.__groupStack = [];
|
|
20939
|
+
|
|
20940
|
+
if (transform) {
|
|
20941
|
+
this.__addTransform(transform);
|
|
20942
|
+
}
|
|
20943
|
+
};
|
|
20944
|
+
/**
|
|
20945
|
+
* "Clears" a canvas by just drawing a white rectangle in the current group.
|
|
20946
|
+
*/
|
|
20947
|
+
|
|
20948
|
+
|
|
20949
|
+
_ctx.prototype.clearRect = function (x, y, width, height) {
|
|
20950
|
+
//clear entire canvas
|
|
20951
|
+
if (x === 0 && y === 0 && width === this.width && height === this.height) {
|
|
20952
|
+
this.__clearCanvas();
|
|
20953
|
+
|
|
20954
|
+
return;
|
|
20955
|
+
}
|
|
20956
|
+
|
|
20957
|
+
var rect,
|
|
20958
|
+
parent = this.__closestGroupOrSvg();
|
|
20959
|
+
|
|
20960
|
+
rect = this.__createElement("rect", {
|
|
20961
|
+
x: x,
|
|
20962
|
+
y: y,
|
|
20963
|
+
width: width,
|
|
20964
|
+
height: height,
|
|
20965
|
+
fill: "#FFFFFF"
|
|
20966
|
+
}, true);
|
|
20967
|
+
parent.appendChild(rect);
|
|
20968
|
+
};
|
|
20969
|
+
/**
|
|
20970
|
+
* Adds a linear gradient to a defs tag.
|
|
20971
|
+
* Returns a canvas gradient object that has a reference to it's parent def
|
|
20972
|
+
*/
|
|
20973
|
+
|
|
20974
|
+
|
|
20975
|
+
_ctx.prototype.createLinearGradient = function (x1, y1, x2, y2) {
|
|
20976
|
+
var grad = this.__createElement("linearGradient", {
|
|
20977
|
+
id: randomString(this.__ids),
|
|
20978
|
+
x1: x1 + "px",
|
|
20979
|
+
x2: x2 + "px",
|
|
20980
|
+
y1: y1 + "px",
|
|
20981
|
+
y2: y2 + "px",
|
|
20982
|
+
"gradientUnits": "userSpaceOnUse"
|
|
20983
|
+
}, false);
|
|
20984
|
+
|
|
20985
|
+
this.__defs.appendChild(grad);
|
|
20986
|
+
|
|
20987
|
+
return new CanvasGradient(grad, this);
|
|
20988
|
+
};
|
|
20989
|
+
/**
|
|
20990
|
+
* Adds a radial gradient to a defs tag.
|
|
20991
|
+
* Returns a canvas gradient object that has a reference to it's parent def
|
|
20992
|
+
*/
|
|
20993
|
+
|
|
20994
|
+
|
|
20995
|
+
_ctx.prototype.createRadialGradient = function (x0, y0, r0, x1, y1, r1) {
|
|
20996
|
+
var grad = this.__createElement("radialGradient", {
|
|
20997
|
+
id: randomString(this.__ids),
|
|
20998
|
+
cx: x1 + "px",
|
|
20999
|
+
cy: y1 + "px",
|
|
21000
|
+
r: r1 + "px",
|
|
21001
|
+
fx: x0 + "px",
|
|
21002
|
+
fy: y0 + "px",
|
|
21003
|
+
"gradientUnits": "userSpaceOnUse"
|
|
21004
|
+
}, false);
|
|
21005
|
+
|
|
21006
|
+
this.__defs.appendChild(grad);
|
|
21007
|
+
|
|
21008
|
+
return new CanvasGradient(grad, this);
|
|
21009
|
+
};
|
|
21010
|
+
/**
|
|
21011
|
+
* Parses the font string and returns svg mapping
|
|
21012
|
+
* @private
|
|
21013
|
+
*/
|
|
21014
|
+
|
|
21015
|
+
|
|
21016
|
+
_ctx.prototype.__parseFont = function () {
|
|
21017
|
+
var regex = /^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-zA-Z0-9\u4e00-\u9fa5]+?)\s*$/i;
|
|
21018
|
+
var fontPart = regex.exec(this.font);
|
|
21019
|
+
var data = {
|
|
21020
|
+
style: fontPart[1] || 'normal',
|
|
21021
|
+
size: fontPart[4] || '10px',
|
|
21022
|
+
family: fontPart[6] || 'sans-serif',
|
|
21023
|
+
weight: fontPart[3] || 'normal',
|
|
21024
|
+
decoration: fontPart[2] || 'normal',
|
|
21025
|
+
href: null
|
|
21026
|
+
}; //canvas doesn't support underline natively, but we can pass this attribute
|
|
21027
|
+
|
|
21028
|
+
if (this.__fontUnderline === "underline") {
|
|
21029
|
+
data.decoration = "underline";
|
|
21030
|
+
} //canvas also doesn't support linking, but we can pass this as well
|
|
21031
|
+
|
|
21032
|
+
|
|
21033
|
+
if (this.__fontHref) {
|
|
21034
|
+
data.href = this.__fontHref;
|
|
21035
|
+
}
|
|
21036
|
+
|
|
21037
|
+
return data;
|
|
21038
|
+
};
|
|
21039
|
+
/**
|
|
21040
|
+
* Helper to link text fragments
|
|
21041
|
+
* @param font
|
|
21042
|
+
* @param element
|
|
21043
|
+
* @return {*}
|
|
21044
|
+
* @private
|
|
21045
|
+
*/
|
|
21046
|
+
|
|
21047
|
+
|
|
21048
|
+
_ctx.prototype.__wrapTextLink = function (font, element) {
|
|
21049
|
+
if (font.href) {
|
|
21050
|
+
var a = this.__createElement("a");
|
|
21051
|
+
|
|
21052
|
+
a.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", font.href);
|
|
21053
|
+
a.appendChild(element);
|
|
21054
|
+
return a;
|
|
21055
|
+
}
|
|
21056
|
+
|
|
21057
|
+
return element;
|
|
21058
|
+
};
|
|
21059
|
+
/**
|
|
21060
|
+
* Fills or strokes text
|
|
21061
|
+
* @param text
|
|
21062
|
+
* @param x
|
|
21063
|
+
* @param y
|
|
21064
|
+
* @param action - stroke or fill
|
|
21065
|
+
* @private
|
|
21066
|
+
*/
|
|
21067
|
+
|
|
21068
|
+
|
|
21069
|
+
_ctx.prototype.__applyText = function (text, x, y, action) {
|
|
21070
|
+
var font = this.__parseFont(),
|
|
21071
|
+
parent = this.__closestGroupOrSvg(),
|
|
21072
|
+
textElement = this.__createElement("text", {
|
|
21073
|
+
"font-family": font.family,
|
|
21074
|
+
"font-size": font.size,
|
|
21075
|
+
"font-style": font.style,
|
|
21076
|
+
"font-weight": font.weight,
|
|
21077
|
+
"text-decoration": font.decoration,
|
|
21078
|
+
"x": x,
|
|
21079
|
+
"y": y,
|
|
21080
|
+
"text-anchor": getTextAnchor(this.textAlign),
|
|
21081
|
+
"dominant-baseline": getDominantBaseline(this.textBaseline)
|
|
21082
|
+
}, true);
|
|
21083
|
+
|
|
21084
|
+
textElement.appendChild(this.__document.createTextNode(text));
|
|
21085
|
+
this.__currentElement = textElement;
|
|
21086
|
+
|
|
21087
|
+
this.__applyStyleToCurrentElement(action);
|
|
21088
|
+
|
|
21089
|
+
parent.appendChild(this.__wrapTextLink(font, textElement));
|
|
21090
|
+
};
|
|
21091
|
+
/**
|
|
21092
|
+
* Creates a text element
|
|
21093
|
+
* @param text
|
|
21094
|
+
* @param x
|
|
21095
|
+
* @param y
|
|
21096
|
+
*/
|
|
21097
|
+
|
|
21098
|
+
|
|
21099
|
+
_ctx.prototype.fillText = function (text, x, y) {
|
|
21100
|
+
this.__applyText(text, x, y, "fill");
|
|
21101
|
+
};
|
|
21102
|
+
/**
|
|
21103
|
+
* Strokes text
|
|
21104
|
+
* @param text
|
|
21105
|
+
* @param x
|
|
21106
|
+
* @param y
|
|
21107
|
+
*/
|
|
21108
|
+
|
|
21109
|
+
|
|
21110
|
+
_ctx.prototype.strokeText = function (text, x, y) {
|
|
21111
|
+
this.__applyText(text, x, y, "stroke");
|
|
21112
|
+
};
|
|
21113
|
+
/**
|
|
21114
|
+
* No need to implement this for svg.
|
|
21115
|
+
* @param text
|
|
21116
|
+
* @return {TextMetrics}
|
|
21117
|
+
*/
|
|
21118
|
+
|
|
21119
|
+
|
|
21120
|
+
_ctx.prototype.measureText = function (text) {
|
|
21121
|
+
this.__ctx.font = this.font;
|
|
21122
|
+
return this.__ctx.measureText(text);
|
|
21123
|
+
};
|
|
21124
|
+
/**
|
|
21125
|
+
* Arc command!
|
|
21126
|
+
*/
|
|
21127
|
+
|
|
21128
|
+
|
|
21129
|
+
_ctx.prototype.arc = function (x, y, radius, startAngle, endAngle, counterClockwise) {
|
|
21130
|
+
// in canvas no circle is drawn if no angle is provided.
|
|
21131
|
+
if (startAngle === endAngle) {
|
|
21132
|
+
return;
|
|
21133
|
+
}
|
|
21134
|
+
|
|
21135
|
+
startAngle = startAngle % (2 * Math.PI);
|
|
21136
|
+
endAngle = endAngle % (2 * Math.PI);
|
|
21137
|
+
|
|
21138
|
+
if (startAngle === endAngle) {
|
|
21139
|
+
//circle time! subtract some of the angle so svg is happy (svg elliptical arc can't draw a full circle)
|
|
21140
|
+
endAngle = (endAngle + 2 * Math.PI - 0.001 * (counterClockwise ? -1 : 1)) % (2 * Math.PI);
|
|
21141
|
+
}
|
|
21142
|
+
|
|
21143
|
+
var endX = x + radius * Math.cos(endAngle),
|
|
21144
|
+
endY = y + radius * Math.sin(endAngle),
|
|
21145
|
+
startX = x + radius * Math.cos(startAngle),
|
|
21146
|
+
startY = y + radius * Math.sin(startAngle),
|
|
21147
|
+
sweepFlag = counterClockwise ? 0 : 1,
|
|
21148
|
+
largeArcFlag = 0,
|
|
21149
|
+
diff = endAngle - startAngle; // https://github.com/gliffy/canvas2svg/issues/4
|
|
21150
|
+
|
|
21151
|
+
if (diff < 0) {
|
|
21152
|
+
diff += 2 * Math.PI;
|
|
21153
|
+
}
|
|
21154
|
+
|
|
21155
|
+
if (counterClockwise) {
|
|
21156
|
+
largeArcFlag = diff > Math.PI ? 0 : 1;
|
|
21157
|
+
} else {
|
|
21158
|
+
largeArcFlag = diff > Math.PI ? 1 : 0;
|
|
21159
|
+
}
|
|
21160
|
+
|
|
21161
|
+
this.lineTo(startX, startY);
|
|
21162
|
+
|
|
21163
|
+
this.__addPathCommand(format("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}", {
|
|
21164
|
+
rx: radius,
|
|
21165
|
+
ry: radius,
|
|
21166
|
+
xAxisRotation: 0,
|
|
21167
|
+
largeArcFlag: largeArcFlag,
|
|
21168
|
+
sweepFlag: sweepFlag,
|
|
21169
|
+
endX: endX,
|
|
21170
|
+
endY: endY
|
|
21171
|
+
}));
|
|
21172
|
+
|
|
21173
|
+
this.__currentPosition = {
|
|
21174
|
+
x: endX,
|
|
21175
|
+
y: endY
|
|
21176
|
+
};
|
|
21177
|
+
};
|
|
21178
|
+
/**
|
|
21179
|
+
* Generates a ClipPath from the clip command.
|
|
21180
|
+
*/
|
|
21181
|
+
|
|
21182
|
+
|
|
21183
|
+
_ctx.prototype.clip = function () {
|
|
21184
|
+
var group = this.__closestGroupOrSvg(),
|
|
21185
|
+
clipPath = this.__createElement("clipPath"),
|
|
21186
|
+
id = randomString(this.__ids),
|
|
21187
|
+
newGroup = this.__createElement("g");
|
|
21188
|
+
|
|
21189
|
+
this.__applyCurrentDefaultPath();
|
|
21190
|
+
|
|
21191
|
+
group.removeChild(this.__currentElement);
|
|
21192
|
+
clipPath.setAttribute("id", id);
|
|
21193
|
+
clipPath.appendChild(this.__currentElement);
|
|
21194
|
+
|
|
21195
|
+
this.__defs.appendChild(clipPath); //set the clip path to this group
|
|
21196
|
+
|
|
21197
|
+
|
|
21198
|
+
group.setAttribute("clip-path", format("url(#{id})", {
|
|
21199
|
+
id: id
|
|
21200
|
+
})); //clip paths can be scaled and transformed, we need to add another wrapper group to avoid later transformations
|
|
21201
|
+
// to this path
|
|
21202
|
+
|
|
21203
|
+
group.appendChild(newGroup);
|
|
21204
|
+
this.__currentElement = newGroup;
|
|
21205
|
+
};
|
|
21206
|
+
/**
|
|
21207
|
+
* Draws a canvas, image or mock context to this canvas.
|
|
21208
|
+
* Note that all svg dom manipulation uses node.childNodes rather than node.children for IE support.
|
|
21209
|
+
* http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage
|
|
21210
|
+
*/
|
|
21211
|
+
|
|
21212
|
+
|
|
21213
|
+
_ctx.prototype.drawImage = function () {
|
|
21214
|
+
//convert arguments to a real array
|
|
21215
|
+
var args = Array.prototype.slice.call(arguments),
|
|
21216
|
+
image = args[0],
|
|
21217
|
+
dx,
|
|
21218
|
+
dy,
|
|
21219
|
+
dw,
|
|
21220
|
+
dh,
|
|
21221
|
+
sx = 0,
|
|
21222
|
+
sy = 0,
|
|
21223
|
+
sw,
|
|
21224
|
+
sh,
|
|
21225
|
+
parent,
|
|
21226
|
+
svg,
|
|
21227
|
+
defs,
|
|
21228
|
+
group,
|
|
21229
|
+
currentElement,
|
|
21230
|
+
svgImage,
|
|
21231
|
+
canvas,
|
|
21232
|
+
context,
|
|
21233
|
+
id;
|
|
21234
|
+
|
|
21235
|
+
if (args.length === 3) {
|
|
21236
|
+
dx = args[1];
|
|
21237
|
+
dy = args[2];
|
|
21238
|
+
sw = image.width;
|
|
21239
|
+
sh = image.height;
|
|
21240
|
+
dw = sw;
|
|
21241
|
+
dh = sh;
|
|
21242
|
+
} else if (args.length === 5) {
|
|
21243
|
+
dx = args[1];
|
|
21244
|
+
dy = args[2];
|
|
21245
|
+
dw = args[3];
|
|
21246
|
+
dh = args[4];
|
|
21247
|
+
sw = image.width;
|
|
21248
|
+
sh = image.height;
|
|
21249
|
+
} else if (args.length === 9) {
|
|
21250
|
+
sx = args[1];
|
|
21251
|
+
sy = args[2];
|
|
21252
|
+
sw = args[3];
|
|
21253
|
+
sh = args[4];
|
|
21254
|
+
dx = args[5];
|
|
21255
|
+
dy = args[6];
|
|
21256
|
+
dw = args[7];
|
|
21257
|
+
dh = args[8];
|
|
21258
|
+
} else {
|
|
21259
|
+
throw new Error("Inavlid number of arguments passed to drawImage: " + arguments.length);
|
|
21260
|
+
}
|
|
21261
|
+
|
|
21262
|
+
parent = this.__closestGroupOrSvg();
|
|
21263
|
+
currentElement = this.__currentElement;
|
|
21264
|
+
var translateDirective = "translate(" + dx + ", " + dy + ")";
|
|
21265
|
+
|
|
21266
|
+
if (image instanceof _ctx) {
|
|
21267
|
+
//canvas2svg mock canvas context. In the future we may want to clone nodes instead.
|
|
21268
|
+
//also I'm currently ignoring dw, dh, sw, sh, sx, sy for a mock context.
|
|
21269
|
+
svg = image.getSvg().cloneNode(true);
|
|
21270
|
+
|
|
21271
|
+
if (svg.childNodes && svg.childNodes.length > 1) {
|
|
21272
|
+
defs = svg.childNodes[0];
|
|
21273
|
+
|
|
21274
|
+
while (defs.childNodes.length) {
|
|
21275
|
+
id = defs.childNodes[0].getAttribute("id");
|
|
21276
|
+
this.__ids[id] = id;
|
|
21277
|
+
|
|
21278
|
+
this.__defs.appendChild(defs.childNodes[0]);
|
|
21279
|
+
}
|
|
21280
|
+
|
|
21281
|
+
group = svg.childNodes[1];
|
|
21282
|
+
|
|
21283
|
+
if (group) {
|
|
21284
|
+
//save original transform
|
|
21285
|
+
var originTransform = group.getAttribute("transform");
|
|
21286
|
+
var transformDirective;
|
|
21287
|
+
|
|
21288
|
+
if (originTransform) {
|
|
21289
|
+
transformDirective = originTransform + " " + translateDirective;
|
|
21290
|
+
} else {
|
|
21291
|
+
transformDirective = translateDirective;
|
|
21292
|
+
}
|
|
21293
|
+
|
|
21294
|
+
group.setAttribute("transform", transformDirective);
|
|
21295
|
+
parent.appendChild(group);
|
|
21296
|
+
}
|
|
21297
|
+
}
|
|
21298
|
+
} else if (image.nodeName === "IMG") {
|
|
21299
|
+
svgImage = this.__createElement("image");
|
|
21300
|
+
svgImage.setAttribute("width", dw);
|
|
21301
|
+
svgImage.setAttribute("height", dh);
|
|
21302
|
+
svgImage.setAttribute("preserveAspectRatio", "none");
|
|
21303
|
+
|
|
21304
|
+
if (sx || sy || sw !== image.width || sh !== image.height) {
|
|
21305
|
+
//crop the image using a temporary canvas
|
|
21306
|
+
canvas = this.__document.createElement("canvas");
|
|
21307
|
+
canvas.width = dw;
|
|
21308
|
+
canvas.height = dh;
|
|
21309
|
+
context = canvas.getContext("2d");
|
|
21310
|
+
context.drawImage(image, sx, sy, sw, sh, 0, 0, dw, dh);
|
|
21311
|
+
image = canvas;
|
|
21312
|
+
}
|
|
21313
|
+
|
|
21314
|
+
svgImage.setAttribute("transform", translateDirective);
|
|
21315
|
+
svgImage.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", image.nodeName === "CANVAS" ? image.toDataURL() : image.getAttribute("src"));
|
|
21316
|
+
parent.appendChild(svgImage);
|
|
21317
|
+
} else if (image.nodeName === "CANVAS") {
|
|
21318
|
+
svgImage = this.__createElement("image");
|
|
21319
|
+
svgImage.setAttribute("width", dw);
|
|
21320
|
+
svgImage.setAttribute("height", dh);
|
|
21321
|
+
svgImage.setAttribute("preserveAspectRatio", "none"); // draw canvas onto temporary canvas so that smoothing can be handled
|
|
21322
|
+
|
|
21323
|
+
canvas = this.__document.createElement("canvas");
|
|
21324
|
+
canvas.width = dw;
|
|
21325
|
+
canvas.height = dh;
|
|
21326
|
+
context = canvas.getContext("2d");
|
|
21327
|
+
context.imageSmoothingEnabled = false;
|
|
21328
|
+
context.mozImageSmoothingEnabled = false;
|
|
21329
|
+
context.oImageSmoothingEnabled = false;
|
|
21330
|
+
context.webkitImageSmoothingEnabled = false;
|
|
21331
|
+
context.drawImage(image, sx, sy, sw, sh, 0, 0, dw, dh);
|
|
21332
|
+
image = canvas;
|
|
21333
|
+
svgImage.setAttribute("transform", translateDirective);
|
|
21334
|
+
svgImage.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", image.toDataURL());
|
|
21335
|
+
parent.appendChild(svgImage);
|
|
21336
|
+
}
|
|
21337
|
+
};
|
|
21338
|
+
|
|
21339
|
+
_ctx.prototype.drawImageSvg = function () {
|
|
21340
|
+
//convert arguments to a real array
|
|
21341
|
+
var args = Array.prototype.slice.call(arguments),
|
|
21342
|
+
image = args[0],
|
|
21343
|
+
dx,
|
|
21344
|
+
dy,
|
|
21345
|
+
dw,
|
|
21346
|
+
dh,
|
|
21347
|
+
sx = 0,
|
|
21348
|
+
sy = 0,
|
|
21349
|
+
sw,
|
|
21350
|
+
sh,
|
|
21351
|
+
parent,
|
|
21352
|
+
svg,
|
|
21353
|
+
defs,
|
|
21354
|
+
group,
|
|
21355
|
+
currentElement,
|
|
21356
|
+
svgImage,
|
|
21357
|
+
canvas,
|
|
21358
|
+
context,
|
|
21359
|
+
id;
|
|
21360
|
+
|
|
21361
|
+
if (args.length === 3) {
|
|
21362
|
+
dx = args[1];
|
|
21363
|
+
dy = args[2];
|
|
21364
|
+
sw = image.width;
|
|
21365
|
+
sh = image.height;
|
|
21366
|
+
dw = sw;
|
|
21367
|
+
dh = sh;
|
|
21368
|
+
} else if (args.length === 5) {
|
|
21369
|
+
dx = args[1];
|
|
21370
|
+
dy = args[2];
|
|
21371
|
+
dw = args[3];
|
|
21372
|
+
dh = args[4];
|
|
21373
|
+
sw = image.width;
|
|
21374
|
+
sh = image.height;
|
|
21375
|
+
} else if (args.length === 9) {
|
|
21376
|
+
sx = args[1];
|
|
21377
|
+
sy = args[2];
|
|
21378
|
+
sw = args[3];
|
|
21379
|
+
sh = args[4];
|
|
21380
|
+
dx = args[5];
|
|
21381
|
+
dy = args[6];
|
|
21382
|
+
dw = args[7];
|
|
21383
|
+
dh = args[8];
|
|
21384
|
+
} else {
|
|
21385
|
+
throw new Error("Inavlid number of arguments passed to drawImage: " + arguments.length);
|
|
21386
|
+
}
|
|
21387
|
+
|
|
21388
|
+
parent = this.__closestGroupOrSvg();
|
|
21389
|
+
currentElement = this.__currentElement;
|
|
21390
|
+
var translateDirective = "translate(" + dx + ", " + dy + ")";
|
|
21391
|
+
|
|
21392
|
+
if (image instanceof SVGSVGElement) {
|
|
21393
|
+
if (image.childNodes && image.childNodes.length > 1) {
|
|
21394
|
+
var orgWidth = parseFloat(image.getAttribute("width"));
|
|
21395
|
+
var orgHeight = parseFloat(image.getAttribute("height"));
|
|
21396
|
+
image.setAttribute("width", dw);
|
|
21397
|
+
image.setAttribute("height", dh);
|
|
21398
|
+
var scaleW = dw / orgWidth;
|
|
21399
|
+
var scaleH = dh / orgHeight;
|
|
21400
|
+
defs = image.childNodes[0];
|
|
21401
|
+
|
|
21402
|
+
while (defs.childNodes.length) {
|
|
21403
|
+
id = defs.childNodes[0].getAttribute("id");
|
|
21404
|
+
this.__ids[id] = id;
|
|
21405
|
+
|
|
21406
|
+
this.__defs.appendChild(defs.childNodes[0]);
|
|
21407
|
+
}
|
|
21408
|
+
|
|
21409
|
+
group = image.childNodes[1];
|
|
21410
|
+
|
|
21411
|
+
if (group) {
|
|
21412
|
+
//save original transform
|
|
21413
|
+
var originTransform = group.getAttribute("transform");
|
|
21414
|
+
var transformDirective;
|
|
21415
|
+
|
|
21416
|
+
if (originTransform) {
|
|
21417
|
+
transformDirective = originTransform + " " + translateDirective;
|
|
21418
|
+
} else {
|
|
21419
|
+
transformDirective = translateDirective;
|
|
21420
|
+
}
|
|
21421
|
+
|
|
21422
|
+
group.setAttribute("transform", transformDirective + " scale(" + scaleW + ", " + scaleH + ")");
|
|
21423
|
+
parent.appendChild(group);
|
|
21424
|
+
}
|
|
21425
|
+
}
|
|
21426
|
+
}
|
|
21427
|
+
};
|
|
21428
|
+
/**
|
|
21429
|
+
* Generates a pattern tag
|
|
21430
|
+
*/
|
|
21431
|
+
|
|
21432
|
+
|
|
21433
|
+
_ctx.prototype.createPattern = function (image, repetition) {
|
|
21434
|
+
var pattern = this.__document.createElementNS("http://www.w3.org/2000/svg", "pattern"),
|
|
21435
|
+
id = randomString(this.__ids),
|
|
21436
|
+
img;
|
|
21437
|
+
|
|
21438
|
+
pattern.setAttribute("id", id);
|
|
21439
|
+
pattern.setAttribute("width", image.width);
|
|
21440
|
+
pattern.setAttribute("height", image.height);
|
|
21441
|
+
|
|
21442
|
+
if (image.nodeName === "CANVAS" || image.nodeName === "IMG") {
|
|
21443
|
+
img = this.__document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
21444
|
+
img.setAttribute("width", image.width);
|
|
21445
|
+
img.setAttribute("height", image.height);
|
|
21446
|
+
img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", image.nodeName === "CANVAS" ? image.toDataURL() : image.getAttribute("src"));
|
|
21447
|
+
pattern.appendChild(img);
|
|
21448
|
+
|
|
21449
|
+
this.__defs.appendChild(pattern);
|
|
21450
|
+
} else if (image instanceof _ctx) {
|
|
21451
|
+
pattern.appendChild(image.__root.childNodes[1]);
|
|
21452
|
+
|
|
21453
|
+
this.__defs.appendChild(pattern);
|
|
21454
|
+
}
|
|
21455
|
+
|
|
21456
|
+
return new CanvasPattern(pattern, this);
|
|
21457
|
+
};
|
|
21458
|
+
|
|
21459
|
+
_ctx.prototype.setLineDash = function (dashArray) {
|
|
21460
|
+
if (dashArray && dashArray.length > 0) {
|
|
21461
|
+
this.lineDash = dashArray.join(",");
|
|
21462
|
+
} else {
|
|
21463
|
+
this.lineDash = null;
|
|
21464
|
+
}
|
|
21465
|
+
};
|
|
21466
|
+
/**
|
|
21467
|
+
* Not yet implemented
|
|
21468
|
+
*/
|
|
21469
|
+
|
|
21470
|
+
|
|
21471
|
+
_ctx.prototype.drawFocusRing = function () {};
|
|
21472
|
+
|
|
21473
|
+
_ctx.prototype.createImageData = function () {};
|
|
21474
|
+
|
|
21475
|
+
_ctx.prototype.getImageData = function () {};
|
|
21476
|
+
|
|
21477
|
+
_ctx.prototype.putImageData = function () {};
|
|
21478
|
+
|
|
21479
|
+
_ctx.prototype.globalCompositeOperation = function () {};
|
|
21480
|
+
|
|
21481
|
+
_ctx.prototype.setTransform = function () {};
|
|
21482
|
+
|
|
21483
|
+
/* harmony default export */ var canvas2svg = (_ctx);
|
|
19893
21484
|
// CONCATENATED MODULE: ./src/editor/PrintStatus.ts
|
|
19894
21485
|
|
|
19895
21486
|
|
|
@@ -19916,6 +21507,8 @@ var DrawPrintSelected = __webpack_require__("8905");
|
|
|
19916
21507
|
|
|
19917
21508
|
|
|
19918
21509
|
|
|
21510
|
+
|
|
21511
|
+
|
|
19919
21512
|
|
|
19920
21513
|
|
|
19921
21514
|
|
|
@@ -20525,7 +22118,7 @@ var PrintStatus_Print = /*#__PURE__*/function () {
|
|
|
20525
22118
|
*/
|
|
20526
22119
|
function () {
|
|
20527
22120
|
var _printToPDF = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee(hoEditorFactoryID, type, pdfName, reslove) {
|
|
20528
|
-
var hoeditorfactory, orientation, PDF, last, _iterator, _step, _cpage$drawDomLevel,
|
|
22121
|
+
var hoeditorfactory, orientation, svgBox, PDF, last, _iterator, _step, index, cpage, _cpage$drawDomLevel, canvas, pageData, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, ctx, svgData, name, _hiddFrame$contentWin3, _hiddFrame$contentWin4, _hiddFrame$contentWin5, hiddFrame, printStyle;
|
|
20529
22122
|
|
|
20530
22123
|
return regeneratorRuntime.wrap(function _callee$(_context2) {
|
|
20531
22124
|
while (1) {
|
|
@@ -20540,10 +22133,17 @@ var PrintStatus_Print = /*#__PURE__*/function () {
|
|
|
20540
22133
|
|
|
20541
22134
|
hoeditorfactory.printStatus.DrawPrintRange().preparePrint();
|
|
20542
22135
|
orientation = hoeditorfactory.pageProperty.widthMm > hoeditorfactory.pageProperty.heightMm ? "l" : "p";
|
|
20543
|
-
|
|
22136
|
+
|
|
22137
|
+
if (type === 'pdf') {
|
|
22138
|
+
PDF = new jspdf_es_min["a" /* default */](orientation, "mm", [hoeditorfactory.pageProperty.widthMm, hoeditorfactory.pageProperty.heightMm]);
|
|
22139
|
+
} else {
|
|
22140
|
+
svgBox = document.createElement("div");
|
|
22141
|
+
svgBox.id = "hoPrintSvgBox";
|
|
22142
|
+
} //NOTE: format属性如果使用Array时,orientation需要手工设置下
|
|
20544
22143
|
// 如果foramt使用的string时,orientation根据实际情况来设置
|
|
20545
22144
|
// const PDF = new JsPDF('p', "mm", "a4");
|
|
20546
22145
|
|
|
22146
|
+
|
|
20547
22147
|
last = -1;
|
|
20548
22148
|
_iterator = Object(createForOfIteratorHelper["a" /* default */])(hoeditorfactory.printStatus.printProcess());
|
|
20549
22149
|
_context2.prev = 8;
|
|
@@ -20552,7 +22152,7 @@ var PrintStatus_Print = /*#__PURE__*/function () {
|
|
|
20552
22152
|
|
|
20553
22153
|
case 10:
|
|
20554
22154
|
if ((_step = _iterator.n()).done) {
|
|
20555
|
-
_context2.next =
|
|
22155
|
+
_context2.next = 26;
|
|
20556
22156
|
break;
|
|
20557
22157
|
}
|
|
20558
22158
|
|
|
@@ -20570,7 +22170,7 @@ var PrintStatus_Print = /*#__PURE__*/function () {
|
|
|
20570
22170
|
});
|
|
20571
22171
|
|
|
20572
22172
|
case 15:
|
|
20573
|
-
return _context2.abrupt("continue",
|
|
22173
|
+
return _context2.abrupt("continue", 24);
|
|
20574
22174
|
|
|
20575
22175
|
case 16:
|
|
20576
22176
|
last = index;
|
|
@@ -20597,54 +22197,87 @@ var PrintStatus_Print = /*#__PURE__*/function () {
|
|
|
20597
22197
|
// //没有背景时添加个背景再打印
|
|
20598
22198
|
|
|
20599
22199
|
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
22200
|
+
if (type === 'pdf') {
|
|
22201
|
+
canvas = (_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : _cpage$drawDomLevel.domCanvas;
|
|
22202
|
+
pageData = canvas.toDataURL("image/jpeg", 1);
|
|
22203
|
+
PDF.addPage();
|
|
22204
|
+
PDF.addImage(pageData, "JPEG", 0, 0, hoeditorfactory.pageProperty.widthMm, hoeditorfactory.pageProperty.heightMm);
|
|
22205
|
+
} else {
|
|
22206
|
+
ctx = new canvas2svg({
|
|
22207
|
+
width: hoeditorfactory.pageProperty.widthPixes,
|
|
22208
|
+
height: hoeditorfactory.pageProperty.heightPixes
|
|
22209
|
+
});
|
|
22210
|
+
(_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(ctx);
|
|
22211
|
+
svgData = ctx.getSvg();
|
|
22212
|
+
svgBox.appendChild(svgData);
|
|
22213
|
+
}
|
|
20605
22214
|
|
|
20606
|
-
case
|
|
22215
|
+
case 24:
|
|
20607
22216
|
_context2.next = 10;
|
|
20608
22217
|
break;
|
|
20609
22218
|
|
|
20610
|
-
case
|
|
20611
|
-
_context2.next =
|
|
22219
|
+
case 26:
|
|
22220
|
+
_context2.next = 31;
|
|
20612
22221
|
break;
|
|
20613
22222
|
|
|
20614
|
-
case
|
|
20615
|
-
_context2.prev =
|
|
22223
|
+
case 28:
|
|
22224
|
+
_context2.prev = 28;
|
|
20616
22225
|
_context2.t0 = _context2["catch"](8);
|
|
20617
22226
|
|
|
20618
22227
|
_iterator.e(_context2.t0);
|
|
20619
22228
|
|
|
20620
|
-
case
|
|
20621
|
-
_context2.prev =
|
|
22229
|
+
case 31:
|
|
22230
|
+
_context2.prev = 31;
|
|
20622
22231
|
|
|
20623
22232
|
_iterator.f();
|
|
20624
22233
|
|
|
20625
|
-
return _context2.finish(
|
|
22234
|
+
return _context2.finish(31);
|
|
20626
22235
|
|
|
20627
|
-
case
|
|
22236
|
+
case 34:
|
|
20628
22237
|
if (hoeditorfactory.printStatus.printRange !== PrintRange.prSelected) hoeditorfactory.printStatus.recordLastPosByPageIndex(last);
|
|
20629
22238
|
hoeditorfactory.printStatus.DrawPrintRange().PrintOver();
|
|
20630
|
-
PDF.deletePage(1);
|
|
20631
22239
|
|
|
20632
22240
|
if (type === 'pdf') {
|
|
22241
|
+
PDF.deletePage(1);
|
|
20633
22242
|
name = pdfName ? pdfName : hoeditorfactory.docTree.docProperty.title ? hoeditorfactory.docTree.docProperty.title : '电子病历';
|
|
20634
22243
|
PDF.save(name + '.pdf');
|
|
20635
22244
|
hoeditorfactory.printStatus.drawPrintRecord.clear();
|
|
20636
22245
|
} else {
|
|
20637
|
-
|
|
22246
|
+
hiddFrame = document.createElement('iframe');
|
|
22247
|
+
printStyle = document.createElement("style"); // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
22248
|
+
|
|
22249
|
+
printStyle.type = 'text/css';
|
|
22250
|
+
printStyle.innerHTML = "\n body, html {\n padding: 0;\n margin: 0;\n }\n @page {\n margin: 0 0;\n size: ".concat(hoeditorfactory.pageProperty.pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n ");
|
|
22251
|
+
hiddFrame.id = "hoPrintSvgBoxIframe";
|
|
22252
|
+
hiddFrame.style.position = 'fixed';
|
|
22253
|
+
hiddFrame.style.margin = '0';
|
|
22254
|
+
hiddFrame.style.padding = '0'; // hiddFrame.style.left = '0px';
|
|
22255
|
+
// hiddFrame.style.top = '0px';
|
|
22256
|
+
// hiddFrame.style.width = '100%';
|
|
22257
|
+
// hiddFrame.style.height = '100%';
|
|
22258
|
+
// hiddFrame.style.opacity = '1';
|
|
22259
|
+
// hiddFrame.style.zIndex = '11111';
|
|
22260
|
+
|
|
22261
|
+
hiddFrame.style.width = "1px";
|
|
22262
|
+
hiddFrame.style.height = "1px";
|
|
22263
|
+
hiddFrame.style.opacity = '0.01';
|
|
22264
|
+
document.body.appendChild(hiddFrame);
|
|
22265
|
+
hiddFrame === null || hiddFrame === void 0 ? void 0 : (_hiddFrame$contentWin3 = hiddFrame.contentWindow) === null || _hiddFrame$contentWin3 === void 0 ? void 0 : _hiddFrame$contentWin3.document.head.appendChild(printStyle);
|
|
22266
|
+
hiddFrame === null || hiddFrame === void 0 ? void 0 : (_hiddFrame$contentWin4 = hiddFrame.contentWindow) === null || _hiddFrame$contentWin4 === void 0 ? void 0 : _hiddFrame$contentWin4.document.body.appendChild(svgBox);
|
|
22267
|
+
hiddFrame === null || hiddFrame === void 0 ? void 0 : (_hiddFrame$contentWin5 = hiddFrame.contentWindow) === null || _hiddFrame$contentWin5 === void 0 ? void 0 : _hiddFrame$contentWin5.print();
|
|
22268
|
+
setTimeout(function () {
|
|
22269
|
+
document.body.removeChild(hiddFrame);
|
|
22270
|
+
}, 100);
|
|
20638
22271
|
}
|
|
20639
22272
|
|
|
20640
|
-
reslove && reslove('printend');
|
|
22273
|
+
reslove && reslove('printend');
|
|
20641
22274
|
|
|
20642
|
-
case
|
|
22275
|
+
case 38:
|
|
20643
22276
|
case "end":
|
|
20644
22277
|
return _context2.stop();
|
|
20645
22278
|
}
|
|
20646
22279
|
}
|
|
20647
|
-
}, _callee, null, [[8, 31, 34
|
|
22280
|
+
}, _callee, null, [[8, 28, 31, 34]]);
|
|
20648
22281
|
}));
|
|
20649
22282
|
|
|
20650
22283
|
function printToPDF(_x, _x2, _x3, _x4) {
|
|
@@ -32862,17 +34495,21 @@ var MarkNode = __webpack_require__("053b");
|
|
|
32862
34495
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SpecialCharsNode.ts
|
|
32863
34496
|
var SpecialCharsNode = __webpack_require__("9f19");
|
|
32864
34497
|
|
|
34498
|
+
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
34499
|
+
var UnitConvert = __webpack_require__("e802");
|
|
34500
|
+
|
|
32865
34501
|
// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
32866
34502
|
|
|
32867
34503
|
|
|
32868
34504
|
|
|
32869
34505
|
|
|
34506
|
+
|
|
32870
34507
|
var DrawText_DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
32871
34508
|
Object(inherits["a" /* default */])(DrawText, _createjs$Text);
|
|
32872
34509
|
|
|
32873
34510
|
var _super = Object(createSuper["a" /* default */])(DrawText);
|
|
32874
34511
|
|
|
32875
|
-
function DrawText(node, text, maxWidth, startIndex, spacing, font, color) {
|
|
34512
|
+
function DrawText(node, text, maxWidth, startIndex, spacing, font, color, bPuctuation) {
|
|
32876
34513
|
var _this;
|
|
32877
34514
|
|
|
32878
34515
|
Object(classCallCheck["a" /* default */])(this, DrawText);
|
|
@@ -32891,7 +34528,7 @@ var DrawText_DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
32891
34528
|
lastTextWidth = _this._chinesWordWidth;
|
|
32892
34529
|
} else lastTextWidth = _this._getMeasuredWidth(text[j]);
|
|
32893
34530
|
|
|
32894
|
-
if (usedWidth + lastTextWidth > maxWidth) {
|
|
34531
|
+
if (usedWidth + lastTextWidth > maxWidth && (j > 0 || !bPuctuation)) {
|
|
32895
34532
|
isFullLine = true;
|
|
32896
34533
|
if (j == startIndex) _this._endIndex = j;else {
|
|
32897
34534
|
_this.endIndex = j - 1;
|
|
@@ -32905,10 +34542,8 @@ var DrawText_DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
32905
34542
|
|
|
32906
34543
|
|
|
32907
34544
|
if (isFullLine && _this.endIndex > startIndex && _this.endIndex < text.length - 1) {
|
|
32908
|
-
var atext = text[_this.endIndex + 1];
|
|
32909
|
-
|
|
32910
|
-
var reg = /[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5|~|!|@|#|$|%|^|&|*|(|)|_|+|-|=|[|\]|{|}|\\|||;|'|'|:|"|"|,|.|/|<|>?]/;
|
|
32911
|
-
var ret = reg.test(atext);
|
|
34545
|
+
var atext = text[_this.endIndex + 1];
|
|
34546
|
+
var ret = UnitConvert["a" /* UnitConvert */].isPuctuation(atext);
|
|
32912
34547
|
|
|
32913
34548
|
if (ret) {
|
|
32914
34549
|
_this.endIndex -= 1;
|
|
@@ -33193,6 +34828,7 @@ var HOEditorFactorys = __webpack_require__("8d1d");
|
|
|
33193
34828
|
|
|
33194
34829
|
|
|
33195
34830
|
|
|
34831
|
+
|
|
33196
34832
|
var DrawTextNode_DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
33197
34833
|
Object(inherits["a" /* default */])(DrawTextNode, _DrawCombineNode);
|
|
33198
34834
|
|
|
@@ -33228,10 +34864,11 @@ var DrawTextNode_DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
33228
34864
|
}
|
|
33229
34865
|
|
|
33230
34866
|
_this._startIndex = startIndex;
|
|
34867
|
+
var bPuctuation = startIndex === 0 && UnitConvert["a" /* UnitConvert */].isPuctuation(node.text[0]);
|
|
33231
34868
|
_this._maxWidth = maxWidth ? maxWidth : 0;
|
|
33232
34869
|
_this._spacing = spacing ? spacing : 0;
|
|
33233
34870
|
|
|
33234
|
-
_this.drawText(Object(assertThisInitialized["a" /* default */])(_this), _this._textNode, _this._index, maxWidth); // this.drawUnderline(this);
|
|
34871
|
+
_this.drawText(Object(assertThisInitialized["a" /* default */])(_this), _this._textNode, _this._index, maxWidth, bPuctuation); // this.drawUnderline(this);
|
|
33235
34872
|
// this.drawStrikeout(this);
|
|
33236
34873
|
// this.drawBackColor(this);
|
|
33237
34874
|
|
|
@@ -33334,9 +34971,9 @@ var DrawTextNode_DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
33334
34971
|
}
|
|
33335
34972
|
}, {
|
|
33336
34973
|
key: "drawText",
|
|
33337
|
-
value: function drawText(container, node, index, maxWidth) {
|
|
34974
|
+
value: function drawText(container, node, index, maxWidth, bPuctuation) {
|
|
33338
34975
|
if (node instanceof TextNode["a" /* TextNode */]) {
|
|
33339
|
-
this._dText = new DrawText_DrawText(node, node.text, this._maxWidth, index, this._spacing, node.dStyleKey, node.dColor);
|
|
34976
|
+
this._dText = new DrawText_DrawText(node, node.text, this._maxWidth, index, this._spacing, node.dStyleKey, node.dColor, bPuctuation);
|
|
33340
34977
|
this._endIndex = this._dText.endIndex;
|
|
33341
34978
|
this._dWidth = this._dText.dWidth;
|
|
33342
34979
|
this._docWidth = this._dText.docWidth;
|
|
@@ -34192,6 +35829,19 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
34192
35829
|
|
|
34193
35830
|
if (cell) {
|
|
34194
35831
|
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_29__[/* CellProperty */ "a"]("");
|
|
35832
|
+
|
|
35833
|
+
if (cell.cellProperty.editorProperty != _TableProperty__WEBPACK_IMPORTED_MODULE_29__[/* EditorProperty */ "e"].None) {
|
|
35834
|
+
cellProperty.editorProperty = cell.cellProperty.editorProperty;
|
|
35835
|
+
|
|
35836
|
+
if (cell.cellProperty.dateTimeProperty) {
|
|
35837
|
+
cellProperty.dateTimeProperty = cell.cellProperty.dateTimeProperty;
|
|
35838
|
+
}
|
|
35839
|
+
|
|
35840
|
+
if (cell.cellProperty.downListProperty) {
|
|
35841
|
+
cellProperty.downListProperty = cell.cellProperty.downListProperty;
|
|
35842
|
+
}
|
|
35843
|
+
}
|
|
35844
|
+
|
|
34195
35845
|
var newCell = new _CellNode__WEBPACK_IMPORTED_MODULE_25__[/* CellNode */ "a"](this._hoEditorFactoryID, this._rootNodes, this, row, cell, r + i, c, 1, cell.colSpan, cellProperty);
|
|
34196
35846
|
row.splice(c, 0, newCell);
|
|
34197
35847
|
newCell.initBlankDoc();
|
|
@@ -34405,6 +36055,19 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
34405
36055
|
for (var _i = 0; _i < count; _i++) {
|
|
34406
36056
|
if (cell) {
|
|
34407
36057
|
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_29__[/* CellProperty */ "a"]("");
|
|
36058
|
+
|
|
36059
|
+
if (cell.cellProperty.editorProperty !== _TableProperty__WEBPACK_IMPORTED_MODULE_29__[/* EditorProperty */ "e"].None) {
|
|
36060
|
+
cellProperty.editorProperty = cell.cellProperty.editorProperty;
|
|
36061
|
+
|
|
36062
|
+
if (cell.cellProperty.dateTimeProperty) {
|
|
36063
|
+
cellProperty.dateTimeProperty = cell.cellProperty.dateTimeProperty;
|
|
36064
|
+
}
|
|
36065
|
+
|
|
36066
|
+
if (cell.cellProperty.downListProperty) {
|
|
36067
|
+
cellProperty.downListProperty = cell.cellProperty.downListProperty;
|
|
36068
|
+
}
|
|
36069
|
+
}
|
|
36070
|
+
|
|
34408
36071
|
var newCell = new _CellNode__WEBPACK_IMPORTED_MODULE_25__[/* CellNode */ "a"](this._hoEditorFactoryID, this._rootNodes, this, rows, cell, r, c, cell.rowSpan, 1, cellProperty);
|
|
34409
36072
|
rows.splice(c, 0, newCell);
|
|
34410
36073
|
newCell.drawCell.needUpdate;
|
|
@@ -64369,7 +66032,7 @@ var PageAreaChangedEvent = __webpack_require__("2072");
|
|
|
64369
66032
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
|
|
64370
66033
|
var DrawPageCell = __webpack_require__("5964");
|
|
64371
66034
|
|
|
64372
|
-
// EXTERNAL MODULE: ./src/editor/PrintStatus.ts +
|
|
66035
|
+
// EXTERNAL MODULE: ./src/editor/PrintStatus.ts + 5 modules
|
|
64373
66036
|
var PrintStatus = __webpack_require__("2381");
|
|
64374
66037
|
|
|
64375
66038
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
@@ -67750,12 +69413,11 @@ var DrawTree_DrawTree = /*#__PURE__*/function () {
|
|
|
67750
69413
|
value: function updateDlineLeftTop(hoEditorFactory, dline) {
|
|
67751
69414
|
if (dline instanceof DrawLine["a" /* DrawLine */]) {
|
|
67752
69415
|
var leftTopInfo = dline.paragraphNode.getParagraphLeftWidth();
|
|
67753
|
-
dline.dWidth = leftTopInfo[1];
|
|
69416
|
+
dline.dWidth = leftTopInfo[1] - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
|
|
67754
69417
|
dline.x = leftTopInfo[0] + dline.paragraphNode.combineParagraph.leftMarginPixes;
|
|
67755
69418
|
} else {
|
|
67756
69419
|
if (dline.drawPageTables.length > 0) {
|
|
67757
69420
|
dline.needUpdate = true;
|
|
67758
|
-
dline.drawPageTables[0].dTop = hoEditorFactory.firstPageStartTop;
|
|
67759
69421
|
|
|
67760
69422
|
var _leftTopInfo = dline.paragraphNode.getParagraphLeftWidth();
|
|
67761
69423
|
|
|
@@ -145824,6 +147486,11 @@ var DrawBarcodeNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
145824
147486
|
key: "isDisplayText",
|
|
145825
147487
|
get: function get() {
|
|
145826
147488
|
return this._isDisplayText;
|
|
147489
|
+
}
|
|
147490
|
+
}, {
|
|
147491
|
+
key: "drawResize",
|
|
147492
|
+
get: function get() {
|
|
147493
|
+
return this._drawResize;
|
|
145827
147494
|
} // get stripWidth(): number {
|
|
145828
147495
|
// return this._stripWidth;
|
|
145829
147496
|
// }
|
|
@@ -145868,6 +147535,9 @@ var DrawBarcodeNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
145868
147535
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
145869
147536
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("5319");
|
|
145870
147537
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
147538
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("4d63");
|
|
147539
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
147540
|
+
|
|
145871
147541
|
|
|
145872
147542
|
|
|
145873
147543
|
|
|
@@ -145878,7 +147548,7 @@ var DrawBarcodeNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
145878
147548
|
/*
|
|
145879
147549
|
* @Author: your name
|
|
145880
147550
|
* @Date: 2020-11-30 08:42:46
|
|
145881
|
-
* @LastEditTime: 2021-
|
|
147551
|
+
* @LastEditTime: 2021-09-26 17:52:33
|
|
145882
147552
|
* @LastEditors: Please set LastEditors
|
|
145883
147553
|
* @Description: In User Settings Edit
|
|
145884
147554
|
* @FilePath: \hoeditor-web\src\editor\utils\UnitConvert.ts
|
|
@@ -146008,6 +147678,12 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
146008
147678
|
value: function fontPt2Pix(value) {
|
|
146009
147679
|
return Math.round(this.dpiX / 72 * value);
|
|
146010
147680
|
}
|
|
147681
|
+
}, {
|
|
147682
|
+
key: "replaceAll",
|
|
147683
|
+
value: function replaceAll(str, s1, s2) {
|
|
147684
|
+
str = str.replace(new RegExp(s1, "gm"), s2);
|
|
147685
|
+
return str;
|
|
147686
|
+
}
|
|
146011
147687
|
}], [{
|
|
146012
147688
|
key: "formatDatetime",
|
|
146013
147689
|
value: function formatDatetime(date, format) {
|
|
@@ -146044,10 +147720,17 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
146044
147720
|
|
|
146045
147721
|
return (format || "yyyy-MM-dd hh:mm:ss").replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd/g, day).replace(/hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
146046
147722
|
}
|
|
147723
|
+
}, {
|
|
147724
|
+
key: "isPuctuation",
|
|
147725
|
+
value: function isPuctuation(str) {
|
|
147726
|
+
return UnitConvert._regRunctuation.test(str);
|
|
147727
|
+
}
|
|
146047
147728
|
}]);
|
|
146048
147729
|
|
|
146049
147730
|
return UnitConvert;
|
|
146050
|
-
}();
|
|
147731
|
+
}(); //匹配这些中文标点符号 。 ? ! , 、 ; : “ ” ‘ ' ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥
|
|
147732
|
+
|
|
147733
|
+
UnitConvert._regRunctuation = /[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5|~|!|@|#|$|%|^|&|*|(|)|_|+|-|=|[|\]|{|}|\\|||;|'|'|:|"|"|,|.|/|<|>?]/;
|
|
146051
147734
|
|
|
146052
147735
|
/***/ }),
|
|
146053
147736
|
|
|
@@ -148256,6 +149939,33 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
148256
149939
|
value: function getTagNameCn() {
|
|
148257
149940
|
return "单元格";
|
|
148258
149941
|
}
|
|
149942
|
+
}, {
|
|
149943
|
+
key: "delCellNodeText",
|
|
149944
|
+
value: function delCellNodeText() {
|
|
149945
|
+
var colIndex = this.row.indexOf(this);
|
|
149946
|
+
var colProperty = this.table.colInfos[colIndex].colProperty;
|
|
149947
|
+
var cellProperty = this.cellProperty;
|
|
149948
|
+
|
|
149949
|
+
if (colProperty && colProperty.downListProperty) {
|
|
149950
|
+
var isAllowDel = colProperty.downListProperty.isAllowDelete;
|
|
149951
|
+
|
|
149952
|
+
if (!isAllowDel) {
|
|
149953
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_3___default.a.alert("不允许删除!");
|
|
149954
|
+
|
|
149955
|
+
return;
|
|
149956
|
+
}
|
|
149957
|
+
}
|
|
149958
|
+
|
|
149959
|
+
if (cellProperty && cellProperty.downListProperty) {
|
|
149960
|
+
var _isAllowDel = cellProperty.downListProperty.isAllowDelete;
|
|
149961
|
+
|
|
149962
|
+
if (!_isAllowDel) {
|
|
149963
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_3___default.a.alert("不允许删除!");
|
|
149964
|
+
|
|
149965
|
+
return;
|
|
149966
|
+
}
|
|
149967
|
+
}
|
|
149968
|
+
}
|
|
148259
149969
|
}], [{
|
|
148260
149970
|
key: "json2Node",
|
|
148261
149971
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
|
|
@@ -154751,7 +156461,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
154751
156461
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
154752
156462
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
154753
156463
|
|
|
154754
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
156464
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=7147e75a&
|
|
154755
156465
|
var HoDocsvue_type_template_id_7147e75a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer'},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.controlStatus)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isListStyle":_vm.isListStyle},on:{"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
154756
156466
|
var staticRenderFns = []
|
|
154757
156467
|
|
|
@@ -155667,7 +157377,7 @@ function isPromise(obj) {
|
|
|
155667
157377
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
155668
157378
|
}
|
|
155669
157379
|
|
|
155670
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
157380
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=56caa545&
|
|
155671
157381
|
var HoDocvue_type_template_id_56caa545_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [(pgIndex - 1 >= _vm.currentPageIndex * _vm.paginationCount - 1 && pgIndex - 1 < (_vm.currentPageIndex + 1) * _vm.paginationCount + 1)?_c('HoPage',{directives:[{name:"show",rawName:"v-show",value:(pgIndex - 1 >= _vm.currentPageIndex * _vm.paginationCount && pgIndex - 1 < (_vm.currentPageIndex + 1) * _vm.paginationCount),expression:"pgIndex - 1 >= currentPageIndex * paginationCount && pgIndex - 1 < (currentPageIndex + 1) * paginationCount"}],key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)}):_vm._e()]})],2):_vm._e(),(_vm.currentPageList > 1)?_c('ul',{staticClass:"draw-pagination"},_vm._l((_vm.currentPageList),function(i){return _c('li',{key:i,class:_vm.currentPageIndex === i - 1 ? 'current-pagination' : '',on:{"click":function($event){return _vm.setCurrentPagination(i - 1)}}},[_vm._v(_vm._s(i))])}),0):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}})],1)}
|
|
155672
157382
|
var HoDocvue_type_template_id_56caa545_staticRenderFns = []
|
|
155673
157383
|
|
|
@@ -155689,7 +157399,7 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
155689
157399
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
155690
157400
|
var es_string_replace = __webpack_require__("5319");
|
|
155691
157401
|
|
|
155692
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
157402
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=35f1e03c&scoped=true&
|
|
155693
157403
|
var HoPagevue_type_template_id_35f1e03c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"hoPage",class:_vm.pageClassNames,style:({ height: _vm.canvasHeight + 'px', width: _vm.canvasWidth + 'px' })},[_c('canvas',{ref:"domcanvas",class:_vm.domCanvasName,style:(_vm.style),attrs:{"width":_vm.doubleCanvasWidth,"height":_vm.doubleCanvasHeight}}),_c('canvas',{ref:"selectcanvas",staticClass:"selectcanvas",style:(_vm.style),attrs:{"width":_vm.doubleCanvasWidth,"height":_vm.doubleCanvasHeight},on:{"contextmenu":function($event){return _vm.canvasRightClick.apply(null, arguments)}}}),(_vm.isPoperText)?_c('PoperTipText',{attrs:{"poperText":_vm.poperText,"poperPos":_vm.poperPos},on:{"poperTextClose":_vm.poperTextClose}}):_vm._e(),(_vm.isHeadFoot === 'header' || _vm.isHeadFoot === 'footer')?_c('ho-head-foot',{attrs:{"headerFooterPosition":_vm.canvasHeadFootPos,"isHeadFoot":_vm.isHeadFoot},scopedSlots:_vm._u([{key:"head",fn:function(){return [_vm._t("hoPageHead")]},proxy:true},{key:"foot",fn:function(){return [_vm._t("hoPageFoot")]},proxy:true}],null,true)}):_vm._e()],1)}
|
|
155694
157404
|
var HoPagevue_type_template_id_35f1e03c_scoped_true_staticRenderFns = []
|
|
155695
157405
|
|
|
@@ -155723,6 +157433,9 @@ var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
|
155723
157433
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
155724
157434
|
var es_string_starts_with = __webpack_require__("2ca0");
|
|
155725
157435
|
|
|
157436
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
157437
|
+
var es_array_splice = __webpack_require__("a434");
|
|
157438
|
+
|
|
155726
157439
|
// EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
|
|
155727
157440
|
var DocTree = __webpack_require__("6d0b");
|
|
155728
157441
|
|
|
@@ -155741,7 +157454,7 @@ var NodeNeedModifyEvent = __webpack_require__("562e");
|
|
|
155741
157454
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
155742
157455
|
var BaseNode = __webpack_require__("91a4");
|
|
155743
157456
|
|
|
155744
|
-
// EXTERNAL MODULE: ./src/editor/PrintStatus.ts +
|
|
157457
|
+
// EXTERNAL MODULE: ./src/editor/PrintStatus.ts + 5 modules
|
|
155745
157458
|
var PrintStatus = __webpack_require__("2381");
|
|
155746
157459
|
|
|
155747
157460
|
// EXTERNAL MODULE: ./src/editor/events/PageAreaChangedEvent.ts
|
|
@@ -155782,6 +157495,7 @@ var HOEditorFactorys = __webpack_require__("8d1d");
|
|
|
155782
157495
|
|
|
155783
157496
|
|
|
155784
157497
|
|
|
157498
|
+
|
|
155785
157499
|
|
|
155786
157500
|
|
|
155787
157501
|
var DrawSelectLevel_DrawSelectLevel = /*#__PURE__*/function () {
|
|
@@ -156297,16 +158011,26 @@ var DrawSelectLevel_DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
156297
158011
|
var curOnDragNode = hoeditorfactory.docTree.curOnDragNode;
|
|
156298
158012
|
|
|
156299
158013
|
if (curOnDragNode) {
|
|
156300
|
-
var
|
|
156301
|
-
|
|
156302
|
-
|
|
156303
|
-
|
|
158014
|
+
var nodePath = curOnDragNode.getNodePath(); // drawNode.children.forEach((value, index) => {
|
|
158015
|
+
// if (value.name !== curOnDragNode.id) {
|
|
158016
|
+
// value.alpha = 0;
|
|
158017
|
+
// }
|
|
158018
|
+
// });
|
|
158019
|
+
|
|
158020
|
+
if (nodePath !== startPos.path) {
|
|
158021
|
+
var drawNode = curOnDragNode.drawNodes[0];
|
|
158022
|
+
|
|
158023
|
+
for (var d = drawNode.children.length - 1; d >= 0; d--) {
|
|
158024
|
+
if (drawNode.children[d].name !== curOnDragNode.id) {
|
|
158025
|
+
drawNode.children.splice(d, 1);
|
|
158026
|
+
}
|
|
156304
158027
|
}
|
|
156305
|
-
|
|
156306
|
-
|
|
158028
|
+
|
|
158029
|
+
hoeditorfactory.docTree.curOnDragNode = null;
|
|
158030
|
+
HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
158031
|
+
} // if (drawLine instanceof DrawLine) drawLine.updateCache();
|
|
156307
158032
|
//drawNode.stage.update();
|
|
156308
158033
|
|
|
156309
|
-
HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
156310
158034
|
}
|
|
156311
158035
|
|
|
156312
158036
|
var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
|
|
@@ -156756,7 +158480,7 @@ var DrawDomLevel_DrawDomLevel = /*#__PURE__*/function () {
|
|
|
156756
158480
|
|
|
156757
158481
|
return DrawDomLevel;
|
|
156758
158482
|
}();
|
|
156759
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
158483
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=template&id=5d96d796&scoped=true&
|
|
156760
158484
|
var HoHeadFootvue_type_template_id_5d96d796_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.headTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页眉")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("head")],2),_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.footerTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页脚")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("foot")],2)])}
|
|
156761
158485
|
var HoHeadFootvue_type_template_id_5d96d796_scoped_true_staticRenderFns = []
|
|
156762
158486
|
|
|
@@ -156931,7 +158655,7 @@ var component = normalizeComponent(
|
|
|
156931
158655
|
)
|
|
156932
158656
|
|
|
156933
158657
|
/* harmony default export */ var components_HoHeadFoot = (component.exports);
|
|
156934
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
158658
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=f29933b2&scoped=true&
|
|
156935
158659
|
var PoperTipTextvue_type_template_id_f29933b2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],staticClass:"poper-text-modal animation-in",style:(_vm.posStyle)},[_c('div',{class:_vm.poperDirection === 'bottom' ? 'poper-arrow poper-arrow-bottom' : 'poper-arrow poper-arrow-top'}),_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])})],2)}
|
|
156936
158660
|
var PoperTipTextvue_type_template_id_f29933b2_scoped_true_staticRenderFns = []
|
|
156937
158661
|
|
|
@@ -156996,8 +158720,6 @@ var es_regexp_to_string = __webpack_require__("25f0");
|
|
|
156996
158720
|
|
|
156997
158721
|
|
|
156998
158722
|
|
|
156999
|
-
|
|
157000
|
-
|
|
157001
158723
|
/*
|
|
157002
158724
|
* @Author: your name
|
|
157003
158725
|
* @Date: 2021-01-28 10:33:07
|
|
@@ -157025,19 +158747,19 @@ var isDate = function isDate(date) {
|
|
|
157025
158747
|
var toDate = function toDate(date) {
|
|
157026
158748
|
return isDate(date) ? new Date(date) : new Date();
|
|
157027
158749
|
}; // 日期时间 相隔多久
|
|
158750
|
+
// const judgeDate = (date: string) => {
|
|
158751
|
+
// let time = date
|
|
158752
|
+
// .replace(/['年'|'月'|'-']/g, "/")
|
|
158753
|
+
// .replace(/['时'|'分']/g, ":")
|
|
158754
|
+
// .replace(/['日'|'秒']/g, " ");
|
|
158755
|
+
// if (!time.includes("/") && !time.includes("-") && !time.includes("年")) {
|
|
158756
|
+
// time = "2021/07/07 " + time;
|
|
158757
|
+
// }
|
|
158758
|
+
// if (isNaN(Date.parse(time))) return false;
|
|
158759
|
+
// return true;
|
|
158760
|
+
// };
|
|
157028
158761
|
|
|
157029
158762
|
|
|
157030
|
-
var judgeDate = function judgeDate(date) {
|
|
157031
|
-
var time = date.replace(/['年'|'月'|'-']/g, "/").replace(/['时'|'分']/g, ":").replace(/['日'|'秒']/g, " ");
|
|
157032
|
-
|
|
157033
|
-
if (!time.includes("/") && !time.includes("-") && !time.includes("年")) {
|
|
157034
|
-
time = "2021/07/07 " + time;
|
|
157035
|
-
}
|
|
157036
|
-
|
|
157037
|
-
if (isNaN(Date.parse(time))) return false;
|
|
157038
|
-
return true;
|
|
157039
|
-
};
|
|
157040
|
-
|
|
157041
158763
|
var dateFormatList = ["hh:mm", "hh:mm:ss", "yyyy/MM/dd", "yyyy/MM/dd hh:mm", "yyyy/MM/dd hh:mm:ss", "hh时mm分", "hh时mm分ss秒", "yyyy年MM月dd日", "yyyy年MM月dd日 hh时mm分", "yyyy年MM月dd日 hh时mm分ss秒", "yyyy-MM-dd", "yyyy-MM-dd hh:mm", "yyyy-MM-dd hh:mm:ss"];
|
|
157042
158764
|
/**
|
|
157043
158765
|
* 日期格式化
|
|
@@ -157521,7 +159243,7 @@ var HoPage_component = normalizeComponent(
|
|
|
157521
159243
|
)
|
|
157522
159244
|
|
|
157523
159245
|
/* harmony default export */ var components_HoPage = (HoPage_component.exports);
|
|
157524
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
159246
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/backToPage/HoToPage.vue?vue&type=template&id=2e02cb8f&
|
|
157525
159247
|
var HoToPagevue_type_template_id_2e02cb8f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{staticClass:"ho-to-page",style:({
|
|
157526
159248
|
right: _vm.styleRight,
|
|
157527
159249
|
bottom: _vm.styleBottom,
|
|
@@ -157692,7 +159414,7 @@ var HoToPage_component = normalizeComponent(
|
|
|
157692
159414
|
// CONCATENATED MODULE: ./src/components/backToPage/index.ts
|
|
157693
159415
|
|
|
157694
159416
|
/* harmony default export */ var backToPage = (HoToPage);
|
|
157695
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
159417
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=c1db85b2&scoped=true&
|
|
157696
159418
|
var PoperSelectvue_type_template_id_c1db85b2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],staticClass:"poper-selected-modal animation-in",style:(_vm.posStyle)},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.poperType === 'selectPoper' && _vm.currentList.length > 0)?_c('div',{staticClass:"select-poper"},[(_vm.isCanSearch)?_c('el-input',{attrs:{"placeholder":"可搜索","size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}}):_vm._e(),_c('ul',{staticClass:"list"},_vm._l((_vm.currentList),function(item,index){return _c('li',{key:item.id,class:_vm.selected.filter(function (v) { return v.id === item.id; }).length === 1 ? 'selected' : '',on:{"click":function($event){return _vm.selectItems(item, index)}}},[_c('span',[_vm._v(_vm._s(item.text.split("<元素>")[0]))]),_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#selected"}})])])}),0),(_vm.isAllowMultiSelect)?_c('footer',{style:({ bottom: _vm.isAllowMultiSelect ? '-36px' : '0px' })},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){_vm.selected = []}}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e()],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length === 0)?_c('div',[_vm._m(0)]):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.indexOf('dd') !== -1)?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.indexOf('mm') !== -1)?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[(_vm.dateTimeStyle.indexOf('ss') !== -1)?_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}}):_vm._e(),(_vm.dateTimeStyle.indexOf('ss') === -1)?_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}}):_vm._e()],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
157697
159419
|
var PoperSelectvue_type_template_id_c1db85b2_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])])}]
|
|
157698
159420
|
|
|
@@ -157773,16 +159495,13 @@ var textParams = {
|
|
|
157773
159495
|
identifierFormat: "",
|
|
157774
159496
|
readType: false
|
|
157775
159497
|
};
|
|
157776
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
159498
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/dateDialog/DatePanel.vue?vue&type=template&id=31dfa90e&
|
|
157777
159499
|
var DatePanelvue_type_template_id_31dfa90e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"component-date",class:_vm.customClass},[_c('div',{staticClass:"my-vue-date2 "},[_c('div',{staticClass:"date-header"},[_c('i',{staticClass:"el-icon-d-arrow-left last",on:{"click":_vm.last}}),_c('p',[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'year'),expression:"type === 'year'"}]},[_vm._v(_vm._s(_vm.yearTitle)+" 年")]),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.type !== 'year'),expression:"type !== 'year'"}],on:{"click":_vm.showYear}},[_vm._v(_vm._s(_vm.year)+" 年")]),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'date'),expression:"type === 'date'"}],on:{"click":_vm.showMonth}},[_vm._v(_vm._s(_vm.month)+" 月")]),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'date' && _vm.dateText),expression:"type === 'date' && dateText"}]},[_vm._v(_vm._s(_vm.dateText)+" 日")])]),_c('i',{staticClass:"el-icon-d-arrow-right next",on:{"click":_vm.next}})]),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'year'),expression:"type === 'year'"}],staticClass:"years"},_vm._l((_vm.yearList),function(val){return _c('li',{key:val + Math.random(0, 1),class:_vm.nowYear == val ? 'active' : '',on:{"click":function($event){$event.stopPropagation();return _vm.getYear(val)}}},[_vm._v(_vm._s(val))])}),0),_c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'month'),expression:"type === 'month'"}],staticClass:"years "},[_vm._l((12),function(i){return _c('li',{key:i,class:_vm.month == i ? 'active' : '',on:{"click":function($event){$event.stopPropagation();return _vm.getMonth(i)}}},[_vm._v(_vm._s(i)+"月")])}),_c('li',{staticClass:"clear-both"})],2),_c('table',{directives:[{name:"show",rawName:"v-show",value:(_vm.type === 'date'),expression:"type === 'date'"}],attrs:{"colspan":"0","rowspan":"0"}},[_vm._m(0),_vm._l((_vm.rows),function(row,i){return _c('tr',{key:i},_vm._l((row),function(cell,n){return _c('td',{key:n,class:cell.date == _vm.nowDate ? 'today' : ''},[_c('span',{staticClass:"date-item",class:{ grey: cell.month == 'last' || cell.month == 'next', active: cell.date === _vm.date },attrs:{"title":cell.date},on:{"click":function($event){return _vm.getDate(cell, $event)}}},[_vm._v(_vm._s(cell.text))])])}),0)})],2)])])}
|
|
157778
159500
|
var DatePanelvue_type_template_id_31dfa90e_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v("日")]),_c('th',[_vm._v("一")]),_c('th',[_vm._v("二")]),_c('th',[_vm._v("三")]),_c('th',[_vm._v("四")]),_c('th',[_vm._v("五")]),_c('th',[_vm._v("六")])])}]
|
|
157779
159501
|
|
|
157780
159502
|
|
|
157781
159503
|
// CONCATENATED MODULE: ./src/components/controls/dateDialog/DatePanel.vue?vue&type=template&id=31dfa90e&
|
|
157782
159504
|
|
|
157783
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
157784
|
-
var es_array_splice = __webpack_require__("a434");
|
|
157785
|
-
|
|
157786
159505
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/dateDialog/DatePanel.vue?vue&type=script&lang=js&
|
|
157787
159506
|
|
|
157788
159507
|
|
|
@@ -158570,7 +160289,7 @@ var PoperSelect_component = normalizeComponent(
|
|
|
158570
160289
|
// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
158571
160290
|
|
|
158572
160291
|
/* harmony default export */ var poperSelect = (PoperSelect);
|
|
158573
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
160292
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=64c1f687&scoped=true&
|
|
158574
160293
|
var TableCellPopervue_type_template_id_64c1f687_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],staticClass:"cell-poper-selected-modal animation-in",style:(_vm.posStyle)},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.editorProperty === 1)?_c('div',{staticClass:"select-poper"},[(_vm.isCanSearch)?_c('el-input',{attrs:{"placeholder":"可搜索","size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}}):_vm._e(),_c('ul',{staticClass:"list"},[_vm._l((_vm.currentList),function(item,index){return _c('li',{key:item.id,class:_vm.selected.filter(function (v) { return v.id === item.id; }).length === 1 ? 'selected' : '',on:{"click":function($event){return _vm.selectItems(item, index)}}},[_c('span',[_vm._v(_vm._s(item.text.split("<元素>")[0]))]),_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#selected"}})])])}),(_vm.currentList.length === 0)?_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")]):_vm._e()],2),(_vm.isAllowMultiSelect)?_c('footer',{style:({ bottom: _vm.isAllowMultiSelect ? '-36px' : '0px' })},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){_vm.selected = []}}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e()],1):_vm._e(),(_vm.editorProperty === 2)?_c('div',{staticClass:"date-poper"},[(_vm.inputStyle.indexOf('dd') !== -1)?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.indexOf('mm') !== -1)?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","size":"mini","format":_vm.timeStyle,"value-format":_vm.timeStyle},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v(_vm._s(_vm.inputStyle.indexOf("mm") !== -1 ? "此刻" : "今天"))]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){return _vm.handleClose('cancel')}}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
158575
160294
|
var TableCellPopervue_type_template_id_64c1f687_scoped_true_staticRenderFns = []
|
|
158576
160295
|
|
|
@@ -163121,6 +164840,11 @@ var DrawImageNode_DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
163121
164840
|
get: function get() {
|
|
163122
164841
|
return this._imagePath;
|
|
163123
164842
|
}
|
|
164843
|
+
}, {
|
|
164844
|
+
key: "drawResize",
|
|
164845
|
+
get: function get() {
|
|
164846
|
+
return this._drawResize;
|
|
164847
|
+
}
|
|
163124
164848
|
}, {
|
|
163125
164849
|
key: "insertImage",
|
|
163126
164850
|
value: function insertImage() {
|
|
@@ -163186,7 +164910,7 @@ var DrawImageNode_DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
163186
164910
|
/*
|
|
163187
164911
|
* @Author: your name
|
|
163188
164912
|
* @Date: 2020-11-11 10:02:30
|
|
163189
|
-
* @LastEditTime: 2021-
|
|
164913
|
+
* @LastEditTime: 2021-09-26 15:32:33
|
|
163190
164914
|
* @LastEditors: Please set LastEditors
|
|
163191
164915
|
* @Description: In User Settings Edit
|
|
163192
164916
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
|
|
@@ -164224,6 +165948,11 @@ var DrawQrcodeNode_DrawQrcodeNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
164224
165948
|
get: function get() {
|
|
164225
165949
|
return this._textContent;
|
|
164226
165950
|
}
|
|
165951
|
+
}, {
|
|
165952
|
+
key: "drawResize",
|
|
165953
|
+
get: function get() {
|
|
165954
|
+
return this._drawResize;
|
|
165955
|
+
}
|
|
164227
165956
|
}, {
|
|
164228
165957
|
key: "correctLevel",
|
|
164229
165958
|
get: function get() {
|
|
@@ -167063,9 +168792,14 @@ var TableFormula_TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
167063
168792
|
|
|
167064
168793
|
if (!cell) {
|
|
167065
168794
|
return [bret, ret];
|
|
167066
|
-
}
|
|
168795
|
+
} //const strValue = cell.getCellText().replaceAll('\n', '').replaceAll(' ', '').replaceAll('\b', '').replaceAll('\r', '');
|
|
167067
168796
|
|
|
167068
|
-
|
|
168797
|
+
|
|
168798
|
+
var hoEditorFactory = HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID);
|
|
168799
|
+
var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
|
|
168800
|
+
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, ' ', '');
|
|
168801
|
+
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\b', '');
|
|
168802
|
+
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
|
|
167069
168803
|
|
|
167070
168804
|
if (strValue === '') {
|
|
167071
168805
|
bret = true;
|
|
@@ -168091,6 +169825,35 @@ var DocController_DocController = /*#__PURE__*/function () {
|
|
|
168091
169825
|
var changingEvent = new NodeChangingEvent["a" /* NodeChangingEvent */](DocTree["a" /* DocAction */].daInsert, startPath, endPath, NodeChangingEvent["b" /* OperType */].keyBoardInput);
|
|
168092
169826
|
|
|
168093
169827
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
169828
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof CellNode["a" /* CellNode */]) {
|
|
169829
|
+
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
169830
|
+
var cellNode = domRange.npStart.node.parentNode;
|
|
169831
|
+
var colIndex = cellNode.row.indexOf(cellNode);
|
|
169832
|
+
var colProperty = cellNode.table.colInfos[colIndex].colProperty;
|
|
169833
|
+
var cellProperty = cellNode.cellProperty;
|
|
169834
|
+
|
|
169835
|
+
if (colProperty && colProperty.downListProperty) {
|
|
169836
|
+
var isAllowEdit = colProperty.downListProperty.canModifyContent; //const cellText = cellNode.getCellText();
|
|
169837
|
+
|
|
169838
|
+
if (!isAllowEdit) {
|
|
169839
|
+
lib_message_box_default.a.alert("不允许用户直接编辑,请双击单元格进行选择.");
|
|
169840
|
+
|
|
169841
|
+
return;
|
|
169842
|
+
}
|
|
169843
|
+
}
|
|
169844
|
+
|
|
169845
|
+
if (cellProperty && cellProperty.downListProperty) {
|
|
169846
|
+
var _isAllowEdit = cellProperty.downListProperty.canModifyContent; //const cellText = cellNode.getCellText();
|
|
169847
|
+
|
|
169848
|
+
if (!_isAllowEdit) {
|
|
169849
|
+
lib_message_box_default.a.alert("不允许用户直接编辑,请双击单元格进行选择.");
|
|
169850
|
+
|
|
169851
|
+
return;
|
|
169852
|
+
}
|
|
169853
|
+
} //}
|
|
169854
|
+
|
|
169855
|
+
}
|
|
169856
|
+
|
|
168094
169857
|
this.insertPlainTextAfterPath(startPath, text);
|
|
168095
169858
|
}
|
|
168096
169859
|
}
|
|
@@ -168260,25 +170023,6 @@ var DocController_DocController = /*#__PURE__*/function () {
|
|
|
168260
170023
|
var node = nodePosition.node;
|
|
168261
170024
|
|
|
168262
170025
|
if (node) {
|
|
168263
|
-
if (hoEditorFactory.docTree.docProperty.type === DocTree["d" /* EmrType */].etForm) {
|
|
168264
|
-
if (node.parentNode instanceof CellNode["a" /* CellNode */]) {
|
|
168265
|
-
var cellNode = node.parentNode;
|
|
168266
|
-
var colIndex = cellNode.row.indexOf(cellNode);
|
|
168267
|
-
var colProperty = cellNode.table.colInfos[colIndex].colProperty;
|
|
168268
|
-
|
|
168269
|
-
if (colProperty && colProperty.downListProperty) {
|
|
168270
|
-
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
168271
|
-
var cellText = cellNode.getCellText();
|
|
168272
|
-
|
|
168273
|
-
if (!isAllowEdit && cellText !== "") {
|
|
168274
|
-
lib_message_box_default.a.alert("不允许用户直接编辑!");
|
|
168275
|
-
|
|
168276
|
-
return;
|
|
168277
|
-
}
|
|
168278
|
-
}
|
|
168279
|
-
}
|
|
168280
|
-
}
|
|
168281
|
-
|
|
168282
170026
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
168283
170027
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
168284
170028
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
@@ -168466,23 +170210,11 @@ var DocController_DocController = /*#__PURE__*/function () {
|
|
|
168466
170210
|
if (domRange.isEmpty) {
|
|
168467
170211
|
//未选中任何区域
|
|
168468
170212
|
if (node instanceof TextNode["a" /* TextNode */]) {
|
|
168469
|
-
if (hoEditorFactory.docTree.docProperty.type ===
|
|
168470
|
-
|
|
168471
|
-
|
|
168472
|
-
|
|
168473
|
-
var colProperty = cellNode.table.colInfos[colIndex].colProperty;
|
|
168474
|
-
|
|
168475
|
-
if (colProperty && colProperty.downListProperty) {
|
|
168476
|
-
var isAllowDel = colProperty.downListProperty.isAllowDelete;
|
|
170213
|
+
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
170214
|
+
if (node.parentNode instanceof CellNode["a" /* CellNode */]) {
|
|
170215
|
+
node.parentNode.delCellNodeText();
|
|
170216
|
+
} //}
|
|
168477
170217
|
|
|
168478
|
-
if (!isAllowDel) {
|
|
168479
|
-
lib_message_box_default.a.alert("不允许删除!");
|
|
168480
|
-
|
|
168481
|
-
return;
|
|
168482
|
-
}
|
|
168483
|
-
}
|
|
168484
|
-
}
|
|
168485
|
-
}
|
|
168486
170218
|
|
|
168487
170219
|
var topath = "";
|
|
168488
170220
|
|
|
@@ -174324,6 +176056,8 @@ var StructureConvert_StructureConvert = /*#__PURE__*/function () {
|
|
|
174324
176056
|
}, {
|
|
174325
176057
|
key: "doc2Xml",
|
|
174326
176058
|
value: function doc2Xml(type) {
|
|
176059
|
+
var hoEditorFactory = HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID);
|
|
176060
|
+
|
|
174327
176061
|
if (type === "json") {
|
|
174328
176062
|
var jsonData = JSON.parse('{}');
|
|
174329
176063
|
var docProperty = this.doc2Json("docProperty");
|
|
@@ -174389,9 +176123,11 @@ var StructureConvert_StructureConvert = /*#__PURE__*/function () {
|
|
|
174389
176123
|
xmlRoot += "<footers>";
|
|
174390
176124
|
xmlRoot = this.doc2Json("footer", "xml", xmlRoot);
|
|
174391
176125
|
xmlRoot += "</footers>";
|
|
174392
|
-
xmlRoot += "</root>";
|
|
174393
|
-
xmlRoot = xmlRoot.replaceAll("
|
|
174394
|
-
|
|
176126
|
+
xmlRoot += "</root>"; //xmlRoot = xmlRoot.replaceAll("<TempNode>", "");
|
|
176127
|
+
//xmlRoot = xmlRoot.replaceAll("</TempNode>", "");
|
|
176128
|
+
|
|
176129
|
+
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "<TempNode>", "");
|
|
176130
|
+
xmlRoot = hoEditorFactory.unitConvert.replaceAll(xmlRoot, "</TempNode>", "");
|
|
174395
176131
|
return xmlBeauty(xmlRoot);
|
|
174396
176132
|
}
|
|
174397
176133
|
}
|
|
@@ -174488,58 +176224,115 @@ var StructureConvert_StructureConvert = /*#__PURE__*/function () {
|
|
|
174488
176224
|
}, {
|
|
174489
176225
|
key: "replaceNodesName",
|
|
174490
176226
|
value: function replaceNodesName(xml) {
|
|
174491
|
-
|
|
174492
|
-
|
|
174493
|
-
xml =
|
|
174494
|
-
xml =
|
|
174495
|
-
xml =
|
|
174496
|
-
xml =
|
|
174497
|
-
xml =
|
|
174498
|
-
xml =
|
|
174499
|
-
xml =
|
|
174500
|
-
xml =
|
|
174501
|
-
xml =
|
|
174502
|
-
xml =
|
|
174503
|
-
xml =
|
|
174504
|
-
xml =
|
|
174505
|
-
xml =
|
|
174506
|
-
xml =
|
|
174507
|
-
xml =
|
|
174508
|
-
xml =
|
|
174509
|
-
xml =
|
|
174510
|
-
xml =
|
|
174511
|
-
xml =
|
|
174512
|
-
xml =
|
|
174513
|
-
xml =
|
|
174514
|
-
xml =
|
|
174515
|
-
xml =
|
|
174516
|
-
xml =
|
|
174517
|
-
xml =
|
|
174518
|
-
xml =
|
|
174519
|
-
xml =
|
|
174520
|
-
xml =
|
|
174521
|
-
xml =
|
|
174522
|
-
xml =
|
|
174523
|
-
xml =
|
|
174524
|
-
xml =
|
|
174525
|
-
xml =
|
|
174526
|
-
xml =
|
|
174527
|
-
xml =
|
|
174528
|
-
xml =
|
|
174529
|
-
xml =
|
|
174530
|
-
xml =
|
|
174531
|
-
xml =
|
|
174532
|
-
xml =
|
|
174533
|
-
xml =
|
|
174534
|
-
xml =
|
|
174535
|
-
xml =
|
|
174536
|
-
xml =
|
|
174537
|
-
xml =
|
|
174538
|
-
xml =
|
|
174539
|
-
xml =
|
|
174540
|
-
xml =
|
|
174541
|
-
xml =
|
|
174542
|
-
xml =
|
|
176227
|
+
String;
|
|
176228
|
+
var hoEditorFactory = HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID);
|
|
176229
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TextNode>', "<node>");
|
|
176230
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TextNode>', "</node>");
|
|
176231
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<ParagraphNode>', "<node>");
|
|
176232
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</ParagraphNode>', "</node>");
|
|
176233
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableNode>', "<node>");
|
|
176234
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableNode>', "</node>");
|
|
176235
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PupilMapNode>', "<node>");
|
|
176236
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PupilMapNode>', "</node>");
|
|
176237
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<LightLocationMapNode>', "<node>");
|
|
176238
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</LightLocationMapNode>', "</node>");
|
|
176239
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<MenstrualHistoryNode>', "<node>");
|
|
176240
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</MenstrualHistoryNode>', "</node>");
|
|
176241
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<FetalHeartMapNode>', "<node>");
|
|
176242
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</FetalHeartMapNode>', "</node>");
|
|
176243
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PermanentTeethMapNode>', "<node>");
|
|
176244
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PermanentTeethMapNode>', "</node>");
|
|
176245
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PrimaryTeethMapNode>', "<node>");
|
|
176246
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PrimaryTeethMapNode>', "</node>");
|
|
176247
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<ImageNode>', "<node>");
|
|
176248
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</ImageNode>', "</node>");
|
|
176249
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<BarcodeNode>', "<node>");
|
|
176250
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</BarcodeNode>', "</node>");
|
|
176251
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<QrcodeNode>', "<node>");
|
|
176252
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</QrcodeNode>', "</node>");
|
|
176253
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<DateTimeNode>', "<node>");
|
|
176254
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</DateTimeNode>', "</node>");
|
|
176255
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<DownListNode>', "<node>");
|
|
176256
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</DownListNode>', "</node>");
|
|
176257
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<RadioAndCheckBoxNode>', "<node>");
|
|
176258
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</RadioAndCheckBoxNode>', "</node>");
|
|
176259
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TextInputFieldNode>', "<node>");
|
|
176260
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TextInputFieldNode>', "</node>");
|
|
176261
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SpecialCharsNode>', "<node>");
|
|
176262
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SpecialCharsNode>', "</node>");
|
|
176263
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<MarkNode>', "<node>");
|
|
176264
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</MarkNode>', "</node>");
|
|
176265
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PageCountNode>', "<node>");
|
|
176266
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PageCountNode>', "</node>");
|
|
176267
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<PageNumNode>', "<node>");
|
|
176268
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</PageNumNode>', "</node>");
|
|
176269
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableFormula>', "<node>");
|
|
176270
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
|
|
176271
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<End>', '<node>');
|
|
176272
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</End>', '</node>');
|
|
176273
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<CellNode>', "<node>");
|
|
176274
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</CellNode>', "</node>");
|
|
176275
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SeparateCharNode>', "<node>");
|
|
176276
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SeparateCharNode>', "</node>");
|
|
176277
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<LabelNode>', "<node>");
|
|
176278
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</LabelNode>', "</node>");
|
|
176279
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<SignNode>', "<node>");
|
|
176280
|
+
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</SignNode>', "</node>");
|
|
176281
|
+
/*
|
|
176282
|
+
xml = xml.replaceAll('<TextNode>', "<node>");
|
|
176283
|
+
xml = xml.replaceAll('</TextNode>', "</node>");
|
|
176284
|
+
xml = xml.replaceAll('<ParagraphNode>', "<node>");
|
|
176285
|
+
xml = xml.replaceAll('</ParagraphNode>', "</node>");
|
|
176286
|
+
xml = xml.replaceAll('<TableNode>', "<node>");
|
|
176287
|
+
xml = xml.replaceAll('</TableNode>', "</node>");
|
|
176288
|
+
xml = xml.replaceAll('<PupilMapNode>', "<node>");
|
|
176289
|
+
xml = xml.replaceAll('</PupilMapNode>', "</node>");
|
|
176290
|
+
xml = xml.replaceAll('<LightLocationMapNode>', "<node>");
|
|
176291
|
+
xml = xml.replaceAll('</LightLocationMapNode>', "</node>");
|
|
176292
|
+
xml = xml.replaceAll('<MenstrualHistoryNode>', "<node>");
|
|
176293
|
+
xml = xml.replaceAll('</MenstrualHistoryNode>', "</node>");
|
|
176294
|
+
xml = xml.replaceAll('<FetalHeartMapNode>', "<node>");
|
|
176295
|
+
xml = xml.replaceAll('</FetalHeartMapNode>', "</node>");
|
|
176296
|
+
xml = xml.replaceAll('<PermanentTeethMapNode>', "<node>");
|
|
176297
|
+
xml = xml.replaceAll('</PermanentTeethMapNode>', "</node>");
|
|
176298
|
+
xml = xml.replaceAll('<PrimaryTeethMapNode>', "<node>");
|
|
176299
|
+
xml = xml.replaceAll('</PrimaryTeethMapNode>', "</node>");
|
|
176300
|
+
xml = xml.replaceAll('<ImageNode>', "<node>");
|
|
176301
|
+
xml = xml.replaceAll('</ImageNode>', "</node>");
|
|
176302
|
+
xml = xml.replaceAll('<BarcodeNode>', "<node>");
|
|
176303
|
+
xml = xml.replaceAll('</BarcodeNode>', "</node>");
|
|
176304
|
+
xml = xml.replaceAll('<QrcodeNode>', "<node>");
|
|
176305
|
+
xml = xml.replaceAll('</QrcodeNode>', "</node>");
|
|
176306
|
+
xml = xml.replaceAll('<DateTimeNode>', "<node>");
|
|
176307
|
+
xml = xml.replaceAll('</DateTimeNode>', "</node>");
|
|
176308
|
+
xml = xml.replaceAll('<DownListNode>', "<node>");
|
|
176309
|
+
xml = xml.replaceAll('</DownListNode>', "</node>");
|
|
176310
|
+
xml = xml.replaceAll('<RadioAndCheckBoxNode>', "<node>");
|
|
176311
|
+
xml = xml.replaceAll('</RadioAndCheckBoxNode>', "</node>");
|
|
176312
|
+
xml = xml.replaceAll('<TextInputFieldNode>', "<node>");
|
|
176313
|
+
xml = xml.replaceAll('</TextInputFieldNode>', "</node>");
|
|
176314
|
+
xml = xml.replaceAll('<SpecialCharsNode>', "<node>");
|
|
176315
|
+
xml = xml.replaceAll('</SpecialCharsNode>', "</node>");
|
|
176316
|
+
xml = xml.replaceAll('<MarkNode>', "<node>");
|
|
176317
|
+
xml = xml.replaceAll('</MarkNode>', "</node>");
|
|
176318
|
+
xml = xml.replaceAll('<PageCountNode>', "<node>");
|
|
176319
|
+
xml = xml.replaceAll('</PageCountNode>', "</node>");
|
|
176320
|
+
xml = xml.replaceAll('<PageNumNode>', "<node>");
|
|
176321
|
+
xml = xml.replaceAll('</PageNumNode>', "</node>");
|
|
176322
|
+
xml = xml.replaceAll('<TableFormula>', "<node>");
|
|
176323
|
+
xml = xml.replaceAll('</TableFormula>', "</node>");
|
|
176324
|
+
xml = xml.replaceAll('<End>', '<node>');
|
|
176325
|
+
xml = xml.replaceAll('</End>', '</node>');
|
|
176326
|
+
xml = xml.replaceAll('<CellNode>', "<node>");
|
|
176327
|
+
xml = xml.replaceAll('</CellNode>', "</node>");
|
|
176328
|
+
xml = xml.replaceAll('<SeparateCharNode>', "<node>");
|
|
176329
|
+
xml = xml.replaceAll('</SeparateCharNode>', "</node>");
|
|
176330
|
+
xml = xml.replaceAll('<LabelNode>', "<node>");
|
|
176331
|
+
xml = xml.replaceAll('</LabelNode>', "</node>");
|
|
176332
|
+
xml = xml.replaceAll('<SignNode>', "<node>");
|
|
176333
|
+
xml = xml.replaceAll('</SignNode>', "</node>");
|
|
176334
|
+
*/
|
|
176335
|
+
|
|
174543
176336
|
return xml;
|
|
174544
176337
|
}
|
|
174545
176338
|
/**
|
|
@@ -176749,16 +178542,16 @@ var VueController_VueController = /*#__PURE__*/function () {
|
|
|
176749
178542
|
this._openXmled = value;
|
|
176750
178543
|
}
|
|
176751
178544
|
}
|
|
176752
|
-
/**
|
|
176753
|
-
* 监控当前光标处文本样式:先循环遍历选中区域树节点 获取第一个文本节点的样式 用来与后面的节点样式进行比较;再循环遍历选中区域树节点 拿每个文本节点跟第一个文本节点的样式进行比较
|
|
176754
|
-
* 一旦出现节点样式不一致的情况 不一致的属性恢复到默认值或者空值
|
|
176755
|
-
*/
|
|
176756
|
-
|
|
176757
178545
|
}, {
|
|
176758
178546
|
key: "hoEditorFactoryID",
|
|
176759
178547
|
get: function get() {
|
|
176760
178548
|
return this._hoEditorFactoryID;
|
|
176761
178549
|
}
|
|
178550
|
+
/**
|
|
178551
|
+
* 监控当前光标处文本样式:先循环遍历选中区域树节点 获取第一个文本节点的样式 用来与后面的节点样式进行比较;再循环遍历选中区域树节点 拿每个文本节点跟第一个文本节点的样式进行比较
|
|
178552
|
+
* 一旦出现节点样式不一致的情况 不一致的属性恢复到默认值或者空值
|
|
178553
|
+
*/
|
|
178554
|
+
|
|
176762
178555
|
}, {
|
|
176763
178556
|
key: "getCurTextStyle",
|
|
176764
178557
|
value: function getCurTextStyle() {
|
|
@@ -179973,6 +181766,11 @@ var VueController_VueController = /*#__PURE__*/function () {
|
|
|
179973
181766
|
value: function deleteNode(node) {
|
|
179974
181767
|
var hoEditorFactory = HOEditorFactorys["a" /* HOEditorFactorys */].instance().getFactory(this._hoEditorFactoryID);
|
|
179975
181768
|
if (!node) return;
|
|
181769
|
+
|
|
181770
|
+
if (node.parentNode && node.parentNode instanceof CellNode["a" /* CellNode */]) {
|
|
181771
|
+
node.parentNode.delCellNodeText();
|
|
181772
|
+
}
|
|
181773
|
+
|
|
179976
181774
|
var preNode = node.previousLeaf();
|
|
179977
181775
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
179978
181776
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node); // const cgEvent = new NodeChangeEvent(
|
|
@@ -180094,7 +181892,7 @@ var VueController_VueController = /*#__PURE__*/function () {
|
|
|
180094
181892
|
errorInfo = "必须输入,不能为空";
|
|
180095
181893
|
errorArray.push([node, errorInfo]);
|
|
180096
181894
|
} else {
|
|
180097
|
-
if (dataVerifyFormat.dataFormat
|
|
181895
|
+
if (dataVerifyFormat.dataFormat === TextInputFieldNode["a" /* DataFormat */].text) {
|
|
180098
181896
|
//文本格式
|
|
180099
181897
|
if (dataVerifyFormat.minLength > 0) {
|
|
180100
181898
|
if (node.text.length < dataVerifyFormat.minLength) {
|
|
@@ -183429,21 +185227,21 @@ var HOEditorFactory_HOEditorFactory = /*#__PURE__*/function () {
|
|
|
183429
185227
|
|
|
183430
185228
|
return HOEditorFactory;
|
|
183431
185229
|
}();
|
|
183432
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185230
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoFooter.vue?vue&type=template&id=05adf2e3&scoped=true&
|
|
183433
185231
|
var HoFootervue_type_template_id_05adf2e3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ho-footer"},[_c('div',{staticClass:"footer-item"}),_c('div',{staticClass:"footer-item"},[_c('span',{staticClass:"text"},[_vm._v("第 "+_vm._s(_vm.currentActivePages + 1 === 0 ? 1 : _vm.currentActivePages + 1)+" 页 / 共 "+_vm._s(_vm.drawPages)+" 页")]),(!!_vm.docName)?_c('span',{staticClass:"text"},[_vm._v("名称:"+_vm._s(_vm.docName))]):_vm._e(),(!!_vm.userNames)?_c('span',{staticClass:"text"},[_vm._v("书写人:"+_vm._s(_vm.userNames))]):_vm._e(),(!!_vm.historyTime)?_c('span',{staticClass:"text"},[_vm._v("书写时间:"+_vm._s(_vm.historyTime))]):_vm._e()]),_c('p',{staticStyle:{"flex":"1"}}),_c('div',{staticClass:"footer-item"})])}
|
|
183434
185232
|
var HoFootervue_type_template_id_05adf2e3_scoped_true_staticRenderFns = []
|
|
183435
185233
|
|
|
183436
185234
|
|
|
183437
185235
|
// CONCATENATED MODULE: ./src/components/HoFooter.vue?vue&type=template&id=05adf2e3&scoped=true&
|
|
183438
185236
|
|
|
183439
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185237
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/popers/Poper.vue?vue&type=template&id=3df3d8c4&
|
|
183440
185238
|
var Popervue_type_template_id_3df3d8c4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classSelected,style:(_vm.poperStyle),on:{"mouseenter":_vm.mouseenter,"mouseleave":_vm.mouseleave}},[_vm._t("default",function(){return [_c('span',{class:_vm.classNames})]}),(_vm.title && _vm.show)?_c('Title',{attrs:{"title":_vm.title,"styles":_vm.styles}}):_vm._e()],2)}
|
|
183441
185239
|
var Popervue_type_template_id_3df3d8c4_staticRenderFns = []
|
|
183442
185240
|
|
|
183443
185241
|
|
|
183444
185242
|
// CONCATENATED MODULE: ./src/components/controls/popers/Poper.vue?vue&type=template&id=3df3d8c4&
|
|
183445
185243
|
|
|
183446
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185244
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/popers/Title.vue?vue&type=template&id=3d9d462b&scoped=true&
|
|
183447
185245
|
var Titlevue_type_template_id_3d9d462b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[_c('span',{staticClass:"poper-title",style:(_vm.styles)},[_vm._v(_vm._s(_vm.title))])])}
|
|
183448
185246
|
var Titlevue_type_template_id_3d9d462b_scoped_true_staticRenderFns = []
|
|
183449
185247
|
|
|
@@ -183732,14 +185530,14 @@ var HoFooter_component = normalizeComponent(
|
|
|
183732
185530
|
)
|
|
183733
185531
|
|
|
183734
185532
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
183735
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185533
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=75922d4b&
|
|
183736
185534
|
var ControlModalvue_type_template_id_75922d4b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
|
|
183737
185535
|
var ControlModalvue_type_template_id_75922d4b_staticRenderFns = []
|
|
183738
185536
|
|
|
183739
185537
|
|
|
183740
185538
|
// CONCATENATED MODULE: ./src/components/controls/ControlModal.vue?vue&type=template&id=75922d4b&
|
|
183741
185539
|
|
|
183742
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185540
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=1d255536&scoped=true&
|
|
183743
185541
|
var SelectDialogvue_type_template_id_1d255536_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("下拉框")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.innerIdentifier),callback:function ($$v) {_vm.innerIdentifier=$$v},expression:"innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.dataMetaIdentifier),callback:function ($$v) {_vm.dataMetaIdentifier=$$v},expression:"dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.identifierFormat),callback:function ($$v) {_vm.identifierFormat=$$v},expression:"identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"size":"mini","placeholder":"提示文本"},model:{value:(_vm.tipText),callback:function ($$v) {_vm.tipText=$$v},expression:"tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"25%"}},[_c('el-checkbox',{model:{value:(_vm.isReadOnly),callback:function ($$v) {_vm.isReadOnly=$$v},expression:"isReadOnly"}},[_vm._v("内容只读")])],1),_c('div',{staticStyle:{"width":"25%"}},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许删除")])],1),_c('div',{staticStyle:{"width":"25%"}},[_c('el-checkbox',{on:{"change":_vm.allowMultiSelectChange},model:{value:(_vm.allowMultiSelect),callback:function ($$v) {_vm.allowMultiSelect=$$v},expression:"allowMultiSelect"}},[_vm._v("允许多选")])],1),_c('div',{staticStyle:{"width":"25%"}},[_c('el-checkbox',{model:{value:(_vm.readType),callback:function ($$v) {_vm.readType=$$v},expression:"readType"}},[_vm._v("自动替换")])],1)]),_c('li',{staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.downListContent,"height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.default)?_c('span',{staticClass:"tags"},[_vm._v("默认")]):_vm._e(),(scope.row.default)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.cancelDefault(scope.row.id)}}},[_vm._v("取消默认")]):_vm._e(),(!scope.row.default && scope.row.text)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.setDefault(scope.row.id)}}},[_vm._v("设为默认值")]):_vm._e(),(scope.$index !== _vm.downListContent.length - 1 && _vm.focusIndexs === scope.$index)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")]):_vm._e()]}}])})],1)],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
183744
185542
|
var SelectDialogvue_type_template_id_1d255536_scoped_true_staticRenderFns = []
|
|
183745
185543
|
|
|
@@ -184081,7 +185879,7 @@ var SelectDialog_component = normalizeComponent(
|
|
|
184081
185879
|
// CONCATENATED MODULE: ./src/components/controls/selectDialog/index.ts
|
|
184082
185880
|
|
|
184083
185881
|
/* harmony default export */ var selectDialog = (selectDialog_SelectDialog);
|
|
184084
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
185882
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=4c68170d&scoped=true&
|
|
184085
185883
|
var DateDialogvue_type_template_id_4c68170d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("日期时间")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.innerIdentifier),callback:function ($$v) {_vm.innerIdentifier=$$v},expression:"innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.dataMetaIdentifier),callback:function ($$v) {_vm.dataMetaIdentifier=$$v},expression:"dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.identifierFormat),callback:function ($$v) {_vm.identifierFormat=$$v},expression:"identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("输入样式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.controlStyle),callback:function ($$v) {_vm.controlStyle=$$v},expression:"controlStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期时间")]),(_vm.controlStyle.includes('dd') && _vm.controlStyle.includes('mm'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"datetime","format":_vm.controlStyle,"placeholder":"日期时间"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(!_vm.controlStyle.includes('dd') && _vm.controlStyle.includes('mm'))?_c('el-time-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"time","format":_vm.controlStyle,"placeholder":"时间"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e(),(!_vm.controlStyle.includes('mm') && _vm.controlStyle.includes('dd'))?_c('el-date-picker',{attrs:{"prefix-icon":"null","size":"mini","type":"date","format":_vm.controlStyle,"placeholder":"日期"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}):_vm._e()],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"size":"mini","placeholder":"提示文本"},model:{value:(_vm.tipText),callback:function ($$v) {_vm.tipText=$$v},expression:"tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{model:{value:(_vm.isReadOnly),callback:function ($$v) {_vm.isReadOnly=$$v},expression:"isReadOnly"}},[_vm._v("内容只读")])],1),_c('div',{staticStyle:{"margin":"0 0 0 20px"}},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许删除")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[_c('el-checkbox',{model:{value:(_vm.readType),callback:function ($$v) {_vm.readType=$$v},expression:"readType"}},[_vm._v("自动替换")])],1)])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
184086
185884
|
var DateDialogvue_type_template_id_4c68170d_scoped_true_staticRenderFns = []
|
|
184087
185885
|
|
|
@@ -184295,7 +186093,7 @@ var DateDialog_component = normalizeComponent(
|
|
|
184295
186093
|
// CONCATENATED MODULE: ./src/components/controls/dateDialog/index.ts
|
|
184296
186094
|
|
|
184297
186095
|
/* harmony default export */ var dateDialog = (dateDialog_DateDialog);
|
|
184298
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
186096
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=template&id=3a8a07d8&
|
|
184299
186097
|
var BarCodesvue_type_template_id_3a8a07d8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("条形码")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("条形码内容")]),_c('el-input',{attrs:{"size":"mini","placeholder":"条形码内容不能为空","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否显示文本")]),_c('el-checkbox',{on:{"change":_vm.codeChange},model:{value:(_vm.isDisplayText),callback:function ($$v) {_vm.isDisplayText=$$v},expression:"isDisplayText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{staticClass:"bar-code"},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.textContent && !_vm.textField),expression:"textContent && !textField"}],ref:"barcode",attrs:{"id":"barcode"}}),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.textContent && _vm.textField),expression:"textContent && textField"}]},[_vm._v(_vm._s(_vm.textField))])])])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
184300
186098
|
var BarCodesvue_type_template_id_3a8a07d8_staticRenderFns = []
|
|
184301
186099
|
|
|
@@ -184479,7 +186277,7 @@ var BarCodes_component = normalizeComponent(
|
|
|
184479
186277
|
// CONCATENATED MODULE: ./src/components/controls/barCode/index.ts
|
|
184480
186278
|
|
|
184481
186279
|
/* harmony default export */ var barCode = (BarCodes);
|
|
184482
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
186280
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/qrCode/QrCode.vue?vue&type=template&id=f9b2a558&
|
|
184483
186281
|
var QrCodevue_type_template_id_f9b2a558_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("二维码")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本内容")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","autosize":{ minRows: 4, maxRows: 8 },"clearable":"","placeholder":"文本内容","maxlength":"256","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("宽(高)")]),_c('el-input-number',{attrs:{"controls":false,"size":"mini","autocomplete":"off"},on:{"change":_vm.qrSizeChange},model:{value:(_vm.size),callback:function ($$v) {_vm.size=$$v},expression:"size"}}),_c('span',{staticStyle:{"padding":"0 20px 0 10px"}},[_vm._v("px")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("纠错能力")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.correctLevel),callback:function ($$v) {_vm.correctLevel=$$v},expression:"correctLevel"}},[_c('el-option',{attrs:{"label":"L: 7%的字码可被修正","value":"L"}}),_c('el-option',{attrs:{"label":"M: 15%的字码可被修正","value":"M"}}),_c('el-option',{attrs:{"label":"Q: 25%的字码可被修正","value":"Q"}}),_c('el-option',{attrs:{"label":"H: 30%的字码可被修正","value":"H"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]),_c('div',{staticClass:"section-right"},[_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{ref:"hoQrcode",style:(_vm.qrCanvasBoxStyle),attrs:{"id":"qrcode"}})])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
184484
186282
|
var QrCodevue_type_template_id_f9b2a558_staticRenderFns = []
|
|
184485
186283
|
|
|
@@ -184662,14 +186460,14 @@ var QrCode_component = normalizeComponent(
|
|
|
184662
186460
|
// CONCATENATED MODULE: ./src/components/controls/qrCode/index.ts
|
|
184663
186461
|
|
|
184664
186462
|
/* harmony default export */ var qrCode = (QrCode);
|
|
184665
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
186463
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=526087a3&
|
|
184666
186464
|
var TextDialogvue_type_template_id_526087a3_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("文本域")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('tabs',{attrs:{"tabKey":_vm.textActiveName}},[_c('tab-pane',{attrs:{"label":"基本属性","notHover":false,"name":"first"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("直接输入文本数据")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.textParam.inputFieldType),callback:function ($$v) {_vm.$set(_vm.textParam, "inputFieldType", $$v)},expression:"textParam.inputFieldType"}},[_vm._v("下拉列表方式")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.textParam.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.textParam.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "innerIdentifier", $$v)},expression:"textParam.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.textParam.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.textParam, "dataMetaIdentifier", $$v)},expression:"textParam.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.textParam.identifierFormat),callback:function ($$v) {_vm.$set(_vm.textParam, "identifierFormat", $$v)},expression:"textParam.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"size":"mini","placeholder":"名称"},model:{value:(_vm.textParam.name),callback:function ($$v) {_vm.$set(_vm.textParam, "name", $$v)},expression:"textParam.name"}})],1),_c('li',{staticClass:"line"}),(_vm.textParam.inputFieldType === 0)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本内容")]),_c('el-input',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"mini","placeholder":"文本内容"},model:{value:(_vm.textParam.text),callback:function ($$v) {_vm.$set(_vm.textParam, "text", $$v)},expression:"textParam.text"}})],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("下拉列表")]),_c('el-input',{attrs:{"size":"mini","disabled":true,"placeholder":"下拉列表项"},model:{value:(_vm.textParam.downListProperty.source),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "source", $$v)},expression:"textParam.downListProperty.source"}}),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.openListArrModel.apply(null, arguments)}}},[_vm._v("浏览")])],1):_vm._e(),(_vm.textParam.inputFieldType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("是否多选")]),_c('div',{staticStyle:{"width":"30%"}},[_c('el-checkbox',{model:{value:(_vm.textParam.downListProperty.allowMultiSelected),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "allowMultiSelected", $$v)},expression:"textParam.downListProperty.allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.textParam.downListProperty.splitCharacter),callback:function ($$v) {_vm.$set(_vm.textParam.downListProperty, "splitCharacter", $$v)},expression:"textParam.downListProperty.splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"-","value":"-"}}),_c('el-option',{attrs:{"label":"\\","value":"\\"}})],1)],1)]):_vm._e(),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"size":"mini","placeholder":"提示文本"},model:{value:(_vm.textParam.tipText),callback:function ($$v) {_vm.$set(_vm.textParam, "tipText", $$v)},expression:"textParam.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内容只读状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"placeholder":"请选择","size":"mini"},model:{value:(_vm.textParam.readOnlyStatus),callback:function ($$v) {_vm.$set(_vm.textParam, "readOnlyStatus", $$v)},expression:"textParam.readOnlyStatus"}},[_c('el-option',{attrs:{"label":"继承父元素","value":2}}),_c('el-option',{attrs:{"label":"是","value":0}}),_c('el-option',{attrs:{"label":"否","value":1}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("固定宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.textParam.fixedWidth),callback:function ($$v) {_vm.$set(_vm.textParam, "fixedWidth", $$v)},expression:"textParam.fixedWidth"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("厘米")])],1),_c('li',{staticClass:"line"}),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.canModifyContent),callback:function ($$v) {_vm.$set(_vm.textParam, "canModifyContent", $$v)},expression:"textParam.canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.textParam, "isAllowDelete", $$v)},expression:"textParam.isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.enableGlobalColor),callback:function ($$v) {_vm.$set(_vm.textParam, "enableGlobalColor", $$v)},expression:"textParam.enableGlobalColor"}},[_vm._v("启用全局文本颜色")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.textParam.alignWithBlock),callback:function ($$v) {_vm.$set(_vm.textParam, "alignWithBlock", $$v)},expression:"textParam.alignWithBlock"}},[_vm._v("文本域中的段落使用块对齐(诊断专用)")])],1),_c('div',{staticClass:"control-item",staticStyle:{"margin-left":"43px"}},[_c('el-checkbox',{model:{value:(_vm.textParam.readType),callback:function ($$v) {_vm.$set(_vm.textParam, "readType", $$v)},expression:"textParam.readType"}},[_vm._v("自动替换")])],1)])])]),_c('tab-pane',{attrs:{"label":"其他属性","notHover":false,"name":"third"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)])]),_vm._t("hoTextFieldModal")],2)],1),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
184667
186465
|
var TextDialogvue_type_template_id_526087a3_staticRenderFns = []
|
|
184668
186466
|
|
|
184669
186467
|
|
|
184670
186468
|
// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=526087a3&
|
|
184671
186469
|
|
|
184672
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
186470
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/tab/Tab.vue?vue&type=template&id=60d01241&
|
|
184673
186471
|
var Tabvue_type_template_id_60d01241_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"toolbar"},[_c('ul',{staticClass:"main-bar"},[_vm._l((_vm.navList),function(item){return _c('li',{key:item.name,class:{ selected: item.name === _vm.currentValue },on:{"click":function($event){return _vm.handleChange(_vm.currentValue, item.name)}}},[_vm._v(" "+_vm._s(item.label)+" ")])}),_c('li',{staticClass:"tabs-active-bar",style:(_vm.activeBarStyle)})],2),_c('div',{staticClass:"sub-bar-box"},[_vm._t("default")],2)])}
|
|
184674
186472
|
var Tabvue_type_template_id_60d01241_staticRenderFns = []
|
|
184675
186473
|
|
|
@@ -185099,7 +186897,7 @@ var TextDialog_component = normalizeComponent(
|
|
|
185099
186897
|
// CONCATENATED MODULE: ./src/components/controls/textDialog/index.ts
|
|
185100
186898
|
|
|
185101
186899
|
/* harmony default export */ var textDialog = (textDialog_TextDialog);
|
|
185102
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
186900
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=629d39a8&scoped=true&
|
|
185103
186901
|
var ExpressionFormvue_type_template_id_629d39a8_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.names[_vm.expressStyle]))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.cancel}})]),_c('section',{staticClass:"expression-form"},[(_vm.expressStyle === 'style1')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style1-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}})],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]:_vm._e(),(_vm.expressStyle === 'style2')?[_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1)]),_c('div',{staticClass:"line style21-line"}),_c('div',{staticClass:"line style22-line"}),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}})],1),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]:_vm._e(),(_vm.expressStyle === 'style3')?[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"expression-style1"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)]),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("末次月经/绝经年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menoPauseAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menoPauseAge", $$v)},expression:"menstrualHistory.menoPauseAge"}})],1)]:_vm._e(),(_vm.expressStyle === 'style4')?_c('div',{staticClass:"style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("初潮年龄")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menarcheAge),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menarcheAge", $$v)},expression:"menstrualHistory.menarcheAge"}})],1),_c('div',{staticClass:"line style41-line"}),_c('div',{staticClass:"expression-style4"},[_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("经期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.menseDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "menseDays", $$v)},expression:"menstrualHistory.menseDays"}})],1),_c('div',{staticClass:"line style42-line"}),_c('div',{staticClass:"expression-item"},[_c('span',[_vm._v("周期(天)")]),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.menstrualHistory.cycleDays),callback:function ($$v) {_vm.$set(_vm.menstrualHistory, "cycleDays", $$v)},expression:"menstrualHistory.cycleDays"}})],1)])]):_vm._e(),(_vm.expressStyle === 'style5')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('div',{staticStyle:{"width":"100px"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}})],1)]:_vm._e(),(_vm.expressStyle === 'style6')?[_c('div',{staticClass:"expression-style5"},[_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value7),callback:function ($$v) {_vm.$set(_vm.style567, "value7", $$v)},expression:"style567.value7"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value8),callback:function ($$v) {_vm.$set(_vm.style567, "value8", $$v)},expression:"style567.value8"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value9),callback:function ($$v) {_vm.$set(_vm.style567, "value9", $$v)},expression:"style567.value9"}})],1)]:_vm._e(),(_vm.expressStyle === 'style7')?[_c('div',{staticClass:"expression-style5 style7"},[_c('div',{staticClass:"line style71-line"}),_c('div',{staticClass:"line style72-line"}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value1),callback:function ($$v) {_vm.$set(_vm.style567, "value1", $$v)},expression:"style567.value1"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value2),callback:function ($$v) {_vm.$set(_vm.style567, "value2", $$v)},expression:"style567.value2"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value3),callback:function ($$v) {_vm.$set(_vm.style567, "value3", $$v)},expression:"style567.value3"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value4),callback:function ($$v) {_vm.$set(_vm.style567, "value4", $$v)},expression:"style567.value4"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value5),callback:function ($$v) {_vm.$set(_vm.style567, "value5", $$v)},expression:"style567.value5"}}),_c('el-input',{attrs:{"type":"text","size":"small"},model:{value:(_vm.style567.value6),callback:function ($$v) {_vm.$set(_vm.style567, "value6", $$v)},expression:"style567.value6"}})],1)]:_vm._e(),(_vm.expressStyle === 'style8')?[_c('div',{staticClass:"style89"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(0),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['8', '7', '6', '5', '4', '3', '2', '1']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['1', '2', '3', '4', '5', '6', '7', '8']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e(),(_vm.expressStyle === 'style9')?[_c('div',{staticClass:"style89 style9"},[_c('span',{staticClass:"pos-top"},[_vm._v("上颌")]),_c('span',{staticClass:"pos-bottom"},[_vm._v("下颌")]),_c('span',{staticClass:"pos-left"},[_vm._v("左")]),_c('span',{staticClass:"pos-right"},[_vm._v("右")]),_vm._m(1),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'a'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topLeft),callback:function ($$v) {_vm.$set(_vm.style89, "topLeft", $$v)},expression:"style89.topLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'b'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.topRight),callback:function ($$v) {_vm.$set(_vm.style89, "topRight", $$v)},expression:"style89.topRight"}},[_c('el-checkbox-button',{attrs:{"size":"mini","label":item}})],1)],1)})],2),_c('ul',[_vm._l((['V', 'IV', 'III', 'II', 'I']),function(item){return _c('li',{key:item + 'c'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomLeft),callback:function ($$v) {_vm.$set(_vm.style89, "bottomLeft", $$v)},expression:"style89.bottomLeft"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)}),_vm._l((['I', 'II', 'III', 'IV', 'V']),function(item){return _c('li',{key:item + 'd'},[_c('el-checkbox-group',{attrs:{"size":"mini"},model:{value:(_vm.style89.bottomRight),callback:function ($$v) {_vm.$set(_vm.style89, "bottomRight", $$v)},expression:"style89.bottomRight"}},[_c('el-checkbox-button',{attrs:{"label":item}})],1)],1)})],2)])]:_vm._e()],2),_c('footer',{staticClass:"dialog-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reset}},[_vm._v("重 置")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reverse}},[_vm._v("反 选")]):_vm._e(),(_vm.expressStyle === 'style8' || _vm.expressStyle === 'style9')?_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.all}},[_vm._v("全 选")]):_vm._e(),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.cancel}},[_vm._v("取 消")])],1)])}
|
|
185104
186902
|
var ExpressionFormvue_type_template_id_629d39a8_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"titles"},[_c('li',[_vm._v("第三磨牙")]),_c('li',[_vm._v("第二磨牙")]),_c('li',[_vm._v("第一磨牙")]),_c('li',[_vm._v("第二前磨牙")]),_c('li',[_vm._v("第一前磨牙")]),_c('li',[_vm._v("尖牙")]),_c('li',[_vm._v("侧切牙")]),_c('li',[_vm._v("中切牙")]),_c('li',[_vm._v("中切牙")]),_c('li',[_vm._v("侧切牙")]),_c('li',[_vm._v("尖牙")]),_c('li',[_vm._v("第一前磨牙")]),_c('li',[_vm._v("第二前磨牙")]),_c('li',[_vm._v("第一磨牙")]),_c('li',[_vm._v("第二磨牙")]),_c('li',[_vm._v("第三磨牙")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"titles"},[_c('li',[_vm._v("第二乳磨牙")]),_c('li',[_vm._v("第一乳磨牙")]),_c('li',[_vm._v("乳尖牙")]),_c('li',[_vm._v("乳侧切牙")]),_c('li',[_vm._v("乳中切牙")]),_c('li',[_vm._v("乳中切牙")]),_c('li',[_vm._v("乳侧切牙")]),_c('li',[_vm._v("乳尖牙")]),_c('li',[_vm._v("第一乳磨牙")]),_c('li',[_vm._v("第二乳磨牙")])])}]
|
|
185105
186903
|
|
|
@@ -185539,7 +187337,7 @@ var ExpressionForm_component = normalizeComponent(
|
|
|
185539
187337
|
// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
|
|
185540
187338
|
|
|
185541
187339
|
/* harmony default export */ var expressionForm = (expressionForm_ExpressionForm);
|
|
185542
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
187340
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=1dcc7620&
|
|
185543
187341
|
var RadioCheckboxvue_type_template_id_1dcc7620_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'control-modal-contents radio-checkbox-modal ' + _vm.animationClassName,style:({ width: _vm.boxGroup === 1 ? '1000px' : '500px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.controlType === "RadioBox" ? "单选框" : "复选框")+_vm._s(_vm.boxGroup === 1 ? "组" : ""))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("多项")]),_c('el-radio',{staticStyle:{"margin-left":"30px"},attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("单项")])],1),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.groupName),callback:function ($$v) {_vm.groupName=$$v},expression:"groupName"}})],1):_vm._e(),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item",staticStyle:{"padding":"0"}},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.radioCheckBoxGroup,"height":"300px"}},[_c('el-table-column',{attrs:{"label":"文本","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}],null,false,4204152597)}),_c('el-table-column',{attrs:{"label":"提示文本","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(scope.row.tipText),callback:function ($$v) {_vm.$set(scope.row, "tipText", $$v)},expression:"scope.row.tipText"}})]}}],null,false,2396764658)}),_c('el-table-column',{attrs:{"label":"数值","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(scope.row.numericValue),callback:function ($$v) {_vm.$set(scope.row, "numericValue", $$v)},expression:"scope.row.numericValue"}})]}}],null,false,3789767535)}),_c('el-table-column',{attrs:{"label":"内部标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"内部标识符"},model:{value:(scope.row.innerIdentifier),callback:function ($$v) {_vm.$set(scope.row, "innerIdentifier", $$v)},expression:"scope.row.innerIdentifier"}})]}}],null,false,1119088692)}),_c('el-table-column',{attrs:{"label":"数据元标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数据元标识符"},model:{value:(scope.row.dataMetaIdentifier),callback:function ($$v) {_vm.$set(scope.row, "dataMetaIdentifier", $$v)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,false,479119831)}),_c('el-table-column',{attrs:{"label":"表示格式","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"表示格式"},model:{value:(scope.row.identifierFormat),callback:function ($$v) {_vm.$set(scope.row, "identifierFormat", $$v)},expression:"scope.row.identifierFormat"}})]}}],null,false,241604674)}),_c('el-table-column',{attrs:{"label":"默认选中","width":"50"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.controlType === 'RadioBox')?_c('el-radio',{staticClass:"table-radio",attrs:{"label":scope.row.id},model:{value:(_vm.tableRadio),callback:function ($$v) {_vm.tableRadio=$$v},expression:"tableRadio"}}):_vm._e(),(_vm.controlType === 'CheckBox')?_c('el-checkbox',{model:{value:(scope.row.isSelected),callback:function ($$v) {_vm.$set(scope.row, "isSelected", $$v)},expression:"scope.row.isSelected"}}):_vm._e()]}}],null,false,1265273066)}),_c('el-table-column',{attrs:{"label":"勾选框左对齐","width":"70"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.boxAlign),callback:function ($$v) {_vm.$set(scope.row, "boxAlign", $$v)},expression:"scope.row.boxAlign"}})]}}],null,false,599012276)}),_c('el-table-column',{attrs:{"label":"可以删除","width":"50"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isAllowDelete),callback:function ($$v) {_vm.$set(scope.row, "isAllowDelete", $$v)},expression:"scope.row.isAllowDelete"}})]}}],null,false,2012793206)}),_c('el-table-column',{attrs:{"label":"自动替换","width":"50"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.readType),callback:function ($$v) {_vm.$set(scope.row, "readType", $$v)},expression:"scope.row.readType"}})]}}],null,false,373021414)}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]}}],null,false,1240557165)})],1)],1):_vm._e(),(_vm.boxGroup === 0)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.radioCheckbox.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.radioCheckbox.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "innerIdentifier", $$v)},expression:"radioCheckbox.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.radioCheckbox.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "dataMetaIdentifier", $$v)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.radioCheckbox.identifierFormat),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "identifierFormat", $$v)},expression:"radioCheckbox.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.radioCheckbox.groupName),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "groupName", $$v)},expression:"radioCheckbox.groupName"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(_vm.radioCheckbox.text),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "text", $$v)},expression:"radioCheckbox.text"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(_vm.radioCheckbox.tipText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "tipText", $$v)},expression:"radioCheckbox.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isSelected),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isSelected", $$v)},expression:"radioCheckbox.isSelected"}},[_vm._v("处于选择状态")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isAllowDelete", $$v)},expression:"radioCheckbox.isAllowDelete"}},[_vm._v("可以删除")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.boxAlign),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "boxAlign", $$v)},expression:"radioCheckbox.boxAlign"}},[_vm._v("勾选框左对齐")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.readType),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "readType", $$v)},expression:"radioCheckbox.readType"}},[_vm._v("自动替换")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数值")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(_vm.radioCheckbox.numericValue),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "numericValue", $$v)},expression:"radioCheckbox.numericValue"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("附加数据")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"附加数据"},model:{value:(_vm.radioCheckbox.additionalData),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "additionalData", $$v)},expression:"radioCheckbox.additionalData"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"勾选级联对象"},model:{value:(_vm.radioCheckbox.checkCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "checkCascadeObject", $$v)},expression:"radioCheckbox.checkCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("不勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"不勾选级联对象"},model:{value:(_vm.radioCheckbox.unCheckCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "unCheckCascadeObject", $$v)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]:_vm._e()],2)]),_c('footer',{staticClass:"modal-footer"},[(_vm.boxGroup === 1)?_c('el-button',{staticStyle:{"transform":"translateX(-352px)"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.addBox}},[_vm._v("增加"+_vm._s(_vm.controlType === "RadioBox" ? "单选项" : "复选项"))]):_vm._e(),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
185544
187342
|
var RadioCheckboxvue_type_template_id_1dcc7620_staticRenderFns = []
|
|
185545
187343
|
|
|
@@ -185765,7 +187563,7 @@ var RadioCheckbox_component = normalizeComponent(
|
|
|
185765
187563
|
// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/index.ts
|
|
185766
187564
|
|
|
185767
187565
|
/* harmony default export */ var radioCheckBox = (radioCheckBox_RadioCheckbox);
|
|
185768
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
187566
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=template&id=4642b8d7&
|
|
185769
187567
|
var CommentDialogvue_type_template_id_4642b8d7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents comment-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("批注")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":function($event){return _vm.$emit('closed')}}})]),_c('section',{staticClass:"modal-content"},[_c('el-input',{attrs:{"type":"textarea","size":"mini","autosize":{ minRows: 13, maxRows: 13 },"clearable":"","placeholder":"批注内容","maxlength":"256","show-word-limit":""},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":function($event){return _vm.$emit('closed')}}},[_vm._v("取消")])],1)])}
|
|
185770
187568
|
var CommentDialogvue_type_template_id_4642b8d7_staticRenderFns = []
|
|
185771
187569
|
|
|
@@ -185860,7 +187658,7 @@ var CommentDialog_component = normalizeComponent(
|
|
|
185860
187658
|
// CONCATENATED MODULE: ./src/components/controls/commentDialog/index.ts
|
|
185861
187659
|
|
|
185862
187660
|
/* harmony default export */ var commentDialog = (commentDialog_CommentDialog);
|
|
185863
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
187661
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/watermark/WaterSet.vue?vue&type=template&id=468ee214&
|
|
185864
187662
|
var WaterSetvue_type_template_id_468ee214_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents water-set animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("水印")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("内容")]),_c('el-input',{attrs:{"type":"text","size":"mini","clearable":"","placeholder":"文本内容","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("角度")]),_c('el-radio-group',{attrs:{"size":"mini"},on:{"change":_vm.codeChange},model:{value:(_vm.rotate),callback:function ($$v) {_vm.rotate=$$v},expression:"rotate"}},[_c('el-radio-button',{attrs:{"label":0}},[_vm._v("水平")]),_c('el-radio-button',{attrs:{"label":1}},[_vm._v("倾斜")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("颜色")]),_c('el-color-picker',{attrs:{"show-alpha":""},on:{"change":_vm.codeChange},model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)]),_c('div',{staticClass:"section-right"},[_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{attrs:{"id":"water"}},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.waterUrl),expression:"waterUrl"}],attrs:{"src":_vm.waterUrl,"alt":"背景水印"}})])])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
185865
187663
|
var WaterSetvue_type_template_id_468ee214_staticRenderFns = []
|
|
185866
187664
|
|
|
@@ -185975,7 +187773,7 @@ var WaterSet_component = normalizeComponent(
|
|
|
185975
187773
|
// CONCATENATED MODULE: ./src/components/controls/watermark/index.ts
|
|
185976
187774
|
|
|
185977
187775
|
|
|
185978
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
187776
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/customAttributes/CustomAttributes.vue?vue&type=template&id=caf6d86c&scoped=true&
|
|
185979
187777
|
var CustomAttributesvue_type_template_id_caf6d86c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"customsFormModal",staticClass:"control-modal-contents customs-modal",on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("自定义属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.customsValue,"max-height":"360px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"名称","width":"210"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)}},model:{value:(scope.row.name),callback:function ($$v) {_vm.$set(scope.row, "name", $$v)},expression:"scope.row.name"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"210"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])})],1)],1),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
185980
187778
|
var CustomAttributesvue_type_template_id_caf6d86c_scoped_true_staticRenderFns = []
|
|
185981
187779
|
|
|
@@ -186128,7 +187926,7 @@ var CustomAttributes_component = normalizeComponent(
|
|
|
186128
187926
|
// CONCATENATED MODULE: ./src/components/controls/customAttributes/index.ts
|
|
186129
187927
|
|
|
186130
187928
|
/* harmony default export */ var customAttributes = (customAttributes_CustomAttributes);
|
|
186131
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
187929
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/dataSource/DataSource.vue?vue&type=template&id=d0d17200&
|
|
186132
187930
|
var DataSourcevue_type_template_id_d0d17200_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("绑定数据源")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"10px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{model:{value:(_vm.dataSource.dataSourceEnabled),callback:function ($$v) {_vm.$set(_vm.dataSource, "dataSourceEnabled", $$v)},expression:"dataSource.dataSourceEnabled"}},[_vm._v("数据源绑定设置有效")])],1)]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"数据源"},model:{value:(_vm.dataSource.dataSource),callback:function ($$v) {_vm.$set(_vm.dataSource, "dataSource", $$v)},expression:"dataSource.dataSource"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("格式化")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"格式化"},model:{value:(_vm.dataSource.format),callback:function ($$v) {_vm.$set(_vm.dataSource, "format", $$v)},expression:"dataSource.format"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("访问路径")]),_c('el-input',{attrs:{"size":"mini","disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"访问路径"},model:{value:(_vm.dataSource.visitPath),callback:function ($$v) {_vm.$set(_vm.dataSource, "visitPath", $$v)},expression:"dataSource.visitPath"}})],1),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{attrs:{"disabled":!_vm.dataSource.dataSourceEnabled},model:{value:(_vm.dataSource.isReadOnly),callback:function ($$v) {_vm.$set(_vm.dataSource, "isReadOnly", $$v)},expression:"dataSource.isReadOnly"}},[_vm._v("只读")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',[_c('el-checkbox',{attrs:{"disabled":!_vm.dataSource.dataSourceEnabled},model:{value:(_vm.dataSource.autoUpdate),callback:function ($$v) {_vm.$set(_vm.dataSource, "autoUpdate", $$v)},expression:"dataSource.autoUpdate"}},[_vm._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("执行状态")]),_c('el-select',{staticStyle:{"text-align":"left"},attrs:{"disabled":!_vm.dataSource.dataSourceEnabled,"placeholder":"请选择","size":"mini"},model:{value:(_vm.dataSource.executeStatus),callback:function ($$v) {_vm.$set(_vm.dataSource, "executeStatus", $$v)},expression:"dataSource.executeStatus"}},[_c('el-option',{attrs:{"label":"总是执行","value":0}}),_c('el-option',{attrs:{"label":"只执行一次","value":1}}),_c('el-option',{attrs:{"label":"不执行","value":2}})],1)],1)])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
186133
187931
|
var DataSourcevue_type_template_id_d0d17200_staticRenderFns = []
|
|
186134
187932
|
|
|
@@ -186238,7 +188036,7 @@ var DataSource_component = normalizeComponent(
|
|
|
186238
188036
|
// CONCATENATED MODULE: ./src/components/controls/dataSource/index.ts
|
|
186239
188037
|
|
|
186240
188038
|
/* harmony default export */ var controls_dataSource = (DataSource);
|
|
186241
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
188039
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=template&id=530d6908&
|
|
186242
188040
|
var ListSourcevue_type_template_id_530d6908_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("下拉列表")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item",staticStyle:{"width":"100%"}},[_c('span',{staticClass:"label",staticStyle:{"width":"42px"}},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini","placeholder":"来源"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"42px"}},[_vm._v("列表")]),_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listValue,"height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.default)?_c('span',{staticClass:"tags"},[_vm._v("默认")]):_vm._e(),(scope.row.default)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.cancelDefault(scope.row.id)}}},[_vm._v("取消默认")]):_vm._e(),(!scope.row.default && scope.row.text)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.setDefault(scope.row.id)}}},[_vm._v("设为默认值")]):_vm._e(),(scope.$index !== _vm.listValue.length - 1 && _vm.focusIndexs === scope.$index)?_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")]):_vm._e()]}}])})],1)],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
186243
188041
|
var ListSourcevue_type_template_id_530d6908_staticRenderFns = []
|
|
186244
188042
|
|
|
@@ -186518,7 +188316,7 @@ var ListSource_component = normalizeComponent(
|
|
|
186518
188316
|
// CONCATENATED MODULE: ./src/components/controls/listsource/index.ts
|
|
186519
188317
|
|
|
186520
188318
|
/* harmony default export */ var listsource = (listsource_ListSource);
|
|
186521
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
188319
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=template&id=007a9e1b&scoped=true&
|
|
186522
188320
|
var TablePropertyvue_type_template_id_007a9e1b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowHeight),callback:function ($$v) {_vm.canAdjustRowHeight=$$v},expression:"canAdjustRowHeight"}},[_vm._v("用户可调整行高")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowWidth),callback:function ($$v) {_vm.canAdjustRowWidth=$$v},expression:"canAdjustRowWidth"}},[_vm._v("用户可调整列宽")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAddRow),callback:function ($$v) {_vm.canAddRow=$$v},expression:"canAddRow"}},[_vm._v("用户可新增表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteRow),callback:function ($$v) {_vm.canDeleteRow=$$v},expression:"canDeleteRow"}},[_vm._v("用户可删除表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteTable),callback:function ($$v) {_vm.canDeleteTable=$$v},expression:"canDeleteTable"}},[_vm._v("用户可删除表格")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.continuePrintBorders),callback:function ($$v) {_vm.continuePrintBorders=$$v},expression:"continuePrintBorders"}},[_vm._v("续打时打印所有单元格边框")])],1)])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
186523
188321
|
var TablePropertyvue_type_template_id_007a9e1b_scoped_true_staticRenderFns = []
|
|
186524
188322
|
|
|
@@ -186692,7 +188490,7 @@ var TableProperty_component = normalizeComponent(
|
|
|
186692
188490
|
)
|
|
186693
188491
|
|
|
186694
188492
|
/* harmony default export */ var table_TableProperty = (TableProperty_component.exports);
|
|
186695
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
188493
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=0a20ba40&scoped=true&
|
|
186696
188494
|
var TableRowPropertyvue_type_template_id_0a20ba40_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格行属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyHeight),callback:function ($$v) {_vm.isSpecifyHeight=$$v},expression:"isSpecifyHeight"}},[_vm._v("指定高度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyHeight,"precision":2,"step":1,"min":0,"controls":false,"controls-position":"right"},model:{value:(_vm.rowHeight),callback:function ($$v) {_vm.rowHeight=$$v},expression:"rowHeight"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示高度 "+_vm._s(_vm.rowHeightMm)+" 厘米")])],1),_c('li',{staticClass:"control-item",staticStyle:{"padding":"0 0 0 10px"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.isSpecifyHeight},model:{value:(_vm.isAutoRaiseHeight),callback:function ($$v) {_vm.isAutoRaiseHeight=$$v},expression:"isAutoRaiseHeight"}},[_vm._v("内容过多时自动撑大行高以显示所有内容")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.repeatAsTitleAtPageTop),callback:function ($$v) {_vm.repeatAsTitleAtPageTop=$$v},expression:"repeatAsTitleAtPageTop"}},[_vm._v("在隔页顶端以标题行形式重复出现")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.sameLineCanAcrossPages),callback:function ($$v) {_vm.sameLineCanAcrossPages=$$v},expression:"sameLineCanAcrossPages"}},[_vm._v("同行内容能跨页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.forcedPageBreak),callback:function ($$v) {_vm.forcedPageBreak=$$v},expression:"forcedPageBreak"}},[_vm._v("强制分页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBorders),callback:function ($$v) {_vm.printCellBorders=$$v},expression:"printCellBorders"}},[_vm._v("打印单元格边框线")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBg),callback:function ($$v) {_vm.printCellBg=$$v},expression:"printCellBg"}},[_vm._v("打印单元格背景")])],1)])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
186697
188495
|
var TableRowPropertyvue_type_template_id_0a20ba40_scoped_true_staticRenderFns = []
|
|
186698
188496
|
|
|
@@ -186960,7 +188758,7 @@ var TableRowProperty_component = normalizeComponent(
|
|
|
186960
188758
|
)
|
|
186961
188759
|
|
|
186962
188760
|
/* harmony default export */ var TableRowProperty = (TableRowProperty_component.exports);
|
|
186963
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
188761
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=template&id=257567ba&
|
|
186964
188762
|
var TableColPropertyvue_type_template_id_257567ba_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格列属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyWidth),callback:function ($$v) {_vm.isSpecifyWidth=$$v},expression:"isSpecifyWidth"}},[_vm._v("指定宽度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyWidth,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示宽度 "+_vm._s(_vm.colWidth)+" 厘米")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("垂直对齐方式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"垂直对齐方式","size":"mini"},model:{value:(_vm.align),callback:function ($$v) {_vm.align=$$v},expression:"align"}},[_c('el-option',{attrs:{"label":"靠上","value":0}}),_c('el-option',{attrs:{"label":"居中","value":1}}),_c('el-option',{attrs:{"label":"靠下","value":2}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编辑器属性")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"编辑器属性","size":"mini"},on:{"change":_vm.editorPropertyChange},model:{value:(_vm.editorProperty),callback:function ($$v) {_vm.editorProperty=$$v},expression:"editorProperty"}},[_c('el-option',{attrs:{"label":"无","value":0}}),_c('el-option',{attrs:{"label":"下拉列表","value":1}}),_c('el-option',{attrs:{"label":"日期","value":2}}),_c('el-option',{attrs:{"label":"数值","value":3}})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.splitCharacter),callback:function ($$v) {_vm.splitCharacter=$$v},expression:"splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"-","value":"-"}})],1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.allowMultiSelected),callback:function ($$v) {_vm.allowMultiSelected=$$v},expression:"allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.canModifyContent),callback:function ($$v) {_vm.canModifyContent=$$v},expression:"canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listItems,"max-height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return (scope.$index !== _vm.listItems.length - 1 && _vm.focusIndexs === scope.$index)?[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]:undefined}}],null,true)})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期格式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.inputStyle),callback:function ($$v) {_vm.inputStyle=$$v},expression:"inputStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 3),expression:"editorProperty === 3"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最小值")]),_c('el-input-number',{attrs:{"size":"mini","max":Number(_vm.maxNumVal),"min":0,"step":10,"controls":false},model:{value:(_vm.minNumVal),callback:function ($$v) {_vm.minNumVal=$$v},expression:"minNumVal"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最大值")]),_c('el-input-number',{attrs:{"size":"mini","min":Number(_vm.minNumVal),"step":10,"controls":false},model:{value:(_vm.maxNumVal),callback:function ($$v) {_vm.maxNumVal=$$v},expression:"maxNumVal"}})],1)])])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
186965
188763
|
var TableColPropertyvue_type_template_id_257567ba_staticRenderFns = []
|
|
186966
188764
|
|
|
@@ -187266,14 +189064,14 @@ var TableColProperty_component = normalizeComponent(
|
|
|
187266
189064
|
)
|
|
187267
189065
|
|
|
187268
189066
|
/* harmony default export */ var TableColProperty = (TableColProperty_component.exports);
|
|
187269
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189067
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=5291b962&scoped=true&
|
|
187270
189068
|
var TableCellPropertyvue_type_template_id_5291b962_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-cell-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("单元格属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('el-tabs',{model:{value:(_vm.textActiveName),callback:function ($$v) {_vm.textActiveName=$$v},expression:"textActiveName"}},[_c('el-tab-pane',{attrs:{"label":"常规","name":"0"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"margin-left":"10px"}},[_vm._v("标题")]),_c('el-input',{attrs:{"size":"mini","placeholder":"标题"},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:"title"}})],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"margin-left":"10px"}},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.lightCellBorders),callback:function ($$v) {_vm.lightCellBorders=$$v},expression:"lightCellBorders"}},[_vm._v("突出显示单元格边框")])],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"margin-left":"10px"}},[_vm._v("垂直对齐方式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"垂直对齐方式","size":"mini"},model:{value:(_vm.align),callback:function ($$v) {_vm.align=$$v},expression:"align"}},[_c('el-option',{attrs:{"label":"靠上","value":0}}),_c('el-option',{attrs:{"label":"垂直居中","value":1}}),_c('el-option',{attrs:{"label":"靠下","value":2}})],1)],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("单元格背景色")]),_c('ho-color-picker',{attrs:{"defaultColor":"#ffffff"},model:{value:(_vm.backColor),callback:function ($$v) {_vm.backColor=$$v},expression:"backColor"}})],1)]),_c('li',{staticClass:"control-item"},[_c('div',[_c('span',{staticClass:"label",staticStyle:{"display":"inline-block"}},[_vm._v("单元格内边距")]),_c('span',{staticClass:"label"},[_vm._v("上")]),_c('el-input-number',{attrs:{"size":"mini","step":1,"min":0,"controls":false},model:{value:(_vm.cellTop),callback:function ($$v) {_vm.cellTop=$$v},expression:"cellTop"}}),_c('span',{staticStyle:{"padding":"0 30px 0 10px"}},[_vm._v("厘米")]),_c('span',{staticClass:"label"},[_vm._v("下")]),_c('el-input-number',{attrs:{"size":"mini","step":1,"min":0,"controls":false},model:{value:(_vm.cellBottom),callback:function ($$v) {_vm.cellBottom=$$v},expression:"cellBottom"}}),_c('span',{staticStyle:{"padding":"0 30px 0 10px"}},[_vm._v("厘米")])],1),_c('div',[_c('span',{staticClass:"label",staticStyle:{"display":"inline-block","padding":"0 44px","margin-left":"-1px"}}),_c('span',{staticClass:"label"},[_vm._v("左")]),_c('el-input-number',{attrs:{"size":"mini","step":1,"min":0,"controls":false},model:{value:(_vm.cellLeft),callback:function ($$v) {_vm.cellLeft=$$v},expression:"cellLeft"}}),_c('span',{staticStyle:{"padding":"0 30px 0 10px"}},[_vm._v("厘米")]),_c('span',{staticClass:"label"},[_vm._v("右")]),_c('el-input-number',{attrs:{"size":"mini","step":1,"min":0,"controls":false},model:{value:(_vm.cellRight),callback:function ($$v) {_vm.cellRight=$$v},expression:"cellRight"}}),_c('span',{staticStyle:{"padding":"0 30px 0 10px"}},[_vm._v("厘米")])],1)]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("网格线设置")]),_c('div',[_c('el-checkbox',{model:{value:(_vm.isDrawGridlines),callback:function ($$v) {_vm.isDrawGridlines=$$v},expression:"isDrawGridlines"}},[_vm._v("绘制网格线")])],1)]),_c('li',{staticClass:"control-item grid-lines-style",style:({ color: _vm.isDrawGridlines ? '#000000' : '#C0C4CC' })},[_c('span',{staticClass:"label"}),_c('div',[_c('div',{staticClass:"control-item"},[_c('div',{staticClass:"grid-lines-color-item"},[_c('span',{staticClass:"label",staticStyle:{"display":"inline-block"}},[_vm._v("网格线颜色")]),_c('ho-color-picker',{model:{value:(_vm.gridLinesColor[0]),callback:function ($$v) {_vm.$set(_vm.gridLinesColor, 0, $$v)},expression:"gridLinesColor[0]"}})],1)]),_c('PrintLineStyle',{attrs:{"isDrawGridlines":_vm.isDrawGridlines,"defaultStyle":_vm.gridLinesStyle,"placeholder":"网格线样式"},on:{"change":_vm.printStyleChange}}),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("跨度")]),_c('el-input-number',{attrs:{"disabled":!_vm.isDrawGridlines,"size":"mini","step":1,"min":0,"controls":false},model:{value:(_vm.span),callback:function ($$v) {_vm.span=$$v},expression:"span"}}),_c('span',{staticStyle:{"padding":"0 30px 0 10px"}},[_vm._v("厘米")])],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{attrs:{"disabled":!_vm.isDrawGridlines},model:{value:(_vm.alignTextToGridline),callback:function ($$v) {_vm.alignTextToGridline=$$v},expression:"alignTextToGridline"}},[_vm._v("文本行对齐到网格线")])],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{attrs:{"disabled":!_vm.isDrawGridlines},model:{value:(_vm.printGridLines),callback:function ($$v) {_vm.printGridLines=$$v},expression:"printGridLines"}},[_vm._v("打印网格线")])],1)],1)])])]),_c('el-tab-pane',{attrs:{"label":"双击属性","name":"1"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编辑器属性")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"编辑器属性","size":"mini"},model:{value:(_vm.editorProperty),callback:function ($$v) {_vm.editorProperty=$$v},expression:"editorProperty"}},[_c('el-option',{attrs:{"label":"无","value":0}}),_c('el-option',{attrs:{"label":"下拉列表","value":1}}),_c('el-option',{attrs:{"label":"日期","value":2}})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.splitCharacter),callback:function ($$v) {_vm.splitCharacter=$$v},expression:"splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"-","value":"-"}})],1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.allowMultiSelected),callback:function ($$v) {_vm.allowMultiSelected=$$v},expression:"allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAllowDelete),callback:function ($$v) {_vm.isAllowDelete=$$v},expression:"isAllowDelete"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.canModifyContent),callback:function ($$v) {_vm.canModifyContent=$$v},expression:"canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listItems,"max-height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return (scope.$index !== _vm.listItems.length - 1 && _vm.focusIndexs === scope.$index)?[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]:undefined}}],null,true)})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期格式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.inputStyle),callback:function ($$v) {_vm.inputStyle=$$v},expression:"inputStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAutoInputCurDate),callback:function ($$v) {_vm.isAutoInputCurDate=$$v},expression:"isAutoInputCurDate"}},[_vm._v("双击设置当前日期时间")])],1)])])]),_c('el-tab-pane',{attrs:{"label":"斜分割线","name":"2"}},[_c('ul',{staticClass:"diagonal-line"},[_c('li',{class:_vm.obliqueSplitLine === 0 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(0)}}},[_c('span',{staticClass:"line no-line"}),_c('span',[_vm._v("None")])]),_c('li',{class:_vm.obliqueSplitLine === 1 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(1)}}},[_c('span',{staticClass:"line left-line top-line top-left-one-line"}),_c('span',[_vm._v("TopLeftOneLine")])]),_c('li',{class:_vm.obliqueSplitLine === 2 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(2)}}},[_c('span',{staticClass:"line left-line top-line top-left-two-line"}),_c('span',[_vm._v("TopLeftTwoLine")])]),_c('li',{class:_vm.obliqueSplitLine === 3 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(3)}}},[_c('span',{staticClass:"line right-line top-line top-right-one-line"}),_c('span',[_vm._v("TopRightOneLine")])]),_c('li',{class:_vm.obliqueSplitLine === 4 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(4)}}},[_c('span',{staticClass:"line right-line top-line top-right-two-line"}),_c('span',[_vm._v("TopRightTwoLine")])]),_c('li',{class:_vm.obliqueSplitLine === 5 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(5)}}},[_c('span',{staticClass:"line left-line bottom-line bottom-left-one-line"}),_c('span',[_vm._v("BottomLeftOneLine")])]),_c('li',{class:_vm.obliqueSplitLine === 6 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(6)}}},[_c('span',{staticClass:"line left-line bottom-line bottom-left-two-line"}),_c('span',[_vm._v("BottomLeftTwoLine")])]),_c('li',{class:_vm.obliqueSplitLine === 7 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(7)}}},[_c('span',{staticClass:"line right-line bottom-line bottom-right-one-line"}),_c('span',[_vm._v("BottomRightOneLine")])]),_c('li',{class:_vm.obliqueSplitLine === 8 ? 'selected' : '',on:{"click":function($event){return _vm.setObliqueSplitLine(8)}}},[_c('span',{staticClass:"line right-line bottom-line bottom-right-two-line"}),_c('span',[_vm._v("BottomRightTwoLine")])])])])],1)],1),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
187271
189069
|
var TableCellPropertyvue_type_template_id_5291b962_scoped_true_staticRenderFns = []
|
|
187272
189070
|
|
|
187273
189071
|
|
|
187274
189072
|
// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=5291b962&scoped=true&
|
|
187275
189073
|
|
|
187276
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189074
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/printstyle/PrintLineStyle.vue?vue&type=template&id=3a0156b2&scoped=true&
|
|
187277
189075
|
var PrintLineStylevue_type_template_id_3a0156b2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",style:({ width: _vm.labelWidth })},[_vm._v(_vm._s(_vm.placeholder))]),_c('el-select',{staticClass:"grid-lines-style",staticStyle:{"width":"144px"},attrs:{"disabled":_vm.isDrawGridlines,"placeholder":_vm.placeholder,"size":"mini"},on:{"change":_vm.linesStyleChange},model:{value:(_vm.linesStyle),callback:function ($$v) {_vm.linesStyle=$$v},expression:"linesStyle"}},[_c('el-option',{attrs:{"label":"solid","value":0}},[_c('svg',{attrs:{"viewBox":"0 0 18236 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"100","height":"34"}},[_c('path',{attrs:{"d":"M0 0h18236.952381v1024H0z","fill":"#333"}})]),_c('span',{staticStyle:{"flex":"1"}}),_c('span',[_vm._v("solid")])]),_c('el-option',{attrs:{"label":"dash","value":1}},[_c('svg',{attrs:{"viewBox":"0 0 15360 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"100","height":"32","fill":"#333"}},[_c('path',{attrs:{"d":"M0 1024V0h3072v1024H0z m4096 0V0h3072v1024H4096z m8192 0V0h3072v1024h-3072z m-4096 0V0h3072v1024H8192z"}})]),_c('span',{staticStyle:{"flex":"1"}}),_c('span',[_vm._v("dash")])]),_c('el-option',{attrs:{"label":"dashdot","value":2}},[_c('svg',{staticStyle:{"transform":"translateY(8px)"},attrs:{"viewBox":"0 0 7680 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"50","height":"20","fill":"#333"}},[_c('path',{attrs:{"d":"M0 0h2304v1024H0V0z m3328 0h1024v1024h-1024V0z m2048 0h2304v1024h-2304V0z"}})]),_c('span',{staticStyle:{"flex":"1"}}),_c('span',[_vm._v("dashdot")])]),_c('el-option',{attrs:{"label":"dashdotdo","value":3}},[_c('svg',{attrs:{"viewBox":"0 0 12288 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"80","height":"34","fill":"#333"}},[_c('path',{attrs:{"d":"M6912 0h1536v1024h-1536V0zM3840 0h1536v1024h-1536V0zM0 0h2304v1024H0V0z m9984 0h2304v1024h-2304V0z"}})]),_c('span',{staticStyle:{"flex":"1","padding":"0 33px"}}),_c('span',[_vm._v("dashdotdot")])]),_c('el-option',{attrs:{"label":"dot","value":4}},[_c('svg',{staticStyle:{"transform":"translateY(-12px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"36","height":"34","fill":"#333"}},[_c('path',{attrs:{"d":"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_c('svg',{staticStyle:{"transform":"translateY(-12px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"36","height":"34","fill":"#333"}},[_c('path',{attrs:{"d":"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_c('svg',{staticStyle:{"transform":"translateY(-12px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"36","height":"34","fill":"#333"}},[_c('path',{attrs:{"d":"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_c('span',{staticStyle:{"flex":"1"}}),_c('span',[_vm._v("dot")])])],1)],1)}
|
|
187278
189076
|
var PrintLineStylevue_type_template_id_3a0156b2_scoped_true_staticRenderFns = []
|
|
187279
189077
|
|
|
@@ -187367,7 +189165,7 @@ var PrintLineStyle_component = normalizeComponent(
|
|
|
187367
189165
|
// CONCATENATED MODULE: ./src/components/controls/printstyle/index.ts
|
|
187368
189166
|
|
|
187369
189167
|
|
|
187370
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189168
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/colorPicker/HoColorPicker.vue?vue&type=template&id=a4ad5878&scoped=true&
|
|
187371
189169
|
var HoColorPickervue_type_template_id_a4ad5878_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.closed),expression:"closed"}],ref:"colorPicker",staticClass:"ho-color-picker"},[_c('div',{staticClass:"color-btn",class:{ disabled: _vm.disabled },style:({'background-color': _vm.showColor, 'border-color': _vm.showColor.toLowerCase() === '#ffffff' ? '#333' : 'transparent'}),on:{"click":_vm.openPanel}}),_c('div',{staticClass:"box",class:{ open: _vm.openStatus }},[_c('div',{staticClass:"hd"},[_c('div',{staticClass:"color-view",style:(("background-color: " + _vm.showPanelColor))}),_c('div',{staticClass:"default-color",on:{"click":_vm.handleDefaultColor,"mouseover":function($event){_vm.hoveColor = _vm.defaultColor},"mouseout":function($event){_vm.hoveColor = null}}},[_vm._v("默认颜色")])]),_c('div',{staticClass:"bd"},[_c('h3',[_vm._v("主题颜色")]),_c('ul',{staticClass:"t-color"},_vm._l((_vm.tColor),function(color,index){return _c('li',{key:index,style:({ backgroundColor: color }),on:{"mouseover":function($event){_vm.hoveColor = color},"mouseout":function($event){_vm.hoveColor = null},"click":function($event){return _vm.updataValue(color)}}})}),0),_c('h3',[_vm._v("标准颜色")]),_c('ul',{staticClass:"t-color"},_vm._l((_vm.bColor),function(color,index){return _c('li',{key:index,style:({ backgroundColor: color }),on:{"mouseover":function($event){_vm.hoveColor = color},"mouseout":function($event){_vm.hoveColor = null},"click":function($event){return _vm.updataValue(color)}}})}),0)])])])}
|
|
187372
189170
|
var HoColorPickervue_type_template_id_a4ad5878_scoped_true_staticRenderFns = []
|
|
187373
189171
|
|
|
@@ -187975,7 +189773,7 @@ var TableCellProperty_component = normalizeComponent(
|
|
|
187975
189773
|
|
|
187976
189774
|
|
|
187977
189775
|
|
|
187978
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189776
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/pageInfoes/PageInfoes.vue?vue&type=template&id=4da72a3a&scoped=true&
|
|
187979
189777
|
var PageInfoesvue_type_template_id_4da72a3a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'control-modal-contents pageinfoes-modal ' + _vm.animationClassName},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("页码页数信息")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内容")]),_c('el-radio',{attrs:{"size":"small","label":0},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:"content"}},[_vm._v("页码")]),_c('el-radio',{attrs:{"size":"small","label":1},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:"content"}},[_vm._v("总页数")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数字显示格式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"数字显示格式","size":"mini"},model:{value:(_vm.format),callback:function ($$v) {_vm.format=$$v},expression:"format"}},[_c('el-option',{attrs:{"label":"1. 2. 3. 4. ···","value":0}}),_c('el-option',{attrs:{"label":"一. 二. 三. 四. ···","value":1}})],1)],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
187980
189778
|
var PageInfoesvue_type_template_id_4da72a3a_scoped_true_staticRenderFns = []
|
|
187981
189779
|
|
|
@@ -188072,7 +189870,7 @@ var PageInfoes_component = normalizeComponent(
|
|
|
188072
189870
|
// CONCATENATED MODULE: ./src/components/controls/pageInfoes/index.ts
|
|
188073
189871
|
|
|
188074
189872
|
/* harmony default export */ var pageInfoes = (pageInfoes_PageInfoes);
|
|
188075
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189873
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/delimiter/Delimiter.vue?vue&type=template&id=0277f9ca&
|
|
188076
189874
|
var Delimitervue_type_template_id_0277f9ca_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("分割符")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("宽度")]),_c('el-input-number',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini","precision":2,"min":0,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("px")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("颜色")]),_c('ho-color-picker',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertDelimiter}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
188077
189875
|
var Delimitervue_type_template_id_0277f9ca_staticRenderFns = []
|
|
188078
189876
|
|
|
@@ -188164,7 +189962,7 @@ var Delimiter_component = normalizeComponent(
|
|
|
188164
189962
|
// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
188165
189963
|
|
|
188166
189964
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
188167
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
189965
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=d8a5848a&
|
|
188168
189966
|
var Signvue_type_template_id_d8a5848a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
188169
189967
|
var Signvue_type_template_id_d8a5848a_staticRenderFns = []
|
|
188170
189968
|
|
|
@@ -188431,7 +190229,7 @@ var ControlModal_component = normalizeComponent(
|
|
|
188431
190229
|
)
|
|
188432
190230
|
|
|
188433
190231
|
/* harmony default export */ var controls_ControlModal = (ControlModal_component.exports);
|
|
188434
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
190232
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/controls/findReplace/FindReplace.vue?vue&type=template&id=fd4f089c&
|
|
188435
190233
|
var FindReplacevue_type_template_id_fd4f089c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"findModal",class:_vm.animationClassNames,on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("查找替换")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("查找内容")]),_c('el-input',{attrs:{"type":"text","size":"mini"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toFind.apply(null, arguments)}},model:{value:(_vm.findContent),callback:function ($$v) {_vm.findContent=$$v},expression:"findContent"}})],1),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"label"},[_c('el-checkbox',{on:{"change":_vm.switchTypes},model:{value:(_vm.switchType),callback:function ($$v) {_vm.switchType=$$v},expression:"switchType"}},[_vm._v("替换内容")])],1),_c('el-input',{attrs:{"disabled":!_vm.switchType,"type":"text","size":"mini"},model:{value:(_vm.replaceCentent),callback:function ($$v) {_vm.replaceCentent=$$v},expression:"replaceCentent"}})],1),_c('li',{staticClass:"control-item"},[_c('el-radio',{attrs:{"label":0},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向下")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.direction),callback:function ($$v) {_vm.direction=$$v},expression:"direction"}},[_vm._v("向上")]),_c('div',{staticStyle:{"margin-left":"30px"}},[_c('el-checkbox',{model:{value:(_vm.matchCase),callback:function ($$v) {_vm.matchCase=$$v},expression:"matchCase"}},[_vm._v("区分大小写")])],1)],1)])]),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"disabled":_vm.findContent === '',"size":"mini"},on:{"click":_vm.toFind}},[_vm._v("查找")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplace}},[_vm._v("替换")]),_c('el-button',{attrs:{"disabled":_vm.findContent === '' || !_vm.switchType,"size":"mini"},on:{"click":_vm.toReplaceAll}},[_vm._v("全部替换")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1)])}
|
|
188436
190234
|
var FindReplacevue_type_template_id_fd4f089c_staticRenderFns = []
|
|
188437
190235
|
|
|
@@ -189380,7 +191178,7 @@ font_FontStyleMixin = __decorate([vue_class_component_esm], font_FontStyleMixin)
|
|
|
189380
191178
|
var font = __webpack_require__("2c6d");
|
|
189381
191179
|
|
|
189382
191180
|
// CONCATENATED MODULE: ./src/components/version.ts
|
|
189383
|
-
/* harmony default export */ var version = ('0.3.
|
|
191181
|
+
/* harmony default export */ var version = ('0.3.57');
|
|
189384
191182
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HoDocs.vue?vue&type=script&lang=ts&
|
|
189385
191183
|
|
|
189386
191184
|
|
|
@@ -189905,7 +191703,7 @@ var HoDocs_component = normalizeComponent(
|
|
|
189905
191703
|
)
|
|
189906
191704
|
|
|
189907
191705
|
/* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
|
|
189908
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
191706
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=e48bd8c6&
|
|
189909
191707
|
var ToolBarvue_type_template_id_e48bd8c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),(_vm.defaultReviewJson.qualityControl)?_c('li',{staticClass:"sub-bar-items sub-bar-paragraph sub-bar-print"},[_c('el-menu',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.closeToolMenusTest),expression:"closeToolMenusTest"}],ref:"controlMenus",staticStyle:{"width":"94px","height":"25px","justify-content":"left"},attrs:{"mode":"horizontal","menu-trigger":"click","popper-append-to-body":"","unique-opened":""},on:{"open":_vm.toolMenuSelectedTest}},[_c('el-submenu',{attrs:{"index":"file"}},[_c('template',{slot:"title"},[_c('span',{style:({ color: _vm.reviewLevel.color })},[_vm._v(" "+_vm._s(_vm.reviewLevel.text[_vm.reviewLevel.limit - 1])+" ")])]),_c('el-menu-item',{staticStyle:{"color":"#f19191","font-size":"14px"},attrs:{"index":"oneReview"},on:{"click":function($event){return _vm.setLogin(1, '#F19191')}}},[_vm._v("一级质控")]),_c('el-menu-item',{staticStyle:{"color":"#8198f7","font-size":"14px"},attrs:{"index":"twoReview"},on:{"click":function($event){return _vm.setLogin(2, '#8198F7')}}},[_vm._v("二级质控")]),_c('el-menu-item',{staticStyle:{"color":"#7fd27f","font-size":"14px"},attrs:{"index":"threeReview"},on:{"click":function($event){return _vm.setLogin(3, '#7FD27F')}}},[_vm._v("三级质控")])],2)],1)],1):_vm._e()]),_vm._t("afterReview")],2)}
|
|
189910
191708
|
var ToolBarvue_type_template_id_e48bd8c6_staticRenderFns = []
|
|
189911
191709
|
|
|
@@ -189915,7 +191713,7 @@ var ToolBarvue_type_template_id_e48bd8c6_staticRenderFns = []
|
|
|
189915
191713
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
|
189916
191714
|
var web_url = __webpack_require__("2b3d");
|
|
189917
191715
|
|
|
189918
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
191716
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/HoPrintDialog.vue?vue&type=template&id=57a493b1&
|
|
189919
191717
|
var HoPrintDialogvue_type_template_id_57a493b1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{"title":"打印设置","top":"20%","visible":_vm.printDialog,"center":"","width":"40%","before-close":_vm.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":false},on:{"update:visible":function($event){_vm.printDialog=$event}}},[_c('section',{staticClass:"ho-print-content"},[_c('el-radio',{attrs:{"size":"medium","label":0},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("全部打印")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("奇数页")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("偶数页")]),_c('div',{staticClass:"ho-print-more"},[_c('el-radio',{attrs:{"label":3},model:{value:(_vm.printMode),callback:function ($$v) {_vm.printMode=$$v},expression:"printMode"}},[_vm._v("打印指定页:")]),_c('el-input',{attrs:{"disabled":_vm.printMode !== 3,"size":"mini","placeholder":"示例: 1, 2-4, 5, 7-10, 12"},model:{value:(_vm.printAppoint),callback:function ($$v) {_vm.printAppoint=$$v},expression:"printAppoint"}})],1),(_vm.errorText)?_c('div',{staticClass:"ho-print-error"},[_vm._v(_vm._s(_vm.errorText))]):_vm._e(),_c('div',{staticClass:"ho-print-title"},[_vm._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"mini","type":"primary"},on:{"click":_vm.hoPrinted}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.closedHoPrintModal}},[_vm._v("取 消")])],1)])}
|
|
189920
191718
|
var HoPrintDialogvue_type_template_id_57a493b1_staticRenderFns = []
|
|
189921
191719
|
|
|
@@ -190982,7 +192780,7 @@ ToolParagraph_ToolParagraph = __decorate([vue_class_component_esm({
|
|
|
190982
192780
|
}
|
|
190983
192781
|
})], ToolParagraph_ToolParagraph);
|
|
190984
192782
|
/* harmony default export */ var toolbar_ToolParagraph = (ToolParagraph_ToolParagraph);
|
|
190985
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
192783
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/MedicalExpressions.vue?vue&type=template&id=37e14534&scoped=true&
|
|
190986
192784
|
var MedicalExpressionsvue_type_template_id_37e14534_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"overflow":"hidden","height":"640px"},attrs:{"native":false}},[_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style1"},on:{"click":function($event){return _vm.selectedSure('style1')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"43","y":"13"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"43","y":"55"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"83","y":"33"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 40 30 L 80 30"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style2"},on:{"click":function($event){return _vm.selectedSure('style2')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"15","y":"20"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"70","y":"20"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"15","y":"50"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"70","y":"50"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 10 30 L 120 30"}}),_c('path',{attrs:{"d":"M 60 0 L 60 60"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style3"},on:{"click":function($event){return _vm.selectedSure('style3')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"43","y":"13"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"43","y":"55"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"83","y":"33"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 15 5 L 110 55"}}),_c('path',{attrs:{"d":"M 15 55 L 110 5"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style4"},on:{"click":function($event){return _vm.selectedSure('style4')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"70","y":"20"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"70","y":"50"}},[_vm._v("Value3")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 62 30 L 110 30"}}),_c('path',{attrs:{"d":"M 45 45 L 55 15"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style5"},on:{"click":function($event){return _vm.selectedSure('style5')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"25"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"80","y":"25"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"0","y":"40"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"40","y":"40"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"80","y":"40"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"0","y":"55"}},[_vm._v("Value6")]),_c('text',{attrs:{"x":"80","y":"55"}},[_vm._v("Value7")])])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style6"},on:{"click":function($event){return _vm.selectedSure('style6')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"25"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"0","y":"40"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"0","y":"55"}},[_vm._v("Value7")]),_c('text',{attrs:{"x":"40","y":"25"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"40","y":"40"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"40","y":"55"}},[_vm._v("Value8")]),_c('text',{attrs:{"x":"80","y":"25"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"80","y":"40"}},[_vm._v("Value6")]),_c('text',{attrs:{"x":"80","y":"55"}},[_vm._v("Value9")])])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style7"},on:{"click":function($event){return _vm.selectedSure('style7')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"12","y":"15"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"12","y":"35"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"12","y":"55"}},[_vm._v("Value7")]),_c('text',{attrs:{"x":"70","y":"15"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"70","y":"35"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"70","y":"55"}},[_vm._v("Value8")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 0 30 L 10 30"}}),_c('path',{attrs:{"d":"M 52 30 L 67 30"}}),_c('path',{attrs:{"d":"M 110 30 L 120 30"}}),_c('path',{attrs:{"d":"M 60 0 L 60 60"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style8"},on:{"click":function($event){return _vm.selectedSure('style8')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"3","y":"23"}},[_vm._v("87654321")]),_c('text',{attrs:{"x":"63","y":"23"}},[_vm._v("12345678")]),_c('text',{attrs:{"x":"3","y":"47"}},[_vm._v("87654321")]),_c('text',{attrs:{"x":"63","y":"47"}},[_vm._v("12345678")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 2 30 L 118 30"}}),_c('path',{attrs:{"d":"M 60 10 L 60 50"}})])])]),_c('el-menu-item',{staticClass:"express-item",attrs:{"index":"style9"},on:{"click":function($event){return _vm.selectedSure('style9')}}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"3","y":"23"}},[_vm._v("V IV III II I")]),_c('text',{attrs:{"x":"63","y":"23"}},[_vm._v("I II III IV V")]),_c('text',{attrs:{"x":"3","y":"47"}},[_vm._v("V IV III II I")]),_c('text',{attrs:{"x":"63","y":"47"}},[_vm._v("I II III IV V")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 2 30 L 118 30"}}),_c('path',{attrs:{"d":"M 60 10 L 60 50"}})])])])],1)}
|
|
190987
192785
|
var MedicalExpressionsvue_type_template_id_37e14534_scoped_true_staticRenderFns = []
|
|
190988
192786
|
|
|
@@ -191048,7 +192846,7 @@ var MedicalExpressions_component = normalizeComponent(
|
|
|
191048
192846
|
)
|
|
191049
192847
|
|
|
191050
192848
|
/* harmony default export */ var MedicalExpressions = (MedicalExpressions_component.exports);
|
|
191051
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
192849
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/UploadImage.vue?vue&type=template&id=208b2688&scoped=true&
|
|
191052
192850
|
var UploadImagevue_type_template_id_208b2688_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-upload',{ref:"upload",staticClass:"upload-image",attrs:{"action":"","file-list":_vm.fileList,"auto-upload":false,"on-change":_vm.uploadImage,"accept":"image/*"}},[_c('el-menu-item',{attrs:{"slot":"trigger","index":"upload"},slot:"trigger"},[_c('svg',{attrs:{"width":"16","height":"16","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('g',{attrs:{"transform":"translate(1 1)"}},[_c('path',{attrs:{"stroke":"none","d":"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),_c('circle',{attrs:{"stroke":"none","cx":"10","cy":"4","r":"1"}}),_c('path',{attrs:{"stroke":"none","d":"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),_c('span',{attrs:{"size":"small"}},[_vm._v("图片")])])],1)}
|
|
191053
192851
|
var UploadImagevue_type_template_id_208b2688_scoped_true_staticRenderFns = []
|
|
191054
192852
|
|
|
@@ -191216,7 +193014,7 @@ var UploadImage_component = normalizeComponent(
|
|
|
191216
193014
|
)
|
|
191217
193015
|
|
|
191218
193016
|
/* harmony default export */ var toolbar_UploadImage = (UploadImage_component.exports);
|
|
191219
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
193017
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/SpecialChars.vue?vue&type=template&id=517c34d3&scoped=true&
|
|
191220
193018
|
var SpecialCharsvue_type_template_id_517c34d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-menu-item',{staticClass:"special-characters",attrs:{"disabled":"","index":"style1"}},[_c('section',[_c('ul',[_c('li',[_c('header',[_vm._v("特殊字符")]),_c('p',{staticClass:"chars-list special-chars-list"},_vm._l((_vm.specialChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("罗马字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.romanChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("数学字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.mathChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)])])])])}
|
|
191221
193019
|
var SpecialCharsvue_type_template_id_517c34d3_scoped_true_staticRenderFns = []
|
|
191222
193020
|
|
|
@@ -191833,7 +193631,7 @@ ToolControl_ToolControls = __decorate([vue_class_component_esm({
|
|
|
191833
193631
|
}
|
|
191834
193632
|
})], ToolControl_ToolControls);
|
|
191835
193633
|
/* harmony default export */ var toolbar_ToolControl = (ToolControl_ToolControls);
|
|
191836
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
193634
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UpdateDocument.vue?vue&type=template&id=5fc69479&scoped=true&
|
|
191837
193635
|
var UpdateDocumentvue_type_template_id_5fc69479_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(
|
|
191838
193636
|
function () {
|
|
191839
193637
|
_vm.isDocumentShow = false;
|
|
@@ -191907,14 +193705,14 @@ var UpdateDocument_component = normalizeComponent(
|
|
|
191907
193705
|
)
|
|
191908
193706
|
|
|
191909
193707
|
/* harmony default export */ var components_UpdateDocument = (UpdateDocument_component.exports);
|
|
191910
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
193708
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/ToolTable.vue?vue&type=template&id=ce8f4528&
|
|
191911
193709
|
var ToolTablevue_type_template_id_ce8f4528_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-submenu',{attrs:{"popper-class":"insert-menus","index":"tables"}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("表格")])]),_c('el-submenu',{attrs:{"index":"insertTable","popper-append-to-body":true}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("插入表格")])]),_c('el-menu-item',{staticClass:"table-menus",attrs:{"index":"0"}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(" "+_vm._s(_vm.rows ? _vm.rows + " x " + _vm.columns : "插入")+" 表格 ")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)}),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v(" 自定义行列数 ")])],2)])],2),(_vm.isOpen)?_c('TableFeatures',{attrs:{"className":"insert-rows-columns-menu","vueController":_vm.vueController,"table":_vm.table},on:{"closeMenu":_vm.closeMenu}}):_vm._e(),_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"20%","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")]),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")])],1)],1)],2)}
|
|
191912
193710
|
var ToolTablevue_type_template_id_ce8f4528_staticRenderFns = []
|
|
191913
193711
|
|
|
191914
193712
|
|
|
191915
193713
|
// CONCATENATED MODULE: ./src/components/toolbar/ToolTable.vue?vue&type=template&id=ce8f4528&
|
|
191916
193714
|
|
|
191917
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
193715
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=1933c568&
|
|
191918
193716
|
var TableFeaturesvue_type_template_id_1933c568_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.className},[(_vm.table.insertRowAbove)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"disabled":"","index":"1"}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"insertTableRowsColumns"}},[_c('path',{attrs:{"d":"M1024 1024H0V384h1024v640zM171.2 127.8L0 256V0l171.2 127.8z m132.9 512.1V512H128l0.1 127.9h176z m0 256.1V767.9h-176L128 896h176.1zM1024 192H256V64h768v128zM592.1 639.9V512h-160v127.9h160z m0 256.1V767.9h-160V896h160z m304-256.1L896 512H720.1v127.9h176zM896 896l0.1-128.1h-176V896H896z"}})])]),_c('use',{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_c('div',{staticClass:"insert-rows-columns"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-rows-columns-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1)]):_vm._e(),(_vm.table.insertRowBelow)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"disabled":"","index":"2"}},[_c('svg',{staticStyle:{"transform":"rotateX(180deg)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_c('div',{staticClass:"insert-rows-columns"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-rows-columns-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1)]):_vm._e(),(_vm.table.insertColLeft)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"3","disabled":""}},[_c('svg',{staticStyle:{"transform":"rotateZ(270deg) rotateY(180deg)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_c('div',{staticClass:"insert-rows-columns"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-rows-columns-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1)]):_vm._e(),(_vm.table.insertColRight)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"4","disabled":""}},[_c('svg',{staticStyle:{"transform":"rotateZ(90deg)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_c('div',{staticClass:"insert-rows-columns"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-rows-columns-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1)]):_vm._e(),(_vm.table.deleteRows)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"5"}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","p-id":"27213","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),_c('path',{attrs:{"d":"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"6"}},[_c('svg',{staticStyle:{"transform":"rotateZ(90deg)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),_c('path',{attrs:{"d":"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"7"}},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"18","height":"16","viewBox":"0 0 18 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-3 -4)"}},[_c('path',{attrs:{"fill":"#F0F0F0","d":"M0,0 L24,0 L24,24 L0,24 L0,0 Z","opacity":"0"}}),_c('polyline',{attrs:{"fill":"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","points":"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952","transform":"matrix(-1 0 0 1 14 0)"}}),_c('polyline',{attrs:{"fill":"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","points":"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952"}}),_c('path',{attrs:{"stroke":"none","d":"M10.3652377,13.1421629 L8.12342591,13.1421629 L8.79597093,13.8610652 C9.03778436,14.1357021 9.02267185,14.5638117 8.76574414,14.8222945 C8.64483728,14.9353803 8.49370422,15 8.33501255,15 C8.17632235,15 8.01763215,14.9353796 7.8967247,14.8142158 L6.1889167,12.9886918 C6.06800984,12.859451 6,12.689822 6,12.5121164 C6,12.4232634 6.01511339,12.3344109 6.05289673,12.2455566 C6.08312352,12.1647811 6.12846356,12.0840053 6.18891699,12.0193853 L7.90427979,10.1938613 C8.02518665,10.0646205 8.18387744,10 8.3501239,10 C8.51637035,10 8.68261828,10.0726979 8.80352426,10.2019384 C8.92443112,10.3311791 8.9848847,10.5008082 8.9848847,10.6785137 C8.98488469,10.8562192 8.91687457,11.0258476 8.795968,11.155089 L8.19898995,11.7932157 L10.3652392,11.7932157 C10.7128461,11.7851381 11,12.0840068 11,12.4636523 C11,12.835216 10.7128446,13.1421629 10.3652377,13.1421629 Z","transform":"matrix(-1 0 0 1 17 0)"}}),_c('path',{attrs:{"stroke":"none","d":"M17.3652377,13.1421629 L15.1234259,13.1421629 L15.7959709,13.8610652 C16.0377844,14.1357021 16.0226718,14.5638117 15.7657441,14.8222945 C15.6448373,14.9353803 15.4937042,15 15.3350126,15 C15.1763223,15 15.0176321,14.9353796 14.8967247,14.8142158 L13.1889167,12.9886918 C13.0680098,12.859451 13,12.689822 13,12.5121164 C13,12.4232634 13.0151134,12.3344109 13.0528967,12.2455566 C13.0831235,12.1647811 13.1284636,12.0840053 13.188917,12.0193853 L14.9042798,10.1938613 C15.0251866,10.0646205 15.1838774,10 15.3501239,10 C15.5163704,10 15.6826183,10.0726979 15.8035243,10.2019384 C15.9244311,10.3311791 15.9848847,10.5008082 15.9848847,10.6785137 C15.9848847,10.8562192 15.9168746,11.0258476 15.795968,11.155089 L15.19899,11.7932157 L17.3652392,11.7932157 C17.7128461,11.7851381 18,12.0840068 18,12.4636523 C18,12.835216 17.7128446,13.1421629 17.3652377,13.1421629 Z"}})])]),_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('el-menu-item',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"mouse-menu-item",attrs:{"index":"8"}},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"18","height":"16","viewBox":"0 0 18 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-3 -4)"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('polyline',{attrs:{"fill":"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","points":"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952"}}),_c('polyline',{attrs:{"fill":"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","points":"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952","transform":"matrix(-1 0 0 1 34 0)"}}),_c('path',{attrs:{"stroke":"none","d":"M7.36523773,13.1421629 L5.12342591,13.1421629 L5.79597093,13.8610652 C6.03778436,14.1357021 6.02267185,14.5638117 5.76574414,14.8222945 C5.64483728,14.9353803 5.49370422,15 5.33501255,15 C5.17632235,15 5.01763215,14.9353796 4.8967247,14.8142158 L3.1889167,12.9886918 C3.06800984,12.859451 3,12.689822 3,12.5121164 C3,12.4232634 3.01511339,12.3344109 3.05289673,12.2455566 C3.08312352,12.1647811 3.12846356,12.0840053 3.18891699,12.0193853 L4.90427979,10.1938613 C5.02518665,10.0646205 5.18387744,10 5.3501239,10 C5.51637035,10 5.68261828,10.0726979 5.80352426,10.2019384 C5.92443112,10.3311791 5.9848847,10.5008082 5.9848847,10.6785137 C5.98488469,10.8562192 5.91687457,11.0258476 5.795968,11.155089 L5.19898995,11.7932157 L7.36523919,11.7932157 C7.71284609,11.7851381 8,12.0840068 8,12.4636523 C8,12.835216 7.71284463,13.1421629 7.36523773,13.1421629 Z"}}),_c('path',{attrs:{"stroke":"none","d":"M20.3652377,13.1421629 L18.1234259,13.1421629 L18.7959709,13.8610652 C19.0377844,14.1357021 19.0226718,14.5638117 18.7657441,14.8222945 C18.6448373,14.9353803 18.4937042,15 18.3350126,15 C18.1763223,15 18.0176321,14.9353796 17.8967247,14.8142158 L16.1889167,12.9886918 C16.0680098,12.859451 16,12.689822 16,12.5121164 C16,12.4232634 16.0151134,12.3344109 16.0528967,12.2455566 C16.0831235,12.1647811 16.1284636,12.0840053 16.188917,12.0193853 L17.9042798,10.1938613 C18.0251866,10.0646205 18.1838774,10 18.3501239,10 C18.5163704,10 18.6826183,10.0726979 18.8035243,10.2019384 C18.9244311,10.3311791 18.9848847,10.5008082 18.9848847,10.6785137 C18.9848847,10.8562192 18.9168746,11.0258476 18.795968,11.155089 L18.19899,11.7932157 L20.3652392,11.7932157 C20.7128461,11.7851381 21,12.0840068 21,12.4636523 C21,12.835216 20.7128446,13.1421629 20.3652377,13.1421629 Z","transform":"matrix(-1 0 0 1 37 0)"}})])]),_c('span',[_vm._v("取消合并单元格")])]):_vm._e(),_c('el-dialog',{attrs:{"title":"表格计算公式","width":"520px","visible":_vm.dialogFormVisible,"top":"20%","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle === "a3:a10" ? "求和公式" : "四则运算公式")+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle))]),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.formula),callback:function ($$v) {_vm.formula=$$v},expression:"formula"}})],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")])],1)])],1)}
|
|
191919
193717
|
var TableFeaturesvue_type_template_id_1933c568_staticRenderFns = []
|
|
191920
193718
|
|
|
@@ -192243,7 +194041,7 @@ var ToolTable_component = normalizeComponent(
|
|
|
192243
194041
|
)
|
|
192244
194042
|
|
|
192245
194043
|
/* harmony default export */ var toolbar_ToolTable = (ToolTable_component.exports);
|
|
192246
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
194044
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/PageSetting.vue?vue&type=template&id=122070b6&scoped=true&
|
|
192247
194045
|
var PageSettingvue_type_template_id_122070b6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal"},[_c('div',{ref:"pageSettingModal",class:_vm.animationClassNames,on:{"mousedown":_vm.toolModalDown}},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("页面设置")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('el-tabs',{model:{value:(_vm.textActiveName),callback:function ($$v) {_vm.textActiveName=$$v},expression:"textActiveName"}},[_c('el-tab-pane',{attrs:{"label":"页面设置","name":"first"}},[_c('div',{staticClass:"control-list"},[_c('fieldset',{staticClass:"control-item fieldset",staticStyle:{"margin":"0 10px 10px 10px"}},[_c('legend',[_vm._v("页边距 毫米")]),_c('ul',{staticClass:"page-spacing"},[_c('li',{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_c('div',{staticClass:"page-spacing-form"},[_c('span',{staticClass:"labels"},[_vm._v("上(T)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.topMarginMm),callback:function ($$v) {_vm.$set(_vm.property, "topMarginMm", $$v)},expression:"property.topMarginMm"}})],1),_c('div',{staticClass:"page-spacing-form"},[_c('span',{staticClass:"labels"},[_vm._v("左(L)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.leftMarginMm),callback:function ($$v) {_vm.$set(_vm.property, "leftMarginMm", $$v)},expression:"property.leftMarginMm"}})],1)]),_c('li',{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_c('div',{staticClass:"page-spacing-form"},[_c('span',{staticClass:"labels"},[_vm._v("下(B)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.bottomMarginMm),callback:function ($$v) {_vm.$set(_vm.property, "bottomMarginMm", $$v)},expression:"property.bottomMarginMm"}})],1),_c('div',{staticClass:"page-spacing-form"},[_c('span',{staticClass:"labels"},[_vm._v("右(R)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.rightMarginMm),callback:function ($$v) {_vm.$set(_vm.property, "rightMarginMm", $$v)},expression:"property.rightMarginMm"}})],1)])])]),_c('div',{staticClass:"print-settings"},[_c('fieldset',{staticClass:"fieldset print-direction-item"},[_c('legend',[_vm._v("打印方向")]),_c('div',{class:_vm.property.printDirection === 0 ? 'print-direction is-actived' : 'print-direction',on:{"click":function($event){return _vm.setPrintDirection(0)}}},[_c('div',[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"32","height":"32"}},[_c('path',{attrs:{"d":"M850.56 297.984l-254.336-233.088s-6.314667-7.637333-14.464-7.637333H211.968c-24.064 0-43.776 19.584-43.776 43.776v825.557333c0 24.064 19.584 43.776 43.776 43.776h600.021333c24.064 0 43.776-19.584 43.776-43.776V309.717333a16.213333 16.213333 0 0 0-5.205333-11.733333z m-252.757333-188.416l200.874666 184.149333-149.034666-0.085333a52.053333 52.053333 0 0 1-51.84-51.925333V109.568z m225.92 816.981333a11.733333 11.733333 0 0 1-11.733334 11.733334H211.882667a11.733333 11.733333 0 0 1-11.733334-11.733334V100.992c0-6.528 5.290667-11.733333 11.733334-11.733333h353.877333v152.405333c0 46.208 37.546667 83.84 83.754667 83.84l174.250666 0.213333v600.832z m0 0"}}),_c('path',{attrs:{"d":"M535.04 367.36h-46.08l-127.274667 334.037333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616L535.04 367.36z m-80.042667 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109334c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213334z"}})])]),_c('p',[_vm._v("纵向(P)")])]),_c('div',{class:_vm.property.printDirection === 1 ? 'print-direction is-actived' : 'print-direction',on:{"click":function($event){return _vm.setPrintDirection(1)}}},[_c('div',[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"32","height":"32"}},[_c('path',{attrs:{"d":"M296.192 175.189333l-233.088 254.336s-7.637333 6.314667-7.637333 14.464v369.792c0 24.064 19.584 43.776 43.776 43.776h825.557333c24.064 0 43.776-19.584 43.776-43.776V213.76c0-24.064-19.584-43.776-43.776-43.776H307.925333a16.384 16.384 0 0 0-11.733333 5.205333z m-188.416 252.8l184.149333-200.874666-0.128 149.034666a52.053333 52.053333 0 0 1-51.925333 51.84H107.776z m817.024-225.962666c6.528 0 11.733333 5.290667 11.733333 11.733333v600.149333a11.733333 11.733333 0 0 1-11.733333 11.733334H99.2a11.733333 11.733333 0 0 1-11.733333-11.733334v-353.877333h152.405333c46.208 0 83.84-37.546667 83.84-83.754667l0.213333-174.250666h600.874667z m0 0"}}),_c('path',{attrs:{"d":"M555.648 346.752h-46.08L382.293333 680.789333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616l-127.189333-334.037333z m-80.085333 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109333c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213333z"}})])]),_c('p',[_vm._v("横向(P)")])])]),_c('div',{staticClass:"control-item",staticStyle:{"padding":"0","margin-left":"10px"}},[_c('fieldset',{staticClass:"fieldset",staticStyle:{"width":"250px","padding":"0 10px","margin":"0"}},[_c('legend',[_vm._v("纸张 毫米")]),_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"64px"}},[_vm._v("大小(Z)")]),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"size":"mini","placeholder":"请选择纸张大小"},on:{"change":function($event){return _vm.setPrintDirection(_vm.property.printDirection)}},model:{value:(_vm.property.pageSize),callback:function ($$v) {_vm.$set(_vm.property, "pageSize", $$v)},expression:"property.pageSize"}},_vm._l((_vm.paperStyle),function(style,index){return _c('el-option',{key:index,attrs:{"label":style[0],"value":style[0]}})}),1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"64px"}},[_vm._v("来源(S)")]),_c('el-select',{staticStyle:{"width":"100%"},attrs:{"size":"mini","placeholder":"请选择来源"},model:{value:(_vm.property.source),callback:function ($$v) {_vm.$set(_vm.property, "source", $$v)},expression:"property.source"}},[_c('el-option',{attrs:{"label":"自动选择","value":"0"}})],1)],1),_c('li',{staticClass:"control-item paper-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"64px"}},[_vm._v("宽度(W)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"disabled":"","controls":false,"size":"mini","step":1,"min":0},model:{value:(_vm.property.widthMm),callback:function ($$v) {_vm.$set(_vm.property, "widthMm", $$v)},expression:"property.widthMm"}})],1),_c('li',{staticClass:"control-item paper-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"64px"}},[_vm._v("高度(H)")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"disabled":"","controls":false,"size":"mini","step":1,"min":0},model:{value:(_vm.property.heightMm),callback:function ($$v) {_vm.$set(_vm.property, "heightMm", $$v)},expression:"property.heightMm"}})],1)])]),_c('fieldset',{staticClass:"fieldset",staticStyle:{"width":"250px","padding":"0 10px 10px"}},[_c('legend',[_vm._v("边框")]),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"64px"}},[_vm._v("边框颜色")]),_c('el-color-picker',{attrs:{"size":"mini"},model:{value:(_vm.property.borderColor),callback:function ($$v) {_vm.$set(_vm.property, "borderColor", $$v)},expression:"property.borderColor"}})],1),_c('PrintLineStyle',{attrs:{"labelWidth":"64px","defaultStyle":_vm.property.paintRowLine,"placeholder":"绘制行线"},on:{"change":_vm.printStyleChange}})],1)])])])]),_c('el-tab-pane',{attrs:{"label":"页眉页脚","name":"second"}},[_c('fieldset',{staticClass:"control-item fieldset page-header",staticStyle:{"padding":"0 10px 10px"}},[_c('legend',[_vm._v("页眉 毫米")]),_c('div',{staticClass:"control-item"},[_vm._v("距页边界:")]),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"138px","padding-left":"54px"}},[_vm._v("至页眉(H):")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.headerYMm),callback:function ($$v) {_vm.$set(_vm.property, "headerYMm", $$v)},expression:"property.headerYMm"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"138px"}}),_c('el-checkbox',{model:{value:(_vm.property.showFirstPageHead),callback:function ($$v) {_vm.$set(_vm.property, "showFirstPageHead", $$v)},expression:"property.showFirstPageHead"}},[_vm._v("显示-第一页的页眉(H)")])],1)]),_c('fieldset',{staticClass:"control-item fieldset page-header",staticStyle:{"padding":"0 10px 10px"}},[_c('legend',[_vm._v("页脚 毫米")]),_c('div',{staticClass:"control-item"},[_vm._v("距页边界:")]),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"138px","padding-left":"54px"}},[_vm._v("至页脚(F):")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.footerYMm),callback:function ($$v) {_vm.$set(_vm.property, "footerYMm", $$v)},expression:"property.footerYMm"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"138px"}}),_c('el-checkbox',{model:{value:(_vm.property.showFirstPageFoot),callback:function ($$v) {_vm.$set(_vm.property, "showFirstPageFoot", $$v)},expression:"property.showFirstPageFoot"}},[_vm._v("显示-第一页的页脚(F)")])],1)]),_c('fieldset',{staticClass:"control-item fieldset page-header",staticStyle:{"padding":"0 10px 10px"}},[_c('legend',[_vm._v("页数")]),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"138px"}},[_vm._v("从第几页开始(S):")]),_c('el-input-number',{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right","size":"mini","step":1,"min":0},model:{value:(_vm.property.pageNumber),callback:function ($$v) {_vm.$set(_vm.property, "pageNumber", $$v)},expression:"property.pageNumber"}})],1)])])],1)],1),_c('footer',{staticClass:"modal-footer"},[_c('el-button',{attrs:{"size":"mini","type":"primary"},on:{"click":_vm.sureSetPageing}},[_vm._v("确定")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])])}
|
|
192248
194046
|
var PageSettingvue_type_template_id_122070b6_scoped_true_staticRenderFns = []
|
|
192249
194047
|
|
|
@@ -192508,7 +194306,7 @@ var PageSetting_component = normalizeComponent(
|
|
|
192508
194306
|
)
|
|
192509
194307
|
|
|
192510
194308
|
/* harmony default export */ var toolbar_PageSetting = (PageSetting_component.exports);
|
|
192511
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
194309
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/UploadFile.vue?vue&type=template&id=4361e817&
|
|
192512
194310
|
var UploadFilevue_type_template_id_4361e817_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-upload',{staticClass:"upload-image",attrs:{"action":"","accept":".xml","multiple":false,"show-file-list":false,"auto-upload":false,"file-list":_vm.fileList,"on-change":_vm.uploadFiles}},[_c('span',{attrs:{"size":"small"}},[_vm._v("打开文件")])])}
|
|
192513
194311
|
var UploadFilevue_type_template_id_4361e817_staticRenderFns = []
|
|
192514
194312
|
|
|
@@ -193276,14 +195074,14 @@ ToolBarChild_ToolBarChild = __decorate([vue_class_component_esm({
|
|
|
193276
195074
|
}
|
|
193277
195075
|
})], ToolBarChild_ToolBarChild);
|
|
193278
195076
|
/* harmony default export */ var toolbar_ToolBarChild = (ToolBarChild_ToolBarChild);
|
|
193279
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195077
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=7e6ad890&
|
|
193280
195078
|
var ToolControlvue_type_template_id_7e6ad890_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"sub-bar"},[_vm._t("insertBefore"),(_vm.insert.delimiter)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('delimiter')}}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M535.630769 606.523077c55.138462 55.138462 106.338462 110.276923 161.476923 165.415385 23.630769 23.630769-11.815385 55.138462-35.446154 35.446154-47.261538-47.261538-94.523077-98.461538-141.784615-145.723077-47.261538 51.2-98.461538 98.461538-145.723077 149.661538-23.630769 23.630769-59.076923-11.815385-35.446154-35.446154 55.138462-55.138462 110.276923-110.276923 165.415385-165.415385C508.061538 598.646154 527.753846 598.646154 535.630769 606.523077z"}}),_c('path',{attrs:{"d":"M500.184615 417.476923c-55.138462-55.138462-110.276923-110.276923-165.415385-165.415385C311.138462 228.430769 346.584615 192.984615 370.215385 216.615385c47.261538 51.2 98.461538 98.461538 145.723077 149.661538 47.261538-47.261538 94.523077-98.461538 141.784615-145.723077 23.630769-23.630769 59.076923 11.815385 35.446154 35.446154-55.138462 55.138462-106.338462 110.276923-161.476923 165.415385C527.753846 425.353846 508.061538 425.353846 500.184615 417.476923z"}}),_c('path',{attrs:{"d":"M1024 515.938462c0 11.815385-27.569231 23.630769-63.015385 23.630769l-894.030769 0c-35.446154 0-63.015385-11.815385-63.015385-23.630769l0 0c0-11.815385 27.569231-23.630769 63.015385-23.630769l894.030769 0C996.430769 492.307692 1024 504.123077 1024 515.938462L1024 515.938462z"}})]),_c('span',[_vm._v("分割符")])]):_vm._e(),(_vm.insert.uploadImage)?_c('li',{staticClass:"sub-bar-items"},[_c('el-upload',{ref:"upload",staticClass:"upload-image",attrs:{"action":"","file-list":_vm.fileList,"show-file-list":false,"auto-upload":false,"on-change":_vm.uploadImage,"accept":"image/*"}},[_c('svg',{staticStyle:{"transform":"translateY(3px)"},attrs:{"width":"16","height":"16","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('g',{attrs:{"transform":"translate(1 1)"}},[_c('path',{attrs:{"stroke":"none","d":"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),_c('circle',{attrs:{"stroke":"none","cx":"10","cy":"4","r":"1"}}),_c('path',{attrs:{"stroke":"none","d":"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),_c('span',{attrs:{"size":"small"}},[_vm._v("图片")])])],1):_vm._e(),(_vm.insert.barcode)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('barcode')}}},[_c('svg',{staticStyle:{"transform":"translateY(5px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('path',{attrs:{"d":"M65.7 158.7h134v703h-134zM703.3 158.7h134v703h-134zM263.4 158.7h57.4v703h-57.4zM901 158.7h57.4v703H901zM572.6 158.7h76.6v703h-76.6zM394.1 158.7H509v703H394.1z"}})]),_c('span',[_vm._v("条形码")])]):_vm._e(),(_vm.insert.qrcode)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('qrcode')}}},[_c('svg',{staticStyle:{"transform":"translateY(6px)"},attrs:{"viewBox":"0 0 1041 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"13"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('path',{attrs:{"d":"M948.906667 931.84h92.16V1024h-92.16zM948.906667 559.786667v184.32H853.333333v-184.32H576.853333V1024h92.16V651.946667h92.16v184.32h279.893334v-276.48z"}}),_c('path',{attrs:{"d":"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),_c('path',{attrs:{"d":"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),_c('path',{attrs:{"d":"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),_c('path',{attrs:{"d":"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),_c('span',[_vm._v("二维码")])]):_vm._e(),(_vm.insert.express)?_c('li',{staticClass:"sub-bar-items"},[_c('HoMedicalExpression',{on:{"openExpress":_vm.openExpress}})],1):_vm._e(),(_vm.insert.datetime)?_c('li',{staticClass:"sub-bar-items"},[_c('HoDateTime',{attrs:{"vueController":_vm.vueController},on:{"setModal":_vm.createControl}})],1):_vm._e(),(_vm.insert.select)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('select')}}},[_c('svg',{attrs:{"viewBox":"0 0 1573 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M890.432646 976.724088l649.322886-750.693969A136.987951 136.987951 0 0 0 1435.64469 0H136.998917a136.987951 136.987951 0 0 0-104.110842 226.030119l649.322886 749.32409a136.987951 136.987951 0 0 0 208.221685 1.369879z"}})]),_c('span',[_vm._v("下拉框")])]):_vm._e(),(_vm.insert.text)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('text')}}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('path',{attrs:{"d":"M34.909091 474.763636c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818zM51.2 279.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 4.654545 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m921.6-316.509091c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m16.290909-300.218182c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 6.981818 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m-481.745455 165.236364H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727272 0h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m211.781818 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-9.309091-16.290909-16.290909-16.290909z m-318.836364 0H230.4c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727273-11.636364H109.381818V930.909091c0-9.309091-6.981818-18.618182-18.618182-18.618182H65.163636v-53.527273c0-9.309091-6.981818-18.618182-16.290909-18.618181-9.309091 0-16.290909 6.981818-16.290909 18.618181v53.527273H18.618182c-9.309091 0-18.618182 6.981818-18.618182 18.618182v74.472727c0 9.309091 6.981818 18.618182 18.618182 18.618182H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182v-16.290909h48.872727c9.309091-2.327273 18.618182-11.636364 18.618182-18.618182-2.327273-11.636364-20.945455-25.6-20.945455-25.6z m528.29091 11.636364h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m104.727272 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909zM442.181818 65.163636h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m-104.727273 0h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m209.454546 0H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909-2.327273 6.981818 6.981818 16.290909 13.963636 16.290909z m-316.509091 0h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H230.4c-9.309091 0-16.290909 6.981818-16.290909 18.618182 0 6.981818 6.981818 13.963636 16.290909 13.963636zM158.254545 32.581818H109.381818V18.618182c0-11.636364-9.309091-18.618182-18.618182-18.618182H18.618182C9.309091 0 0 6.981818 0 18.618182V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h16.290909v48.872727c2.327273 9.309091 11.636364 18.618182 18.618182 18.618182 9.309091 0 23.272727-18.618182 23.272727-18.618182V109.381818H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182V65.163636h48.872727c9.309091 0 16.290909-6.981818 16.290909-16.290909-2.327273-9.309091-9.309091-16.290909-18.618182-16.290909z m495.709091 32.581818h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m104.727273 0H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909zM1005.381818 0H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v16.290909h-48.872727c-9.309091 2.327273-18.618182 11.636364-18.618182 18.618182 0 9.309091 18.618182 23.272727 18.618182 23.272727h48.872727V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h25.6v53.527273c0 9.309091 6.981818 18.618182 16.290909 18.618181 9.309091 0 16.290909-6.981818 16.290909-18.618181V109.381818h16.290909c9.309091 0 18.618182-6.981818 18.618182-18.618182V18.618182c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 912.290909h-16.290909v-48.872727c-2.327273-9.309091-11.636364-18.618182-18.618182-18.618182-9.309091 0-23.272727 18.618182-23.272727 18.618182v48.872727H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v25.6h-48.872727c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h48.872727v16.290909c0 9.309091 6.981818 18.618182 18.618182 18.618182h74.472727c9.309091 0 18.618182-6.981818 18.618182-18.618182V930.909091c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 0"}}),_c('path',{attrs:{"d":"M781.963636 288.581818c0-11.636364 0-20.945455 2.327273-30.254545 0-9.309091 2.327273-16.290909 2.327273-25.6 0-11.636364-6.981818-20.945455-18.618182-23.272728-6.981818-2.327273-18.618182-2.327273-30.254545-2.327272H288.581818c-11.636364 0-20.945455 2.327273-30.254545 4.654545-18.618182 4.654545-20.945455 18.618182-20.945455 25.6 2.327273 20.945455 4.654545 41.890909 4.654546 62.836364 0 20.945455-2.327273 41.890909-4.654546 62.836363 0 4.654545 0 9.309091 9.309091 16.29091 4.654545 2.327273 9.309091 4.654545 13.963636 4.654545 4.654545 0 9.309091 0 13.963637-2.327273 6.981818-2.327273 11.636364-9.309091 13.963636-16.290909 4.654545-20.945455 9.309091-39.563636 13.963637-53.527273 4.654545-11.636364 11.636364-20.945455 18.618181-27.927272 6.981818-6.981818 16.290909-11.636364 27.927273-13.963637 11.636364-2.327273 27.927273-4.654545 48.872727-4.654545 27.927273 0 41.890909 4.654545 46.545455 6.981818 6.981818 4.654545 9.309091 18.618182 9.309091 27.927273v372.363636c0 18.618182 0 30.254545-2.327273 41.890909-2.327273 6.981818-4.654545 13.963636-9.309091 18.618182-4.654545 4.654545-11.636364 6.981818-18.618182 9.309091-9.309091 2.327273-23.272727 4.654545-39.563636 6.981818-6.981818 0-11.636364 4.654545-16.290909 11.636364-2.327273 4.654545-4.654545 9.309091-4.654546 16.290909 0 4.654545 2.327273 11.636364 4.654546 16.290909 4.654545 6.981818 9.309091 9.309091 18.618182 9.309091 18.618182 0 39.563636 0 62.836363-2.327273 44.218182-4.654545 83.781818-4.654545 123.345455 0 20.945455 2.327273 41.890909 2.327273 65.163636 2.327273 6.981818 0 13.963636-2.327273 18.618182-9.309091 2.327273-4.654545 4.654545-9.309091 4.654546-16.290909 0-4.654545-2.327273-11.636364-4.654546-16.290909-4.654545-11.636364-9.309091-16.290909-18.618182-16.290909-16.290909-2.327273-30.254545-4.654545-41.890909-6.981818-9.309091-2.327273-13.963636-4.654545-18.618182-9.309091-4.654545-4.654545-6.981818-9.309091-6.981818-16.290909-2.327273-9.309091-2.327273-23.272727-2.327273-41.89091v-372.363636c0-16.290909 2.327273-25.6 9.309091-27.927273 6.981818-2.327273 20.945455-6.981818 48.872728-6.981818 16.290909 0 32.581818 2.327273 44.218181 4.654546s20.945455 6.981818 27.927273 13.963636c6.981818 6.981818 13.963636 16.290909 18.618182 27.927273 4.654545 13.963636 9.309091 30.254545 11.636364 53.527272 2.327273 6.981818 6.981818 13.963636 13.963636 16.29091 4.654545 2.327273 9.309091 2.327273 13.963636 2.327272 4.654545 0 9.309091-2.327273 13.963637-4.654545 6.981818-4.654545 9.309091-11.636364 9.309091-16.290909 0-11.636364-2.327273-23.272727-2.327273-34.909091 4.654545-13.963636 4.654545-25.6 4.654545-37.236364z"}})]),_c('span',[_vm._v("文本域")])]):_vm._e(),(_vm.insert.radioBox)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('RadioBox')}}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M511.262 3.070c-282.949 0-507.681 227.919-507.681 509.095 0 281.143 227.919 509.092 509.063 509.092 281.175 0 509.095-227.948 509.095-509.092 0-281.175-227.527-509.095-510.477-509.095zM513.578 926.348c-230.265 0-416.953-186.688-416.953-416.951 0-230.292 186.688-416.98 416.953-416.98 230.293 0 416.951 186.689 416.951 416.98 0 230.265-186.658 416.951-416.951 416.951zM820.797 327.158c-17.682-18.585-46.313-18.585-63.99 0l-292.576 307.665-167.863-156.253c-17.683-18.553-46.311-18.553-63.995 0-17.653 18.587-17.653 48.719 0 67.303l195.65 182.058c16.923 17.817 43.956 18.539 61.716 2.196 8.935-1.589 17.508-5.991 24.41-13.234l306.649-322.463c17.653-18.583 17.653-48.685 0.002-67.27z"}})]),_c('span',[_vm._v("单选框")])]):_vm._e(),(_vm.insert.checkBox)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('CheckBox')}}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M877.714286 0H146.285714a146.285714 146.285714 0 0 0-146.285714 146.285714v731.428572a146.285714 146.285714 0 0 0 146.285714 146.285714h731.428572a146.285714 146.285714 0 0 0 146.285714-146.285714V146.285714a146.285714 146.285714 0 0 0-146.285714-146.285714z m73.142857 877.714286a73.142857 73.142857 0 0 1-73.142857 73.142857H146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857V146.285714a73.142857 73.142857 0 0 1 73.142857-73.142857h731.428572a73.142857 73.142857 0 0 1 73.142857 73.142857z"}}),_c('path',{attrs:{"d":"M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"}})]),_c('span',[_vm._v("复选框")])]):_vm._e(),(_vm.insert.mathFormula)?_c('li',{staticClass:"sub-bar-items"},[_c('HoFormula',{attrs:{"vueController":_vm.vueController}})],1):_vm._e(),(_vm.insert.sign)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('sign')}}},[_c('span',[_vm._v("签名")])]):_vm._e(),(_vm.insert.pageInfoes)?_c('li',{staticClass:"sub-bar-items",on:{"click":function($event){return _vm.createControl('pageInfoes')}}},[_c('svg',{attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"}})]),_c('span',[_vm._v("页码页数信息")])]):_vm._e(),_vm._t("hoInsertItem"),(_vm.insert.specialChars)?_c('li',{staticClass:"sub-bar-items"},[_c('HoSpecialChars',{attrs:{"vueController":_vm.vueController}})],1):_vm._e()],2)}
|
|
193281
195079
|
var ToolControlvue_type_template_id_7e6ad890_staticRenderFns = []
|
|
193282
195080
|
|
|
193283
195081
|
|
|
193284
195082
|
// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=7e6ad890&
|
|
193285
195083
|
|
|
193286
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195084
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=5e83305f&scoped=true&
|
|
193287
195085
|
var HoMedicalExpressionvue_type_template_id_5e83305f_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange,"command":_vm.selectedSure}},[_c('span',{staticClass:"el-dropdown-link"},[_c('svg',{staticStyle:{"transform":"translateY(0px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('path',{attrs:{"d":"M921.6 448.884364h89.6c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8h-102.4c-6.423273 0-19.176727 6.423273-19.176727 12.8l-108.823273 115.060364c-6.376727 6.330182-12.8 6.330182-12.8 0l-57.576727-115.060364c-6.423273-6.376727-12.8-12.8-19.223273-12.8h-166.4a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.423273 12.753455 12.8 12.753455h102.4c6.423273 0 12.8 6.376727 19.176727 12.8l38.4 83.083636v19.130182l-115.2 134.190545c-6.376727 0-12.753455 6.423273-19.176727 6.423273H460.8c-6.376727 0-12.8 6.376727-12.8 12.753455v102.260363c0 6.376727 6.423273 12.8 12.8 12.8h102.4c6.376727 0 19.176727-6.423273 19.176727-12.8l147.223273-166.167273c6.423273-6.376727 12.8-6.376727 12.8 0l83.176727 166.167273c0 6.376727 12.8 12.8 19.223273 12.8h102.4a13.777455 13.777455 0 0 0 12.8-12.8V717.265455a13.777455 13.777455 0 0 0-12.8-12.753455h-38.4c-6.423273 0-12.8-6.423273-19.176727-12.8l-64.046546-127.813818v-19.130182l76.8-83.083636c6.423273-6.423273 12.846545-12.8 19.223273-12.8zM377.623273 65.489455c-32.023273 25.6-64.046545 63.906909-83.223273 127.813818l-31.976727 127.767272H76.8a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.376727 12.753455 12.8 12.753455h153.6l-96.023273 383.441454c-19.176727 76.660364-70.376727 63.860364-70.376727 63.860364H0V1024h64c51.2 0 102.4-6.376727 128-38.353455 32.023273-31.930182 51.2-89.460364 64-153.320727l96.023273-383.441454h147.176727c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8H384l32.023273-121.390545c6.376727-19.130182 38.4-51.106909 57.576727-63.906909 70.376727-51.106909 166.4-19.176727 230.4-6.376727V20.759273c-64-12.753455-204.8-57.483636-326.376727 44.683636v0.046546z"}})]),_c('span',[_vm._v("医学表达式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{attrs:{"command":"style1"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"43","y":"13"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"43","y":"55"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"83","y":"33"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 40 30 L 80 30"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style2"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"15","y":"20"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"70","y":"20"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"15","y":"50"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"70","y":"50"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 10 30 L 120 30"}}),_c('path',{attrs:{"d":"M 60 0 L 60 60"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style3"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"43","y":"13"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"43","y":"55"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"83","y":"33"}},[_vm._v("Value4")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 15 5 L 110 55"}}),_c('path',{attrs:{"d":"M 15 55 L 110 5"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style4"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"33"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"70","y":"20"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"70","y":"50"}},[_vm._v("Value3")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 62 30 L 110 30"}}),_c('path',{attrs:{"d":"M 45 45 L 55 15"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style5"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"25"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"80","y":"25"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"0","y":"40"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"40","y":"40"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"80","y":"40"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"0","y":"55"}},[_vm._v("Value6")]),_c('text',{attrs:{"x":"80","y":"55"}},[_vm._v("Value7")])])])]),_c('el-dropdown-item',{attrs:{"command":"style6"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"0","y":"25"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"0","y":"40"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"0","y":"55"}},[_vm._v("Value7")]),_c('text',{attrs:{"x":"40","y":"25"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"40","y":"40"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"40","y":"55"}},[_vm._v("Value8")]),_c('text',{attrs:{"x":"80","y":"25"}},[_vm._v("Value3")]),_c('text',{attrs:{"x":"80","y":"40"}},[_vm._v("Value6")]),_c('text',{attrs:{"x":"80","y":"55"}},[_vm._v("Value9")])])])]),_c('el-dropdown-item',{attrs:{"command":"style7"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"12","y":"15"}},[_vm._v("Value1")]),_c('text',{attrs:{"x":"12","y":"35"}},[_vm._v("Value4")]),_c('text',{attrs:{"x":"12","y":"55"}},[_vm._v("Value7")]),_c('text',{attrs:{"x":"70","y":"15"}},[_vm._v("Value2")]),_c('text',{attrs:{"x":"70","y":"35"}},[_vm._v("Value5")]),_c('text',{attrs:{"x":"70","y":"55"}},[_vm._v("Value8")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 0 30 L 10 30"}}),_c('path',{attrs:{"d":"M 52 30 L 67 30"}}),_c('path',{attrs:{"d":"M 110 30 L 120 30"}}),_c('path',{attrs:{"d":"M 60 0 L 60 60"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style8"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"3","y":"23"}},[_vm._v("87654321")]),_c('text',{attrs:{"x":"63","y":"23"}},[_vm._v("12345678")]),_c('text',{attrs:{"x":"3","y":"47"}},[_vm._v("87654321")]),_c('text',{attrs:{"x":"63","y":"47"}},[_vm._v("12345678")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 2 30 L 118 30"}}),_c('path',{attrs:{"d":"M 60 10 L 60 50"}})])])]),_c('el-dropdown-item',{attrs:{"command":"style9"}},[_c('svg',{attrs:{"version":"1.1","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 120 60"}},[_c('g',{attrs:{"stroke":"none","fill":"#000000"}},[_c('text',{attrs:{"x":"3","y":"23"}},[_vm._v("V IV III II I")]),_c('text',{attrs:{"x":"63","y":"23"}},[_vm._v("I II III IV V")]),_c('text',{attrs:{"x":"3","y":"47"}},[_vm._v("V IV III II I")]),_c('text',{attrs:{"x":"63","y":"47"}},[_vm._v("I II III IV V")])]),_c('g',{attrs:{"fill":"none","stroke":"#000000"}},[_c('path',{attrs:{"d":"M 2 30 L 118 30"}}),_c('path',{attrs:{"d":"M 60 10 L 60 50"}})])])])],1)],1)}
|
|
193288
195086
|
var HoMedicalExpressionvue_type_template_id_5e83305f_scoped_true_staticRenderFns = []
|
|
193289
195087
|
|
|
@@ -193388,7 +195186,7 @@ var HoMedicalExpression_component = normalizeComponent(
|
|
|
193388
195186
|
)
|
|
193389
195187
|
|
|
193390
195188
|
/* harmony default export */ var insert_HoMedicalExpression = (HoMedicalExpression_component.exports);
|
|
193391
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195189
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=template&id=18ad3397&scoped=true&
|
|
193392
195190
|
var HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('svg',{staticStyle:{"transform":"translateY(0px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M825.163595 883.651765H416.226184v-10.842353c62.162824-39.996235 99.629176-117.157647 99.629176-211.727059 0-32.768-4.999529-64.813176-12.047059-95.232H727.642654a18.432 18.432 0 0 0 18.130824-18.672941V477.605647a18.432 18.432 0 0 0-18.130824-18.612706h-254.192941c-16.263529-52.525176-30.358588-106.194824-30.358588-163.84 0-101.074824 77.101176-163.117176 198.053647-163.117176 48.790588 0 96.496941 9.517176 137.095529 24.395294 11.806118 4.457412 24.094118-4.638118 24.094118-17.648941V46.983529a18.853647 18.853647 0 0 0-11.866353-17.468235A448.752941 448.752941 0 0 0 630.904772 0c-210.823529 0-343.762824 103.424-343.762824 279.491765 0 61.138824 15.661176 120.892235 33.129412 179.2H198.776772A18.432 18.432 0 0 0 180.706184 477.304471V546.936471c0 10.24 8.192 18.612706 18.130823 18.612705H351.172066c7.710118 34.153412 13.372235 68.306824 13.372235 102.701177 0 105.050353-65.355294 193.536-165.165176 218.895059a18.552471 18.552471 0 0 0-13.854118 18.070588v89.509647c0 10.24 8.192 18.612706 18.130824 18.612706H825.223831a18.432 18.432 0 0 0 18.130823-18.672941V902.324706a18.432 18.432 0 0 0-18.130823-18.672941z"}})]),_c('span',[_vm._v("特殊字符")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{staticClass:"special-characters",attrs:{"disabled":""}},[_c('section',[_c('ul',[_c('li',[_c('header',[_vm._v("特殊字符")]),_c('p',{staticClass:"chars-list special-chars-list"},_vm._l((_vm.specialChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("罗马字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.romanChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("数学字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.mathChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)])])])])],1)],1)}
|
|
193393
195191
|
var HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_staticRenderFns = []
|
|
193394
195192
|
|
|
@@ -193493,7 +195291,7 @@ var HoSpecialChars_component = normalizeComponent(
|
|
|
193493
195291
|
)
|
|
193494
195292
|
|
|
193495
195293
|
/* harmony default export */ var insert_HoSpecialChars = (HoSpecialChars_component.exports);
|
|
193496
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195294
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/HoDateTime.vue?vue&type=template&id=07b294c6&
|
|
193497
195295
|
var HoDateTimevue_type_template_id_07b294c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('svg',{staticStyle:{"transform":"translateY(0px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('rect',{attrs:{"width":"24","height":"24","fill":"#F0F0F0","opacity":"0"}}),_c('path',{attrs:{"d":"M3.323286 405.074141v577.095823c0 23.005753 18.822889 41.828641 41.828641 41.828642h933.696146c23.005753 0 41.828641-18.822889 41.828641-41.828642v-577.095823H3.323286z m295.734072 386.159229h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m283.110188 145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m249.973539 145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761m0-145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761M293.55968 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525786 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525786 42.525786M719.447753 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525785 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525785 42.525786","p-id":"2003"}}),_c('path',{attrs:{"d":"M978.848073 101.085884H787.767867v86.797219c0 37.730829-30.587891 68.320114-68.320114 68.320114s-68.320114-30.589285-68.320114-68.320114V101.085884H361.879794v86.797219c0 37.730829-30.589285 68.320114-68.320114 68.320114-37.732223 0-68.320114-30.589285-68.320114-68.320114V101.085884H45.151927c-23.005753 0-41.828641 18.822889-41.828641 41.828641v206.388094h1017.353428V142.914525c0-23.005753-18.822889-41.828641-41.828641-41.828641"}})]),_c('span',[_vm._v("日期时间")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_vm._l((_vm.dateFormatValue),function(value,index){return _c('el-dropdown-item',{key:value + index,staticClass:"date-time-item",attrs:{"index":_vm.dateFormatList[index]},nativeOn:{"click":function($event){return _vm.selectedDate(_vm.dateFormatList[index], value)}}},[_vm._v(_vm._s(value))])}),_c('el-dropdown-item',{staticClass:"date-time-item",nativeOn:{"click":function($event){return _vm.selectedDate('more', '')}}},[_vm._v("更多日期属性")])],2)],1)}
|
|
193498
195296
|
var HoDateTimevue_type_template_id_07b294c6_staticRenderFns = []
|
|
193499
195297
|
|
|
@@ -193597,7 +195395,7 @@ var HoDateTime_component = normalizeComponent(
|
|
|
193597
195395
|
)
|
|
193598
195396
|
|
|
193599
195397
|
/* harmony default export */ var insert_HoDateTime = (HoDateTime_component.exports);
|
|
193600
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195398
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/hoformula/HoFormula.vue?vue&type=template&id=7a3a4d1e&
|
|
193601
195399
|
var HoFormulavue_type_template_id_7a3a4d1e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('span',{on:{"click":_vm.insertFormula}},[_vm._v("插入公式")]),_c('el-dialog',{staticClass:"ho-formula-iframe",attrs:{"title":"公式编辑","width":"868px","visible":_vm.createFormula,"close-on-click-modal":false,"top":"10%","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.createFormula=$event},"before-close":_vm.closeFormula}},[_c('section',[_c('div',{staticClass:"kf-editor",attrs:{"id":"HoKfEditorContainer"}}),(_vm.kityformulaError)?_c('p',[_vm._v(_vm._s(_vm.kityformulaError))]):_vm._e()]),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{staticClass:"right",attrs:{"id":"kityformula-btn"},on:{"click":_vm.sureInsertKityFormula}},[_vm._v("确认插入")]),_c('el-button',{staticClass:"right",attrs:{"id":"kityformula-btn"},on:{"click":_vm.closeFormula}},[_vm._v("取消")])],1)])],1)}
|
|
193602
195400
|
var HoFormulavue_type_template_id_7a3a4d1e_staticRenderFns = []
|
|
193603
195401
|
|
|
@@ -193955,14 +195753,14 @@ var ToolControl_component = normalizeComponent(
|
|
|
193955
195753
|
)
|
|
193956
195754
|
|
|
193957
195755
|
/* harmony default export */ var insert_ToolControl = (ToolControl_component.exports);
|
|
193958
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195756
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=4827e7f1&
|
|
193959
195757
|
var ToolTablevue_type_template_id_4827e7f1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"sub-bar table-bar"},[_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"20%","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)],1),_vm._t("insertBefore"),(_vm.table.insertTable)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("插入表格")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{staticClass:"ho-insert-table-item",attrs:{"disabled":""}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(_vm._s(_vm.rows ? _vm.rows + " x " + _vm.columns : "插入")+" 表格")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)})],2),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v("自定义行列数")])])],1)],1)],1):_vm._e(),_c('HoTableFeatures',{attrs:{"vueController":_vm.vueController,"dropdownClassName":_vm.dropdownClassName,"table":_vm.table}}),_vm._t("hoTableItem")],2)}
|
|
193960
195758
|
var ToolTablevue_type_template_id_4827e7f1_staticRenderFns = []
|
|
193961
195759
|
|
|
193962
195760
|
|
|
193963
195761
|
// CONCATENATED MODULE: ./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=4827e7f1&
|
|
193964
195762
|
|
|
193965
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
195763
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=193194ae&
|
|
193966
195764
|
var HoTableFeaturesvue_type_template_id_193194ae_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"title":"表格计算公式","width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle === "sum(a3:a10)" ? "求和公式" : "四则运算公式")+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle))]),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.formula),callback:function ($$v) {_vm.formula=$$v},expression:"formula"}})],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? "隐藏" : "显示")+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.selectedFormula1),expression:"selectedFormula1",arg:"30",modifiers:{"click":true}}],attrs:{"index":"tableFormula1"}},[_vm._v("a1:a3")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.selectedFormula2),expression:"selectedFormula2",arg:"30",modifiers:{"click":true}}],attrs:{"index":"tableFormula2"}},[_vm._v("(a1 + a20) * 2")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
193967
195765
|
var HoTableFeaturesvue_type_template_id_193194ae_staticRenderFns = []
|
|
193968
195766
|
|
|
@@ -194868,7 +196666,7 @@ var ToolBar_component = normalizeComponent(
|
|
|
194868
196666
|
)
|
|
194869
196667
|
|
|
194870
196668
|
/* harmony default export */ var toolbar_ToolBar = (ToolBar_component.exports);
|
|
194871
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
196669
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cd615542-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/toolbar/tab/TabPane.vue?vue&type=template&id=71cdc485&
|
|
194872
196670
|
var TabPanevue_type_template_id_71cdc485_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],class:_vm.className},[_vm._t("default")],2)}
|
|
194873
196671
|
var TabPanevue_type_template_id_71cdc485_staticRenderFns = []
|
|
194874
196672
|
|