25.chunk.js 8.63 KB
webpackJsonpecComSmall([25],{714:function(e,n,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(0),i=o(t),A=a(5),p=o(A),r=a(1),m=o(r),s=a(2),l=o(s),d=a(3),C=o(d),c=a(4),f=o(c),w=a(6),h=o(w),b=a(7),B=a(66),u=o(B),x=a(910),g=o(x),k=a(86),v=function(e){function n(e){(0,m.default)(this,n);var a=(0,C.default)(this,(n.__proto__||(0,p.default)(n)).call(this,e));return a.getMapLocation=function(){return a.refs.map?a.refs.map.getCurrentInfo():{}},a.onChange=function(e){var n=a.props.onMapLocationChange;"function"===typeof n&&n(e)},a.onMapClick=function(e){var n=a.props.onMapClick;"function"===typeof n&&n(e)},a.onSubmit=function(){var e=a.getMapLocation();a.setState({visible:!1,locationInfo:e}),a.onChange(e)},a.onReset=function(){var e={info:{},position:[],citycode:""};a.setState({visible:!1,locationInfo:e}),a.onChange(e)},a.onCancel=function(){return a.setVisible(!1)},a.setVisible=function(e){return a.setState({visible:e})},a.state={visible:!1,locationInfo:{info:{},position:[],citycode:""}},a}return(0,f.default)(n,e),(0,l.default)(n,[{key:"render",value:function(){var e=this,n=this.props,a=n.show,o=n.mapConfig,t=void 0===o?{}:o,A=this.state,p=A.visible,r=A.locationInfo,m=r.position,s=r.citycode,l=r.info,d=[h.default.createElement(b.Button,{type:"primary",onClick:this.onSubmit},(0,k.getLabel)(826,"确定")),h.default.createElement(b.Button,{type:"ghost",onClick:this.onReset},(0,k.getLabel)(311,"清除")),h.default.createElement(b.Button,{type:"ghost",onClick:this.onCancel},(0,k.getLabel)(31129,"取消"))];return h.default.createElement("div",{style:{position:"relative"}},a||h.default.createElement("span",{style:{fontSize:12,display:"inline-block"},onClick:function(){return e.setVisible(!0)}},h.default.createElement("i",{className:"icon-coms-position",title:(0,k.getLabel)(22981,"位置")}),(0,k.getLabel)(22981,"位置")),m.length>0&&h.default.createElement("div",{className:"wea-rich-text-upload-list-red-p"}),h.default.createElement(u.default,{visible:p,title:(0,k.getLabel)("514074","选择位置"),style:{width:900,height:600},buttons:d,onCancel:this.onCancel},h.default.createElement(g.default,(0,i.default)({ref:"map",position:m,info:l,citycode:s,zoom:14,showInfoWindow:!0,showInfoWin:!0,showSearchBar:!0,showGeolocation:!0,clickToChangePosition:!0,onMapClick:this.onMapClick},t))))}}]),n}(w.Component);n.default=v},910:function(e,n,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var t=a(0),i=o(t),A=a(6),p=o(A),r=a(14),m=o(r);a(911);var s=(0,m.default)({loader:function(){return a.e(20).then(a.bind(null,913))},loading:function(){return null},render:function(e,n,a){return e?p.default.createElement(e&&e.__esModule?e.default:e,(0,i.default)({},n,{ref:a})):null}});n.default=s},911:function(e,n,a){var o=a(912);"string"===typeof o&&(o=[[e.i,o,""]]);var t={hmr:!1};t.transform=void 0;a(579)(o,t);o.locals&&(e.exports=o.locals)},912:function(e,n,a){n=e.exports=a(578)(!0),n.push([e.i,".wea-map{position:relative;height:100%;width:100%;font-size:12px;color:#333}.wea-map .wea-map-marker{width:360px}.wea-map .wea-map-marker .wea-map-marker-span{border:1px solid #008ef7;background:#008ef7;color:#fff;padding:3px;border-radius:5px}.wea-map .wea-map-editable{position:absolute;right:14px;top:12px;background:#fff;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.5);box-shadow:0 0 4px 0 rgba(0,0,0,.5);border-radius:4px;z-index:100;width:342px}.wea-map .wea-map-searchBar{height:91px;padding:15px}.wea-map .wea-map-searchBar-title{font-size:14px;padding-bottom:5px}.wea-map .wea-map-searchBar input{height:30px;border-radius:0;outline:none;border-color:#dadada!important;-webkit-box-shadow:none;box-shadow:none}.wea-map .wea-map-searchList{top:110px;padding:0 15px;max-height:336px;overflow-y:scroll;overflow-x:hidden}.wea-map .wea-map-searchList-item{width:100%;padding:10px 0;border-bottom:1px solid #ebebeb}.wea-map .wea-map-searchList-item:last-child{border-bottom:none}.wea-map .wea-map-searchList-item .item-icon{margin-right:14px;float:left;margin-top:2px}.wea-map .wea-map-searchList-item .item-icon .icon-coms02-Positioning{font-size:20px;color:#8b8b8b}.wea-map .wea-map-searchList-item .item-content{max-width:260px;line-height:18px;display:inline-block;white-space:normal}.wea-map .wea-map-searchList-item .item-content-name{color:#00a9ff}.wea-map .wea-map-infoWindow{line-height:20px;font-size:14px;white-space:normal}.wea-map .wea-map-infoWindow .infoWindow-name{color:#000;border-bottom:1px solid #ebebeb;padding-bottom:8px;font-weight:700}.wea-map .wea-map-infoWindow .infoWindow-address{padding-top:8px}.wea-map .amap-info-content{width:285px;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.5)!important;box-shadow:0 0 4px 0 rgba(0,0,0,.5)!important;border-radius:4px}.wea-map .amap-info-content .amap-info-close{font-weight:400;color:#979797}.wea-map .amap-info-contentContainer.bottom-center,.wea-map .amap-info-contentContainer.bottom-left,.wea-map .amap-info-contentContainer.bottom-right{outline:none}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/ecology9/wea-map/index.less"],names:[],mappings:"AAAA,SACE,kBAAmB,AACnB,YAAa,AACb,WAAY,AACZ,eAAgB,AAChB,UAAe,CAChB,AACD,yBACE,WAAa,CACd,AACD,8CACE,yBAA0B,AAC1B,mBAAoB,AACpB,WAAY,AACZ,YAAa,AACb,iBAAmB,CACpB,AACD,2BACE,kBAAmB,AACnB,WAAY,AACZ,SAAU,AACV,gBAAoB,AACpB,4CAAiD,AACzC,oCAAyC,AACjD,kBAAmB,AACnB,YAAa,AACb,WAAa,CACd,AACD,4BACE,YAAa,AACb,YAAc,CACf,AACD,kCACE,eAAgB,AAChB,kBAAoB,CACrB,AACD,kCACE,YAAa,AACb,gBAAiB,AACjB,aAAc,AACd,+BAAiC,AACjC,wBAAyB,AACjB,eAAiB,CAC1B,AACD,6BACE,UAAW,AACX,eAAgB,AAChB,iBAAkB,AAClB,kBAAmB,AACnB,iBAAmB,CACpB,AACD,kCACE,WAAY,AACZ,eAAuB,AACvB,+BAAiC,CAClC,AACD,6CACE,kBAAoB,CACrB,AACD,6CACE,kBAAmB,AACnB,WAAY,AACZ,cAAgB,CACjB,AACD,sEACE,eAAgB,AAChB,aAAe,CAChB,AACD,gDACE,gBAAiB,AACjB,iBAAkB,AAClB,qBAAsB,AACtB,kBAAoB,CACrB,AACD,qDACE,aAAe,CAChB,AACD,6BACE,iBAAkB,AAClB,eAAgB,AAChB,kBAAoB,CACrB,AACD,8CACE,WAAe,AACf,gCAAiC,AACjC,mBAAoB,AACpB,eAAkB,CACnB,AACD,iDACE,eAAiB,CAClB,AACD,4BACE,YAAa,AACb,sDAA4D,AACpD,8CAAoD,AAC5D,iBAAmB,CACpB,AACD,6CACE,gBAAoB,AACpB,aAAe,CAChB,AACD,sJAGE,YAAc,CACf",file:"index.less",sourcesContent:[".wea-map {\n  position: relative;\n  height: 100%;\n  width: 100%;\n  font-size: 12px;\n  color: #333333;\n}\n.wea-map .wea-map-marker {\n  width: 360px;\n}\n.wea-map .wea-map-marker .wea-map-marker-span {\n  border: 1px solid #008ef7;\n  background: #008ef7;\n  color: #fff;\n  padding: 3px;\n  border-radius: 5px;\n}\n.wea-map .wea-map-editable {\n  position: absolute;\n  right: 14px;\n  top: 12px;\n  background: #ffffff;\n  -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);\n          box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);\n  border-radius: 4px;\n  z-index: 100;\n  width: 342px;\n}\n.wea-map .wea-map-searchBar {\n  height: 91px;\n  padding: 15px;\n}\n.wea-map .wea-map-searchBar-title {\n  font-size: 14px;\n  padding-bottom: 5px;\n}\n.wea-map .wea-map-searchBar input {\n  height: 30px;\n  border-radius: 0;\n  outline: none;\n  border-color: #dadada !important;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.wea-map .wea-map-searchList {\n  top: 110px;\n  padding: 0 15px;\n  max-height: 336px;\n  overflow-y: scroll;\n  overflow-x: hidden;\n}\n.wea-map .wea-map-searchList-item {\n  width: 100%;\n  padding: 10px 0 10px 0;\n  border-bottom: 1px solid #ebebeb;\n}\n.wea-map .wea-map-searchList-item:last-child {\n  border-bottom: none;\n}\n.wea-map .wea-map-searchList-item .item-icon {\n  margin-right: 14px;\n  float: left;\n  margin-top: 2px;\n}\n.wea-map .wea-map-searchList-item .item-icon .icon-coms02-Positioning {\n  font-size: 20px;\n  color: #8b8b8b;\n}\n.wea-map .wea-map-searchList-item .item-content {\n  max-width: 260px;\n  line-height: 18px;\n  display: inline-block;\n  white-space: normal;\n}\n.wea-map .wea-map-searchList-item .item-content-name {\n  color: #00a9ff;\n}\n.wea-map .wea-map-infoWindow {\n  line-height: 20px;\n  font-size: 14px;\n  white-space: normal;\n}\n.wea-map .wea-map-infoWindow .infoWindow-name {\n  color: #000000;\n  border-bottom: 1px solid #ebebeb;\n  padding-bottom: 8px;\n  font-weight: bold;\n}\n.wea-map .wea-map-infoWindow .infoWindow-address {\n  padding-top: 8px;\n}\n.wea-map .amap-info-content {\n  width: 285px;\n  -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5) !important;\n          box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5) !important;\n  border-radius: 4px;\n}\n.wea-map .amap-info-content .amap-info-close {\n  font-weight: normal;\n  color: #979797;\n}\n.wea-map .amap-info-contentContainer.bottom-left,\n.wea-map .amap-info-contentContainer.bottom-center,\n.wea-map .amap-info-contentContainer.bottom-right {\n  outline: none;\n}\n"],sourceRoot:""}])}});
//# sourceMappingURL=25.chunk.js.map?v=b5d68aed