@zhijiancloud/bpm 1.0.76 → 1.0.78
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/dist/bpmField.umd.js +2 -2
- package/dist/bpmFormField.umd.js +2 -2
- package/dist/bpmMulFile.umd.js +1 -1
- package/dist/bpmSelectFromField.umd.js +1 -1
- package/dist/bpmSubForm.umd.js +1 -1
- package/dist/bpmSubFormField.umd.js +2 -2
- package/dist/bpmText.umd.js +1 -1
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/dist/0a66f0ef7d38dad04adc.woff2 +0 -1
- package/dist/29fb135e53dd8091fdd0.eot +0 -1
- package/dist/8cf4e090e8928d206df2.ttf +0 -1
- package/dist/a57a0d387a149177720e.woff +0 -1
- package/dist/f12b4ede0027a3f8a639.svg +0 -1
package/dist/bpmText.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash")):"function"==typeof define&&define.amd?define(["lodash"],t):"object"==typeof exports?exports.bpm2=t(require("lodash")):e.bpm2=t(e.lodash)}(self,function(e){return function(){var t={2172:function(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314);n.n(i)()(o()).push([e.id,".bpm-text-edit .prefab-words[data-v-9e58c8e8] {\n padding-top: 10px;\n}\n.bpm-text-edit .prefab-words ul[data-v-9e58c8e8],\n.bpm-text-edit .prefab-words li[data-v-9e58c8e8] {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.bpm-text-edit .prefab-words ul[data-v-9e58c8e8] {\n overflow: hidden;\n margin-top: 5px;\n}\n.bpm-text-edit .prefab-words li[data-v-9e58c8e8] {\n float: left;\n min-height: 28px;\n line-height: 28px;\n cursor: pointer;\n min-width: 50px;\n font-size: 14px;\n padding: 0 10px;\n margin-right: 10px;\n border: 1px solid #DCDCDC;\n border-radius: 100px;\n color: #666666;\n text-align: center;\n margin-bottom: 5px;\n}\n.bpm-text-edit .prefab-words li.active[data-v-9e58c8e8] {\n background: #1EAAD0;\n border: 1px solid #1EAAD0;\n color: #fff;\n}\n.bpm-text-view.table-text-view.Text-view[data-v-9e58c8e8],\n.bpm-text-view.table-text-view.TextArea-view[data-v-9e58c8e8] {\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 5;\n -webkit-box-orient: vertical;\n}\n.TextArea-view[data-v-9e58c8e8] {\n white-space: pre-wrap;\n}\n.bpm-text-popper[data-v-9e58c8e8] {\n padding: 10px !important;\n}\n",""])},6459:function(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,"\n.bpm-text-edit__input[data-v-22e945f4] .el-textarea__inner {\n max-height: 600px;\n overflow: auto;\n}\n",""]),t.A=a},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},5072:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=i[c]||0,p="".concat(c," ").concat(l);i[c]=l+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var v=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:v,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var u=r(e,o),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},7659:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4486:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,u):[u]}return{exports:e,options:c}}n.d(t,{A:function(){return r}})},7642:function(e){e.exports=function(){return this.ELEMENT}()},5554:function(e){e.exports=function(){return this.Vue}()},6773:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return function(){"use strict";r.r(o),r.d(o,{default:function(){return I}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-text",attrs:{value:e.curVal,fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType,dm:e.dm},on:{change:e.handleChange}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-text-edit",staticStyle:{position:"relative"}},["SerialNumber"!==e.type||e.dm?[n("el-input",e._b({ref:"component",staticClass:"bpm-text-edit__input",attrs:{placeholder:e.placeholder,type:e.inputType,rows:2,autosize:e.textareaAutosize},on:{input:e.inputCurVal,change:e.changeCurVal},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-input",e.$attrs,!1)),e._v(" "),e.prefabWords&&e.prefabWords.length&&"table"!=e.uiType?n("div",{staticClass:"prefab-words"},[n("div",[e._v(e._s(e.$z("快捷输入","b2.common.quick_input")))]),e._v(" "),n("ul",e._l(e.prefabWords,function(t,r){return n("li",{key:""+r,class:e.selectWord==t?"active":"",on:{click:function(n){return e.handleAddWord(t)}}},[n("span",[e._v(e._s(t))])])}),0)]):e._e()]:n("span",[e._v(e._s(e.$z("自动流水号","b2.common.auto_num")))])],2)};t._withStripped=!0;var n=r(6773),i=r.n(n),a=r(5554),s=r.n(a),u=r(7642);s().use(u.Input);var c={data(){return{selectWord:"",curVal:""}},props:["type","value","fieldConf","row","uiType","dm"],watch:{value(){this.curVal=i().trim(this.value)}},computed:{placeholder(){return this.fieldConf.desc||this.fieldConf.name},prefabWords(){return i().get(this.fieldConf,"prefab_words",[])},inputType(){return"TextArea"===this.fieldConf.type?"textarea":"text"},textareaAutosize(){return"textarea"===this.inputType&&{minRows:2}}},methods:{changeCurVal(e){e=i().trim(e),this.$emit("change",e)},inputCurVal(e){e=i().trim(e),this._debounceFun(e,this)},_debounceFun:i().debounce(async(e,t)=>{t.$emit("input",e)},1e3,{leading:!1,trailing:!0}),async handleAddWord(e){if(this.selectWord=e,this.curVal){let t=this.$refs.component.$refs.textarea;t||(t=this.$refs.component.$refs.text);let n=t.selectionStart,r=t.selectionEnd,o=this.curVal,i=o.substring(0,n)+e+o.substring(r,o.length);this.curVal=i,await this.$nextTick(),t.focus(),t.setSelectionRange(n+e.length,n+e.length)}else this.curVal=e;this.selectWord=""}},mounted(){this.curVal=this.value}},l=r(5072),p=r.n(l),d=r(7825),f=r.n(d),v=r(7659),m=r.n(v),h=r(5056),b=r.n(h),_=r(540),x=r.n(_),y=r(1113),g=r.n(y),w=r(6459),C={};C.styleTagTransform=g(),C.setAttributes=b(),C.insert=m().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=x(),p()(w.A,C),w.A&&w.A.locals&&w.A.locals;var T=r(4486),S=(0,T.A)(c,t,[],!1,null,"22e945f4",null);S.options.__file="components/lib/bpmText/src/part/editor.vue";var A=S.exports,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"bpm-text-view",class:e.uiType+"-text-view "+e.fieldConf.type+"-view",attrs:{title:e._value}},["table"==e.uiType?[e.is_trim?[n("el-popover",{attrs:{placement:"top-start",title:"",width:"300","popper-class":"bpm-text-popper",trigger:"hover",content:e._value}},[n("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e._value))])])]:[e._v(e._s(e._value&&0!==e._value?e._value:"--"))]]:[e._v(e._s(e._value&&0!==e._value?e._value:"--"))]],2)};$._withStripped=!0;var V={data(){return{show_value:"",is_trim:!1}},props:["value","fieldConf","row","uiType"],computed:{_value(){let e=i().get(this.row,this.fieldConf.id)||this.value;return"string"==typeof e&&(e=e.trim()),console.log("typeof val",typeof e),"object"==typeof e&&(this.show_value?e=this.show_value:i().isArray(e)&&(e=e.join(" "))),e}},watch:{value(e){e&&i().isString(e)&&e.length>100?(this.is_trim=!0,this.show_value=e.slice(0,100)+"..."):(this.show_value=e,this.is_trim=!1)}}},E=(0,T.A)(V,$,[],!1,null,null,null);E.options.__file="components/lib/mixins/TextReader.vue";var j={mixins:[E.exports]},k=(0,T.A)(j,void 0,void 0,!1,null,null,null);k.options.__file="components/lib/bpmText/src/part/reader.vue";var M=k.exports,O={name:"BpmText",components:{editorComponent:A,readerComponent:M},props:{value:{type:String},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},dm:Boolean},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?M:A}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},R=(r(2172),(0,T.A)(O,e,[],!1,null,"9e58c8e8",null));R.options.__file="components/lib/bpmText/src/main.vue";var W=R.exports;W.install=function(e){e.component(W.name,W)};var I=W}(),o}()});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash")):"function"==typeof define&&define.amd?define(["lodash"],t):"object"==typeof exports?exports.bpm2=t(require("lodash")):e.bpm2=t(e.lodash)}(self,function(e){return function(){var t={2172:function(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314);n.n(i)()(o()).push([e.id,".bpm-text-edit .prefab-words[data-v-9e58c8e8] {\n padding-top: 10px;\n}\n.bpm-text-edit .prefab-words ul[data-v-9e58c8e8],\n.bpm-text-edit .prefab-words li[data-v-9e58c8e8] {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.bpm-text-edit .prefab-words ul[data-v-9e58c8e8] {\n overflow: hidden;\n margin-top: 5px;\n}\n.bpm-text-edit .prefab-words li[data-v-9e58c8e8] {\n float: left;\n min-height: 28px;\n line-height: 28px;\n cursor: pointer;\n min-width: 50px;\n font-size: 14px;\n padding: 0 10px;\n margin-right: 10px;\n border: 1px solid #DCDCDC;\n border-radius: 100px;\n color: #666666;\n text-align: center;\n margin-bottom: 5px;\n}\n.bpm-text-edit .prefab-words li.active[data-v-9e58c8e8] {\n background: #1EAAD0;\n border: 1px solid #1EAAD0;\n color: #fff;\n}\n.bpm-text-view.table-text-view.Text-view[data-v-9e58c8e8],\n.bpm-text-view.table-text-view.TextArea-view[data-v-9e58c8e8] {\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 5;\n -webkit-box-orient: vertical;\n}\n.TextArea-view[data-v-9e58c8e8] {\n white-space: pre-wrap;\n}\n.bpm-text-popper[data-v-9e58c8e8] {\n padding: 10px !important;\n}\n",""])},6459:function(e,t,n){"use strict";var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,"\n.bpm-text-edit__input[data-v-22e945f4] .el-textarea__inner {\n max-height: 600px;\n overflow: auto;\n}\n",""]),t.A=a},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},5072:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=i[c]||0,p="".concat(c," ").concat(l);i[c]=l+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var v=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:v,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var u=r(e,o),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},7659:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4486:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,u):[u]}return{exports:e,options:c}}n.d(t,{A:function(){return r}})},7642:function(e){e.exports=function(){return this.ELEMENT}()},5554:function(e){e.exports=function(){return this.Vue}()},6773:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return function(){"use strict";r.r(o),r.d(o,{default:function(){return I}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-text",attrs:{value:e.curVal,fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType,dm:e.dm},on:{change:e.handleChange}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-text-edit",staticStyle:{position:"relative"}},["SerialNumber"!==e.type||e.dm?[n("el-input",e._b({ref:"component",staticClass:"bpm-text-edit__input",attrs:{placeholder:e.placeholder,type:e.inputType,rows:2,autosize:e.textareaAutosize},on:{input:e.inputCurVal,change:e.changeCurVal},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-input",e.$attrs,!1)),e._v(" "),e.prefabWords&&e.prefabWords.length&&"table"!=e.uiType?n("div",{staticClass:"prefab-words"},[n("div",[e._v(e._s(e.$z("快捷输入","b2.common.quick_input")))]),e._v(" "),n("ul",e._l(e.prefabWords,function(t,r){return n("li",{key:""+r,class:e.selectWord==t?"active":"",on:{click:function(n){return e.handleAddWord(t)}}},[n("span",[e._v(e._s(t))])])}),0)]):e._e()]:n("span",[e._v(e._s(e.$z("自动流水号","b2.common.auto_num")))])],2)};t._withStripped=!0;var n=r(6773),i=r.n(n),a=r(5554),s=r.n(a),u=r(7642);s().use(u.Input);var c={data(){return{selectWord:"",curVal:""}},props:["type","value","fieldConf","row","uiType","dm"],watch:{value(){this.curVal=i().trim(this.value)}},computed:{placeholder(){return this.fieldConf.desc||this.fieldConf.name},prefabWords(){return i().get(this.fieldConf,"prefab_words",[])},inputType(){return"TextArea"===this.fieldConf.type?"textarea":"text"},textareaAutosize(){return"textarea"===this.inputType&&{minRows:2}}},methods:{changeCurVal(e){e=i().trim(e),this.$emit("change",e)},inputCurVal(e){e=i().trim(e),this._debounceFun(e,this)},_debounceFun:i().debounce(async(e,t)=>{t.$emit("input",e)},1e3,{leading:!1,trailing:!0}),async handleAddWord(e){if(this.selectWord=e,this.curVal){let t=this.$refs.component.$refs.textarea;t||(t=this.$refs.component.$refs.text);let n=t.selectionStart,r=t.selectionEnd,o=this.curVal,i=o.substring(0,n)+e+o.substring(r,o.length);this.curVal=i,await this.$nextTick(),t.focus(),t.setSelectionRange(n+e.length,n+e.length)}else this.curVal=e;this.selectWord=""}},mounted(){this.curVal=this.value}},l=r(5072),p=r.n(l),d=r(7825),f=r.n(d),v=r(7659),m=r.n(v),h=r(5056),b=r.n(h),_=r(540),x=r.n(_),y=r(1113),g=r.n(y),w=r(6459),C={};C.styleTagTransform=g(),C.setAttributes=b(),C.insert=m().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=x(),p()(w.A,C),w.A&&w.A.locals&&w.A.locals;var T=r(4486),S=(0,T.A)(c,t,[],!1,null,"22e945f4",null);S.options.__file="components/lib/bpmText/src/part/editor.vue";var A=S.exports,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"bpm-text-view",class:e.uiType+"-text-view "+e.fieldConf.type+"-view",attrs:{title:e._value}},["table"==e.uiType?[e.is_trim?[n("el-popover",{attrs:{placement:"top-start",title:"",width:"300","open-delay":500,"popper-class":"bpm-text-popper",trigger:"hover",content:e._value}},[n("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e._value))])])]:[e._v(e._s(e._value&&0!==e._value?e._value:"--"))]]:[e._v(e._s(e._value&&0!==e._value?e._value:"--"))]],2)};$._withStripped=!0;var V={data(){return{show_value:"",is_trim:!1}},props:["value","fieldConf","row","uiType"],computed:{_value(){let e=i().get(this.row,this.fieldConf.id)||this.value;return"string"==typeof e&&(e=e.trim()),console.log("typeof val",typeof e),"object"==typeof e&&(this.show_value?e=this.show_value:i().isArray(e)&&(e=e.join(" "))),e}},watch:{value(e){e&&i().isString(e)&&e.length>100?(this.is_trim=!1,this.show_value=e.slice(0,100)+"..."):(this.show_value=e,this.is_trim=!1)}}},E=(0,T.A)(V,$,[],!1,null,null,null);E.options.__file="components/lib/mixins/TextReader.vue";var j={mixins:[E.exports]},k=(0,T.A)(j,void 0,void 0,!1,null,null,null);k.options.__file="components/lib/bpmText/src/part/reader.vue";var M=k.exports,O={name:"BpmText",components:{editorComponent:A,readerComponent:M},props:{value:{type:String},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},dm:Boolean},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?M:A}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},R=(r(2172),(0,T.A)(O,e,[],!1,null,"9e58c8e8",null));R.options.__file="components/lib/bpmText/src/main.vue";var W=R.exports;W.install=function(e){e.component(W.name,W)};var I=W}(),o}()});
|