diff --git a/demo/index.css b/demo/index.css index 1dd94f9..a9fede2 100644 --- a/demo/index.css +++ b/demo/index.css @@ -646,1055 +646,6 @@ body { font-size: 0.9rem; } } -@font-face { - font-family: 'fileicon'; - src: url('https://at.alicdn.com/t/font_1442816980_3990257.eot'); - /* IE9*/ - src: url('https://at.alicdn.com/t/font_1442816980_3990257.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('https://at.alicdn.com/t/font_1442816980_3990257.woff') format('woff'), /* chrome、firefox */ url('https://at.alicdn.com/t/font_1442816980_3990257.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('https://at.alicdn.com/t/font_1442816980_3990257.svg#iconfont') format('svg'); - /* iOS 4.1- */ -} -.kuma-upload-fileicon { - font-family: "fileicon" !important; - font-size: 18px; - font-style: normal; - vertical-align: middle; - -webkit-font-smoothing: antialiased; - -webkit-text-stroke-width: 0.2px; - position: relative; - display: inline-block; - overflow: hidden; -} -.kuma-upload-fileicon:before { - content: "\e700"; - color: #666; -} -.kuma-upload-fileicon:after { - display: inline-block; - content: attr(data-ext); - position: absolute; - bottom: 3px; - left: 3px; - font-size: 12px; - text-transform: uppercase; - line-height: normal; - white-space: nowrap; - -webkit-transform: scale(0.5); - transform: scale(0.5); - -webkit-transform-origin: left bottom; - transform-origin: left bottom; - color: white; - padding: 0 4px; - background: #666; - border-radius: 6px; -} -.kuma-upload-fileicon[data-type^=video]:before { - content: "\e704"; -} -.kuma-upload-fileicon[data-type^=video]:after { - display: none; -} -.kuma-upload-fileicon[data-type^=audio]:before { - content: "\e703"; -} -.kuma-upload-fileicon[data-type^=audio]:after { - display: none; -} -.kuma-upload-fileicon[data-type^=text]:before { - content: "\e702"; -} -.kuma-upload-fileicon[data-type^=text]:after { - display: none; -} -.kuma-upload-fileicon[data-type^=image]:before { - content: "\e701"; -} -.kuma-upload-fileicon[data-type^=image]:after { - display: none; -} -.kuma-upload-fileicon[data-ext^=doc]:before { - content: "\e705"; -} -.kuma-upload-fileicon[data-ext^=doc]:after { - display: none; -} -.kuma-upload-fileicon[data-ext^=xls]:before { - content: "\e706"; -} -.kuma-upload-fileicon[data-ext^=xls]:after { - display: none; -} -.kuma-upload-fileicon[data-ext^=ppt]:before { - content: "\e707"; -} -.kuma-upload-fileicon[data-ext^=ppt]:after { - display: none; -} -.kuma-upload-fileicon[data-ext=pdf]:before { - content: "\e708"; -} -.kuma-upload-fileicon[data-ext=pdf]:after { - display: none; -} -.kuma-upload-fileicon[data-ext=zip]:before, -.kuma-upload-fileicon[data-ext=rar]:before { - content: "\e709"; -} -.kuma-upload-fileicon[data-ext=zip]:after, -.kuma-upload-fileicon[data-ext=rar]:after { - display: none; -} -.kuma-upload-fileicon[data-ext=js]:before, -.kuma-upload-fileicon[data-ext=css]:before, -.kuma-upload-fileicon[data-ext=java]:before, -.kuma-upload-fileicon[data-ext=php]:before, -.kuma-upload-fileicon[data-ext=html]:before, -.kuma-upload-fileicon[data-ext=xml]:before, -.kuma-upload-fileicon[data-ext=json]:before { - content: "\e70c"; -} -.kuma-upload-fileicon[data-ext=js]:after, -.kuma-upload-fileicon[data-ext=css]:after, -.kuma-upload-fileicon[data-ext=java]:after, -.kuma-upload-fileicon[data-ext=php]:after, -.kuma-upload-fileicon[data-ext=html]:after, -.kuma-upload-fileicon[data-ext=xml]:after, -.kuma-upload-fileicon[data-ext=json]:after { - display: none; -} -.kuma-upload-progresspin { - height: 20px; - width: 20px; - display: inline-block; - position: relative; - border-radius: 50%; - vertical-align: middle; -} -.kuma-upload-progresspin .spin { - position: absolute; - border-radius: 0 10px 10px 0; - height: 20px; - width: 10px; - overflow: hidden; - -webkit-transform-origin: left center; - -moz-transform-origin: left center; - -ms-transform-origin: left center; - transform-origin: left center; - top: 0; - right: 0; -} -.kuma-upload-progresspin .spin.spin2-2 { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} -.kuma-upload-progresspin .spin > .inner { - position: absolute; - width: 150%; - height: 100%; - top: 0; - left: -150%; - background: #42a1eb; - -webkit-transform-origin: right center; - -moz-transform-origin: right center; - -ms-transform-origin: right center; - transform-origin: right center; -} -.kuma-upload-progresspin.escape .spin > .inner { - left: 0; - -webkit-transform-origin: left center; - -moz-transform-origin: left center; - -ms-transform-origin: left center; - transform-origin: left center; -} -.kuma-upload-progressbar { - position: absolute; - bottom: 0; - left: 0; - top: 0; - background: #42a1eb; - width: 0; - -webkit-transition: width 0.2s ease-out; - -moz-transition: width 0.2s ease-out; - transition: width 0.2s ease-out; -} -@-webkit-keyframes kuxglow { - 0% { - background: rgba(225, 229, 232, 0.2); - } - 50% { - background: rgba(252, 110, 81, 0.2); - } - 100% { - background: rgba(225, 229, 232, 0.2); - } -} -.kuma-uploader { - min-width: 200px; -} -.kuma-uploader .uxicon-fangda:before { - content: '\e6a8'; -} -.kuma-upload-filelist { - width: 100%; - max-height: 400px; - overflow-y: visible; - overflow-x: visible; -} -.kuma-upload-filelist .visual-progress-box:hover .delete-progress { - display: inline; -} -.kuma-upload-filelist > .inner { - overflow: visible; -} -.kuma-upload-filelist > .inner .kuma-upload-picker-visual { - margin-top: 0; -} -.kuma-upload-filelist.filelist-visual.nwmode { - float: none; - margin-top: 5px; - width: auto; -} -.kuma-upload-picker-visual { - width: 100px; - height: 100px; - margin-top: 5px; - display: inline-block; - overflow: hidden; - position: relative; - line-height: normal; -} -.kuma-upload-picker-visual .kuma-upload-button { - display: inline-block; - background-color: #fff; - outline: none; - border-radius: 3px; - padding-top: 43px; - font-size: 12px; - color: rgba(31, 56, 88, 0.6); - height: 100%; - width: 100%; - transition: all .3s ease; - border: 1px dashed rgba(31, 56, 88, 0.3); -} -.kuma-upload-picker-visual .uxicon-zengjia1 { - position: absolute; - top: 26px; - left: 36px; - font-size: 28px; - color: #1F3858; - opacity: 0.4; -} -.kuma-upload-picker { - display: inline-block; - position: relative; - line-height: normal; -} -.kuma-upload-picker:hover .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: #fff; -} -.kuma-upload-picker:hover .kuma-button-secondary { - border-color: rgba(31, 56, 88, 0.6); - background-color: rgba(31, 56, 88, 0.06); -} -.kuma-upload-picker:hover .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.06); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); -} -.kuma-upload-picker:active .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: #fff; -} -.kuma-upload-picker:active .kuma-button-secondary { - border-color: #1f3858; - background-color: rgba(31, 56, 88, 0.1); - color: #1f3858; -} -.kuma-upload-picker:active .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.1); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); -} -.kuma-upload-picker:visited .kuma-button-primary { - color: #fff; -} -.kuma-upload-picker:visited .kuma-button-secondary { - color: rgba(31, 56, 88, 0.6); -} -.kuma-upload-picker:visited .kuma-button-outline { - color: #ff6f00; -} -.kuma-upload-picker .kuma-upload-button { - display: inline-block; - background: #fff; - outline: none; - border: 1px solid rgba(31, 56, 88, 0.3); - border-radius: 3px; - padding: 0 8px; - font-size: 12px; - color: rgba(31, 56, 88, 0.6); - box-sizing: border-box; - line-height: 26px; - height: 28px; - transition: all .3s ease; -} -.kuma-upload-picker .kuma-upload-button .kuma-icon-uploading { - margin-right: 3px; - font-size: 12px; -} -.kuma-upload-picker .kuma-upload-button > * { - vertical-align: middle; -} -.kuma-upload-tip { - font-size: 12px; - color: rgba(31, 56, 88, 0.4); - margin-top: 10px; -} -.kuma-upload-dropzoom { - min-height: 200px; - min-width: 200px; - position: relative; - border-radius: 5px; -} -.kuma-upload-dropzoom .kuma-upload-responser { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - border: 1px dashed #D9D9D9; - z-index: -1; -} -.kuma-upload-dropzoom.blink .kuma-upload-responser { - border: 3px dashed #fc6e51; - background: #e1e5e8; - -webkit-animation: kuxglow .7s infinite; - animation: kuxglow .7s infinite; -} -.kuma-upload-dropzoom.enter .kuma-upload-responser { - display: block; - border: 3px solid #fc6e51; - background: none; - -webkit-animation: none; - animation: none; -} -.kuma-upload-dropzoom .kuma-upload-picker { - display: block; - text-align: center; - opacity: 0.6; - -webkit-transition: opacity 0.2s; - transition: opacity 0.2s; -} -.kuma-upload-dropzoom .kuma-upload-picker:hover .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-picker:hover .kuma-button-secondary { - border-color: rgba(31, 56, 88, 0.6); - background-color: rgba(31, 56, 88, 0.06); -} -.kuma-upload-dropzoom .kuma-upload-picker:hover .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.06); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); -} -.kuma-upload-dropzoom .kuma-upload-picker:active .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-picker:active .kuma-button-secondary { - border-color: #1f3858; - background-color: rgba(31, 56, 88, 0.1); - color: #1f3858; -} -.kuma-upload-dropzoom .kuma-upload-picker:active .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.1); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); -} -.kuma-upload-dropzoom .kuma-upload-picker:visited .kuma-button-primary { - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-picker:visited .kuma-button-secondary { - color: rgba(31, 56, 88, 0.6); -} -.kuma-upload-dropzoom .kuma-upload-picker:visited .kuma-button-outline { - color: #ff6f00; -} -.kuma-upload-dropzoom .kuma-upload-picker .kuma-icon-add { - position: absolute; - display: inline-block; - left: 50%; - top: 50%; - margin-top: -40px; - margin-left: -40px; - width: 80px; - height: 80px; - font-size: 80px; - color: #D9D9D9; -} -.kuma-upload-dropzoom .kuma-upload-picker:hover, -.kuma-upload-dropzoom .kuma-upload-picker.over { - opacity: 1; -} -.kuma-upload-dropzoom > .kuma-upload-picker { - position: absolute; - z-index: 2; - top: 0; - right: 0; - left: 0; - bottom: 0; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker { - float: left; - margin: 5px; - width: 80px; - height: 80px; - background: #ebeff2; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:hover .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:hover .kuma-button-secondary { - border-color: rgba(31, 56, 88, 0.6); - background-color: rgba(31, 56, 88, 0.06); -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:hover .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.06); - border-color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); - color: rgba2rgb(#ff6f00, rgba(255, 255, 255, 0.1)); -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:active .kuma-button-primary { - background-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:active .kuma-button-secondary { - border-color: #1f3858; - background-color: rgba(31, 56, 88, 0.1); - color: #1f3858; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:active .kuma-button-outline { - background-color: rgba(255, 111, 0, 0.1); - border-color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); - color: rgba2rgb(#ff6f00, rgba(0, 0, 0, 0.05)); -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:visited .kuma-button-primary { - color: #fff; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:visited .kuma-button-secondary { - color: rgba(31, 56, 88, 0.6); -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker:visited .kuma-button-outline { - color: #ff6f00; -} -.kuma-upload-dropzoom .kuma-upload-filelist .kuma-upload-picker .kuma-icon-add { - margin-top: -20px; - margin-left: -20px; - width: 40px; - height: 40px; - font-size: 40px; -} -.kuma-upload-dropzoom .kuma-upload-filelist { - height: 100%; -} -.kuma-upload-fileitem { - overflow: hidden; - font-family: monospace; - display: block; - float: left; - width: 100%; - height: 32px; - background: #fff; - line-height: 30px; - border: 1px solid rgba(31, 56, 88, 0.2); - border-radius: 3px; - z-index: -1; - position: relative; -} -.kuma-upload-fileitem .filename { - color: rgba(0, 0, 0, 0.8); - font-size: 12px; -} -.kuma-upload-fileitem .kuma-upload-status, -.kuma-upload-fileitem .kuma-upload-action { - display: inline-block; - text-align: center; - text-decoration: none; - color: #ccc; - vertical-align: middle; -} -.kuma-upload-fileitem .kuma-upload-status .kuma-icon, -.kuma-upload-fileitem .kuma-upload-action .kuma-icon { - font-size: 18px; -} -.kuma-upload-fileitem .kuma-upload-status.status-success { - color: #8ad256; -} -.kuma-upload-fileitem .kuma-upload-status.status-error { - color: #fcac79; -} -.kuma-upload-fileitem .kuma-upload-status.status-error:hover { - color: #fc482d; -} -.kuma-upload-fileitem .kuma-upload-action.action-remove { - cursor: pointer; -} -.kuma-upload-fileitem .kuma-upload-action.action-remove:hover { - color: #fc6e51; -} -.kuma-upload-fileitem .kuma-upload-action.action-retry { - cursor: pointer; - color: #444; -} -.kuma-upload-fileitem .kuma-upload-action.action-retry:hover { - color: #288df0; -} -.kuma-upload-fileitem .kuma-upload-action.action-upload { - cursor: pointer; - color: #444; -} -.kuma-upload-fileitem .kuma-upload-action.action-upload:hover { - color: #288df0; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem { - border: 1px solid #d9d9d9; - padding: 5px 6px; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem .field-info .filename { - vertical-align: middle; - white-space: nowrap; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem .field-info .filesize { - color: #adadad; - font-size: 14px; - vertical-align: middle; - margin: 0 2px; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem .field-status .kuma-upload-status, -.kuma-upload-filelist.minimode .kuma-upload-fileitem .field-status .kuma-upload-action { - margin: 0 1px; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem .kuma-upload-progressbar { - opacity: 0.3; - z-index: -1; -} -.kuma-upload-filelist.minimode .kuma-upload-fileitem.status-error .kuma-upload-progressbar { - display: none; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem { - margin: 5px; - width: 80px; - height: 112px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .action-remove { - position: absolute; - top: 0; - right: 0; - z-index: 1; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .status-error, -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .status-success { - position: absolute; - left: 0; - top: 0; - z-index: 1; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview { - position: relative; - height: 80px; - width: 80px; - background: #ebeff2; - text-align: center; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .previewer { - height: 80px; - width: 80px; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .previewer img { - max-height: 100%; - max-width: 100%; - vertical-align: middle; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .previewer:before { - display: inline-block; - content: ''; - height: 100%; - width: 0; - overflow: hidden; - vertical-align: middle; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .previewer .kuma-upload-fileicon { - font-size: 60px; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-action { - position: absolute; - top: 50%; - left: 50%; - height: 30px; - width: 30px; - margin-left: -15px; - margin-top: -15px; - opacity: 0.6; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-action .kuma-icon { - line-height: 30px; - font-size: 28px; - color: #288df0; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-action:hover { - opacity: 1; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-progressbar, -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-progresspin { - z-index: 1; - position: absolute; - left: 50%; - top: 50%; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-progresspin { - margin-left: -10px; - margin-top: -10px; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filepreview .kuma-upload-progressbar { - left: 0; - height: 20px; - bottom: auto; - margin-top: -10px; -} -.kuma-upload-filelist.iconmode .kuma-upload-fileitem .filename { - margin-top: 2px; - font-size: 12px; - word-wrap: break-word; - text-align: center; - line-height: 1.2em; - height: 2.4em; - overflow: hidden; - padding: 0 1px; -} -.kuma-upload-filelist.nwmode { - margin-top: 10px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - clear: both; - margin-bottom: 10px; - width: 100%; - height: 32px; - line-height: 30px; - background: #fff; - border: 1px solid rgba(31, 56, 88, 0.2); - border-radius: 3px; - z-index: 0; - position: relative; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.read-style { - border: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.read-style .field-line { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.read-style .field-info-wrap .field-info { - margin-left: 6px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.read-style:hover { - background: rgba(31, 56, 88, 0.04); -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-icon { - float: left; - height: 32px; - width: 30px; - text-align: center; - padding: 0; - margin: 0; - background: transparent; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-icon .kuma-upload-fileicon { - font-size: 16px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-icon .kuma-icon-caution { - vertical-align: middle; - margin: 0 5px; - color: #ff6330; - font-size: 24px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-line { - float: left; - height: 20px; - width: 1px; - background: rgba(31, 56, 88, 0.1); - margin-top: 6px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap { - display: block; - padding: 0; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-info { - display: inline-block; - margin-left: 18px; - width: calc(100% - 138px); - overflow: hidden; - text-overflow: ellipsis; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-info .kuma-loading { - display: inline-block; - height: 16px; - width: 16px; - background: url(data:image/gif;base64,R0lGODlhDAAMAPfIAOnp6f7+/vz8/P39/efn5+jo6Ovr6+zs7O3t7e/v7/j4+OTk5OH6///+/ezr6/T4+/Hy8uz6//3+/vLw8OH////9/O///+bl5f/49PT09fX3+vT5/Pz+//rTu/nRuPymbvX3+P3///+tdv+JRvH09+fz+/Xi1f+odujr7+f6/+Xo6/Ls5vSkduXq7//VvvLx7+rr6+jp6eXk5OzHruTt9f/v5+js7/O5kvvDnub8///y6/KiaP6bZ/5mBv9yKPnu5v+WbeTn6/L//+rp6fx1I/bs5OXl5P92SPT6/e/v8POiaf/+/v7+//Df1PvXwOnr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MgALAAAAAAMAAwAAAhjAJEJ3HTEVAQIAQQqtDTj06s+T4AFUxiMxiUdCo0dU4AswDEsCjMuCFCMQMiQBYgBKHZSYTFhwli2RPZS5UxkKQccm3gy2LEByIYdMxZS4zCXwAwkSGCAANGQAogdOEBMgMKAACH5BAkAAMgALAAAAAAMAAwAAAhjAJEJHFDLi48PAQQqHAasRBNGgrJkUhgMmDGFFcrIUIAswLFhChUaWxCgGIGQIQsQA1AMpcJiwoS1dIkM5kqayFQOOBbMZbBjA5ANO3ZR5MeXwAwkSGCAQFGFAogdOEBMgMKAACH5BAUAAMgALAAAAAAMAAwAAAhgAJEJHEiQ4DBgABC4iuGL1sBgwIwNXEJoRyJkAY4NK4gsA5QAxQhwFIiCGIBiI5HJESYM5chiwkymLEBswLFgHIMdG4Bs2DGJA41pHFgMmIEECQwQADpQALEDB4gJGBgQADs=) no-repeat center; - vertical-align: middle; - margin: 0 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-info .filename { - font-size: 12px; - vertical-align: middle; - white-space: nowrap; - width: 79px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status { - margin-left: 0; - float: right; - margin-right: 10px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status .kuma-upload-status { - font-size: 12px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status .kuma-upload-status.status-progress { - color: #f60; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status .kuma-upload-status.status-error { - color: #ff6330; - margin-left: 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status .kuma-upload-action { - font-size: 12px; - color: #616162; - cursor: pointer; - margin: 0 5px; - display: none; - background: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .field-status .kuma-upload-action.remove-action { - margin-right: 0; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .download-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .remove-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap .terminal-action { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap:hover .download-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap:hover .remove-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap:hover .terminal-action { - display: inline; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .field-info-wrap:hover .kuma-upload-action { - display: inline; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .close-action { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem .status-error { - display: inline-block; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem:hover .close-action { - display: inline-block; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem:hover .status-error { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.status-error { - border: 1px solid #F04631; - background: rgba(240, 69, 48, 0.06); -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem.status-error .kuma-upload-action.close-action { - margin: 0; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - clear: both; - margin-bottom: 0; - margin-right: 0; - display: inline-block; - position: relative; - margin-top: 5px; - width: 100%; - height: 66px; - border: 1px solid rgba(31, 56, 88, 0.2); - border-radius: 3px; - padding: 8px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.read-style { - border: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.read-style:hover { - background: rgba(31, 56, 88, 0.04); -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.read-style:hover .pre-action { - display: inline; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-name { - float: left; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: calc(100% - 140px); - height: 50px; - line-height: 50px; - margin-left: 12px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info { - display: inline-block; - width: 50px; - height: 50px; - border-radius: 3px; - float: left; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info .field-image-preview img { - width: 50px; - height: 50px; - border-radius: 3px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info .kuma-upload-fileicon { - margin: 0 10px; - font-size: 16px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info .kuma-icon-caution { - vertical-align: middle; - margin: 0 5px; - color: #ff6330; - font-size: 14px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info .kuma-loading { - display: inline-block; - height: 16px; - width: 16px; - background: url(data:image/gif;base64,R0lGODlhDAAMAPfIAOnp6f7+/vz8/P39/efn5+jo6Ovr6+zs7O3t7e/v7/j4+OTk5OH6///+/ezr6/T4+/Hy8uz6//3+/vLw8OH////9/O///+bl5f/49PT09fX3+vT5/Pz+//rTu/nRuPymbvX3+P3///+tdv+JRvH09+fz+/Xi1f+odujr7+f6/+Xo6/Ls5vSkduXq7//VvvLx7+rr6+jp6eXk5OzHruTt9f/v5+js7/O5kvvDnub8///y6/KiaP6bZ/5mBv9yKPnu5v+WbeTn6/L//+rp6fx1I/bs5OXl5P92SPT6/e/v8POiaf/+/v7+//Df1PvXwOnr6+Ly+/bZxvW4jv9dAv9WAPG0kO/w8v9vJfP4/OP2+/9pHOn0/ej1+e/3/fHi2P9FAPmxgPi3jvjv6fHz8/X5/PP//+Px+u3r6vH1+PX7/v339PLw8fX5+/1eCf2OR+f///rHpfT///Lx8Of4/+X6/uvr7OL6//fdy/Xg0fvYwfbp3u/s6+3EqOv7/+ft8O3r7OTt9P+caPaXWPqUTv9pO/Xz8P+QW/eRSP2RRvf///D9//1iDP9eDvf4+Onz/OL4/v/Ttvb5/P1mC/Lx8ffXwef+//T6/vb19f9EAPb3+O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OEBMgMKAACH5BAUAAMgALAAAAAAMAAwAAAhgAJEJHEiQ4DBgABC4iuGL1sBgwIwNXEJoRyJkAY4NK4gsA5QAxQhwFIiCGIBiI5HJESYM5chiwkymLEBswLFgHIMdG4Bs2DGJA41pHFgMmIEECQwQADpQALEDB4gJGBgQADs=) no-repeat center; - vertical-align: middle; - margin: 0 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-image-info .filename { - font-size: 12px; - vertical-align: middle; - white-space: nowrap; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status { - float: right; - margin-top: 17px; - margin-right: 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .kuma-upload-action { - cursor: pointer; - width: 16px; - height: 16px; - color: #616162; - text-align: center; - line-height: 16px; - border-radius: 2px; - background: none; - margin: 0 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .kuma-upload-action:hover { - text-decoration: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .preview-action { - margin-left: 0; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .close-action { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .download-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .remove-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .preview-action { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img .field-status .pre-action { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img:hover .download-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img:hover .remove-action, -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img:hover .preview-action { - display: inline; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.status-error { - border: 1px solid #F04631; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.status-error .field-image-name { - color: #F04631; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-img.status-error:hover .close-action { - display: inline-block; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - clear: both; - margin-right: 10px; - display: inline-block; - position: relative; - width: 100px; - height: 100px; - border: none; - border-radius: 3px; - overflow: visible; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual.status-progress { - border: 1px dashed rgba(31, 56, 88, 0.2); -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .error-text { - position: absolute; - top: 0; - left: 0; - width: 100px; - height: 100px; - line-height: 100px; - text-align: center; - color: #F04631; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-image-info { - display: inline-block; - width: 100px; - height: 100px; - border-radius: 3px; - overflow: hidden; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-image-info .field-image-preview img { - width: 100px; - height: 100px; - margin: -1px; - border-radius: 3px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-image-info .kuma-upload-fileicon { - margin: 0 10px; - font-size: 16px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-image-info .kuma-icon-caution { - vertical-align: middle; - margin: 0 5px; - color: #ff6330; - font-size: 14px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-image-info .kuma-loading { - display: inline-block; - height: 16px; - width: 16px; - background: url(data:image/gif;base64,R0lGODlhDAAMAPfIAOnp6f7+/vz8/P39/efn5+jo6Ovr6+zs7O3t7e/v7/j4+OTk5OH6///+/ezr6/T4+/Hy8uz6//3+/vLw8OH////9/O///+bl5f/49PT09fX3+vT5/Pz+//rTu/nRuPymbvX3+P3///+tdv+JRvH09+fz+/Xi1f+odujr7+f6/+Xo6/Ls5vSkduXq7//VvvLx7+rr6+jp6eXk5OzHruTt9f/v5+js7/O5kvvDnub8///y6/KiaP6bZ/5mBv9yKPnu5v+WbeTn6/L//+rp6fx1I/bs5OXl5P92SPT6/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SA+BxwLFgHlOqVBkQACH5BAkAAMgALAAAAAAMAAwAAAhjAJEJ3HTEVAQIAQQqtDTj06s+T4AFUxiMxiUdCo0dU4AswDEsCjMuCFCMQMiQBYgBKHZSYTFhwli2RPZS5UxkKQccm3gy2LEByIYdMxZS4zCXwAwkSGCAANGQAogdOEBMgMKAACH5BAkAAMgALAAAAAAMAAwAAAhjAJEJHFDLi48PAQQqHAasRBNGgrJkUhgMmDGFFcrIUIAswLFhChUaWxCgGIGQIQsQA1AMpcJiwoS1dIkM5kqayFQOOBbMZbBjA5ANO3ZR5MeXwAwkSGCAQFGFAogdOEBMgMKAACH5BAUAAMgALAAAAAAMAAwAAAhgAJEJHEiQ4DBgABC4iuGL1sBgwIwNXEJoRyJkAY4NK4gsA5QAxQhwFIiCGIBiI5HJESYM5chiwkymLEBswLFgHIMdG4Bs2DGJA41pHFgMmIEECQwQADpQALEDB4gJGBgQADs=) no-repeat center; - vertical-align: middle; - margin: 0 5px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual .field-status { - display: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual.status-error { - background: rgba(240, 70, 49, 0.06); - border: 1px solid #f04631; - border-radius: 3px; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual.status-error .visual-progress-box { - background: rgba(240, 70, 49, 0.06); - padding: 0 0 0 0; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual.status-error .visual-progress-box .re-upload { - display: block; - font-family: PingFangSC-Regular; - font-size: 12px; - color: #f04631; - letter-spacing: 0; - line-height: 12px; - cursor: pointer; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual.status-error .visual-progress-box .re-upload-icon { - display: block; - font-size: 28px; - color: #f04631; - margin-top: 16px; - cursor: pointer; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status { - display: block; - position: absolute; - top: 0; - left: 0; - padding: 0; - text-align: center; - line-height: 100px; - background: rgba(0, 0, 0, 0.4); - border-radius: 3px; - height: 100%; - width: 100%; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .preview-action { - margin-right: 6px; - position: absolute; - top: 0; - left: 37px; - background: none; - border: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .preview-action:hover { - text-decoration: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .preview-action .uxicon-fangda { - font-size: 27px; - color: white; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .remove-action { - position: absolute; - top: -9px; - right: -9px; - color: rgba(31, 56, 88, 0.2); - line-height: normal; - cursor: pointer; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .remove-action:hover { - text-decoration: none; -} -.kuma-upload-filelist.nwmode .kuma-upload-fileitem-visual:hover .field-status .remove-action .uxicon-biaodanlei-tongyongqingchu { - font-size: 17px; -} -.progress-box { - height: 100%; - border-radius: 3px; - z-index: 3; - background: rgba(73, 142, 230, 0.15); - position: absolute; - top: 0; - left: 0; -} -.visual-progress-box { - width: 98px; - height: 98px; - position: absolute; - left: 0; - top: 0; - padding: 24px 10px; - text-align: center; - font-size: 12px; - border: none; - background: rgba(255, 255, 255, 0.95); - color: rgba(31, 56, 88, 0.4); -} -.delete-progress { - cursor: pointer; - position: absolute; - right: -9px; - top: -12px; - width: 17px; - height: 17px; - color: rgba(31, 56, 88, 0.4); - display: none; -} -.delete-progress .uxicon-biaodanlei-tongyongqingchu { - font-size: 17px; -} /** * Icon Component Style for uxcore * @author eternalsky @@ -1704,7 +655,7 @@ body { */ @font-face { font-family: 'uxcore'; - src: url('//at.alicdn.com/t/font_207195_kl1liw3b0ccy2e29.woff') format('woff'); + src: url('//at.alicdn.com/t/font_207195_fpniv85epiv.woff') format('woff'); } .uxcore-icon { font-family: "uxcore" !important; @@ -2163,6 +1114,9 @@ body { .uxicon-gouwuche:before { content: "\e6e6"; } +.uxicon-fuhao-tongzhi:before { + content: "\e71c"; +} .uxicon-fuhao-shizhong-line:before { content: "\e73e"; } diff --git a/demo/index.jsx b/demo/index.jsx index 0d04f03..27942ba 100644 --- a/demo/index.jsx +++ b/demo/index.jsx @@ -2,6 +2,9 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Button from 'uxcore-button'; import Uploader from '../src/'; +import '../style'; +import 'kuma-base/core.less'; + // attachment file tips const tips = 请选择大小不超过5M的文本文件,支持doc,docx,xls,xlsx,zip格式,最多3张; const imgTips = 单张不超过3M,支持jpeg,jpg,png格式; @@ -235,6 +238,48 @@ ReactDOM.render(( ), document.getElementById('sample3')); + +class Demo31 extends React.Component { + constructor(props) { + super(props); + this.state = { + fileList, + }; + } + + handleChange(fileList) { + this.setState({ + fileList, + }); + } + render() { + const me = this; + return (); + } +} + +ReactDOM.render(( + +), document.getElementById('sample3-1')); + class Demo4 extends React.Component { constructor(props) { super(props); diff --git a/demo/index.less b/demo/index.less index 1c6db60..018aa0e 100644 --- a/demo/index.less +++ b/demo/index.less @@ -9,7 +9,7 @@ font-size: 14px; } -#sample4{ +#sample4, #sample4-0{ width: 400px; } diff --git a/index.html b/index.html index 037ab58..8e5ea89 100644 --- a/index.html +++ b/index.html @@ -57,6 +57,11 @@

Sample3 - 只读样式图片

+ +

Sample3-1 - 只读样式附件

+ +
+

Sample4 - 图片可视化上传

diff --git a/src/DefaultFileItem.js b/src/DefaultFileItem.js index 7d0a230..49e3e3e 100644 --- a/src/DefaultFileItem.js +++ b/src/DefaultFileItem.js @@ -17,7 +17,7 @@ export default class DefaultFileItem extends React.Component { render() { const me = this; - const { locale, file, mode, isOnlyImg, isVisual, readStyle, readOnly } = me.props; + const { prefixCls, locale, file, mode, isOnlyImg, isVisual, readStyle, readOnly } = me.props; let response = util.simpleDeepCopy(file.response); if (file.type === 'upload') { response = response.content ? (response.content.data ? response.content.data : response.content) : response.data; @@ -26,14 +26,14 @@ export default class DefaultFileItem extends React.Component { const previewUrl = response.previewUrl === undefined ? downloadUrl : response.previewUrl; let readOnlyStyle; if (isOnlyImg) { - const type = isVisual ? 'kuma-upload-fileitem-visual' : 'kuma-upload-fileitem-img'; + const type = isVisual ? `${prefixCls}-fileitem-visual` : `${prefixCls}-fileitem-img`; readOnlyStyle = readOnly ? `${type} read-style` : type; } else { - readOnlyStyle = readOnly ? 'kuma-upload-fileitem read-style' : 'kuma-upload-fileitem'; + readOnlyStyle = readOnly ? `${prefixCls}-fileitem read-style` : `${prefixCls}-fileitem`; } if (mode === 'icon') { - return (
- + return (
+
@@ -54,9 +54,9 @@ export default class DefaultFileItem extends React.Component {
{file.name}
- {previewUrl ? : null} - {downloadUrl ? : null} - {response.canRemove !== false && !readOnly ? + {previewUrl ? : null} + {downloadUrl ? : null} + {response.canRemove !== false && !readOnly ? : undefined}
@@ -69,7 +69,7 @@ export default class DefaultFileItem extends React.Component {
- {previewUrl ? : null} + {previewUrl ? : null} {response.canRemove !== false && !readOnly ? : undefined} @@ -78,7 +78,7 @@ export default class DefaultFileItem extends React.Component { } return (
@@ -86,21 +86,21 @@ export default class DefaultFileItem extends React.Component { {file.name}
- {previewUrl ? : null} - {downloadUrl ? : null} - {response.canRemove !== false && !readOnly ? : null} + {previewUrl ? : null} + {downloadUrl ? : null} + {response.canRemove !== false && !readOnly ? : null}
); } - return (
+ return (
diff --git a/src/FileItem.js b/src/FileItem.js index 813a62c..8d356f3 100644 --- a/src/FileItem.js +++ b/src/FileItem.js @@ -71,25 +71,25 @@ export default class FileItem extends React.Component { render() { const me = this; - const { locale, interval } = me.props; + const { locale, interval, prefixCls } = me.props; if (this.props.mode === 'icon') { - return (
- + return (
+
- - {this.state.status === 'error' ? + + {this.state.status === 'error' ? : null} - {this.state.status === 'queued' ? + {this.state.status === 'queued' ? : null} {this.state.status === 'progress' || this.state.status === 'pending' ? : null}
- {this.state.status === 'error' ? : null} - {this.state.status === 'success' ? : null} + {this.state.status === 'error' ? : null} + {this.state.status === 'success' ? : null}
{util.natcut(this.file.name, 10)}
); } else if (this.props.mode === 'nw') { @@ -103,7 +103,7 @@ export default class FileItem extends React.Component { } if (this.props.isOnlyImg) { if (!this.props.isVisual) { - return (
+ return (
); } - return (
+ return (
{/*
{i18n[locale]['upload_failed']}
*/} {this.state.status !== 'success' ? : null}
); } - return (
+ return (
{this.state.status !== 'error' && this.state.status !== 'success' ? : null}
@@ -135,34 +135,34 @@ export default class FileItem extends React.Component { {this.file.name}
); } const size = util.humanSizeFormat(this.file.size); - return (
+ return (
diff --git a/src/FileList.js b/src/FileList.js index dfb0d77..df7b162 100644 --- a/src/FileList.js +++ b/src/FileList.js @@ -15,6 +15,7 @@ export default class FileList extends React.Component { }; static propTypes = { + prefixCls: PropTypes.string, locale: PropTypes.string, mode: PropTypes.string, isVisual: PropTypes.bool, @@ -89,6 +90,7 @@ export default class FileList extends React.Component { arr.push( +
{this.renderDefaultFileItems()} {this.renderFileItems()} diff --git a/src/Picker.js b/src/Picker.js index cb59ba1..1755cc1 100644 --- a/src/Picker.js +++ b/src/Picker.js @@ -11,16 +11,16 @@ export default class Picker extends React.Component { } render() { - const { isVisual } = this.props; + const { isVisual, prefixCls } = this.props; if (isVisual) { - return (
{this.props.children}
); } - return
{this.props.children}
; + return
{this.props.children}
; } } diff --git a/src/Preview.js b/src/Preview.js index 9cf04df..32edce8 100644 --- a/src/Preview.js +++ b/src/Preview.js @@ -13,10 +13,11 @@ export default class Preview extends React.Component { } render() { + const { prefixCls } = this.props; return (
{this.state.url ? - : } + : }
); } diff --git a/src/Uploader.js b/src/Uploader.js index 4486dd1..1171e10 100644 --- a/src/Uploader.js +++ b/src/Uploader.js @@ -1,4 +1,5 @@ import React from 'react'; +import classNames from 'classnames'; import PropTypes from 'prop-types'; import { UploadCore, Events, Status } from 'uploadcore/dist/uploadcore'; import Button from 'uxcore-button'; @@ -30,6 +31,7 @@ class Uploader extends React.Component { static displayName = 'Uploader'; static defaultProps = { + prefixCls: 'kuma-upload', locale: 'zh-cn', autoPending: true, fileList: [], @@ -42,6 +44,7 @@ class Uploader extends React.Component { }; static propTypes = { + prefixCls: PropTypes.string, locale: PropTypes.string, fileList: PropTypes.array, onChange: PropTypes.func, @@ -255,16 +258,16 @@ class Uploader extends React.Component { } renderTips() { - const { tips } = this.props; + const { tips, prefixCls } = this.props; if (tips) { - return
{tips}
; + return
{tips}
; } return null; } render() { const me = this; - const { locale, isVisual, hideUploadIcon, queueCapcity } = this.props; + const { prefixCls, locale, className, isVisual, hideUploadIcon, queueCapcity } = this.props; let children = this.props.children; const readOnly = this.props.readOnly; const uploadingFiles = me.getUploadingFiles(); @@ -272,7 +275,7 @@ class Uploader extends React.Component { if (!children || children.length < 1) { if (isVisual) { children = ( - ); @@ -286,6 +289,7 @@ class Uploader extends React.Component { const picker = readOnly || noPicker ? null : ( {children}); @@ -293,6 +297,7 @@ class Uploader extends React.Component { ? ( +
{contents}
); diff --git a/src/index.less b/src/index.less index 17cccf9..cf1835c 100644 --- a/src/index.less +++ b/src/index.less @@ -1,4 +1,4 @@ -@uploader-prefix-class: kuma-upload; +@__uploaderPrefixCls: kuma-upload; @import "style/icon"; @import "style/progress"; @@ -15,14 +15,14 @@ } } -.@{uploader-prefix-class}er { +.@{__uploaderPrefixCls}er { min-width: 200px; .uxicon-fangda:before { content: '\e6a8'; } } -.@{uploader-prefix-class}-filelist { +.@{__uploaderPrefixCls}-filelist { width: 100%; max-height: 400px; overflow-y: visible; @@ -34,26 +34,26 @@ } >.inner { overflow: visible; - & .@{uploader-prefix-class}-picker-visual{ + & .@{__uploaderPrefixCls}-picker-visual{ margin-top: 0; } } } -.@{uploader-prefix-class}-filelist.filelist-visual.nwmode { +.@{__uploaderPrefixCls}-filelist.filelist-visual.nwmode { float: none; margin-top: 5px; width: auto; } -.@{uploader-prefix-class}-picker-visual { +.@{__uploaderPrefixCls}-picker-visual { width: 100px; height: 100px; margin-top: 5px; display: inline-block; position: relative; line-height: normal; - .@{uploader-prefix-class}-button { + .@{__uploaderPrefixCls}-button { display: inline-block; background-color: #fff; outline: none; @@ -76,7 +76,7 @@ } } -.@{uploader-prefix-class}-picker { +.@{__uploaderPrefixCls}-picker { display: inline-block; position: relative; line-height: normal; @@ -130,7 +130,7 @@ } } } - .@{uploader-prefix-class}-button { + .@{__uploaderPrefixCls}-button { display: inline-block; background: #fff; outline: none; @@ -149,24 +149,24 @@ font-size: 12px; } } - .@{uploader-prefix-class}-button>* { + .@{__uploaderPrefixCls}-button>* { vertical-align: middle; } } -.@{uploader-prefix-class}-tip { +.@{__uploaderPrefixCls}-tip { font-size: 12px; color: rgba(31, 56, 88, 0.4); margin-top: 10px; } -.@{uploader-prefix-class}-dropzoom { +.@{__uploaderPrefixCls}-dropzoom { min-height: 200px; min-width: 200px; position: relative; border-radius: 5px; - .@{uploader-prefix-class}-responser { + .@{__uploaderPrefixCls}-responser { position: absolute; top: 0; right: 0; @@ -175,13 +175,13 @@ border: 1px dashed #D9D9D9; z-index: -1; } - &.blink .@{uploader-prefix-class}-responser { + &.blink .@{__uploaderPrefixCls}-responser { border: 3px dashed #fc6e51; background: #e1e5e8; -webkit-animation: kuxglow .7s infinite; animation: kuxglow .7s infinite; } - &.enter .@{uploader-prefix-class}-responser { + &.enter .@{__uploaderPrefixCls}-responser { display: block; border: 3px solid #fc6e51; background: none; @@ -189,7 +189,7 @@ animation: none; } - .@{uploader-prefix-class}-picker { + .@{__uploaderPrefixCls}-picker { display: block; text-align: center; opacity: 0.6; @@ -262,7 +262,7 @@ opacity: 1; } } - >.@{uploader-prefix-class}-picker { + >.@{__uploaderPrefixCls}-picker { position: absolute; z-index: 2; top: 0; @@ -270,7 +270,7 @@ left: 0; bottom: 0; } - .@{uploader-prefix-class}-filelist .@{uploader-prefix-class}-picker { + .@{__uploaderPrefixCls}-filelist .@{__uploaderPrefixCls}-picker { float: left; margin: 5px; width: 80px; @@ -335,12 +335,12 @@ } } - .@{uploader-prefix-class}-filelist { + .@{__uploaderPrefixCls}-filelist { height: 100%; } } -.@{uploader-prefix-class}-fileitem { +.@{__uploaderPrefixCls}-fileitem { position: relative; overflow: hidden; font-family: monospace; @@ -359,8 +359,8 @@ font-size: 12px; } - .@{uploader-prefix-class}-status, - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-status, + .@{__uploaderPrefixCls}-action { display: inline-block; text-align: center; text-decoration: none; @@ -370,7 +370,7 @@ font-size: 18px; } } - .@{uploader-prefix-class}-status { + .@{__uploaderPrefixCls}-status { &.status-success { color: #8ad256; } @@ -381,7 +381,7 @@ } } } - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-action { &.action-remove { cursor: pointer; &:hover { @@ -406,8 +406,8 @@ } -.@{uploader-prefix-class}-filelist { - &.minimode .@{uploader-prefix-class}-fileitem { +.@{__uploaderPrefixCls}-filelist { + &.minimode .@{__uploaderPrefixCls}-fileitem { border: 1px solid #d9d9d9; padding: 5px 6px; .field-info { @@ -424,25 +424,25 @@ } .field-status { - .@{uploader-prefix-class}-status, - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-status, + .@{__uploaderPrefixCls}-action { margin: 0 1px; } } - .@{uploader-prefix-class}-progressbar { + .@{__uploaderPrefixCls}-progressbar { opacity: 0.3; z-index: -1; } &.status-error { - .@{uploader-prefix-class}-progressbar { + .@{__uploaderPrefixCls}-progressbar { display: none; } } } - &.iconmode .@{uploader-prefix-class}-fileitem { + &.iconmode .@{__uploaderPrefixCls}-fileitem { margin: 5px; width: 80px; height: 112px; @@ -486,11 +486,11 @@ overflow: hidden; vertical-align: middle; } - .@{uploader-prefix-class}-fileicon { + .@{__uploaderPrefixCls}-fileicon { font-size: 60px; } } - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-action { position: absolute; top: 50%; left: 50%; @@ -509,19 +509,19 @@ } } - .@{uploader-prefix-class}-progressbar, - .@{uploader-prefix-class}-progresspin { + .@{__uploaderPrefixCls}-progressbar, + .@{__uploaderPrefixCls}-progresspin { z-index: 1; position: absolute; left: 50%; top: 50%; } - .@{uploader-prefix-class}-progresspin { + .@{__uploaderPrefixCls}-progresspin { margin-left: -10px; margin-top: -10px; } - .@{uploader-prefix-class}-progressbar { + .@{__uploaderPrefixCls}-progressbar { left: 0; height: 20px; bottom: auto; @@ -545,7 +545,7 @@ margin-top: 10px; } - &.nwmode .@{uploader-prefix-class}-fileitem { + &.nwmode .@{__uploaderPrefixCls}-fileitem { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; clear: both; margin-bottom: 10px; @@ -579,7 +579,7 @@ padding: 0; margin: 0; background: transparent; - .@{uploader-prefix-class}-fileicon { + .@{__uploaderPrefixCls}-fileicon { font-size: 16px; } .kuma-icon-caution { @@ -625,7 +625,7 @@ margin-left: 0; float: right; margin-right: 10px; - .@{uploader-prefix-class}-status { + .@{__uploaderPrefixCls}-status { font-size: 12px; &.status-progress { color: #f60; @@ -635,7 +635,7 @@ margin-left: 5px; } } - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-action { font-size: 12px; color: #616162; cursor: pointer; @@ -658,7 +658,7 @@ .terminal-action { display: inline; } - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-action { display: inline; } } @@ -679,15 +679,15 @@ } } - &.nwmode .@{uploader-prefix-class}-fileitem.status-error { + &.nwmode .@{__uploaderPrefixCls}-fileitem.status-error { border: 1px solid #F04631; background: rgba(240, 69, 48, 0.06); - .@{uploader-prefix-class}-action.close-action { + .@{__uploaderPrefixCls}-action.close-action { margin: 0; } } - &.nwmode .@{uploader-prefix-class}-fileitem-img { + &.nwmode .@{__uploaderPrefixCls}-fileitem-img { &.read-style { border: none; } @@ -735,7 +735,7 @@ border-radius: 3px; } } - .@{uploader-prefix-class}-fileicon { + .@{__uploaderPrefixCls}-fileicon { margin: 0 10px; font-size: 16px; } @@ -763,7 +763,7 @@ float: right; margin-top: 17px; margin-right: 5px; - .@{uploader-prefix-class}-action { + .@{__uploaderPrefixCls}-action { cursor: pointer; width: 16px; height: 16px; @@ -801,7 +801,7 @@ } } - &.nwmode .@{uploader-prefix-class}-fileitem-img.status-error { + &.nwmode .@{__uploaderPrefixCls}-fileitem-img.status-error { border: 1px solid #F04631; .field-image-name { color: #F04631; @@ -813,7 +813,7 @@ } } - &.nwmode .@{uploader-prefix-class}-fileitem-visual { + &.nwmode .@{__uploaderPrefixCls}-fileitem-visual { &.status-progress { border: 1px dashed rgba(31, 56, 88, 0.2); } @@ -854,7 +854,7 @@ border-radius: 3px; } } - .@{uploader-prefix-class}-fileicon { + .@{__uploaderPrefixCls}-fileicon { margin: 0 10px; font-size: 16px; } @@ -878,7 +878,7 @@ } } - &.nwmode .@{uploader-prefix-class}-fileitem-visual.status-error { + &.nwmode .@{__uploaderPrefixCls}-fileitem-visual.status-error { background: rgba(240, 70, 49, 0.06); border: 1px solid #f04631; border-radius: 3px; @@ -903,7 +903,7 @@ } } } - &.nwmode .@{uploader-prefix-class}-fileitem-visual:hover { + &.nwmode .@{__uploaderPrefixCls}-fileitem-visual:hover { .field-status { display: block; position: absolute; diff --git a/src/style/Icon.less b/src/style/Icon.less index 7f4da62..c4898ba 100644 --- a/src/style/Icon.less +++ b/src/style/Icon.less @@ -7,7 +7,7 @@ url('https://at.alicdn.com/t/font_1442816980_3990257.svg#iconfont') format('svg'); /* iOS 4.1- */ } -.@{uploader-prefix-class}-fileicon { +.@{__uploaderPrefixCls}-fileicon { font-family: "fileicon" !important; font-size: 18px; font-style: normal; @@ -137,4 +137,4 @@ display: none; } } -} \ No newline at end of file +} diff --git a/src/style/Progress.less b/src/style/Progress.less index cf3f330..ef41327 100644 --- a/src/style/Progress.less +++ b/src/style/Progress.less @@ -1,4 +1,4 @@ -.@{uploader-prefix-class}-progresspin { +.@{__uploaderPrefixCls}-progresspin { height: 20px; width: 20px; display: inline-block; @@ -46,7 +46,7 @@ } } -.@{uploader-prefix-class}-progressbar { +.@{__uploaderPrefixCls}-progressbar { position: absolute; bottom: 0; left: 0; @@ -56,4 +56,4 @@ -webkit-transition: width .2s ease-out; -moz-transition: width .2s ease-out; transition: width .2s ease-out; -} \ No newline at end of file +} diff --git a/style/index.js b/style/index.js new file mode 100644 index 0000000..5a769a3 --- /dev/null +++ b/style/index.js @@ -0,0 +1,5 @@ +import '../src/index.less'; +// import 'uxcore-album/style'; +import 'uxcore-button/style'; +import 'uxcore-icon/style'; +// import 'uxcore-progress/style'; diff --git a/webpack.custom.js b/webpack.custom.js new file mode 100644 index 0000000..aea07bf --- /dev/null +++ b/webpack.custom.js @@ -0,0 +1,19 @@ +const modifyVars = require('kuma-base/jsvars/orange'); + +/* eslint-disable no-param-reassign */ +module.exports = (config) => { + config.module.rules.forEach((rule) => { + if (rule.test.toString() === /\.less$/.toString()) { + rule.use = [ + 'style-loader', + 'css-loader', + { + loader: 'less-loader', + options: { + modifyVars, + }, + }, + ]; + } + }); +};