@cmstops/pro-compo 0.1.14 → 0.1.16
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/gif.worker.js +3 -0
- package/dist/index.css +473 -1
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +1 -2
- package/es/contentDetailList/components/Content/CompoItem/index.js +1 -2
- package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -2
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
- package/es/contentDetailList/components/Content/DocItem/index.js +1 -2
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
- package/es/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -2
- package/es/contentDetailList/components/Content/index.js +1 -2
- package/es/contentDetailList/components/Doc/index.js +1 -2
- package/es/contentModal/component.js +1 -2
- package/es/contentModal/components/CompoList/CompoFilter/index.js +2 -3
- package/es/contentModal/components/CompoList/index.js +2 -3
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
- package/es/contentModal/components/ViewAllColumn/index.js +1 -2
- package/es/contentModal/components/storeBox/index.js +1 -2
- package/es/gif.worker.js +3 -0
- package/es/hooks/assets.d.ts +1 -0
- package/es/hooks/assets.js +9 -0
- package/es/hooks/user.d.ts +1 -3
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/component.js +472 -0
- package/es/imageCrop/index.d.ts +2 -0
- package/es/imageCrop/index.js +7 -0
- package/es/imageCrop/script/api.d.ts +1 -0
- package/es/imageCrop/script/api.js +11 -0
- package/es/imageCrop/style/cropper.less +291 -0
- package/es/imageCrop/style/css.js +1 -0
- package/es/imageCrop/style/imageCropper.less +133 -0
- package/es/imageCrop/style/index.css +366 -0
- package/es/imageCrop/style/index.d.ts +1 -0
- package/es/imageCrop/style/index.js +1 -0
- package/es/imageCrop/style/index.less +2 -0
- package/es/index.css +473 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/mediaFilter/component.js +1 -2
- package/es/mediaFilter/components/DocFilter.js +1 -2
- package/es/messageBox/list.js +1 -2
- package/es/previousVersion/component.js +1 -2
- package/es/resourceModal/component.js +4 -7
- package/es/resourceModal/components/MediaPreviewer/index.js +1 -2
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
- package/es/resourceModal/components/MediaSelection/index.js +8 -12
- package/es/selectAvatarList/component.js +1 -2
- package/es/selectGategory/component.js +1 -2
- package/es/selectGategory/components/ColumnSelection/index.js +1 -2
- package/es/selectThumb/component.d.ts +0 -0
- package/es/selectThumb/component.js +420 -0
- package/es/selectThumb/components/card.d.ts +0 -0
- package/es/selectThumb/components/card.js +86 -0
- package/es/selectThumb/components/colorPalette.d.ts +0 -0
- package/es/selectThumb/components/colorPalette.js +75 -0
- package/es/selectThumb/index.d.ts +2 -0
- package/es/selectThumb/index.js +7 -0
- package/es/selectThumb/style/card.less +83 -0
- package/es/selectThumb/style/colorPalette.less +0 -0
- package/es/selectThumb/style/css.js +1 -0
- package/es/selectThumb/style/index.css +105 -0
- package/es/selectThumb/style/index.d.ts +1 -0
- package/es/selectThumb/style/index.js +1 -0
- package/es/selectThumb/style/index.less +27 -0
- package/es/uploadBefore/component.js +2 -3
- package/es/uploadBefore/components/UploadBefore.js +1 -2
- package/es/uploadBefore/components/UploadForClick.js +1 -2
- package/es/uploadStep/component.js +2 -3
- package/es/userDirector/component.js +1 -2
- package/es/userDirector/components/userTree.js +1 -2
- package/es/userDirector/style/index.css +2 -1
- package/es/userDirector/style/index.less +2 -1
- package/es/utils/doc.js +30 -7
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +6 -1
- package/es/utils/tusUpload.d.ts +1 -1
- package/es/utils/tusUpload.js +1 -1
- package/es/utils/uploadCatalog.d.ts +1 -0
- package/lib/contentDetailList/component.js +1 -2
- package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
- package/lib/contentDetailList/components/Content/DocItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/index.js +1 -2
- package/lib/contentDetailList/components/Doc/index.js +1 -2
- package/lib/contentModal/component.js +1 -2
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +2 -3
- package/lib/contentModal/components/CompoList/index.js +2 -3
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -2
- package/lib/contentModal/components/storeBox/index.js +1 -2
- package/lib/hooks/assets.js +11 -0
- package/lib/imageCrop/component.js +479 -0
- package/lib/imageCrop/index.js +8 -0
- package/lib/imageCrop/script/api.js +13 -0
- package/lib/imageCrop/style/cropper.less +291 -0
- package/lib/imageCrop/style/css.js +2 -0
- package/lib/imageCrop/style/imageCropper.less +133 -0
- package/lib/imageCrop/style/index.css +366 -0
- package/lib/imageCrop/style/index.js +2 -0
- package/lib/imageCrop/style/index.less +2 -0
- package/lib/index.css +473 -1
- package/lib/index.js +16 -12
- package/lib/index.less +2 -0
- package/lib/mediaFilter/component.js +1 -2
- package/lib/mediaFilter/components/DocFilter.js +1 -2
- package/lib/messageBox/list.js +1 -2
- package/lib/previousVersion/component.js +1 -2
- package/lib/resourceModal/component.js +4 -7
- package/lib/resourceModal/components/MediaPreviewer/index.js +1 -2
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
- package/lib/resourceModal/components/MediaSelection/index.js +8 -12
- package/lib/selectAvatarList/component.js +1 -2
- package/lib/selectGategory/component.js +1 -2
- package/lib/selectGategory/components/ColumnSelection/index.js +1 -2
- package/lib/selectThumb/component.js +421 -0
- package/lib/selectThumb/components/card.js +87 -0
- package/lib/selectThumb/components/colorPalette.js +76 -0
- package/lib/selectThumb/index.js +8 -0
- package/lib/selectThumb/style/card.less +83 -0
- package/lib/selectThumb/style/colorPalette.less +0 -0
- package/lib/selectThumb/style/css.js +2 -0
- package/lib/selectThumb/style/index.css +105 -0
- package/lib/selectThumb/style/index.js +2 -0
- package/lib/selectThumb/style/index.less +27 -0
- package/lib/uploadBefore/component.js +2 -3
- package/lib/uploadBefore/components/UploadBefore.js +1 -2
- package/lib/uploadBefore/components/UploadForClick.js +1 -2
- package/lib/uploadStep/component.js +2 -3
- package/lib/userDirector/component.js +1 -2
- package/lib/userDirector/components/userTree.js +1 -2
- package/lib/userDirector/style/index.css +2 -1
- package/lib/userDirector/style/index.less +2 -1
- package/lib/utils/doc.js +31 -6
- package/lib/utils/index.js +6 -0
- package/lib/utils/tusUpload.js +1 -1
- package/package.json +11 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js
|
|
2
|
+
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){var NeuQuant=require("./TypedNeuQuant.js");var LZWEncoder=require("./LZWEncoder.js");function ByteArray(){this.page=-1;this.pages=[];this.newPage()}ByteArray.pageSize=4096;ByteArray.charMap={};for(var i=0;i<256;i++)ByteArray.charMap[i]=String.fromCharCode(i);ByteArray.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(ByteArray.pageSize);this.cursor=0};ByteArray.prototype.getData=function(){var rv="";for(var p=0;p<this.pages.length;p++){for(var i=0;i<ByteArray.pageSize;i++){rv+=ByteArray.charMap[this.pages[p][i]]}}return rv};ByteArray.prototype.writeByte=function(val){if(this.cursor>=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i<l;i++)this.writeByte(string.charCodeAt(i))};ByteArray.prototype.writeBytes=function(array,offset,length){for(var l=length||array.length,i=offset||0;i<l;i++)this.writeByte(array[i])};function GIFEncoder(width,height){this.width=~~width;this.height=~~height;this.transparent=null;this.transIndex=0;this.repeat=-1;this.delay=0;this.image=null;this.pixels=null;this.indexedPixels=null;this.colorDepth=null;this.colorTab=null;this.neuQuant=null;this.usedEntry=new Array;this.palSize=7;this.dispose=-1;this.firstFrame=true;this.sample=10;this.dither=false;this.globalPalette=false;this.out=new ByteArray}GIFEncoder.prototype.setDelay=function(milliseconds){this.delay=Math.round(milliseconds/10)};GIFEncoder.prototype.setFrameRate=function(fps){this.delay=Math.round(100/fps)};GIFEncoder.prototype.setDispose=function(disposalCode){if(disposalCode>=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j<nPix;j++){var index=this.findClosestRGB(this.pixels[k++]&255,this.pixels[k++]&255,this.pixels[k++]&255);this.usedEntry[index]=true;this.indexedPixels[j]=index}};GIFEncoder.prototype.ditherPixels=function(kernel,serpentine){var kernels={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!kernel||!kernels[kernel]){throw"Unknown dithering kernel: "+kernel}var ds=kernels[kernel];var index=0,height=this.height,width=this.width,data=this.pixels;var direction=serpentine?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var y=0;y<height;y++){if(serpentine)direction=direction*-1;for(var x=direction==1?0:width-1,xend=direction==1?width:0;x!==xend;x+=direction){index=y*width+x;var idx=index*3;var r1=data[idx];var g1=data[idx+1];var b1=data[idx+2];idx=this.findClosestRGB(r1,g1,b1);this.usedEntry[idx]=true;this.indexedPixels[index]=idx;idx*=3;var r2=this.colorTab[idx];var g2=this.colorTab[idx+1];var b2=this.colorTab[idx+2];var er=r1-r2;var eg=g1-g2;var eb=b1-b2;for(var i=direction==1?0:ds.length-1,end=direction==1?ds.length:0;i!==end;i+=direction){var x1=ds[i][1];var y1=ds[i][2];if(x1+x>=0&&x1+x<width&&y1+y>=0&&y1+y<height){var d=ds[i][0];idx=index+x1+y1*width;idx*=3;data[idx]=Math.max(0,Math.min(255,data[idx]+er*d));data[idx+1]=Math.max(0,Math.min(255,data[idx+1]+eg*d));data[idx+2]=Math.max(0,Math.min(255,data[idx+2]+eb*d))}}}}};GIFEncoder.prototype.findClosest=function(c,used){return this.findClosestRGB((c&16711680)>>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i<len;index++){var dr=r-(this.colorTab[i++]&255);var dg=g-(this.colorTab[i++]&255);var db=b-(this.colorTab[i++]&255);var d=dr*dr+dg*dg+db*db;if((!used||this.usedEntry[index])&&d<dmin){dmin=d;minpos=index}}return minpos};GIFEncoder.prototype.getImagePixels=function(){var w=this.width;var h=this.height;this.pixels=new Uint8Array(w*h*3);var data=this.image;var srcPos=0;var count=0;for(var i=0;i<h;i++){for(var j=0;j<w;j++){this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];srcPos++}}};GIFEncoder.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33);this.out.writeByte(249);this.out.writeByte(4);var transp,disp;if(this.transparent===null){transp=0;disp=0}else{transp=1;disp=2}if(this.dispose>=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i<n;i++)this.out.writeByte(0)};GIFEncoder.prototype.writeShort=function(pValue){this.out.writeByte(pValue&255);this.out.writeByte(pValue>>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i<hsize;++i)htab[i]=-1}function compress(init_bits,outs){var fcode,c,i,ent,disp,hsize_reg,hshift;g_init_bits=init_bits;clear_flg=false;n_bits=g_init_bits;maxcode=MAXCODE(n_bits);ClearCode=1<<init_bits-1;EOFCode=ClearCode+1;free_ent=ClearCode+2;a_count=0;ent=nextPixel();hshift=0;for(fcode=HSIZE;fcode<65536;fcode*=2)++hshift;hshift=8-hshift;hsize_reg=HSIZE;cl_hash(hsize_reg);output(ClearCode,outs);outer_loop:while((c=nextPixel())!=EOF){fcode=(c<<BITS)+ent;i=c<<hshift^ent;if(htab[i]===fcode){ent=codetab[i];continue}else if(htab[i]>=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<<BITS){codetab[i]=free_ent++;htab[i]=fcode}else{cl_block(outs)}}output(ent,outs);output(EOFCode,outs)}function encode(outs){outs.writeByte(initCodeSize);remaining=width*height;curPixel=0;compress(initCodeSize+1,outs);outs.writeByte(0)}function flush_char(outs){if(a_count>0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<<n_bits)-1}function nextPixel(){if(remaining===0)return EOF;--remaining;var pix=pixels[curPixel++];return pix&255}function output(code,outs){cur_accum&=masks[cur_bits];if(cur_bits>0)cur_accum|=code<<cur_bits;else cur_accum=code;cur_bits+=n_bits;while(cur_bits>=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<<BITS;else maxcode=MAXCODE(n_bits)}}if(code==EOFCode){while(cur_bits>0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<<intbiasshift;var gammashift=10;var gamma=1<<gammashift;var betashift=10;var beta=intbias>>betashift;var betagamma=intbias<<gammashift-betashift;var initrad=netsize>>3;var radiusbiasshift=6;var radiusbias=1<<radiusbiasshift;var initradius=initrad*radiusbias;var radiusdec=30;var alphabiasshift=10;var initalpha=1<<alphabiasshift;var alphadec;var radbiasshift=8;var radbias=1<<radbiasshift;var alpharadbshift=alphabiasshift+radbiasshift;var alpharadbias=1<<alpharadbshift;var prime1=499;var prime2=491;var prime3=487;var prime4=503;var minpicturebytes=3*prime4;function NeuQuant(pixels,samplefac){var network;var netindex;var bias;var freq;var radpower;function init(){network=[];netindex=new Int32Array(256);bias=new Int32Array(netsize);freq=new Int32Array(netsize);radpower=new Int32Array(netsize>>3);var i,v;for(i=0;i<netsize;i++){v=(i<<netbiasshift+8)/netsize;network[i]=new Float64Array([v,v,v,0]);freq[i]=intbias/netsize;bias[i]=0}}function unbiasnet(){for(var i=0;i<netsize;i++){network[i][0]>>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(j<hi||k>lo){a=radpower[m++];if(j<hi){p=network[j++];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}if(k>lo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i<netsize;i++){n=network[i];dist=Math.abs(n[0]-b)+Math.abs(n[1]-g)+Math.abs(n[2]-r);if(dist<bestd){bestd=dist;bestpos=i}biasdist=dist-(bias[i]>>intbiasshift-netbiasshift);if(biasdist<bestbiasd){bestbiasd=biasdist;bestbiaspos=i}betafreq=freq[i]>>betashift;freq[i]-=betafreq;bias[i]+=betafreq<<gammashift}freq[bestpos]+=beta;bias[bestpos]-=betagamma;return bestbiaspos}function inxbuild(){var i,j,p,q,smallpos,smallval,previouscol=0,startpos=0;for(i=0;i<netsize;i++){p=network[i];smallpos=i;smallval=p[1];for(j=i+1;j<netsize;j++){q=network[j];if(q[1]<smallval){smallpos=j;smallval=q[1]}}q=network[smallpos];if(i!=smallpos){j=q[0];q[0]=p[0];p[0]=j;j=q[1];q[1]=p[1];p[1]=j;j=q[2];q[2]=p[2];p[2]=j;j=q[3];q[3]=p[3];p[3]=j}if(smallval!=previouscol){netindex[previouscol]=startpos+i>>1;for(j=previouscol+1;j<smallval;j++)netindex[j]=i;previouscol=smallval;startpos=i}}netindex[previouscol]=startpos+maxnetpos>>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i<netsize||j>=0){if(i<netsize){p=network[i];dist=p[1]-g;if(dist>=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}if(j>=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}}return best}function learn(){var i;var lengthcount=pixels.length;var alphadec=30+(samplefac-1)/3;var samplepixels=lengthcount/(3*samplefac);var delta=~~(samplepixels/ncycles);var alpha=initalpha;var radius=initradius;var rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i<rad;i++)radpower[i]=alpha*((rad*rad-i*i)*radbias/(rad*rad));var step;if(lengthcount<minpicturebytes){samplefac=1;step=3}else if(lengthcount%prime1!==0){step=3*prime1}else if(lengthcount%prime2!==0){step=3*prime2}else if(lengthcount%prime3!==0){step=3*prime3}else{step=3*prime4}var b,g,r,j;var pix=0;i=0;while(i<samplepixels){b=(pixels[pix]&255)<<netbiasshift;g=(pixels[pix+1]&255)<<netbiasshift;r=(pixels[pix+2]&255)<<netbiasshift;j=contest(b,g,r);altersingle(alpha,j,b,g,r);if(rad!==0)alterneigh(rad,j,b,g,r);pix+=step;if(pix>=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j<rad;j++)radpower[j]=alpha*((rad*rad-j*j)*radbias/(rad*rad))}}}function buildColormap(){init();learn();unbiasnet();inxbuild()}this.buildColormap=buildColormap;function getColormap(){var map=[];var index=[];for(var i=0;i<netsize;i++)index[network[i][3]]=i;var k=0;for(var l=0;l<netsize;l++){var j=index[l];map[k++]=network[j][0];map[k++]=network[j][1];map[k++]=network[j][2]}return map}this.getColormap=getColormap;this.lookupRGB=inxsearch}module.exports=NeuQuant},{}],4:[function(require,module,exports){var GIFEncoder,renderFrame;GIFEncoder=require("./GIFEncoder.js");renderFrame=function(frame){var encoder,page,stream,transfer;encoder=new GIFEncoder(frame.width,frame.height);if(frame.index===0){encoder.writeHeader()}else{encoder.firstFrame=false}encoder.setTransparent(frame.transparent);encoder.setRepeat(frame.repeat);encoder.setDelay(frame.delay);encoder.setQuality(frame.quality);encoder.setDither(frame.dither);encoder.setGlobalPalette(frame.globalPalette);encoder.addFrame(frame.data);if(frame.last){encoder.finish()}if(frame.globalPalette===true){frame.globalPalette=encoder.getGlobalPalette()}stream=encoder.stream();frame.data=stream.pages;frame.cursor=stream.cursor;frame.pageSize=stream.constructor.pageSize;if(frame.canTransfer){transfer=function(){var i,len,ref,results;ref=frame.data;results=[];for(i=0,len=ref.length;i<len;i++){page=ref[i];results.push(page.buffer)}return results}();return self.postMessage(frame,transfer)}else{return self.postMessage(frame)}};self.onmessage=function(event){return renderFrame(event.data)}},{"./GIFEncoder.js":1}]},{},[4]);
|
|
3
|
+
//# sourceMappingURL=gif.worker.js.map
|
package/dist/index.css
CHANGED
|
@@ -1293,6 +1293,372 @@
|
|
|
1293
1293
|
.add-category-modal-wrapper .arco-modal-footer {
|
|
1294
1294
|
border-top: 0;
|
|
1295
1295
|
}
|
|
1296
|
+
.cropper-container {
|
|
1297
|
+
position: relative;
|
|
1298
|
+
font-size: 0;
|
|
1299
|
+
line-height: 0;
|
|
1300
|
+
direction: ltr;
|
|
1301
|
+
-webkit-user-select: none;
|
|
1302
|
+
-moz-user-select: none;
|
|
1303
|
+
-ms-user-select: none;
|
|
1304
|
+
user-select: none;
|
|
1305
|
+
-ms-touch-action: none;
|
|
1306
|
+
touch-action: none;
|
|
1307
|
+
}
|
|
1308
|
+
.cropper-container img {
|
|
1309
|
+
display: block;
|
|
1310
|
+
width: 100%;
|
|
1311
|
+
min-width: 0 !important;
|
|
1312
|
+
max-width: none !important;
|
|
1313
|
+
height: 100%;
|
|
1314
|
+
min-height: 0 !important;
|
|
1315
|
+
max-height: none !important;
|
|
1316
|
+
image-orientation: 0deg;
|
|
1317
|
+
}
|
|
1318
|
+
.cropper-canvas,
|
|
1319
|
+
.cropper-crop-box,
|
|
1320
|
+
.cropper-drag-box,
|
|
1321
|
+
.cropper-modal,
|
|
1322
|
+
.cropper-wrap-box {
|
|
1323
|
+
position: absolute;
|
|
1324
|
+
top: 0;
|
|
1325
|
+
right: 0;
|
|
1326
|
+
bottom: 0;
|
|
1327
|
+
left: 0;
|
|
1328
|
+
}
|
|
1329
|
+
.cropper-canvas,
|
|
1330
|
+
.cropper-wrap-box {
|
|
1331
|
+
overflow: hidden;
|
|
1332
|
+
}
|
|
1333
|
+
.cropper-drag-box {
|
|
1334
|
+
background-color: #fff;
|
|
1335
|
+
opacity: 0;
|
|
1336
|
+
}
|
|
1337
|
+
.cropper-modal {
|
|
1338
|
+
background-color: #000;
|
|
1339
|
+
opacity: 0.5;
|
|
1340
|
+
}
|
|
1341
|
+
.cropper-view-box {
|
|
1342
|
+
display: block;
|
|
1343
|
+
width: 100%;
|
|
1344
|
+
height: 100%;
|
|
1345
|
+
overflow: hidden;
|
|
1346
|
+
outline: 1px solid #39f;
|
|
1347
|
+
outline-color: rgba(51, 153, 255, 0.75);
|
|
1348
|
+
}
|
|
1349
|
+
.cropper-dashed {
|
|
1350
|
+
position: absolute;
|
|
1351
|
+
display: block;
|
|
1352
|
+
border: 0 dashed #eee;
|
|
1353
|
+
opacity: 0.5;
|
|
1354
|
+
}
|
|
1355
|
+
.cropper-dashed.dashed-h {
|
|
1356
|
+
top: 33.33333%;
|
|
1357
|
+
left: 0;
|
|
1358
|
+
width: 100%;
|
|
1359
|
+
height: 33.33333%;
|
|
1360
|
+
border-top-width: 1px;
|
|
1361
|
+
border-bottom-width: 1px;
|
|
1362
|
+
}
|
|
1363
|
+
.cropper-dashed.dashed-v {
|
|
1364
|
+
top: 0;
|
|
1365
|
+
left: 33.33333%;
|
|
1366
|
+
width: 33.33333%;
|
|
1367
|
+
height: 100%;
|
|
1368
|
+
border-right-width: 1px;
|
|
1369
|
+
border-left-width: 1px;
|
|
1370
|
+
}
|
|
1371
|
+
.cropper-center {
|
|
1372
|
+
position: absolute;
|
|
1373
|
+
top: 50%;
|
|
1374
|
+
left: 50%;
|
|
1375
|
+
display: block;
|
|
1376
|
+
width: 0;
|
|
1377
|
+
height: 0;
|
|
1378
|
+
opacity: 0.75;
|
|
1379
|
+
}
|
|
1380
|
+
.cropper-center::after,
|
|
1381
|
+
.cropper-center::before {
|
|
1382
|
+
position: absolute;
|
|
1383
|
+
display: block;
|
|
1384
|
+
background-color: #eee;
|
|
1385
|
+
content: ' ';
|
|
1386
|
+
}
|
|
1387
|
+
.cropper-center::before {
|
|
1388
|
+
top: 0;
|
|
1389
|
+
left: -3px;
|
|
1390
|
+
width: 7px;
|
|
1391
|
+
height: 1px;
|
|
1392
|
+
}
|
|
1393
|
+
.cropper-center::after {
|
|
1394
|
+
top: -3px;
|
|
1395
|
+
left: 0;
|
|
1396
|
+
width: 1px;
|
|
1397
|
+
height: 7px;
|
|
1398
|
+
}
|
|
1399
|
+
.cropper-face,
|
|
1400
|
+
.cropper-line,
|
|
1401
|
+
.cropper-point {
|
|
1402
|
+
position: absolute;
|
|
1403
|
+
display: block;
|
|
1404
|
+
width: 100%;
|
|
1405
|
+
height: 100%;
|
|
1406
|
+
opacity: 0.1;
|
|
1407
|
+
}
|
|
1408
|
+
.cropper-face {
|
|
1409
|
+
top: 0;
|
|
1410
|
+
left: 0;
|
|
1411
|
+
background-color: #fff;
|
|
1412
|
+
}
|
|
1413
|
+
.cropper-line {
|
|
1414
|
+
background-color: #39f;
|
|
1415
|
+
}
|
|
1416
|
+
.cropper-line.line-e {
|
|
1417
|
+
top: 0;
|
|
1418
|
+
right: -3px;
|
|
1419
|
+
width: 5px;
|
|
1420
|
+
cursor: e-resize;
|
|
1421
|
+
}
|
|
1422
|
+
.cropper-line.line-n {
|
|
1423
|
+
top: -3px;
|
|
1424
|
+
left: 0;
|
|
1425
|
+
height: 5px;
|
|
1426
|
+
cursor: n-resize;
|
|
1427
|
+
}
|
|
1428
|
+
.cropper-line.line-w {
|
|
1429
|
+
top: 0;
|
|
1430
|
+
left: -3px;
|
|
1431
|
+
width: 5px;
|
|
1432
|
+
cursor: w-resize;
|
|
1433
|
+
}
|
|
1434
|
+
.cropper-line.line-s {
|
|
1435
|
+
bottom: -3px;
|
|
1436
|
+
left: 0;
|
|
1437
|
+
height: 5px;
|
|
1438
|
+
cursor: s-resize;
|
|
1439
|
+
}
|
|
1440
|
+
.cropper-point {
|
|
1441
|
+
width: 5px;
|
|
1442
|
+
height: 5px;
|
|
1443
|
+
background-color: #39f;
|
|
1444
|
+
opacity: 0.75;
|
|
1445
|
+
}
|
|
1446
|
+
.cropper-point.point-e {
|
|
1447
|
+
top: 50%;
|
|
1448
|
+
right: -3px;
|
|
1449
|
+
margin-top: -3px;
|
|
1450
|
+
cursor: e-resize;
|
|
1451
|
+
}
|
|
1452
|
+
.cropper-point.point-n {
|
|
1453
|
+
top: -3px;
|
|
1454
|
+
left: 50%;
|
|
1455
|
+
margin-left: -3px;
|
|
1456
|
+
cursor: n-resize;
|
|
1457
|
+
}
|
|
1458
|
+
.cropper-point.point-w {
|
|
1459
|
+
top: 50%;
|
|
1460
|
+
left: -3px;
|
|
1461
|
+
margin-top: -3px;
|
|
1462
|
+
cursor: w-resize;
|
|
1463
|
+
}
|
|
1464
|
+
.cropper-point.point-s {
|
|
1465
|
+
bottom: -3px;
|
|
1466
|
+
left: 50%;
|
|
1467
|
+
margin-left: -3px;
|
|
1468
|
+
cursor: s-resize;
|
|
1469
|
+
}
|
|
1470
|
+
.cropper-point.point-ne {
|
|
1471
|
+
top: -3px;
|
|
1472
|
+
right: -3px;
|
|
1473
|
+
cursor: ne-resize;
|
|
1474
|
+
}
|
|
1475
|
+
.cropper-point.point-nw {
|
|
1476
|
+
top: -3px;
|
|
1477
|
+
left: -3px;
|
|
1478
|
+
cursor: nw-resize;
|
|
1479
|
+
}
|
|
1480
|
+
.cropper-point.point-sw {
|
|
1481
|
+
bottom: -3px;
|
|
1482
|
+
left: -3px;
|
|
1483
|
+
cursor: sw-resize;
|
|
1484
|
+
}
|
|
1485
|
+
.cropper-point.point-se {
|
|
1486
|
+
right: -3px;
|
|
1487
|
+
bottom: -3px;
|
|
1488
|
+
width: 20px;
|
|
1489
|
+
height: 20px;
|
|
1490
|
+
cursor: se-resize;
|
|
1491
|
+
opacity: 1;
|
|
1492
|
+
}
|
|
1493
|
+
@media (min-width: 768px) {
|
|
1494
|
+
.cropper-point.point-se {
|
|
1495
|
+
width: 15px;
|
|
1496
|
+
height: 15px;
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
@media (min-width: 992px) {
|
|
1500
|
+
.cropper-point.point-se {
|
|
1501
|
+
width: 10px;
|
|
1502
|
+
height: 10px;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
@media (min-width: 1200px) {
|
|
1506
|
+
.cropper-point.point-se {
|
|
1507
|
+
width: 5px;
|
|
1508
|
+
height: 5px;
|
|
1509
|
+
opacity: 0.75;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
.cropper-point.point-se::before {
|
|
1513
|
+
position: absolute;
|
|
1514
|
+
right: -50%;
|
|
1515
|
+
bottom: -50%;
|
|
1516
|
+
display: block;
|
|
1517
|
+
width: 200%;
|
|
1518
|
+
height: 200%;
|
|
1519
|
+
background-color: #39f;
|
|
1520
|
+
opacity: 0;
|
|
1521
|
+
content: ' ';
|
|
1522
|
+
}
|
|
1523
|
+
.cropper-invisible {
|
|
1524
|
+
opacity: 0;
|
|
1525
|
+
}
|
|
1526
|
+
.cropper-bg {
|
|
1527
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
|
|
1528
|
+
}
|
|
1529
|
+
.cropper-hide {
|
|
1530
|
+
position: absolute;
|
|
1531
|
+
display: block;
|
|
1532
|
+
width: 0;
|
|
1533
|
+
height: 0;
|
|
1534
|
+
}
|
|
1535
|
+
.cropper-hidden {
|
|
1536
|
+
display: none !important;
|
|
1537
|
+
}
|
|
1538
|
+
.cropper-move {
|
|
1539
|
+
cursor: move;
|
|
1540
|
+
}
|
|
1541
|
+
.cropper-crop {
|
|
1542
|
+
cursor: crosshair;
|
|
1543
|
+
}
|
|
1544
|
+
.cropper-disabled .cropper-drag-box,
|
|
1545
|
+
.cropper-disabled .cropper-face,
|
|
1546
|
+
.cropper-disabled .cropper-line,
|
|
1547
|
+
.cropper-disabled .cropper-point {
|
|
1548
|
+
cursor: not-allowed;
|
|
1549
|
+
}
|
|
1550
|
+
.image-crop-modal-wrapper .arco-modal-footer {
|
|
1551
|
+
padding: 0;
|
|
1552
|
+
}
|
|
1553
|
+
.image-crop-modal-body {
|
|
1554
|
+
height: calc(100vh - 16vh - 114px);
|
|
1555
|
+
padding: 0;
|
|
1556
|
+
overflow: hidden;
|
|
1557
|
+
background: var(--color-fill-3);
|
|
1558
|
+
}
|
|
1559
|
+
.image-crop-modal-body .image-cropper {
|
|
1560
|
+
height: 100%;
|
|
1561
|
+
}
|
|
1562
|
+
.image-crop-modal-body .image-cropper .edit {
|
|
1563
|
+
height: calc(100% - 86px);
|
|
1564
|
+
padding: 24px;
|
|
1565
|
+
text-align: center;
|
|
1566
|
+
}
|
|
1567
|
+
.image-crop-modal-body .image-cropper .edit.fullHeight {
|
|
1568
|
+
height: 100%;
|
|
1569
|
+
}
|
|
1570
|
+
.image-crop-modal-body .image-cropper .edit .edit-cropper {
|
|
1571
|
+
position: relative;
|
|
1572
|
+
top: 50%;
|
|
1573
|
+
left: 50%;
|
|
1574
|
+
width: 100%;
|
|
1575
|
+
height: 100%;
|
|
1576
|
+
transform: translate(-50%, -50%);
|
|
1577
|
+
}
|
|
1578
|
+
.image-crop-modal-body .image-cropper .edit .edit-cropper #cropper_img {
|
|
1579
|
+
display: block;
|
|
1580
|
+
max-width: 100%;
|
|
1581
|
+
max-height: 100%;
|
|
1582
|
+
}
|
|
1583
|
+
.image-crop-modal-body .image-cropper .edit .edit-cropper #cropper_img.position {
|
|
1584
|
+
position: absolute;
|
|
1585
|
+
top: 50%;
|
|
1586
|
+
left: 50%;
|
|
1587
|
+
transform: translate(-50%, -50%);
|
|
1588
|
+
}
|
|
1589
|
+
.image-crop-modal-body .image-cropper .edit .edit-cropper .cropper-bg {
|
|
1590
|
+
background: none !important;
|
|
1591
|
+
}
|
|
1592
|
+
.image-crop-modal-body .image-cropper .tool {
|
|
1593
|
+
width: 100%;
|
|
1594
|
+
height: 86px;
|
|
1595
|
+
line-height: 86px;
|
|
1596
|
+
text-align: center;
|
|
1597
|
+
background: #fff;
|
|
1598
|
+
}
|
|
1599
|
+
.image-crop-modal-body .image-cropper .tool .btn {
|
|
1600
|
+
display: inline-block;
|
|
1601
|
+
margin: 0 30px;
|
|
1602
|
+
color: #474747;
|
|
1603
|
+
font-size: 14px;
|
|
1604
|
+
font-family: PingFangSC-Regular;
|
|
1605
|
+
letter-spacing: 0;
|
|
1606
|
+
vertical-align: middle;
|
|
1607
|
+
border: 1px solid #333;
|
|
1608
|
+
cursor: pointer;
|
|
1609
|
+
opacity: 0.8;
|
|
1610
|
+
}
|
|
1611
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn1 {
|
|
1612
|
+
width: 41px;
|
|
1613
|
+
height: 33px;
|
|
1614
|
+
line-height: 33px;
|
|
1615
|
+
border: 1px dashed #333;
|
|
1616
|
+
}
|
|
1617
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn2 {
|
|
1618
|
+
width: 35px;
|
|
1619
|
+
height: 35px;
|
|
1620
|
+
line-height: 35px;
|
|
1621
|
+
}
|
|
1622
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn3 {
|
|
1623
|
+
width: 46px;
|
|
1624
|
+
height: 33px;
|
|
1625
|
+
line-height: 33px;
|
|
1626
|
+
}
|
|
1627
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn4 {
|
|
1628
|
+
width: 34px;
|
|
1629
|
+
height: 47px;
|
|
1630
|
+
line-height: 47px;
|
|
1631
|
+
}
|
|
1632
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn5 {
|
|
1633
|
+
width: 59px;
|
|
1634
|
+
height: 33px;
|
|
1635
|
+
line-height: 33px;
|
|
1636
|
+
}
|
|
1637
|
+
.image-crop-modal-body .image-cropper .tool .btn.btn6 {
|
|
1638
|
+
width: 33px;
|
|
1639
|
+
height: 59px;
|
|
1640
|
+
line-height: 59px;
|
|
1641
|
+
}
|
|
1642
|
+
.image-crop-modal-body .image-cropper .tool .btn:hover,
|
|
1643
|
+
.image-crop-modal-body .image-cropper .tool .btn.active {
|
|
1644
|
+
color: #4886ff;
|
|
1645
|
+
border-color: #4886ff;
|
|
1646
|
+
}
|
|
1647
|
+
.image-crop-modal-footer {
|
|
1648
|
+
display: flex;
|
|
1649
|
+
align-items: center;
|
|
1650
|
+
justify-content: space-between;
|
|
1651
|
+
padding: 10px 30px;
|
|
1652
|
+
overflow: hidden;
|
|
1653
|
+
border-top: solid 1px var(--color-border-1);
|
|
1654
|
+
}
|
|
1655
|
+
.image-crop-modal-footer .cropper-btn {
|
|
1656
|
+
padding: 6px !important;
|
|
1657
|
+
font-size: 18px;
|
|
1658
|
+
}
|
|
1659
|
+
.image-crop-modal-footer .cropper-btn + .cropper-btn {
|
|
1660
|
+
margin-left: 10px;
|
|
1661
|
+
}
|
|
1296
1662
|
.tooltip-button {
|
|
1297
1663
|
height: auto;
|
|
1298
1664
|
padding: 20px;
|
|
@@ -2208,6 +2574,7 @@
|
|
|
2208
2574
|
height: 40px !important;
|
|
2209
2575
|
}
|
|
2210
2576
|
.user-director-modal-body {
|
|
2577
|
+
background: var(--color-bg-1);
|
|
2211
2578
|
padding: 0;
|
|
2212
2579
|
}
|
|
2213
2580
|
.user-director-modal-body .arco-collapse {
|
|
@@ -2216,7 +2583,7 @@
|
|
|
2216
2583
|
.user-director-modal-body .arco-collapse-item-content {
|
|
2217
2584
|
padding-left: 10px;
|
|
2218
2585
|
padding-right: 0;
|
|
2219
|
-
background:
|
|
2586
|
+
background: var(--color-bg-1);
|
|
2220
2587
|
}
|
|
2221
2588
|
.user-select-content {
|
|
2222
2589
|
height: 50vh;
|
|
@@ -2274,3 +2641,108 @@
|
|
|
2274
2641
|
.user-select-content .arco-tree-node:hover .tree-action {
|
|
2275
2642
|
display: inline-block;
|
|
2276
2643
|
}
|
|
2644
|
+
.select-thumb-container .thumb-card-container {
|
|
2645
|
+
width: 100px;
|
|
2646
|
+
height: 58px;
|
|
2647
|
+
margin-right: 10px;
|
|
2648
|
+
border-radius: 4px;
|
|
2649
|
+
overflow: hidden;
|
|
2650
|
+
position: relative;
|
|
2651
|
+
}
|
|
2652
|
+
.select-thumb-container .thumb-card-container.model-5 {
|
|
2653
|
+
width: 75px;
|
|
2654
|
+
height: 100px;
|
|
2655
|
+
}
|
|
2656
|
+
.select-thumb-container .thumb-card-container.model-7 {
|
|
2657
|
+
width: 232px;
|
|
2658
|
+
height: 58px;
|
|
2659
|
+
}
|
|
2660
|
+
.select-thumb-container .thumb-card-container .img-v {
|
|
2661
|
+
width: 100%;
|
|
2662
|
+
height: 100%;
|
|
2663
|
+
position: relative;
|
|
2664
|
+
}
|
|
2665
|
+
.select-thumb-container .thumb-card-container .img-v .change-icon {
|
|
2666
|
+
width: 25px;
|
|
2667
|
+
height: 25px;
|
|
2668
|
+
font-size: 25px;
|
|
2669
|
+
position: absolute;
|
|
2670
|
+
left: 0;
|
|
2671
|
+
right: 0;
|
|
2672
|
+
top: 0;
|
|
2673
|
+
bottom: 0;
|
|
2674
|
+
margin: auto;
|
|
2675
|
+
z-index: 1;
|
|
2676
|
+
color: #ffffff;
|
|
2677
|
+
cursor: pointer;
|
|
2678
|
+
}
|
|
2679
|
+
.select-thumb-container .thumb-card-container .item {
|
|
2680
|
+
width: 100%;
|
|
2681
|
+
height: 100%;
|
|
2682
|
+
cursor: pointer;
|
|
2683
|
+
}
|
|
2684
|
+
.select-thumb-container .thumb-card-container .item img {
|
|
2685
|
+
width: 100%;
|
|
2686
|
+
height: 100%;
|
|
2687
|
+
}
|
|
2688
|
+
.select-thumb-container .thumb-card-container .item.add-thumb {
|
|
2689
|
+
display: flex;
|
|
2690
|
+
align-items: center;
|
|
2691
|
+
justify-content: center;
|
|
2692
|
+
background-color: #f9f9f9;
|
|
2693
|
+
}
|
|
2694
|
+
.select-thumb-container .thumb-card-container .mask {
|
|
2695
|
+
display: none;
|
|
2696
|
+
width: 100%;
|
|
2697
|
+
height: 100%;
|
|
2698
|
+
background: rgba(0, 0, 0, 0.3);
|
|
2699
|
+
position: absolute;
|
|
2700
|
+
top: 0;
|
|
2701
|
+
align-items: center;
|
|
2702
|
+
justify-content: center;
|
|
2703
|
+
color: #eaeaea;
|
|
2704
|
+
font-size: 18px;
|
|
2705
|
+
}
|
|
2706
|
+
.select-thumb-container .thumb-card-container .mask i {
|
|
2707
|
+
display: inline-block;
|
|
2708
|
+
cursor: pointer;
|
|
2709
|
+
}
|
|
2710
|
+
.select-thumb-container .thumb-card-container .mask i:active {
|
|
2711
|
+
opacity: 0.4;
|
|
2712
|
+
}
|
|
2713
|
+
.select-thumb-container .thumb-card-container .mask .half {
|
|
2714
|
+
height: 100%;
|
|
2715
|
+
width: 48%;
|
|
2716
|
+
display: flex;
|
|
2717
|
+
align-items: center;
|
|
2718
|
+
justify-content: center;
|
|
2719
|
+
}
|
|
2720
|
+
.select-thumb-container .thumb-card-container .mask .half:hover {
|
|
2721
|
+
opacity: 0.7;
|
|
2722
|
+
}
|
|
2723
|
+
.select-thumb-container .thumb-card-container .img-v:hover .mask {
|
|
2724
|
+
display: flex;
|
|
2725
|
+
}
|
|
2726
|
+
.select-thumb-container .title {
|
|
2727
|
+
font-size: 14px;
|
|
2728
|
+
color: #4e5969;
|
|
2729
|
+
font-weight: 700;
|
|
2730
|
+
line-height: 40px;
|
|
2731
|
+
margin: 5px 0px;
|
|
2732
|
+
}
|
|
2733
|
+
.select-thumb-container .title span {
|
|
2734
|
+
margin-right: 10px;
|
|
2735
|
+
}
|
|
2736
|
+
.select-thumb-container .title .tip {
|
|
2737
|
+
font-size: 12px;
|
|
2738
|
+
color: rgba(78, 89, 105, 0.4);
|
|
2739
|
+
}
|
|
2740
|
+
.select-thumb-container .thumb-list-view {
|
|
2741
|
+
display: flex;
|
|
2742
|
+
align-items: center;
|
|
2743
|
+
margin-bottom: 10px;
|
|
2744
|
+
}
|
|
2745
|
+
.select-thumb-container .star {
|
|
2746
|
+
color: red;
|
|
2747
|
+
margin-right: 2px !important;
|
|
2748
|
+
}
|