@zhijiancloud/bpm 1.0.29 → 1.0.31
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/141.umd.js +1 -0
- package/dist/204.umd.js +1 -0
- package/dist/557.umd.js +2 -0
- package/dist/557.umd.js.LICENSE.txt +283 -0
- package/dist/559.umd.js +1 -0
- package/dist/584.umd.js +1 -0
- package/dist/997.umd.js +1 -0
- package/dist/bpmAppointment.umd.js +1 -1
- package/dist/bpmArea.umd.js +1 -1
- package/dist/bpmAreaElevation.umd.js +1 -1
- package/dist/bpmAudit.umd.js +1 -1
- package/dist/bpmDateTime.umd.js +1 -1
- package/dist/bpmExternalFormLink.umd.js +1 -0
- package/dist/bpmField.umd.js +5 -5
- package/dist/bpmFieldsFilter.umd.js +3 -3
- package/dist/bpmFormField.umd.js +5 -5
- package/dist/bpmMapLocation.umd.js +1 -1
- package/dist/bpmMulFile.umd.js +1 -1
- package/dist/bpmMulImage.umd.js +1 -1
- package/dist/bpmNumber.umd.js +1 -1
- package/dist/bpmOverTime.umd.js +1 -1
- package/dist/bpmRating.umd.js +1 -1
- package/dist/bpmRichText.umd.js +1 -1
- package/dist/bpmSelect.umd.js +1 -1
- package/dist/bpmSelectCheckItem.umd.js +1 -1
- package/dist/bpmSelectEntranceForm.umd.js +3 -3
- package/dist/bpmSelectFromField.umd.js +1 -1
- package/dist/bpmSelectFromForm.umd.js +1 -1
- package/dist/bpmSelectFromId.umd.js +1 -1
- package/dist/bpmSelectFromMulForm.umd.js +1 -1
- package/dist/bpmSelectHouseOwner.umd.js +1 -1
- package/dist/bpmSelectIssue.umd.js +1 -1
- package/dist/bpmSelectUser.umd.js +1 -1
- package/dist/bpmSignature.umd.js +1 -1
- package/dist/bpmSpliter.umd.js +1 -1
- package/dist/bpmSubForm.umd.js +1 -1
- package/dist/bpmSubFormField.umd.js +5 -5
- package/dist/bpmText.umd.js +1 -1
- package/dist/bpmTime.umd.js +1 -1
- package/dist/bpmVideo.umd.js +1 -0
- package/dist/bpmVideo.umd.js.LICENSE.txt +283 -0
- package/dist/css/bpmExternalFormLink.css +1 -0
- package/dist/css/index.css +1 -1
- package/dist/index.umd.js +5 -5
- package/package.json +1 -1
package/dist/bpmNumber.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bpmNumber.umd.js.LICENSE.txt */
|
|
2
|
-
!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={9227:function(e,t,r){var n,o;n=function(){var e,t,r,n,o,i={},a={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,a,l;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)n=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((l="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(l)){a=i[o].unformat;break}n=(a=a||e._.stringToNumber)(r)}else n=Number(r)||null;return new s(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,r,n){var o,i,l,u,s,c,f,m,d=a[e.options.currentLocale],p=!1,h=!1,b="",v=1e12,g=1e9,_=1e6,y="",x=!1;if(t=t||0,i=Math.abs(t),e._.includes(r,"(")?(p=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(s=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(o=!!(o=r.match(/a(k|m|b|t)?/))&&o[1],e._.includes(r," a")&&(b=" "),r=r.replace(new RegExp(b+"a[kmbt]?"),""),i>=v&&!o||"t"===o?(b+=d.abbreviations.trillion,t/=v):i<v&&i>=g&&!o||"b"===o?(b+=d.abbreviations.billion,t/=g):i<g&&i>=_&&!o||"m"===o?(b+=d.abbreviations.million,t/=_):(i<_&&i>=1e3&&!o||"k"===o)&&(b+=d.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(h=!0,r=r.replace("[.]",".")),l=t.toString().split(".")[0],u=r.split(".")[1],c=r.indexOf(","),m=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),y=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):y=e._.toFixed(t,u.length,n),l=y.split(".")[0],y=e._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",h&&0===Number(y.slice(1))&&(y="")):l=e._.toFixed(t,0,n),b&&!o&&Number(l)>=1e3&&b!==d.abbreviations.trillion)switch(l=String(Number(l)/1e3),b){case d.abbreviations.thousand:b=d.abbreviations.million;break;case d.abbreviations.million:b=d.abbreviations.billion;break;case d.abbreviations.billion:b=d.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),x=!0),l.length<m)for(var w=m-l.length;w>0;w--)l="0"+l;return c>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===r.indexOf(".")&&(l=""),f=l+y+(b||""),p?f=(p&&x?"(":"")+f+(p&&x?")":""):s>=0?f=0===s?(x?"-":"+")+f:f+(x?"-":"+"):x&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=a[u.currentLocale],i=e,l={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,l[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,a,l,u=e.toString().split("."),s=t-(n||0);return o=2===u.length?Math.min(Math.max(u[1].length,s),t):s,a=Math.pow(10,o),l=(r(e+"e+"+o)/a).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),l=l.replace(i,"")),l}},e.options=u,e.formats=i,e.locales=a,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return a[u.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in l)u[e]=l[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,a,l,u,s,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{s=e.localeData(r)}catch(t){s=e.localeData(e.locale())}return i=s.currency.symbol,l=s.abbreviations,n=s.delimiters.decimal,o="."===s.delimiters.thousands?"\\.":s.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==l.thousand&&c[0]!==l.million&&c[0]!==l.billion&&c[0]!==l.trillion)||(u=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(n)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!a[1].match(/^\d+$/))))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,a,l=this._value,s=t||u.defaultFormat;if(r=r||Math.round,0===l&&null!==u.zeroFormat)o=u.zeroFormat;else if(null===l&&null!==u.nullFormat)o=u.nullFormat;else{for(n in i)if(s.match(i[n].regexps.format)){a=i[n].format;break}o=(a=a||e._.numberToFormat)(l,s,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,l,u,s=e._.includes(o,"ib")?n:r,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=s.suffixes.length;a++)if(l=Math.pow(s.base,a),u=Math.pow(s.base,a+1),null===t||0===t||t>=l&&t<u){c+=s.suffixes[a],l>0&&(t/=l);break}return e._.numberToFormat(t,o,i)+c},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,a=e.locales[e.options.currentLocale],l={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),i=0;i<l.before.length;i++)switch(l.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=l.after.length-1;i>=0;i--)switch(l.after[i]){case"$":o=i===l.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(l.after.length-(1+i)));break;case" ":o=i===l.after.length-1?o+" ":e._.insert(o," ",-(l.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(o=n.call(t,r,t,e))||(e.exports=o)},4486:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,l){var u,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),i&&(s._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)},s._ssrRegister=u):o&&(u=l?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var c=s.render;s.render=function(e,t){return u.call(t),c(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:s}}r.d(t,{A:function(){return n}})},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}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";n.r(o),n.d(o,{default:function(){return x}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-number",attrs:{value:e.curVal,fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},on:{change:e.handleChange}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"relative"}},[r("el-input-number",{ref:"component",attrs:{precision:e.precision},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}})],1)};t._withStripped=!0;var r=n(6773),i=n.n(r),a=n(5554),l=n.n(a),u=n(7642);l().use(u.InputNumber);var s={data(){return{curVal:null}},props:["value","fieldConf","row"],watch:{value(e){console.log("number change_value—_2: ",e),console.log("number change_value: ",this.value),this.value||0===this.value||"0"===this.value?(this.curVal=Number(this.value),console.log("number change_curVal: ",this.curVal)):this.curVal=void 0}},computed:{precision(){return i().get(this.fieldConf,"view.precision",0)}},methods:{handleChange(e){console.log("number change: ",e),this.$emit("change",this.curVal)}},mounted(){this.value||0===this.value||"0"===this.value?this.curVal=Number(this.value):this.curVal=void 0}},c=n(4486),f=(0,c.A)(s,t,[],!1,null,null,null);f.options.__file="components/lib/bpmNumber/src/part/editor.vue";var m=f.exports,d=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"bpm-text-view",class:e.uiType+"-text-view "+e.fieldConf.type+"-view",attrs:{title:e._value}},[e._v("\n "+e._s(e._value||0===e._value?e._value:"--")+"\n")])};d._withStripped=!0;var p=n(9227),h={props:["value","fieldConf","row","uiType"],computed:{_value(){let e=i().get(this.row,this.fieldConf.id)||this.value;"string"==typeof e&&(e=e.trim());let t=i().get(this.fieldConf,"view.precision",0);this.fieldConf.view&&this.fieldConf.view.precision&&(e=i().round(e,this.fieldConf.view.precision)),i().get(this.fieldConf,"view.show_percent",!1)&&(e||0==e)&&(e=(100*e).toFixed(t-2>0?t-2:0)+"%");let r=i().get(this.fieldConf,"view.format",!1);if(r){let t=0;if(-1!=r.indexOf("{")){var n=r.match(/\{([^\}]+)\}/)[1];let o=r;t=p(e).format(n),e=o.replace(/\{[^\}]+\}/,t)}else e=p(e).format(r);return e}return e}}},b=(0,c.A)(h,d,[],!1,null,null,null);b.options.__file="components/lib/bpmNumber/src/part/reader.vue";var v=b.exports,g={name:"BpmNumber",components:{editorComponent:m,readerComponent:v},props:{value:{type:[String,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?v:m}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},_=(0,c.A)(g,e,[],!1,null,null,null);_.options.__file="components/lib/bpmNumber/src/main.vue";var y=_.exports;y.install=function(e){e.component(y.name,y)};var x=y}(),o}()}));
|
|
2
|
+
!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={4486:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,l){var u,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),i&&(s._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)},s._ssrRegister=u):o&&(u=l?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var c=s.render;s.render=function(e,t){return u.call(t),c(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:s}}r.d(t,{A:function(){return n}})},5554:function(e){e.exports=function(){return this.Vue}()},6773:function(t){"use strict";t.exports=e},7642:function(e){e.exports=function(){return this.ELEMENT}()},9227:function(e,t,r){var n,o;n=function(){var e,t,r,n,o,i={},a={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,a,l;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)n=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((l="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(l)){a=i[o].unformat;break}n=(a=a||e._.stringToNumber)(r)}else n=Number(r)||null;return new s(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,r,n){var o,i,l,u,s,c,f,m,d=a[e.options.currentLocale],p=!1,h=!1,b="",v=1e12,g=1e9,_=1e6,y="",x=!1;if(t=t||0,i=Math.abs(t),e._.includes(r,"(")?(p=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(s=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(o=!!(o=r.match(/a(k|m|b|t)?/))&&o[1],e._.includes(r," a")&&(b=" "),r=r.replace(new RegExp(b+"a[kmbt]?"),""),i>=v&&!o||"t"===o?(b+=d.abbreviations.trillion,t/=v):i<v&&i>=g&&!o||"b"===o?(b+=d.abbreviations.billion,t/=g):i<g&&i>=_&&!o||"m"===o?(b+=d.abbreviations.million,t/=_):(i<_&&i>=1e3&&!o||"k"===o)&&(b+=d.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(h=!0,r=r.replace("[.]",".")),l=t.toString().split(".")[0],u=r.split(".")[1],c=r.indexOf(","),m=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),y=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):y=e._.toFixed(t,u.length,n),l=y.split(".")[0],y=e._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",h&&0===Number(y.slice(1))&&(y="")):l=e._.toFixed(t,0,n),b&&!o&&Number(l)>=1e3&&b!==d.abbreviations.trillion)switch(l=String(Number(l)/1e3),b){case d.abbreviations.thousand:b=d.abbreviations.million;break;case d.abbreviations.million:b=d.abbreviations.billion;break;case d.abbreviations.billion:b=d.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),x=!0),l.length<m)for(var w=m-l.length;w>0;w--)l="0"+l;return c>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===r.indexOf(".")&&(l=""),f=l+y+(b||""),p?f=(p&&x?"(":"")+f+(p&&x?")":""):s>=0?f=0===s?(x?"-":"+")+f:f+(x?"-":"+"):x&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=a[u.currentLocale],i=e,l={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,l[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,a,l,u=e.toString().split("."),s=t-(n||0);return o=2===u.length?Math.min(Math.max(u[1].length,s),t):s,a=Math.pow(10,o),l=(r(e+"e+"+o)/a).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),l=l.replace(i,"")),l}},e.options=u,e.formats=i,e.locales=a,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return a[u.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in l)u[e]=l[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,a,l,u,s,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{s=e.localeData(r)}catch(t){s=e.localeData(e.locale())}return i=s.currency.symbol,l=s.abbreviations,n=s.delimiters.decimal,o="."===s.delimiters.thousands?"\\.":s.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==l.thousand&&c[0]!==l.million&&c[0]!==l.billion&&c[0]!==l.trillion)||(u=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(n)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!a[1].match(/^\d+$/))))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,a,l=this._value,s=t||u.defaultFormat;if(r=r||Math.round,0===l&&null!==u.zeroFormat)o=u.zeroFormat;else if(null===l&&null!==u.nullFormat)o=u.nullFormat;else{for(n in i)if(s.match(i[n].regexps.format)){a=i[n].format;break}o=(a=a||e._.numberToFormat)(l,s,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,l,u,s=e._.includes(o,"ib")?n:r,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=s.suffixes.length;a++)if(l=Math.pow(s.base,a),u=Math.pow(s.base,a+1),null===t||0===t||t>=l&&t<u){c+=s.suffixes[a],l>0&&(t/=l);break}return e._.numberToFormat(t,o,i)+c},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,a=e.locales[e.options.currentLocale],l={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),i=0;i<l.before.length;i++)switch(l.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=l.after.length-1;i>=0;i--)switch(l.after[i]){case"$":o=i===l.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(l.after.length-(1+i)));break;case" ":o=i===l.after.length-1?o+" ":e._.insert(o," ",-(l.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";n.r(o),n.d(o,{default:function(){return x}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-number",attrs:{value:e.curVal,fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},on:{change:e.handleChange}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"relative"}},[r("el-input-number",{ref:"component",attrs:{precision:e.precision},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}})],1)};t._withStripped=!0;var r=n(6773),i=n.n(r),a=n(5554),l=n.n(a),u=n(7642);l().use(u.InputNumber);var s={data(){return{curVal:null}},props:["value","fieldConf","row"],watch:{value(e){console.log("number change_value—_2: ",e),console.log("number change_value: ",this.value),this.value||0===this.value||"0"===this.value?(this.curVal=Number(this.value),console.log("number change_curVal: ",this.curVal)):this.curVal=void 0}},computed:{precision(){return i().get(this.fieldConf,"view.precision",0)}},methods:{handleChange(e){console.log("number change: ",e),this.$emit("change",this.curVal)}},mounted(){this.value||0===this.value||"0"===this.value?this.curVal=Number(this.value):this.curVal=void 0}},c=n(4486),f=(0,c.A)(s,t,[],!1,null,null,null);f.options.__file="components/lib/bpmNumber/src/part/editor.vue";var m=f.exports,d=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"bpm-text-view",class:e.uiType+"-text-view "+e.fieldConf.type+"-view",attrs:{title:e._value}},[e._v("\n "+e._s(e._value||0===e._value?e._value:"--")+"\n")])};d._withStripped=!0;var p=n(9227),h={props:["value","fieldConf","row","uiType"],computed:{_value(){let e=i().get(this.row,this.fieldConf.id)||this.value;"string"==typeof e&&(e=e.trim());let t=i().get(this.fieldConf,"view.precision",0);this.fieldConf.view&&this.fieldConf.view.precision&&(e=i().round(e,this.fieldConf.view.precision)),i().get(this.fieldConf,"view.show_percent",!1)&&(e||0==e)&&(e=(100*e).toFixed(t-2>0?t-2:0)+"%");let r=i().get(this.fieldConf,"view.format",!1);if(r){let t=0;if(-1!=r.indexOf("{")){var n=r.match(/\{([^\}]+)\}/)[1];let o=r;t=p(e).format(n),e=o.replace(/\{[^\}]+\}/,t)}else e=p(e).format(r);return e}return e}}},b=(0,c.A)(h,d,[],!1,null,null,null);b.options.__file="components/lib/bpmNumber/src/part/reader.vue";var v=b.exports,g={name:"BpmNumber",components:{editorComponent:m,readerComponent:v},props:{value:{type:[String,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?v:m}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},_=(0,c.A)(g,e,[],!1,null,null,null);_.options.__file="components/lib/bpmNumber/src/main.vue";var y=_.exports;y.install=function(e){e.component(y.name,y)};var x=y}(),o}()}));
|
package/dist/bpmOverTime.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bpm2=e():t.bpm2=e()}(self,(function(){return function(){"use strict";var t={
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bpm2=e():t.bpm2=e()}(self,(function(){return function(){"use strict";var t={1601:function(t){t.exports=function(t){return t[1]}},4486:function(t,e,n){function o(t,e,n,o,r,i,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}n.d(e,{A:function(){return o}})},6314:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);o&&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),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),e.push(l))}},e}},7574:function(t,e,n){var o=n(1601),r=n.n(o),i=n(6314);n.n(i)()(r()).push([t.id,".status-normal {\n color: #333333;\n}\n.status-warning {\n color: #FAAF19;\n}\n.status-warning2 {\n color: #FAAF19;\n}\n.status-overtime {\n color: #F4343E;\n}\n.status-overtime2 {\n color: #F4343E;\n}\n",""])}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return t[o](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{default:function(){return c}});var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{class:"status-"+t.statusType,staticStyle:{"font-weight":"500","font-size":"16px"},attrs:{endTime:t.endTime}},[t._t("default",(function(){return[t._v("\n"+t._s(t.content)+"\n")]}))],2)};r._withStripped=!0;var i={name:"BpmOverTime",data(){return{content:"",endTime:"",timer:null,statusType:"normal"}},props:{defaultEndTime:{type:String,default:""},colValue:{type:String,default:""}},watch:{endTime(){this.countdown(this.endTime)},colValue(t){this.endTime=t}},beforeUnmount(){this.timer&&clearInterval(this.timer)},mounted(){this.endTime=this.colValue,this.countdown(this.endTime)},methods:{countdown(t){let e={};_.isNumber(t)||(e=new Date(t)),t=parseInt(e.getTime()/1e3);let n=this;n.timer&&clearInterval(n.timer),this.timer=setInterval((()=>{let e=new Date;if(!t||0==t.length)return;let o=new Date(1e3*t).getTime()-e.getTime(),r=Math.abs(Math.floor(o/864e5)),i=Math.abs(Math.floor(o/36e5%24)),a=Math.abs(Math.floor(o/6e4%60)),s=Math.abs(Math.floor(o/1e3%60)),c="";r>1&&(this.statusType="normal",c=`${r}天`),r<=1&&r>0&&(this.statusType="warning2",c=`${r}天${i}小时`),r<=0&&i>0&&(this.statusType="warning",c=`${i}小时${a}分`),r<=0&&i<=0&&(this.statusType="danger",c=`${a}分${s}秒`),n.content=c,o<0&&(this.statusType="overtime2",n.content="超期"+n.content)}),1e3)}}},a=(n(7574),(0,n(4486).A)(i,r,[],!1,null,null,null));a.options.__file="components/lib/bpmOverTime/src/main.vue";var s=a.exports;s.install=function(t){t.component(s.name,s)};var c=s;return o}()}));
|
package/dist/bpmRating.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={4486:function(e,t,n){"use strict";function o(e,t,n,o,r,i,l,s){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),l?(a=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},u._ssrRegister=a):r&&(a=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(e,t){return a.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:u}}n.d(t,{A:function(){return 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={4486:function(e,t,n){"use strict";function o(e,t,n,o,r,i,l,s){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),l?(a=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},u._ssrRegister=a):r&&(a=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(e,t){return a.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:u}}n.d(t,{A:function(){return o}})},5554:function(e){e.exports=function(){return this.Vue}()},6773:function(t){"use strict";t.exports=e},7642:function(e){e.exports=function(){return this.ELEMENT}()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";o.r(r),o.d(r,{default:function(){return y}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-rating",attrs:{value:e.curVal,fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},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",[n("el-rate",{attrs:{max:e.max,iconClasses:e.icon,voidIconClass:e.voidIcon,disabledVoidIcon:e.voidIcon,disabled:e.readonly,allowHalf:e.allowHalf,colors:e.colors,voidColor:e.voidColor,showText:e.showText,showScore:e.showScore,textColor:e.textColor,texts:e.texts},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}})],1)};t._withStripped=!0;var n=o(6773),i=o.n(n),l=o(5554),s=o.n(l),a=o(7642);s().use(a.Rate);var u={data(){return{curVal:null}},props:["value","fieldConf","row","readonly"],watch:{value(e){this.value||0===this.value||"0"===this.value?(this.curVal=Number(this.value),console.log("number change_curVal: ",this.curVal)):this.curVal=void 0}},computed:{texts(){let e=[],t=i().get(this.fieldConf,"range_enum");return i().each(t,(t=>{e.push(t[1])})),e},max(){return i().get(this.fieldConf,"range_enum").length||5},icon(){let e=this.getIconClass(i().get(this.fieldConf,"style.icon"));return[e,e,e]},voidIcon(){return this.getIconClass(i().get(this.fieldConf,"style.void_icon"),!0)},size(){return i().get(this.fieldConf,"style.size")},gutter(){return i().get(this.fieldConf,"style.gutter")},allowHalf(){return i().get(this.fieldConf,"style.allow_half")},colors(){let e=i().get(this.fieldConf,"style.color");return[e,e,e]},voidColor(){return i().get(this.fieldConf,"style.void_color")},showText(){return i().get(this.fieldConf,"style.show_text")},showScore(){return i().get(this.fieldConf,"style.show_score")},textColor(){return i().get(this.fieldConf,"style.text_color")}},methods:{getIconClass(e,t=!1){let n="";switch(e){case"star":case"like":case"smile":case"good-job":n=t?"el-icon-star-off":"el-icon-star-on"}return n},handleChange(e){console.log("number change: ",e),this.$emit("change",this.curVal)}},mounted(){this.value||0===this.value||"0"===this.value?this.curVal=Number(this.value):this.curVal=void 0}},c=o(4486),d=(0,c.A)(u,t,[],!1,null,null,null);d.options.__file="components/lib/bpmRating/src/part/editor.vue";var f=d.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"bpm-rating-view"},[n("rate-editor",{attrs:{value:e.value,fieldConf:e.fieldConf,row:e.row,uiType:e.uiType,readonly:!0}})],1)};p._withStripped=!0;var h={components:{RateEditor:f},props:["value","fieldConf","row","uiType"]},v=(0,c.A)(h,p,[],!1,null,null,null);v.options.__file="components/lib/bpmRating/src/part/reader.vue";var m=v.exports,g={name:"BpmRating",components:{editorComponent:f,readerComponent:m},props:{value:{type:[String,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?m:f}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},C=(0,c.A)(g,e,[],!1,null,null,null);C.options.__file="components/lib/bpmRating/src/main.vue";var _=C.exports;_.install=function(e){e.component(_.name,_)};var y=_}(),r}()}));
|
package/dist/bpmRichText.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("element-tiptap")):"function"==typeof define&&define.amd?define(["element-tiptap"],e):"object"==typeof exports?exports.bpm2=e(require("element-tiptap")):t.bpm2=e(t["element-tiptap"])}(self,(function(t){return function(){var e={2419:function(t,e,o){"use strict";var i=o(1601),r=o.n(i),n=o(6314),a=o.n(n)()(r());a.push([t.id,'@charset "UTF-8";.el-tiptap-editor{border-radius:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:100%;position:relative;width:100%}.el-tiptap-editor,.el-tiptap-editor *{-webkit-box-sizing:border-box;box-sizing:border-box}.el-tiptap-editor .border-top-radius{border-top-left-radius:8px;border-top-right-radius:8px}.el-tiptap-editor .border-bottom-radius{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.el-tiptap-editor__codemirror{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-size:16px;line-height:24px;overflow:scroll}.el-tiptap-editor__codemirror .CodeMirror{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:auto}.el-tiptap-editor--fullscreen{border-radius:0!important;bottom:0!important;height:100%!important;left:0!important;margin:0!important;position:fixed!important;right:0!important;top:0!important;width:100%!important;z-index:500}.el-tiptap-editor--fullscreen .el-tiptap-editor__content,.el-tiptap-editor--fullscreen .el-tiptap-editor__footer,.el-tiptap-editor--fullscreen .el-tiptap-editor__menu-bar{border-radius:0!important}.el-tiptap-editor>.el-tiptap-editor__content{background-color:#fff;border:1px solid #ebeef5;border-bottom:0;border-top:0;color:#000;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:30px 20px}.el-tiptap-editor__menu-bar{background-color:#fff;border:1px solid #ebeef5;border-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:5px;position:relative}.el-tiptap-editor__menu-bar:before{bottom:0;background-color:#ebeef5;content:"";height:1px;left:0;margin:0 10px;right:0;position:absolute}.el-tiptap-editor__menu-bubble{background-color:#fff;border-radius:8px;-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);display:-webkit-box;display:-ms-flexbox;display:flex;padding:5px;opacity:0;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;visibility:hidden;z-index:50}.el-tiptap-editor__menu-bubble--active{opacity:1;visibility:visible}.el-tiptap-editor__content{font-family:sans-serif;line-height:1.7;overflow-x:auto;text-align:left}.el-tiptap-editor__content,.el-tiptap-editor__content>*{-webkit-box-sizing:border-box;box-sizing:border-box}.el-tiptap-editor__content p{margin-bottom:0;margin-top:0;outline:0}.el-tiptap-editor__content h1,.el-tiptap-editor__content h2,.el-tiptap-editor__content h3,.el-tiptap-editor__content h4,.el-tiptap-editor__content h5{margin-top:20px;margin-bottom:20px}.el-tiptap-editor__content h1:first-child,.el-tiptap-editor__content h2:first-child,.el-tiptap-editor__content h3:first-child,.el-tiptap-editor__content h4:first-child,.el-tiptap-editor__content h5:first-child{margin-top:0}.el-tiptap-editor__content h1:last-child,.el-tiptap-editor__content h2:last-child,.el-tiptap-editor__content h3:last-child,.el-tiptap-editor__content h4:last-child,.el-tiptap-editor__content h5:last-child{margin-bottom:0}.el-tiptap-editor__content ol,.el-tiptap-editor__content ul{counter-reset:none;list-style-type:none;margin-bottom:0;margin-left:24px;margin-top:0;padding-bottom:5px;padding-left:0;padding-top:5px}.el-tiptap-editor__content li>p{margin:0}.el-tiptap-editor__content li>p:first-child:before{content:counter(el-tiptap-counter) ".";display:inline-block;left:-5px;line-height:1;margin-left:-24px;position:relative;text-align:right;top:0;width:24px}.el-tiptap-editor__content ul li>p:first-child:before{content:"•";text-align:center}.el-tiptap-editor__content ol{counter-reset:el-tiptap-counter}.el-tiptap-editor__content ol li>p:first-child:before{counter-increment:el-tiptap-counter}.el-tiptap-editor__content a{color:#409eff;cursor:pointer}.el-tiptap-editor__content blockquote{border-left:5px solid #edf2fc;border-radius:2px;color:#606266;margin:10px 0;padding-left:1em}.el-tiptap-editor__content code{background-color:#d9ecff;border-radius:4px;color:#409eff;display:inline-block;font-size:14px;font-weight:700;padding:0 8px}.el-tiptap-editor__content pre{background-color:#303133;color:#d9ecff;font-size:16px;overflow-x:auto;padding:14px 20px;margin:10px 0;border-radius:5px}.el-tiptap-editor__content pre code{background-color:transparent;border-radius:0;color:inherit;display:block;font-family:"Menlo,Monaco,Consolas,Courier,monospace";font-size:inherit;font-weight:400;padding:0}.el-tiptap-editor__content img{display:inline-block;float:none;margin:12px 0;max-width:100%}.el-tiptap-editor__content img[data-display=inline]{margin-left:12px;margin-right:12px}.el-tiptap-editor__content img[data-display=block]{display:block}.el-tiptap-editor__content img[data-display=left]{float:left;margin-left:0;margin-right:12px}.el-tiptap-editor__content img[data-display=right]{float:right;margin-left:12px;margin-right:0}.el-tiptap-editor__content .image-view{display:inline-block;float:none;line-height:0;margin:12px 0;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:baseline}.el-tiptap-editor__content .image-view--inline{margin-left:12px;margin-right:12px}.el-tiptap-editor__content .image-view--block{display:block}.el-tiptap-editor__content .image-view--left{float:left;margin-left:0;margin-right:12px}.el-tiptap-editor__content .image-view--right{float:right;margin-left:12px;margin-right:0}.el-tiptap-editor__content .image-view__body{clear:both;display:inline-block;max-width:100%;outline-color:transparent;outline-style:solid;outline-width:2px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in;position:relative}.el-tiptap-editor__content .image-view__body:hover{outline-color:#ffc83d}.el-tiptap-editor__content .image-view__body--focused:hover,.el-tiptap-editor__content .image-view__body--resizing:hover{outline-color:transparent}.el-tiptap-editor__content .image-view__body__placeholder{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.el-tiptap-editor__content .image-view__body__image{cursor:pointer;margin:0}.el-tiptap-editor__content .image-resizer{border:1px solid #409eff;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.el-tiptap-editor__content .image-resizer__handler{background-color:#409eff;border:1px solid #fff;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:12px;position:absolute;width:12px;z-index:2}.el-tiptap-editor__content .image-resizer__handler--tl{cursor:nw-resize;left:-6px;top:-6px}.el-tiptap-editor__content .image-resizer__handler--tr{cursor:ne-resize;right:-6px;top:-6px}.el-tiptap-editor__content .image-resizer__handler--bl{bottom:-6px;cursor:sw-resize;left:-6px}.el-tiptap-editor__content .image-resizer__handler--br{bottom:-6px;cursor:se-resize;right:-6px}.el-tiptap-editor__content ul[data-type=todo_list]{margin-left:5px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-bottom:0}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=right]{-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:flex-end!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=center]{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=justify]{text-align:space-between!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content{padding-left:10px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content>p{font-size:16px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content>p:last-of-type{margin-bottom:0}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item--done>.todo-checkbox{color:#409eff}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item--done>.todo-content>p{color:#409eff;text-decoration:line-through}.el-tiptap-editor__content hr{margin-top:20px;margin-bottom:20px}.el-tiptap-editor__content [data-indent="1"]{margin-left:30px!important}.el-tiptap-editor__content [data-indent="2"]{margin-left:60px!important}.el-tiptap-editor__content [data-indent="3"]{margin-left:90px!important}.el-tiptap-editor__content [data-indent="4"]{margin-left:120px!important}.el-tiptap-editor__content [data-indent="5"]{margin-left:150px!important}.el-tiptap-editor__content [data-indent="6"]{margin-left:180px!important}.el-tiptap-editor__content [data-indent="7"]{margin-left:210px!important}.el-tiptap-editor__content .tableWrapper{margin:1em 0;overflow-x:auto}.el-tiptap-editor__content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.el-tiptap-editor__content td,.el-tiptap-editor__content th{border:2px solid #ebeef5;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.el-tiptap-editor__content td.selectedCell,.el-tiptap-editor__content th.selectedCell{background-color:#ecf5ff}.el-tiptap-editor__content th{font-weight:500;text-align:left}.el-tiptap-editor__content .column-resize-handle{background-color:#b3d8ff;bottom:0;pointer-events:none;position:absolute;right:-2px;top:0;width:4px;z-index:20}.el-tiptap-editor__content .iframe{height:0;padding-bottom:56.25%;position:relative;width:100%}.el-tiptap-editor__content .iframe__embed{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.el-tiptap-editor__content .resize-cursor{cursor:ew-resize;cursor:col-resize}.el-tiptap-editor__footer{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #ebeef5;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:sans-serif;font-size:14px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:10px}.el-tiptap-editor .ProseMirror{outline:0}.el-tiptap-editor__placeholder.el-tiptap-editor--empty:first-child:before,.el-tiptap-editor__with-title-placeholder:first-child:before,.el-tiptap-editor__with-title-placeholder:nth-child(2):before{color:#c0c4cc;content:attr(data-empty-text);float:left;height:0;pointer-events:none}.el-tiptap-editor__characters{color:#939599}.el-tiptap-editor__command-button{border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:50%;color:#303133;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:40px;margin:2px;outline:0;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:40px}.el-tiptap-editor__command-button:hover{background-color:#e4e9f2}.el-tiptap-editor__command-button--active{background-color:#ecf5ff;color:#409eff}.el-tiptap-editor__command-button--readonly{cursor:default;opacity:.3;pointer-events:none}.el-tiptap-editor__command-button--readonly:hover{background-color:transparent}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item{color:#303133;line-height:1.5;padding-top:5px;padding-bottom:5px}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item [data-item-type=heading]{margin-bottom:0;margin-top:0}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item--active{background-color:#ecf5ff;color:#409eff}.el-tiptap-popper.el-popper{min-width:0}.el-tiptap-popper__menu__item{color:#303133;cursor:pointer;padding:8px 0}.el-tiptap-popper__menu__item--active,.el-tiptap-popper__menu__item:hover{color:#409eff}.el-tiptap-popper__menu__item--disabled{cursor:default;opacity:.2}.el-tiptap-popper__menu__item--disabled:hover{color:inherit}.el-tiptap-popper__menu__item__separator{border-top:1px solid #dcdfe6;height:0;margin:5px 0;width:100%}.el-tiptap-upload{display:-webkit-box;display:-ms-flexbox;display:flex}.el-tiptap-upload .el-upload,.el-tiptap-upload .el-upload-dragger{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-tiptap-upload .el-upload-dragger{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:300px;width:100%}.el-tiptap-upload .el-upload-dragger .el-tiptap-upload__icon{font-size:50px;margin-bottom:10px}.el-tiptap-upload .el-upload-dragger:hover .el-tiptap-upload__icon{color:#409eff}.color-set{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:240px}.color-set .color{border-radius:50%;-webkit-box-shadow:rgba(0,0,0,.2) 0 3px 3px -2px,rgba(0,0,0,.14) 0 3px 4px 0,rgba(0,0,0,.12) 0 1px 8px 0;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);color:#fff;height:30px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:30px}.color-set .color,.color-set .color__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.color-set .color__wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 12.5%;flex:0 0 12.5%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:5px}.color-set .color--selected,.color-set .color:hover{border:2px solid #fff;-webkit-transform:scale(1.3);transform:scale(1.3)}.color-set .color--remove{position:relative}.color-set .color--remove:hover:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.color-set .color--remove:hover:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.color-set .color--remove:after,.color-set .color--remove:before{background-color:#f56c6c;bottom:0;content:"";left:50%;position:absolute;margin:2px 0;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:2px}.color-hex{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:10px}.color-hex .color-hex__button{margin-left:10px;padding-left:15px;padding-right:15px}.table-grid-size-editor__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-grid-size-editor__body,.table-grid-size-editor__row{display:-webkit-box;display:-ms-flexbox;display:flex}.table-grid-size-editor__cell{background-color:#fff;padding:5px}.table-grid-size-editor__cell__inner{border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;height:16px;padding:4px;width:16px}.table-grid-size-editor__cell--selected .table-grid-size-editor__cell__inner{background-color:#ecf5ff;border-color:#409eff}.table-grid-size-editor__footer{margin-top:5px;text-align:center}.el-tiptap-edit-image-dialog .el-form-item:last-child{margin-bottom:0}.el-tiptap-edit-image-dialog input[type=number]::-webkit-inner-spin-button,.el-tiptap-edit-image-dialog input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.el-tiptap-edit-link-dialog .el-form-item:last-child{margin-bottom:0}.el-popper.el-tiptap-image-popper{background-color:#fff;border-radius:8px;-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;padding:5px}.el-popper.el-tiptap-image-popper .image-bubble-menu{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.link-bubble-menu{display:-webkit-box;display:-ms-flexbox;display:flex}.fa-icon{display:inline-block;fill:currentColor;overflow:visible}.fa-icon>g{-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both{-webkit-transform:scale(-1);transform:scale(-1)}.fa-spin>g{-webkit-animation:fa-spin 1s linear 0s infinite;animation:fa-spin 1s linear 0s infinite}.fa-pulse>g{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}.fa-inverse{color:#fff}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),e.A=a},6314:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o="",i=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),i&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),i&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o})).join("")},e.i=function(t,o,i,r,n){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var l=0;l<this.length;l++){var p=this[l][0];null!=p&&(a[p]=!0)}for(var d=0;d<t.length;d++){var s=[].concat(t[d]);i&&a[s[0]]||(void 0!==n&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=n),o&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=o):s[2]=o),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),e.push(s))}},e}},1601:function(t){"use strict";t.exports=function(t){return t[1]}},5072:function(t){"use strict";var e=[];function o(t){for(var o=-1,i=0;i<e.length;i++)if(e[i].identifier===t){o=i;break}return o}function i(t,i){for(var n={},a=[],l=0;l<t.length;l++){var p=t[l],d=i.base?p[0]+i.base:p[0],s=n[d]||0,c="".concat(d," ").concat(s);n[d]=s+1;var f=o(c),b={css:p[1],media:p[2],sourceMap:p[3],supports:p[4],layer:p[5]};if(-1!==f)e[f].references++,e[f].updater(b);else{var x=r(b,i);i.byIndex=l,e.splice(l,0,{identifier:c,updater:x,references:1})}a.push(c)}return a}function r(t,e){var o=e.domAPI(e);return o.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,r){var n=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<n.length;a++){var l=o(n[a]);e[l].references--}for(var p=i(t,r),d=0;d<n.length;d++){var s=o(n[d]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}n=p}}},7659:function(t){"use strict";var e={};t.exports=function(t,o){var i=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(o)}},540:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056:function(t,e,o){"use strict";t.exports=function(t){var e=o.nc;e&&t.setAttribute("nonce",e)}},7825:function(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(o){!function(t,e,o){var i="";o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var r=void 0!==o.layer;r&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,r&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}");var n=o.sourceMap;n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,o)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4486:function(t,e,o){"use strict";function i(t,e,o,i,r,n,a,l){var p,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),a?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=p):r&&(p=l?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),p)if(d.functional){d._injectStyles=p;var s=d.render;d.render=function(t,e){return p.call(e),s(t,e)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,p):[p]}return{exports:t,options:d}}o.d(e,{A:function(){return i}})},5554:function(t){t.exports=function(){return this.Vue}()},3533:function(e){"use strict";e.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={id:t,exports:{}};return e[t](n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var r={};return function(){"use strict";i.r(r),i.d(r,{default:function(){return v}});var t=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"bpm-rich-text"},["table"==t.uiType?o("i",{staticClass:"el-icon-notebook-2",class:{active:t.curVal},on:{click:function(e){e.stopPropagation(),t.dialogVisible=!0}}}):o("el-tiptap",{attrs:{extensions:t.extensions,showMenubar:!t.readonly,readonly:t.readonly,placeholder:t.fieldConf.name},on:{onBlur:t.handleChange},model:{value:t.curVal,callback:function(e){t.curVal=e},expression:"curVal"}}),t._v(" "),"table"==t.uiType&&t.dialogVisible?o("el-dialog",{attrs:{title:t.fieldConf.name,visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[o("el-tiptap",{attrs:{extensions:t.extensions,showMenubar:!t.readonly,readonly:t.readonly,placeholder:t.fieldConf.name},on:{onBlur:t.handleChange},model:{value:t.curVal,callback:function(e){t.curVal=e},expression:"curVal"}})],1):t._e()],1)};t._withStripped=!0;var e=i(5554),o=i.n(e),n=i(3533),a=i(5072),l=i.n(a),p=i(7825),d=i.n(p),s=i(7659),c=i.n(s),f=i(5056),b=i.n(f),x=i(540),u=i.n(x),m=i(1113),_=i.n(m),g=i(2419),h={};h.styleTagTransform=_(),h.setAttributes=b(),h.insert=c().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=u(),l()(g.A,h),g.A&&g.A.locals&&g.A.locals,o().use(n.ElementTiptapPlugin,{lang:"en",spellcheck:!0});var w={name:"BpmRichText",components:{"el-tiptap":n.ElementTiptap},props:{value:String,fieldConf:Object,mode:String,uiType:String},data(){return{curVal:"",extensions:[new n.Doc,new n.Text,new n.Paragraph,new n.Heading({level:5}),new n.Bold,new n.Underline({bubble:!0,menubar:!1}),new n.Italic,new n.Strike({bubble:!0,menubar:!1}),new n.Link,new n.Blockquote,new n.Table,new n.TableHeader,new n.TableCell,new n.TableRow,new n.ListItem,new n.BulletList,new n.OrderedList,new n.TodoList,new n.TodoItem,new n.TextAlign,new n.Indent,new n.LineHeight,new n.TextColor,new n.TextHighlight,new n.FontType,new n.FontSize,new n.SelectAll,new n.FormatClear,new n.History,new n.Fullscreen],dialogVisible:!1}},computed:{readonly(){return"view"===this.mode}},watch:{value:{handler(t){this.curVal=t},immediate:!0}},methods:{handleClose(){this.dialogVisible=!1},handleChange(t){console.log(t),console.log("this.curVal: ",this.curVal),this.$emit("input",this.curVal),this.$emit("change",this.curVal)}},mounted(){}},y=(0,i(4486).A)(w,t,[],!1,null,null,null);y.options.__file="components/lib/bpmRichText/src/main.vue";var k=y.exports;k.install=function(t){t.component(k.name,k)};var v=k}(),r}()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("element-tiptap")):"function"==typeof define&&define.amd?define(["element-tiptap"],e):"object"==typeof exports?exports.bpm2=e(require("element-tiptap")):t.bpm2=e(t["element-tiptap"])}(self,(function(t){return function(){var e={540:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},1113:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1601:function(t){"use strict";t.exports=function(t){return t[1]}},2419:function(t,e,o){"use strict";var i=o(1601),r=o.n(i),n=o(6314),a=o.n(n)()(r());a.push([t.id,'@charset "UTF-8";.el-tiptap-editor{border-radius:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:100%;position:relative;width:100%}.el-tiptap-editor,.el-tiptap-editor *{-webkit-box-sizing:border-box;box-sizing:border-box}.el-tiptap-editor .border-top-radius{border-top-left-radius:8px;border-top-right-radius:8px}.el-tiptap-editor .border-bottom-radius{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.el-tiptap-editor__codemirror{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-size:16px;line-height:24px;overflow:scroll}.el-tiptap-editor__codemirror .CodeMirror{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:auto}.el-tiptap-editor--fullscreen{border-radius:0!important;bottom:0!important;height:100%!important;left:0!important;margin:0!important;position:fixed!important;right:0!important;top:0!important;width:100%!important;z-index:500}.el-tiptap-editor--fullscreen .el-tiptap-editor__content,.el-tiptap-editor--fullscreen .el-tiptap-editor__footer,.el-tiptap-editor--fullscreen .el-tiptap-editor__menu-bar{border-radius:0!important}.el-tiptap-editor>.el-tiptap-editor__content{background-color:#fff;border:1px solid #ebeef5;border-bottom:0;border-top:0;color:#000;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:30px 20px}.el-tiptap-editor__menu-bar{background-color:#fff;border:1px solid #ebeef5;border-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:5px;position:relative}.el-tiptap-editor__menu-bar:before{bottom:0;background-color:#ebeef5;content:"";height:1px;left:0;margin:0 10px;right:0;position:absolute}.el-tiptap-editor__menu-bubble{background-color:#fff;border-radius:8px;-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);display:-webkit-box;display:-ms-flexbox;display:flex;padding:5px;opacity:0;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;visibility:hidden;z-index:50}.el-tiptap-editor__menu-bubble--active{opacity:1;visibility:visible}.el-tiptap-editor__content{font-family:sans-serif;line-height:1.7;overflow-x:auto;text-align:left}.el-tiptap-editor__content,.el-tiptap-editor__content>*{-webkit-box-sizing:border-box;box-sizing:border-box}.el-tiptap-editor__content p{margin-bottom:0;margin-top:0;outline:0}.el-tiptap-editor__content h1,.el-tiptap-editor__content h2,.el-tiptap-editor__content h3,.el-tiptap-editor__content h4,.el-tiptap-editor__content h5{margin-top:20px;margin-bottom:20px}.el-tiptap-editor__content h1:first-child,.el-tiptap-editor__content h2:first-child,.el-tiptap-editor__content h3:first-child,.el-tiptap-editor__content h4:first-child,.el-tiptap-editor__content h5:first-child{margin-top:0}.el-tiptap-editor__content h1:last-child,.el-tiptap-editor__content h2:last-child,.el-tiptap-editor__content h3:last-child,.el-tiptap-editor__content h4:last-child,.el-tiptap-editor__content h5:last-child{margin-bottom:0}.el-tiptap-editor__content ol,.el-tiptap-editor__content ul{counter-reset:none;list-style-type:none;margin-bottom:0;margin-left:24px;margin-top:0;padding-bottom:5px;padding-left:0;padding-top:5px}.el-tiptap-editor__content li>p{margin:0}.el-tiptap-editor__content li>p:first-child:before{content:counter(el-tiptap-counter) ".";display:inline-block;left:-5px;line-height:1;margin-left:-24px;position:relative;text-align:right;top:0;width:24px}.el-tiptap-editor__content ul li>p:first-child:before{content:"•";text-align:center}.el-tiptap-editor__content ol{counter-reset:el-tiptap-counter}.el-tiptap-editor__content ol li>p:first-child:before{counter-increment:el-tiptap-counter}.el-tiptap-editor__content a{color:#409eff;cursor:pointer}.el-tiptap-editor__content blockquote{border-left:5px solid #edf2fc;border-radius:2px;color:#606266;margin:10px 0;padding-left:1em}.el-tiptap-editor__content code{background-color:#d9ecff;border-radius:4px;color:#409eff;display:inline-block;font-size:14px;font-weight:700;padding:0 8px}.el-tiptap-editor__content pre{background-color:#303133;color:#d9ecff;font-size:16px;overflow-x:auto;padding:14px 20px;margin:10px 0;border-radius:5px}.el-tiptap-editor__content pre code{background-color:transparent;border-radius:0;color:inherit;display:block;font-family:"Menlo,Monaco,Consolas,Courier,monospace";font-size:inherit;font-weight:400;padding:0}.el-tiptap-editor__content img{display:inline-block;float:none;margin:12px 0;max-width:100%}.el-tiptap-editor__content img[data-display=inline]{margin-left:12px;margin-right:12px}.el-tiptap-editor__content img[data-display=block]{display:block}.el-tiptap-editor__content img[data-display=left]{float:left;margin-left:0;margin-right:12px}.el-tiptap-editor__content img[data-display=right]{float:right;margin-left:12px;margin-right:0}.el-tiptap-editor__content .image-view{display:inline-block;float:none;line-height:0;margin:12px 0;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:baseline}.el-tiptap-editor__content .image-view--inline{margin-left:12px;margin-right:12px}.el-tiptap-editor__content .image-view--block{display:block}.el-tiptap-editor__content .image-view--left{float:left;margin-left:0;margin-right:12px}.el-tiptap-editor__content .image-view--right{float:right;margin-left:12px;margin-right:0}.el-tiptap-editor__content .image-view__body{clear:both;display:inline-block;max-width:100%;outline-color:transparent;outline-style:solid;outline-width:2px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in;position:relative}.el-tiptap-editor__content .image-view__body:hover{outline-color:#ffc83d}.el-tiptap-editor__content .image-view__body--focused:hover,.el-tiptap-editor__content .image-view__body--resizing:hover{outline-color:transparent}.el-tiptap-editor__content .image-view__body__placeholder{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.el-tiptap-editor__content .image-view__body__image{cursor:pointer;margin:0}.el-tiptap-editor__content .image-resizer{border:1px solid #409eff;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.el-tiptap-editor__content .image-resizer__handler{background-color:#409eff;border:1px solid #fff;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:12px;position:absolute;width:12px;z-index:2}.el-tiptap-editor__content .image-resizer__handler--tl{cursor:nw-resize;left:-6px;top:-6px}.el-tiptap-editor__content .image-resizer__handler--tr{cursor:ne-resize;right:-6px;top:-6px}.el-tiptap-editor__content .image-resizer__handler--bl{bottom:-6px;cursor:sw-resize;left:-6px}.el-tiptap-editor__content .image-resizer__handler--br{bottom:-6px;cursor:se-resize;right:-6px}.el-tiptap-editor__content ul[data-type=todo_list]{margin-left:5px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-bottom:0}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=right]{-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:flex-end!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=center]{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item[data-text-align=justify]{text-align:space-between!important}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content{padding-left:10px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content>p{font-size:16px}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item .todo-content>p:last-of-type{margin-bottom:0}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item--done>.todo-checkbox{color:#409eff}.el-tiptap-editor__content ul[data-type=todo_list] .todo-item--done>.todo-content>p{color:#409eff;text-decoration:line-through}.el-tiptap-editor__content hr{margin-top:20px;margin-bottom:20px}.el-tiptap-editor__content [data-indent="1"]{margin-left:30px!important}.el-tiptap-editor__content [data-indent="2"]{margin-left:60px!important}.el-tiptap-editor__content [data-indent="3"]{margin-left:90px!important}.el-tiptap-editor__content [data-indent="4"]{margin-left:120px!important}.el-tiptap-editor__content [data-indent="5"]{margin-left:150px!important}.el-tiptap-editor__content [data-indent="6"]{margin-left:180px!important}.el-tiptap-editor__content [data-indent="7"]{margin-left:210px!important}.el-tiptap-editor__content .tableWrapper{margin:1em 0;overflow-x:auto}.el-tiptap-editor__content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.el-tiptap-editor__content td,.el-tiptap-editor__content th{border:2px solid #ebeef5;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.el-tiptap-editor__content td.selectedCell,.el-tiptap-editor__content th.selectedCell{background-color:#ecf5ff}.el-tiptap-editor__content th{font-weight:500;text-align:left}.el-tiptap-editor__content .column-resize-handle{background-color:#b3d8ff;bottom:0;pointer-events:none;position:absolute;right:-2px;top:0;width:4px;z-index:20}.el-tiptap-editor__content .iframe{height:0;padding-bottom:56.25%;position:relative;width:100%}.el-tiptap-editor__content .iframe__embed{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.el-tiptap-editor__content .resize-cursor{cursor:ew-resize;cursor:col-resize}.el-tiptap-editor__footer{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #ebeef5;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:sans-serif;font-size:14px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:10px}.el-tiptap-editor .ProseMirror{outline:0}.el-tiptap-editor__placeholder.el-tiptap-editor--empty:first-child:before,.el-tiptap-editor__with-title-placeholder:first-child:before,.el-tiptap-editor__with-title-placeholder:nth-child(2):before{color:#c0c4cc;content:attr(data-empty-text);float:left;height:0;pointer-events:none}.el-tiptap-editor__characters{color:#939599}.el-tiptap-editor__command-button{border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:50%;color:#303133;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:40px;margin:2px;outline:0;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:40px}.el-tiptap-editor__command-button:hover{background-color:#e4e9f2}.el-tiptap-editor__command-button--active{background-color:#ecf5ff;color:#409eff}.el-tiptap-editor__command-button--readonly{cursor:default;opacity:.3;pointer-events:none}.el-tiptap-editor__command-button--readonly:hover{background-color:transparent}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item{color:#303133;line-height:1.5;padding-top:5px;padding-bottom:5px}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item [data-item-type=heading]{margin-bottom:0;margin-top:0}.el-tiptap-dropdown-menu .el-tiptap-dropdown-menu__item--active{background-color:#ecf5ff;color:#409eff}.el-tiptap-popper.el-popper{min-width:0}.el-tiptap-popper__menu__item{color:#303133;cursor:pointer;padding:8px 0}.el-tiptap-popper__menu__item--active,.el-tiptap-popper__menu__item:hover{color:#409eff}.el-tiptap-popper__menu__item--disabled{cursor:default;opacity:.2}.el-tiptap-popper__menu__item--disabled:hover{color:inherit}.el-tiptap-popper__menu__item__separator{border-top:1px solid #dcdfe6;height:0;margin:5px 0;width:100%}.el-tiptap-upload{display:-webkit-box;display:-ms-flexbox;display:flex}.el-tiptap-upload .el-upload,.el-tiptap-upload .el-upload-dragger{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-tiptap-upload .el-upload-dragger{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:300px;width:100%}.el-tiptap-upload .el-upload-dragger .el-tiptap-upload__icon{font-size:50px;margin-bottom:10px}.el-tiptap-upload .el-upload-dragger:hover .el-tiptap-upload__icon{color:#409eff}.color-set{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:240px}.color-set .color{border-radius:50%;-webkit-box-shadow:rgba(0,0,0,.2) 0 3px 3px -2px,rgba(0,0,0,.14) 0 3px 4px 0,rgba(0,0,0,.12) 0 1px 8px 0;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);color:#fff;height:30px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:30px}.color-set .color,.color-set .color__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.color-set .color__wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 12.5%;flex:0 0 12.5%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:5px}.color-set .color--selected,.color-set .color:hover{border:2px solid #fff;-webkit-transform:scale(1.3);transform:scale(1.3)}.color-set .color--remove{position:relative}.color-set .color--remove:hover:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.color-set .color--remove:hover:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.color-set .color--remove:after,.color-set .color--remove:before{background-color:#f56c6c;bottom:0;content:"";left:50%;position:absolute;margin:2px 0;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:2px}.color-hex{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:10px}.color-hex .color-hex__button{margin-left:10px;padding-left:15px;padding-right:15px}.table-grid-size-editor__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-grid-size-editor__body,.table-grid-size-editor__row{display:-webkit-box;display:-ms-flexbox;display:flex}.table-grid-size-editor__cell{background-color:#fff;padding:5px}.table-grid-size-editor__cell__inner{border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;height:16px;padding:4px;width:16px}.table-grid-size-editor__cell--selected .table-grid-size-editor__cell__inner{background-color:#ecf5ff;border-color:#409eff}.table-grid-size-editor__footer{margin-top:5px;text-align:center}.el-tiptap-edit-image-dialog .el-form-item:last-child{margin-bottom:0}.el-tiptap-edit-image-dialog input[type=number]::-webkit-inner-spin-button,.el-tiptap-edit-image-dialog input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.el-tiptap-edit-link-dialog .el-form-item:last-child{margin-bottom:0}.el-popper.el-tiptap-image-popper{background-color:#fff;border-radius:8px;-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;padding:5px}.el-popper.el-tiptap-image-popper .image-bubble-menu{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.link-bubble-menu{display:-webkit-box;display:-ms-flexbox;display:flex}.fa-icon{display:inline-block;fill:currentColor;overflow:visible}.fa-icon>g{-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both{-webkit-transform:scale(-1);transform:scale(-1)}.fa-spin>g{-webkit-animation:fa-spin 1s linear 0s infinite;animation:fa-spin 1s linear 0s infinite}.fa-pulse>g{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}.fa-inverse{color:#fff}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),e.A=a},3533:function(e){"use strict";e.exports=t},4486:function(t,e,o){"use strict";function i(t,e,o,i,r,n,a,l){var p,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),a?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=p):r&&(p=l?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),p)if(d.functional){d._injectStyles=p;var s=d.render;d.render=function(t,e){return p.call(e),s(t,e)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,p):[p]}return{exports:t,options:d}}o.d(e,{A:function(){return i}})},5056:function(t,e,o){"use strict";t.exports=function(t){var e=o.nc;e&&t.setAttribute("nonce",e)}},5072:function(t){"use strict";var e=[];function o(t){for(var o=-1,i=0;i<e.length;i++)if(e[i].identifier===t){o=i;break}return o}function i(t,i){for(var n={},a=[],l=0;l<t.length;l++){var p=t[l],d=i.base?p[0]+i.base:p[0],s=n[d]||0,c="".concat(d," ").concat(s);n[d]=s+1;var f=o(c),b={css:p[1],media:p[2],sourceMap:p[3],supports:p[4],layer:p[5]};if(-1!==f)e[f].references++,e[f].updater(b);else{var x=r(b,i);i.byIndex=l,e.splice(l,0,{identifier:c,updater:x,references:1})}a.push(c)}return a}function r(t,e){var o=e.domAPI(e);return o.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,r){var n=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<n.length;a++){var l=o(n[a]);e[l].references--}for(var p=i(t,r),d=0;d<n.length;d++){var s=o(n[d]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}n=p}}},5554:function(t){t.exports=function(){return this.Vue}()},6314:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o="",i=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),i&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),i&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o})).join("")},e.i=function(t,o,i,r,n){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var l=0;l<this.length;l++){var p=this[l][0];null!=p&&(a[p]=!0)}for(var d=0;d<t.length;d++){var s=[].concat(t[d]);i&&a[s[0]]||(void 0!==n&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=n),o&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=o):s[2]=o),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),e.push(s))}},e}},7659:function(t){"use strict";var e={};t.exports=function(t,o){var i=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(o)}},7825:function(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(o){!function(t,e,o){var i="";o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var r=void 0!==o.layer;r&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,r&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}");var n=o.sourceMap;n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,o)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={id:t,exports:{}};return e[t](n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var r={};return function(){"use strict";i.r(r),i.d(r,{default:function(){return v}});var t=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"bpm-rich-text"},["table"==t.uiType?o("i",{staticClass:"el-icon-notebook-2",class:{active:t.curVal},on:{click:function(e){e.stopPropagation(),t.dialogVisible=!0}}}):o("el-tiptap",{attrs:{extensions:t.extensions,showMenubar:!t.readonly,readonly:t.readonly,placeholder:t.fieldConf.name},on:{onBlur:t.handleChange},model:{value:t.curVal,callback:function(e){t.curVal=e},expression:"curVal"}}),t._v(" "),"table"==t.uiType&&t.dialogVisible?o("el-dialog",{attrs:{title:t.fieldConf.name,visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[o("el-tiptap",{attrs:{extensions:t.extensions,showMenubar:!t.readonly,readonly:t.readonly,placeholder:t.fieldConf.name},on:{onBlur:t.handleChange},model:{value:t.curVal,callback:function(e){t.curVal=e},expression:"curVal"}})],1):t._e()],1)};t._withStripped=!0;var e=i(5554),o=i.n(e),n=i(3533),a=i(5072),l=i.n(a),p=i(7825),d=i.n(p),s=i(7659),c=i.n(s),f=i(5056),b=i.n(f),x=i(540),u=i.n(x),m=i(1113),_=i.n(m),g=i(2419),h={};h.styleTagTransform=_(),h.setAttributes=b(),h.insert=c().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=u(),l()(g.A,h),g.A&&g.A.locals&&g.A.locals,o().use(n.ElementTiptapPlugin,{lang:"en",spellcheck:!0});var w={name:"BpmRichText",components:{"el-tiptap":n.ElementTiptap},props:{value:String,fieldConf:Object,mode:String,uiType:String},data(){return{curVal:"",extensions:[new n.Doc,new n.Text,new n.Paragraph,new n.Heading({level:5}),new n.Bold,new n.Underline({bubble:!0,menubar:!1}),new n.Italic,new n.Strike({bubble:!0,menubar:!1}),new n.Link,new n.Blockquote,new n.Table,new n.TableHeader,new n.TableCell,new n.TableRow,new n.ListItem,new n.BulletList,new n.OrderedList,new n.TodoList,new n.TodoItem,new n.TextAlign,new n.Indent,new n.LineHeight,new n.TextColor,new n.TextHighlight,new n.FontType,new n.FontSize,new n.SelectAll,new n.FormatClear,new n.History,new n.Fullscreen],dialogVisible:!1}},computed:{readonly(){return"view"===this.mode}},watch:{value:{handler(t){this.curVal=t},immediate:!0}},methods:{handleClose(){this.dialogVisible=!1},handleChange(t){console.log(t),console.log("this.curVal: ",this.curVal),this.$emit("input",this.curVal),this.$emit("change",this.curVal)}},mounted(){}},y=(0,i(4486).A)(w,t,[],!1,null,null,null);y.options.__file="components/lib/bpmRichText/src/main.vue";var k=y.exports;k.install=function(t){t.component(k.name,k)};var v=k}(),r}()}));
|
package/dist/bpmSelect.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,(function(e,t){return function(){var n={9795:function(e,t,n){"use strict";function l(e,t=""){var n=document.createElement("style"),l=document.head||document.getElementsByTagName("head")[0];if(n.type="text/css",t&&n.setAttribute("id",t),n.styleSheet){var o=function(){try{n.styleSheet.cssText=e}catch(e){console.log(e)}};n.styleSheet.disabled?setTimeout(o,10):o()}else{var a=document.createTextNode(e);n.appendChild(a)}document.getElementById(t)||l.appendChild(n)}n.d(t,{L_:function(){return l}}),n(6773),n(5360)},7574:function(e,t,n){"use strict";var l=n(1601),o=n.n(l),a=n(6314);n.n(a)()(o()).push([e.id,".status-normal {\n color: #333333;\n}\n.status-warning {\n color: #FAAF19;\n}\n.status-warning2 {\n color: #FAAF19;\n}\n.status-overtime {\n color: #F4343E;\n}\n.status-overtime2 {\n color: #F4343E;\n}\n",""])},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",l=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),l&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),l&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,l,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(l)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(r[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);l&&r[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},6702:function(e,t,n){"use strict";n.d(t,{default:function(){return i}});var l=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{class:"status-"+e.statusType,staticStyle:{"font-weight":"500","font-size":"16px"},attrs:{endTime:e.endTime}},[e._t("default",(function(){return[e._v("\n"+e._s(e.content)+"\n")]}))],2)};l._withStripped=!0;var o={name:"BpmOverTime",data(){return{content:"",endTime:"",timer:null,statusType:"normal"}},props:{defaultEndTime:{type:String,default:""},colValue:{type:String,default:""}},watch:{endTime(){this.countdown(this.endTime)},colValue(e){this.endTime=e}},beforeUnmount(){this.timer&&clearInterval(this.timer)},mounted(){this.endTime=this.colValue,this.countdown(this.endTime)},methods:{countdown(e){let t={};_.isNumber(e)||(t=new Date(e)),e=parseInt(t.getTime()/1e3);let n=this;n.timer&&clearInterval(n.timer),this.timer=setInterval((()=>{let t=new Date;if(!e||0==e.length)return;let l=new Date(1e3*e).getTime()-t.getTime(),o=Math.abs(Math.floor(l/864e5)),a=Math.abs(Math.floor(l/36e5%24)),r=Math.abs(Math.floor(l/6e4%60)),i=Math.abs(Math.floor(l/1e3%60)),s="";o>1&&(this.statusType="normal",s=`${o}天`),o<=1&&o>0&&(this.statusType="warning2",s=`${o}天${a}小时`),o<=0&&a>0&&(this.statusType="warning",s=`${a}小时${r}分`),o<=0&&a<=0&&(this.statusType="danger",s=`${r}分${i}秒`),n.content=s,l<0&&(this.statusType="overtime2",n.content="超期"+n.content)}),1e3)}}},a=(n(7574),(0,n(4486).A)(o,l,[],!1,null,null,null));a.options.__file="components/lib/bpmOverTime/src/main.vue";var r=a.exports;r.install=function(e){e.component(r.name,r)};var i=r},4486:function(e,t,n){"use strict";function l(e,t,n,l,o,a,r,i){var s,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),l&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),r?(s=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(r)},u._ssrRegister=s):o&&(s=i?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(e,t){return s.call(t),c(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:u}}n.d(t,{A:function(){return l}})},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},5360:function(e){"use strict";e.exports=t}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{default:function(){return C}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-select",attrs:{fieldConf:e.fieldConf,row:e.row,isMultiple:e.isMultiple,mode:e.mode,uiType:e.uiType},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"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-select-edit"},[e.isRadiosStyle?[e.isMultiple?[n("el-checkbox-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-checkbox-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]:[n("el-radio-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-radio-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]]:e.isButtonStyle?[e.isMultiple?[n("el-checkbox-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-checkbox-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-checkbox-button",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]:[n("el-radio-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-radio-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-radio-button",{key:t.value,class:"button-group-item-"+e.fieldConf.id+"-"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]]:[n("el-select",e._g(e._b({class:{"auto-width-select":!e.isMultiple},attrs:{placeholder:e.placeholder,multiple:e.isMultiple,clearable:"",filterable:""},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-select",e.$attrs,!1),e.$listeners),[e.isMultiple?e._e():n("template",{slot:"prefix"},[n("span",{staticStyle:{visibility:"hidden"}},[e._v("\n "+e._s((e.options.find((function(t){return t.value===e.value}))||{}).label))])]),e._v(" "),e._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[n("span",{attrs:{title:t.label}},[e._v(e._s(t.label))])])}))],2)]],2)};t._withStripped=!0;var n=o(6773),l=o.n(n),r=o(5554),i=o.n(r),s=o(7642),u=o(9795);i().use(s.Select),i().use(s.Option);var c={components:{},props:["value","fieldConf","row","isMultiple"],data(){return{curVal:null}},watch:{value(e){console.log("select_val",e),0===e?(this.isMultiple?this.curVal=[0]:this.curVal=0,console.log("select_curVal",this.curVal)):this.curVal=this.value?this.value:this.isMultiple?[]:null}},computed:{options(){let e=l().get(this.fieldConf,"range_enum");return l().map(e,(e=>({value:l().get(e,"0"),label:l().get(e,"1"),color:l().get(e,"2")})))},placeholder(){return this.fieldConf.desc||this.fieldConf.name},isRadiosStyle(){return"default"==l().get(this.fieldConf,"style")},isButtonStyle(){return"button"==l().get(this.fieldConf,"style")}},created(){this.curVal=this.isMultiple?[]:null},mounted(){this.curVal=this.value?this.value:this.isMultiple?[]:null,this.isButtonStyle&&this.addButtonStyleCss()},methods:{addButtonStyleCss(){let e=".bpm-select-edit {",t=l().get(this.fieldConf,"range_enum");l().map(t,(t=>{e+=` .button-group-item-${this.fieldConf.id}-${l().get(t,"0")}{\n .el-radio-button__orig-radio:checked+.el-radio-button__inner {\n color: #fff;\n background-color: ${l().get(t,"2")};\n border-color: ${l().get(t,"2")};\n -webkit-box-shadow: -1px 0 0 0 ${l().get(t,"2")};\n box-shadow: -1px 0 0 0 ${l().get(t,"2")};\n }\n } `})),(0,u.L_)(e,"button-group-item-"+this.fieldConf.id)},onChange(e){""===e?(console.log("bpmSelectOnChange",e),this.$emit("input",null),this.$emit("change",null)):(this.$emit("input",e),this.$emit("change",e))}}},p=o(4486),d=(0,p.A)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmSelect/src/part/editor.vue";var h=d.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-select-view"},[e.isStatus&&e.rangeEnumMap[e.value]?n("div",[n("span",{staticClass:"bpm-status_tag-status",style:{background:e.colorMap[e.value]}},[e._v(e._s(e.rangeEnumMap[e.value]))]),e._v(" "),"form"==e.uiType&&e.row.overtime?n("overtime",{staticClass:"over-time",staticStyle:{"margin-left":"10px","line-height":"21px"},attrs:{colValue:e.row.overtime}}):e._e()],1):e.isStatus?n("span",{attrs:{title:e.label}}):e.isButton&&e.value?n("span",{staticClass:"bpm-btn-select",style:{padding:"6px 8px",color:e.colorMap[e.value],background:e.colorMap[e.value]+"3d"},attrs:{title:e.label}},[e._v(e._s(e.label))]):n("span",[e.isMultiple?e._l(e.labels,(function(t){return n("el-tag",{key:t,staticClass:"bpm-select-view-tag",staticStyle:{"margin-right":"8px"}},[e._v("\n "+e._s(t)+"\n ")])})):[e._v("\n "+e._s(e.label)+"\n ")]],2)])};f._withStripped=!0;var m={props:["type","value","fieldConf","row","isMultiple","uiType"],components:{overtime:o(6702).default},data(){return{colorMap:{}}},computed:{_value(){return l().isArray(this.value)?this.value:[this.value]},rangeEnumMap(){let e=l().get(this.fieldConf,"range_enum"),t={};return l().each(e,(e=>{t[e[0]]=e[1]})),this.setColorMap(),t},labels(){return l().isArray(this.value)?l().map(this._value,(e=>l().get(this.rangeEnumMap,e))):[l().get(this.rangeEnumMap,this.value,zj.z("未指定","b2.common.not_specified"))]},label(){return l().isArray(this.value)?l().map(this._value,(e=>l().get(this.rangeEnumMap,e))).join(","):l().get(this.rangeEnumMap,this.value,zj.z("未指定","b2.common.not_specified"))},isButton(){return"button"==l().get(this.fieldConf,"style")},isStatus(){return"Status"===this.type||"Status"===this.fieldConf.type}},mounted(){},methods:{setColorMap(){let e=l().get(this.fieldConf,"range_enum");this.colorMap={},l().each(e,(e=>{this.colorMap[e[0]]=e[2]}))}}},v=(0,p.A)(m,f,[],!1,null,null,null);v.options.__file="components/lib/bpmSelect/src/part/reader.vue";var g=v.exports,_={name:"BpmSelect",components:{editorComponent:h,readerComponent:g},props:{value:{type:[String,Array,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},isMultiple:{type:Boolean,default(){return!1}}},data(){return{curVal:null}},computed:{curComponent(){return"view"==this.mode?g:h}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},b=(0,p.A)(_,e,[],!1,null,null,null);b.options.__file="components/lib/bpmSelect/src/main.vue";var y=b.exports;y.install=function(e){e.component(y.name,y)};var C=y}(),a}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,(function(e,t){return function(){var n={1601:function(e){"use strict";e.exports=function(e){return e[1]}},4486:function(e,t,n){"use strict";function l(e,t,n,l,o,a,r,i){var s,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),l&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),r?(s=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(r)},u._ssrRegister=s):o&&(s=i?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(e,t){return s.call(t),c(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:u}}n.d(t,{A:function(){return l}})},5360:function(e){"use strict";e.exports=t},5554:function(e){e.exports=function(){return this.Vue}()},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",l=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),l&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),l&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,l,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(l)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(r[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);l&&r[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},6702:function(e,t,n){"use strict";n.d(t,{default:function(){return i}});var l=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{class:"status-"+e.statusType,staticStyle:{"font-weight":"500","font-size":"16px"},attrs:{endTime:e.endTime}},[e._t("default",(function(){return[e._v("\n"+e._s(e.content)+"\n")]}))],2)};l._withStripped=!0;var o={name:"BpmOverTime",data(){return{content:"",endTime:"",timer:null,statusType:"normal"}},props:{defaultEndTime:{type:String,default:""},colValue:{type:String,default:""}},watch:{endTime(){this.countdown(this.endTime)},colValue(e){this.endTime=e}},beforeUnmount(){this.timer&&clearInterval(this.timer)},mounted(){this.endTime=this.colValue,this.countdown(this.endTime)},methods:{countdown(e){let t={};_.isNumber(e)||(t=new Date(e)),e=parseInt(t.getTime()/1e3);let n=this;n.timer&&clearInterval(n.timer),this.timer=setInterval((()=>{let t=new Date;if(!e||0==e.length)return;let l=new Date(1e3*e).getTime()-t.getTime(),o=Math.abs(Math.floor(l/864e5)),a=Math.abs(Math.floor(l/36e5%24)),r=Math.abs(Math.floor(l/6e4%60)),i=Math.abs(Math.floor(l/1e3%60)),s="";o>1&&(this.statusType="normal",s=`${o}天`),o<=1&&o>0&&(this.statusType="warning2",s=`${o}天${a}小时`),o<=0&&a>0&&(this.statusType="warning",s=`${a}小时${r}分`),o<=0&&a<=0&&(this.statusType="danger",s=`${r}分${i}秒`),n.content=s,l<0&&(this.statusType="overtime2",n.content="超期"+n.content)}),1e3)}}},a=(n(7574),(0,n(4486).A)(o,l,[],!1,null,null,null));a.options.__file="components/lib/bpmOverTime/src/main.vue";var r=a.exports;r.install=function(e){e.component(r.name,r)};var i=r},6773:function(t){"use strict";t.exports=e},7574:function(e,t,n){"use strict";var l=n(1601),o=n.n(l),a=n(6314);n.n(a)()(o()).push([e.id,".status-normal {\n color: #333333;\n}\n.status-warning {\n color: #FAAF19;\n}\n.status-warning2 {\n color: #FAAF19;\n}\n.status-overtime {\n color: #F4343E;\n}\n.status-overtime2 {\n color: #F4343E;\n}\n",""])},7642:function(e){e.exports=function(){return this.ELEMENT}()},9795:function(e,t,n){"use strict";function l(e,t=""){var n=document.createElement("style"),l=document.head||document.getElementsByTagName("head")[0];if(n.type="text/css",t&&n.setAttribute("id",t),n.styleSheet){var o=function(){try{n.styleSheet.cssText=e}catch(e){console.log(e)}};n.styleSheet.disabled?setTimeout(o,10):o()}else{var a=document.createTextNode(e);n.appendChild(a)}document.getElementById(t)||l.appendChild(n)}n.d(t,{L_:function(){return l}}),n(6773),n(5360)}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={id:e,exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{default:function(){return C}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-select",attrs:{fieldConf:e.fieldConf,row:e.row,isMultiple:e.isMultiple,mode:e.mode,uiType:e.uiType},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"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-select-edit"},[e.isRadiosStyle?[e.isMultiple?[n("el-checkbox-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-checkbox-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]:[n("el-radio-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-radio-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]]:e.isButtonStyle?[e.isMultiple?[n("el-checkbox-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-checkbox-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-checkbox-button",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]:[n("el-radio-group",e._g(e._b({on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-radio-group",e.$attrs,!1),e.$listeners),e._l(e.options,(function(t){return n("el-radio-button",{key:t.value,class:"button-group-item-"+e.fieldConf.id+"-"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)]]:[n("el-select",e._g(e._b({class:{"auto-width-select":!e.isMultiple},attrs:{placeholder:e.placeholder,multiple:e.isMultiple,clearable:"",filterable:""},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"el-select",e.$attrs,!1),e.$listeners),[e.isMultiple?e._e():n("template",{slot:"prefix"},[n("span",{staticStyle:{visibility:"hidden"}},[e._v("\n "+e._s((e.options.find((function(t){return t.value===e.value}))||{}).label))])]),e._v(" "),e._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[n("span",{attrs:{title:t.label}},[e._v(e._s(t.label))])])}))],2)]],2)};t._withStripped=!0;var n=o(6773),l=o.n(n),r=o(5554),i=o.n(r),s=o(7642),u=o(9795);i().use(s.Select),i().use(s.Option);var c={components:{},props:["value","fieldConf","row","isMultiple"],data(){return{curVal:null}},watch:{value(e){console.log("select_val",e),0===e?(this.isMultiple?this.curVal=[0]:this.curVal=0,console.log("select_curVal",this.curVal)):this.curVal=this.value?this.value:this.isMultiple?[]:null}},computed:{options(){let e=l().get(this.fieldConf,"range_enum");return l().map(e,(e=>({value:l().get(e,"0"),label:l().get(e,"1"),color:l().get(e,"2")})))},placeholder(){return this.fieldConf.desc||this.fieldConf.name},isRadiosStyle(){return"default"==l().get(this.fieldConf,"style")},isButtonStyle(){return"button"==l().get(this.fieldConf,"style")}},created(){this.curVal=this.isMultiple?[]:null},mounted(){this.curVal=this.value?this.value:this.isMultiple?[]:null,this.isButtonStyle&&this.addButtonStyleCss()},methods:{addButtonStyleCss(){let e=".bpm-select-edit {",t=l().get(this.fieldConf,"range_enum");l().map(t,(t=>{e+=` .button-group-item-${this.fieldConf.id}-${l().get(t,"0")}{\n .el-radio-button__orig-radio:checked+.el-radio-button__inner {\n color: #fff;\n background-color: ${l().get(t,"2")};\n border-color: ${l().get(t,"2")};\n -webkit-box-shadow: -1px 0 0 0 ${l().get(t,"2")};\n box-shadow: -1px 0 0 0 ${l().get(t,"2")};\n }\n } `})),(0,u.L_)(e,"button-group-item-"+this.fieldConf.id)},onChange(e){""===e?(console.log("bpmSelectOnChange",e),this.$emit("input",null),this.$emit("change",null)):(this.$emit("input",e),this.$emit("change",e))}}},p=o(4486),d=(0,p.A)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmSelect/src/part/editor.vue";var h=d.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-select-view"},[e.isStatus&&e.rangeEnumMap[e.value]?n("div",[n("span",{staticClass:"bpm-status_tag-status",style:{background:e.colorMap[e.value]}},[e._v(e._s(e.rangeEnumMap[e.value]))]),e._v(" "),"form"==e.uiType&&e.row.overtime?n("overtime",{staticClass:"over-time",staticStyle:{"margin-left":"10px","line-height":"21px"},attrs:{colValue:e.row.overtime}}):e._e()],1):e.isStatus?n("span",{attrs:{title:e.label}}):e.isButton&&e.value?n("span",{staticClass:"bpm-btn-select",style:{padding:"6px 8px",color:e.colorMap[e.value],background:e.colorMap[e.value]+"3d"},attrs:{title:e.label}},[e._v(e._s(e.label))]):n("span",[e.isMultiple?e._l(e.labels,(function(t){return n("el-tag",{key:t,staticClass:"bpm-select-view-tag",staticStyle:{"margin-right":"8px"}},[e._v("\n "+e._s(t)+"\n ")])})):[e._v("\n "+e._s(e.label)+"\n ")]],2)])};f._withStripped=!0;var m={props:["type","value","fieldConf","row","isMultiple","uiType"],components:{overtime:o(6702).default},data(){return{colorMap:{}}},computed:{_value(){return l().isArray(this.value)?this.value:[this.value]},rangeEnumMap(){let e=l().get(this.fieldConf,"range_enum"),t={};return l().each(e,(e=>{t[e[0]]=e[1]})),this.setColorMap(),t},labels(){return l().isArray(this.value)?l().map(this._value,(e=>l().get(this.rangeEnumMap,e))):[l().get(this.rangeEnumMap,this.value,zj.z("未指定","b2.common.not_specified"))]},label(){return l().isArray(this.value)?l().map(this._value,(e=>l().get(this.rangeEnumMap,e))).join(","):l().get(this.rangeEnumMap,this.value,zj.z("未指定","b2.common.not_specified"))},isButton(){return"button"==l().get(this.fieldConf,"style")},isStatus(){return"Status"===this.type||"Status"===this.fieldConf.type}},mounted(){},methods:{setColorMap(){let e=l().get(this.fieldConf,"range_enum");this.colorMap={},l().each(e,(e=>{this.colorMap[e[0]]=e[2]}))}}},v=(0,p.A)(m,f,[],!1,null,null,null);v.options.__file="components/lib/bpmSelect/src/part/reader.vue";var g=v.exports,_={name:"BpmSelect",components:{editorComponent:h,readerComponent:g},props:{value:{type:[String,Array,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},isMultiple:{type:Boolean,default(){return!1}}},data(){return{curVal:null}},computed:{curComponent(){return"view"==this.mode?g:h}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},b=(0,p.A)(_,e,[],!1,null,null,null);b.options.__file="components/lib/bpmSelect/src/main.vue";var y=b.exports;y.install=function(e){e.component(y.name,y)};var C=y}(),a}()}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,(function(e,t){return function(){var r={5281:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(9795),a=r(6773),i=r.n(a),o=class{constructor(e,t={}){this._fnBatchLoad=e,this._options=t,this._queue=[]}async load(e){let t=await this.loads(e);return i().get(t,"0")}loads(...e){return new Promise(((t,r)=>{this._queue.push({keys:e,resolve:t,reject:r}),1==this._queue.length&&this.nextTick((()=>{this.process()}))}))}nextTick(e){setTimeout(e,0)}process(){let e=this._queue;this._queue=[];let t={};i().each(e,(e=>{i().each(e.keys,(e=>t[e]=null))}));let r=i().keys(t);this._fnBatchLoad(r).then((n=>{i().each(r,((e,r)=>{t[e]=n[r]})),i().each(e,(({keys:e,resolve:r})=>{r(i().map(e,(e=>t[e])))}))})).catch((t=>{i().each(e,(({reject:e})=>e(t)))}))}};const s=async(e,t,r)=>{if(t.setNetworking(!0),t.netHeader&&(e.headers={common:t.netHeader}),e.params=_.merge({},e.params,r),t.env.ignore_levels&&_.set(e.params,"ignore_levels",!0),(0,n.Fr)()){let t=zj.utils.pageParam().token;e.params=_.merge({token:t,platform:"phone"},e.params)}e.isSilentOnErr=e=>{let t=_.get(e,"data.result");return t>=19e6||t<=19999999};let a=_.cloneDeep(e);if(a.can_custom_org_params){let e=_.cloneDeep(_.get(t,"orgInfo",{}));console.log("bpm3_orgInfo",e),e.custom_page_level&&(a.params.page_level=e.custom_page_level),e.custom_group_id&&(a.params.group_id=e.custom_group_id),e.custom_team_id&&(a.params.team_id=e.custom_team_id),e.custom_project_id&&(a.params.project_id=e.custom_project_id)}console.log("bpm3_orgInfo_reqArgs",a);let i=await zj.net.request(a);return t.setNetworking(!1),i},l={},u={};var c={assistSelectEntranceForm:{getListDefinition(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a}){return s({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_definition/`,method:"GET"},e,n)},getOptions(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i){return s({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_search/`,method:"GET",params:i},e,n)},getListSelected(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i){return s({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_selected/`,method:"GET",params:i},e,n)}},assistField:{getBatchLoader(e,{formDefId:t,fieldDefId:r,orgInfo:n,uniqueId:a}){const i=`${t}/${r}`,u=l[i]||new o((async i=>{let o=`/app_flow/v1/papi/assist_field/${t}/${r}/list_title/`;const l=await s({url:o,method:"GET",params:{values:JSON.stringify(i)}},e,n),u=_.get(l,"data.data.data",{});let c=[];return _.map(i,(e=>{a?(e=JSON.parse(e),e=_.get(e,`${a}`),c=_.concat(c,u[e])):c=_.concat(c,u[e])})),c}));return l[i]=u,u},getTitle(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i){return s({url:`/app_flow/v1/papi/assist_field/${t}/${r}/list_title/`,method:"GET",params:{values:JSON.stringify(i)}},e,n)},async searchSelectOpts(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i={},o=""){o&&(i.q=o);let l=a?`/app_flow/v1/papi/dm/assist_field/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_field/${t}/${r}/search_title/`,c=`${t}/${r}/${o}/${JSON.stringify(n)}/${JSON.stringify(i)}`,f={};return u[c]&&"loading"==u[c]?(console.log("有缓存,返回"),await this.waitCacheMapData(c)):(!u[c]||(new Date).getTime()-u[c].last_time>6e4?(u[c]="loading",f=await s({url:l,method:a?"GET":"POST",data:i,can_custom_org_params:!0},e,n),u[c]={last_time:(new Date).getTime(),result:f}):(console.log("有缓存"),u[c].result&&(f=u[c].result)),f)},waitCacheMapData(e){return new Promise((t=>{let r=setInterval((()=>{u[e]&&"loading"!=u[e]&&u[e].result&&(clearInterval(r),t(u[e].result))}),100)}))},selectFromMulFormSearchOpts(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i={},o=""){return o&&(i.q=o),s({url:a?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/search_title/`,method:"GET",params:i},e,n)},selectFromMulFormListTitleLoader(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a}){const i=`${t}/${r}`,u=l[i]||new o((async i=>{let o=a?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/list_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/list_title/`;const l=await s({url:o,method:"GET",params:{values:JSON.stringify(i)}},e,n),u=_.get(l.data,"data.items",[]),c={};u.forEach((e=>{Object.keys(e.data).forEach((t=>{let r=e.data[t];c[t]={form_def_id:_.get(e,"definition.form.id"),form_title:_.get(e,"definition.form.name"),label:r}}))}));let f=[];return i.forEach((e=>{f.push(c[e])})),f}));return l[i]=u,u},selectFromMulFormListTitle(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i){return s({url:a?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/list_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/list_title/`,method:"GET",params:{values:JSON.stringify(i)}},e,n)}},assistTreeField:{searchSelectOpts(e,{formDefId:t,fieldDefId:r,orgInfo:n,isDm:a},i={},o=""){return o&&(i.q=o),s({url:a?`/app_flow/v1/papi/dm/assist_tree_field/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_tree_field/${t}/${r}/search_title/`,method:"GET",params:i,can_custom_org_params:!0},e,n)}},assistUserTaskCC:{searchSelectOpts(e,{formDefId:t,node:r,orgInfo:n,isDm:a},i={},o=""){return o&&(i.q=o),s({url:`/app_flow/v1/papi/assist_user_task_cc/${t}/${r}/search_title/`,method:"GET",params:i},e,n)}}}},9795:function(e,t,r){"use strict";function n(){for(var e=["iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire"],t=navigator.userAgent.toLowerCase(),r=!1,n=0,a=e.length;n<a;n++)-1!=t.indexOf(e[n])&&(r=!0);return r}r.d(t,{Fr:function(){return n}}),r(6773),r(5360)},6509:function(e,t,r){"use strict";var n=r(1601),a=r.n(n),i=r(6314),o=r.n(i)()(a());o.push([e.id,".bpm-select-tree {\n .el-select-dropdown__item.hover {\n background: none!important;\n }\n .tree-options.el-select-dropdown__item {\n padding: 0 0;\n }\n}\n",""]),t.A=o},347:function(e,t,r){"use strict";var n=r(1601),a=r.n(n),i=r(6314),o=r.n(i),s=r(6509),l=o()(a());l.i(s.A),l.push([e.id,"\n",""]),t.A=l},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&o[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},5072:function(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},o=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],c=i[u]||0,f="".concat(u," ").concat(c);i[u]=c+1;var d=r(f),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var m=a(p,n);n.byIndex=s,t.splice(s,0,{identifier:f,updater:m,references:1})}o.push(f)}return o}function a(e,t){var r=t.domAPI(t);return r.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;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var i=n(e=e||[],a=a||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var s=r(i[o]);t[s].references--}for(var l=n(e,a),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},7659:function(e){"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},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,r){"use strict";e.exports=function(e){var t=r.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(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},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))}}},7348:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{attrs:{title:e.label}},[e._v(e._s(e.label))])};n._withStripped=!0;var a=r(6773),i=r.n(a),o={props:["value","fieldConf","row","formName","orgInfo"],data(){return{label:""}},watch:{value(){this.loadRemoteLabel()}},mounted(){this.loadRemoteLabel()},methods:{async loadRemoteLabel(){let e=this.value;if(i().isNil(e)||!e)return this.label=zj.z("未选择","c.not_selected");try{if(i().isObject(e))try{e=JSON.parse(e)}catch(e){console.log("error",e)}let t=i().isArray(e)?e:[e],r=i().get(this.fieldConf,"id");i().isEmpty(t)?this.label=zj.z("未选择","c.not_selected"):(t=i().isArray(t)?t:[t],this.label=await this.$bpm.fetchLabelByValues(t,r,this.formName,this.row))}finally{console.log("finally")}}}},s=(0,r(4486).A)(o,n,[],!1,null,null,null);s.options.__file="components/lib/mixins/RemoteSelectReader.vue";var l=s.exports},4486:function(e,t,r){"use strict";function n(e,t,r,n,a,i,o,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),o?(l=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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):a&&(l=s?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}r.d(t,{A:function(){return n}})},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},5360:function(e){"use strict";e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e](i,i.exports,a),i.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};return function(){"use strict";a.r(i),a.d(i,{default:function(){return N}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-select-check-item",attrs:{fieldConf:e.fieldConf,row:e.row,orgInfo:e.orgInfo,formName:e.formName,mode:e.mode,isMultiple:e.multiple,uiType:e.uiType},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-select",{staticStyle:{width:"100%"},attrs:{"popper-class":"bpm-select-tree",multiple:e.isMultiple,placeholder:e.placeholder,"multiple-limit":e.maxCount},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},[e._l(e.defaultOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),r("el-tree",{attrs:{lazy:"",load:e.loadNode,"node-key":"value",props:{label:"treeLabel",children:"children",disabled:"disabled",isLeaf:"isLeaf"},indent:16},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node;return n.data.disabled?r("span",{},[e._v("\n "+e._s(n.label)+"\n ")]):r("el-option",{staticClass:"tree-options",attrs:{value:n.data.value,label:n.data.label}},[r("span",{staticStyle:{"padding-right":"30px","max-width":"500px",overflow:"hidden"}},[e._v("\n "+e._s(n.label)+"\n ")])])}}],null,!0)})],2)],1)};t._withStripped=!0;var r=a(5281),n=a(5554),o=a.n(n),s=a(6773),l=a.n(s),u=a(7642);o().use(u.Tree),o().use(u.Select),o().use(u.Option);var c={props:["value","fieldConf","row","formName","formDefId","orgInfo","dm","isMultiple"],data(){return{curVal:"",defaultOptions:[]}},watch:{value(){this.curVal=this.value?this.value:this.isMultiple?[]:"",this.getDefaultOptions()}},computed:{placeholder(){return this.fieldConf.desc||this.fieldConf.name},maxCount(){return l().get(this.fieldConf,"check.max_count")},tickStrategy(){return"leaf_only"==l().get(this.fieldConf,"tree_select","all")?"leaf-filtered":"strict"},leafOnly(){return"leaf_only"===this.fieldConf.tree_select}},created(){this.curVal=this.isMultiple?[]:""},mounted(){this.curVal=this.value?this.value:this.isMultiple?[]:""},methods:{async loadNode(e,t){let n=l().get(this.fieldConf,"id"),a={father:0===e.level?"":e.data.value||""},i=await r.A.assistTreeField.searchSelectOpts(this.$bpm,{formDefId:this.formDefId,fieldDefId:n,orgInfo:this.orgInfo,isDm:this.dm},a),o=l().get(i.data,"data.data",[]);console.log("list_result",o);let s=this.transformResultToTree(o,e);console.log("list",s),t(s)},transformResultToTree(e,t){let r=l().get(this.fieldConf,"type");return"SelectCheckItem"==r||"MulSelectCheckItem"==r?l().map(e,(e=>{this.isMultiple||e[0]!==this.curVal||(this.defaultOptions=[]),this.isMultiple&&this.curVal.includes(e[0])&&(this.defaultOptions=l().filter(this.defaultOptions,(t=>t.value!==e[0])));let r=0===t.level?e[1]:t.data.label+" - "+e[1],n=!e[2];return{value:e[0],lazy:e[2],label:r,treeLabel:e[1],isLeaf:n,disabled:this.leafOnly&&!n}})):"SelectSort"==r||"MulSelectSort"==r?l().map(e,(e=>{this.isMultiple||e.value!==this.curVal||(this.defaultOptions=[]),this.isMultiple&&this.curVal.includes(e.value)&&(this.defaultOptions=l().filter(this.defaultOptions,(t=>t.value!==e.value)));let r=0===t.level?e.label:t.data.label+" - "+e.label,n=!e.lazy;return{value:e.value,lazy:e.lazy,label:r,treeLabel:e.label,isLeaf:n,disabled:this.leafOnly&&!n}})):void 0},async getDefaultOptions(){let e=l().isArray(this.curVal)?this.curVal:this.curVal?[this.curVal]:[];if(!e.length)return;const t=await r.A.assistField.getTitle(this.$bpm,{formDefId:this.formDefId,fieldDefId:this.fieldConf.id,orgInfo:this.orgInfo,isDm:this.dm},e);console.log(t);const n=l().get(t.data,"data.data",{});let a=l().map(n,((e,t)=>({value:t,label:e})));console.log("default options: ",a),this.defaultOptions=a},onChange(e){this.$emit("input",e),this.$emit("change",e)}}},f=a(4486),d=(0,f.A)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmSelectCheckItem/src/part/editor.vue";var p=d.exports,m={mixins:[a(7348).A]},h=(0,f.A)(m,void 0,void 0,!1,null,null,null);h.options.__file="components/lib/bpmSelectCheckItem/src/part/reader.vue";var _=h.exports,v={name:"BpmSelectCheckItem",components:{editorComponent:p,readerComponent:_},props:{value:{type:[String,Array]},type:{type:String,default:"SelectCheckItem"},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},orgInfo:{type:Object},formName:{type:String},isMultiple:{type:Boolean,default(){return!1}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?_:p},multiple(){return this.isMultiple||0===this.type.indexOf("Mul")}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},g=a(5072),y=a.n(g),b=a(7825),I=a.n(b),w=a(7659),$=a.n(w),S=a(5056),C=a.n(S),D=a(540),T=a.n(D),O=a(1113),x=a.n(O),k=a(347),E={};E.styleTagTransform=x(),E.setAttributes=C(),E.insert=$().bind(null,"head"),E.domAPI=I(),E.insertStyleElement=T(),y()(k.A,E),k.A&&k.A.locals&&k.A.locals;var M=(0,f.A)(v,e,[],!1,null,null,null);M.options.__file="components/lib/bpmSelectCheckItem/src/main.vue";var A=M.exports;A.install=function(e){e.component(A.name,A)};var N=A}(),i}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,(function(e,t){return function(){var r={347:function(e,t,r){"use strict";var a=r(1601),n=r.n(a),i=r(6314),o=r.n(i),s=r(6509),l=o()(n());l.i(s.A),l.push([e.id,"\n",""]),t.A=l},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}},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))}}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},4486:function(e,t,r){"use strict";function a(e,t,r,a,n,i,o,s){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),a&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),o?(l=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):n&&(l=s?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}r.d(t,{A:function(){return a}})},5056:function(e,t,r){"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},5072:function(e){"use strict";var t=[];function r(e){for(var r=-1,a=0;a<t.length;a++)if(t[a].identifier===e){r=a;break}return r}function a(e,a){for(var i={},o=[],s=0;s<e.length;s++){var l=e[s],u=a.base?l[0]+a.base:l[0],c=i[u]||0,f="".concat(u," ").concat(c);i[u]=c+1;var d=r(f),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var m=n(p,a);a.byIndex=s,t.splice(s,0,{identifier:f,updater:m,references:1})}o.push(f)}return o}function n(e,t){var r=t.domAPI(t);return r.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;r.update(e=t)}else r.remove()}}e.exports=function(e,n){var i=a(e=e||[],n=n||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var s=r(i[o]);t[s].references--}for(var l=a(e,n),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},5281:function(e,t,r){"use strict";r.d(t,{A:function(){return d}});var a=r(9795),n=r(6773),i=r.n(n),o=class{constructor(e,t={}){this._fnBatchLoad=e,this._options=t,this._queue=[]}async load(e){let t=await this.loads(e);return i().get(t,"0")}loads(...e){return new Promise(((t,r)=>{this._queue.push({keys:e,resolve:t,reject:r}),1==this._queue.length&&this.nextTick((()=>{this.process()}))}))}nextTick(e){setTimeout(e,0)}process(){let e=this._queue;this._queue=[];let t={};i().each(e,(e=>{i().each(e.keys,(e=>t[e]=null))}));let r=i().keys(t);this._fnBatchLoad(r).then((a=>{i().each(r,((e,r)=>{t[e]=a[r]})),i().each(e,(({keys:e,resolve:r})=>{r(i().map(e,(e=>t[e])))}))})).catch((t=>{i().each(e,(({reject:e})=>e(t)))}))}},s=r(5360),l=r.n(s);const u=async(e,t,r)=>{if(t.setNetworking(!0),t.netHeader&&(e.headers={common:t.netHeader}),e.params=_.merge({},e.params,r),t.env.ignore_levels&&_.set(e.params,"ignore_levels",!0),(0,a.Fr)()){let t=zj.utils.pageParam().token;e.params=_.merge({token:t,platform:"phone"},e.params)}e.isSilentOnErr=e=>{let t=_.get(e,"data.result");return t>=19e6||t<=19999999};let n=_.cloneDeep(e);if(n.can_custom_org_params){let e=_.cloneDeep(_.get(t,"orgInfo",{}));console.log("bpm3_orgInfo",e),e.custom_page_level&&(n.params.page_level=e.custom_page_level),e.custom_group_id&&(n.params.group_id=e.custom_group_id),e.custom_team_id&&(n.params.team_id=e.custom_team_id),e.custom_project_id&&(n.params.project_id=e.custom_project_id)}console.log("bpm3_orgInfo_reqArgs",n);let i=await zj.net.request(n);return t.setNetworking(!1),i},c={},f={};var d={assistSelectEntranceForm:{getListDefinition(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n}){return u({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_definition/`,method:"GET"},e,a)},getOptions(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i){return u({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_search/`,method:"GET",params:i},e,a)},getListSelected(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i){return u({url:`/app_flow/v1/papi/assist_select_entrance_form/${t}/${r}/list_selected/`,method:"GET",params:i},e,a)}},assistField:{getBatchLoader(e,{formDefId:t,fieldDefId:r,orgInfo:a,uniqueId:n}){const i=`${t}/${r}`,s=c[i]||new o((async i=>{let o=`/app_flow/v1/papi/assist_field/${t}/${r}/list_title/`;const s=await u({url:o,method:"GET",params:{values:JSON.stringify(i)}},e,a),l=_.get(s,"data.data.data",{});let c=[];return _.map(i,(e=>{n?(e=JSON.parse(e),e=_.get(e,`${n}`),c=_.concat(c,l[e])):c=_.concat(c,l[e])})),c}));return c[i]=s,s},getTitle(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i){return u({url:`/app_flow/v1/papi/assist_field/${t}/${r}/list_title/`,method:"GET",params:{values:JSON.stringify(i)}},e,a)},async searchSelectOpts(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i={},o=""){o&&(i.q=o);let s=n?`/app_flow/v1/papi/dm/assist_field/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_field/${t}/${r}/search_title/`,l=`${t}/${r}/${o}/${JSON.stringify(a)}/${JSON.stringify(i)}`,c={};return f[l]&&"loading"==f[l]?(console.log("有缓存,返回"),await this.waitCacheMapData(l)):(!f[l]||(new Date).getTime()-f[l].last_time>6e4?(f[l]="loading",c=await u({url:s,method:n?"GET":"POST",data:i,can_custom_org_params:!0},e,a),f[l]={last_time:(new Date).getTime(),result:c}):(console.log("有缓存"),f[l].result&&(c=f[l].result)),c)},waitCacheMapData(e){return new Promise((t=>{let r=setInterval((()=>{f[e]&&"loading"!=f[e]&&f[e].result&&(clearInterval(r),t(f[e].result))}),100)}))},selectFromMulFormSearchOpts(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i={},o=""){return o&&(i.q=o),u({url:n?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/search_title/`,method:"GET",params:i},e,a)},selectFromMulFormListTitleLoader(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n}){const i=`${t}/${r}`,s=c[i]||new o((async i=>{let o=n?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/list_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/list_title/`;const s=await u({url:o,method:"GET",params:{values:JSON.stringify(i)}},e,a),l=_.get(s.data,"data.items",[]),c={};l.forEach((e=>{Object.keys(e.data).forEach((t=>{let r=e.data[t];c[t]={form_def_id:_.get(e,"definition.form.id"),form_title:_.get(e,"definition.form.name"),label:r}}))}));let f=[];return i.forEach((e=>{f.push(c[e])})),f}));return c[i]=s,s},selectFromMulFormListTitle(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i){return u({url:n?`/app_flow/v1/papi/dm/assist_field/select_form_mul_form/${t}/${r}/list_title/`:`/app_flow/v1/papi/assist_field/select_form_mul_form/${t}/${r}/list_title/`,method:"GET",params:{values:JSON.stringify(i)}},e,a)}},assistTreeField:{searchSelectOpts(e,{formDefId:t,fieldDefId:r,orgInfo:a,isDm:n},i={},o=""){return o&&(i.q=o),u({url:n?`/app_flow/v1/papi/dm/assist_tree_field/${t}/${r}/search_title/`:`/app_flow/v1/papi/assist_tree_field/${t}/${r}/search_title/`,method:"GET",params:i,can_custom_org_params:!0},e,a)}},assistUserTaskCC:{searchSelectOpts(e,{formDefId:t,node:r,orgInfo:a,isDm:n},i={},o=""){return o&&(i.q=o),u({url:`/app_flow/v1/papi/assist_user_task_cc/${t}/${r}/search_title/`,method:"GET",params:i},e,a)}},OCR:{getCreatedTaskList(e){return zj.net.w.noapi({url:"/base_srv_module/v2/gapi/task/async_notify_list",method:"POST",data:l().stringify({group_id:zj.pageParam().group_id||0,file_md5:e})})},getTaskId(e){return zj.net.w.noapi({url:"/base_srv_module/v2/gapi/task/async_notify_submit",method:"POST",data:l().stringify({group_id:zj.pageParam().group_id||0,name:"OCR识别MD5_"+e,vendor_code:"csmart",enable_notify:0,task_type:1,creator:zj.app.accessInfo.user_id,file_md5:e})})},getOcrResult(e){return zj.net.w.noapi({url:"/base_srv_module/v2/gapi/task/detail",method:"POST",data:l().stringify(e)})},ocrCreateForm(e,t){return zj.net.w.noapi.json({url:"/app_flow/v1/papi/ocr_create/submit",method:"POST",params:t,data:e})}}}},5360:function(e){"use strict";e.exports=t},5554:function(e){e.exports=function(){return this.Vue}()},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",a=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),a&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),a&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,a,n,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);a&&o[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),t.push(c))}},t}},6509:function(e,t,r){"use strict";var a=r(1601),n=r.n(a),i=r(6314),o=r.n(i)()(n());o.push([e.id,".bpm-select-tree {\n .el-select-dropdown__item.hover {\n background: none!important;\n }\n .tree-options.el-select-dropdown__item {\n padding: 0 0;\n }\n}\n",""]),t.A=o},6773:function(t){"use strict";t.exports=e},7348:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var a=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{attrs:{title:e.label}},[e._v(e._s(e.label))])};a._withStripped=!0;var n=r(6773),i=r.n(n),o={props:["value","fieldConf","row","formName","orgInfo"],data(){return{label:""}},watch:{value(){this.loadRemoteLabel()}},mounted(){this.loadRemoteLabel()},methods:{async loadRemoteLabel(){let e=this.value;if(i().isNil(e)||!e)return this.label=zj.z("未选择","c.not_selected");try{if(i().isObject(e))try{e=JSON.parse(e)}catch(e){console.log("error",e)}let t=i().isArray(e)?e:[e],r=i().get(this.fieldConf,"id");i().isEmpty(t)?this.label=zj.z("未选择","c.not_selected"):(t=i().isArray(t)?t:[t],this.label=await this.$bpm.fetchLabelByValues(t,r,this.formName,this.row))}finally{console.log("finally")}}}},s=(0,r(4486).A)(o,a,[],!1,null,null,null);s.options.__file="components/lib/mixins/RemoteSelectReader.vue";var l=s.exports},7642:function(e){e.exports=function(){return this.ELEMENT}()},7659:function(e){"use strict";var t={};e.exports=function(e,r){var a=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}},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(r){!function(e,t,r){var a="";r.supports&&(a+="@supports (".concat(r.supports,") {")),r.media&&(a+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(a+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),a+=r.css,n&&(a+="}"),r.media&&(a+="}"),r.supports&&(a+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9795:function(e,t,r){"use strict";function a(){for(var e=["iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire"],t=navigator.userAgent.toLowerCase(),r=!1,a=0,n=e.length;a<n;a++)-1!=t.indexOf(e[a])&&(r=!0);return r}r.d(t,{Fr:function(){return a}}),r(6773),r(5360)}},a={};function n(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={id:e,exports:{}};return r[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var i={};return function(){"use strict";n.r(i),n.d(i,{default:function(){return A}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-select-check-item",attrs:{fieldConf:e.fieldConf,row:e.row,orgInfo:e.orgInfo,formName:e.formName,mode:e.mode,isMultiple:e.multiple,uiType:e.uiType},on:{change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-select",{staticStyle:{width:"100%"},attrs:{"popper-class":"bpm-select-tree",multiple:e.isMultiple,placeholder:e.placeholder,"multiple-limit":e.maxCount},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},[e._l(e.defaultOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),r("el-tree",{attrs:{lazy:"",load:e.loadNode,"node-key":"value",props:{label:"treeLabel",children:"children",disabled:"disabled",isLeaf:"isLeaf"},indent:16},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node;return a.data.disabled?r("span",{},[e._v("\n "+e._s(a.label)+"\n ")]):r("el-option",{staticClass:"tree-options",attrs:{value:a.data.value,label:a.data.label}},[r("span",{staticStyle:{"padding-right":"30px","max-width":"500px",overflow:"hidden"}},[e._v("\n "+e._s(a.label)+"\n ")])])}}],null,!0)})],2)],1)};t._withStripped=!0;var r=n(5281),a=n(5554),o=n.n(a),s=n(6773),l=n.n(s),u=n(7642);o().use(u.Tree),o().use(u.Select),o().use(u.Option);var c={props:["value","fieldConf","row","formName","formDefId","orgInfo","dm","isMultiple"],data(){return{curVal:"",defaultOptions:[]}},watch:{value(){this.curVal=this.value?this.value:this.isMultiple?[]:"",this.getDefaultOptions()}},computed:{placeholder(){return this.fieldConf.desc||this.fieldConf.name},maxCount(){return l().get(this.fieldConf,"check.max_count")},tickStrategy(){return"leaf_only"==l().get(this.fieldConf,"tree_select","all")?"leaf-filtered":"strict"},leafOnly(){return"leaf_only"===this.fieldConf.tree_select}},created(){this.curVal=this.isMultiple?[]:""},mounted(){this.curVal=this.value?this.value:this.isMultiple?[]:""},methods:{async loadNode(e,t){let a=l().get(this.fieldConf,"id"),n={father:0===e.level?"":e.data.value||""},i=await r.A.assistTreeField.searchSelectOpts(this.$bpm,{formDefId:this.formDefId,fieldDefId:a,orgInfo:this.orgInfo,isDm:this.dm},n),o=l().get(i.data,"data.data",[]);console.log("list_result",o);let s=this.transformResultToTree(o,e);console.log("list",s),t(s)},transformResultToTree(e,t){let r=l().get(this.fieldConf,"type");return"SelectCheckItem"==r||"MulSelectCheckItem"==r?l().map(e,(e=>{this.isMultiple||e[0]!==this.curVal||(this.defaultOptions=[]),this.isMultiple&&this.curVal.includes(e[0])&&(this.defaultOptions=l().filter(this.defaultOptions,(t=>t.value!==e[0])));let r=0===t.level?e[1]:t.data.label+" - "+e[1],a=!e[2];return{value:e[0],lazy:e[2],label:r,treeLabel:e[1],isLeaf:a,disabled:this.leafOnly&&!a}})):"SelectSort"==r||"MulSelectSort"==r?l().map(e,(e=>{this.isMultiple||e.value!==this.curVal||(this.defaultOptions=[]),this.isMultiple&&this.curVal.includes(e.value)&&(this.defaultOptions=l().filter(this.defaultOptions,(t=>t.value!==e.value)));let r=0===t.level?e.label:t.data.label+" - "+e.label,a=!e.lazy;return{value:e.value,lazy:e.lazy,label:r,treeLabel:e.label,isLeaf:a,disabled:this.leafOnly&&!a}})):void 0},async getDefaultOptions(){let e=l().isArray(this.curVal)?this.curVal:this.curVal?[this.curVal]:[];if(!e.length)return;const t=await r.A.assistField.getTitle(this.$bpm,{formDefId:this.formDefId,fieldDefId:this.fieldConf.id,orgInfo:this.orgInfo,isDm:this.dm},e);console.log(t);const a=l().get(t.data,"data.data",{});let n=l().map(a,((e,t)=>({value:t,label:e})));console.log("default options: ",n),this.defaultOptions=n},onChange(e){this.$emit("input",e),this.$emit("change",e)}}},f=n(4486),d=(0,f.A)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmSelectCheckItem/src/part/editor.vue";var p=d.exports,m={mixins:[n(7348).A]},h=(0,f.A)(m,void 0,void 0,!1,null,null,null);h.options.__file="components/lib/bpmSelectCheckItem/src/part/reader.vue";var _=h.exports,v={name:"BpmSelectCheckItem",components:{editorComponent:p,readerComponent:_},props:{value:{type:[String,Array]},type:{type:String,default:"SelectCheckItem"},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},orgInfo:{type:Object},formName:{type:String},isMultiple:{type:Boolean,default(){return!1}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?_:p},multiple(){return this.isMultiple||0===this.type.indexOf("Mul")}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},g=n(5072),y=n.n(g),b=n(7825),w=n.n(b),I=n(7659),S=n.n(I),$=n(5056),C=n.n($),T=n(540),O=n.n(T),D=n(1113),x=n.n(D),k=n(347),E={};E.styleTagTransform=x(),E.setAttributes=C(),E.insert=S().bind(null,"head"),E.domAPI=w(),E.insertStyleElement=O(),y()(k.A,E),k.A&&k.A.locals&&k.A.locals;var j=(0,f.A)(v,e,[],!1,null,null,null);j.options.__file="components/lib/bpmSelectCheckItem/src/main.vue";var M=j.exports;M.install=function(e){e.component(M.name,M)};var A=M}(),i}()}));
|