src/menu/components/share/mobPagination/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/mob/searchconfig/searchdragelement/card.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/tabviews/custom/components/chart/antv-bar-line/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/menu/components/share/mobPagination/index.jsx
@@ -1,19 +1,20 @@ import React, {Component} from 'react' import { Icon, Pagination } from 'antd-mobile' import {Component} from 'react' // import { Icon, Pagination } from 'antd-mobile' import './index.scss' class MobPagination extends Component { render () { return ( <Pagination className="mob-pagination" total={5} current={1} locale={{ prevText: (<span><Icon type="left" />上一页</span>), nextText: (<span>下一页<Icon type="right" /></span>), }} /> ) return null // return ( // <Pagination className="mob-pagination" total={5} // current={1} // locale={{ // prevText: (<span><Icon type="left" />上一页</span>), // nextText: (<span>下一页<Icon type="right" /></span>), // }} // /> // ) } } src/mob/searchconfig/searchdragelement/card.jsx
@@ -1,7 +1,7 @@ import React from 'react' import { useDrag, useDrop } from 'react-dnd' import { Icon, Popover, Form } from 'antd' import { Range } from 'antd-mobile' // import { Range } from 'antd-mobile' import moment from 'moment' import asyncComponent from '@/utils/asyncComponent' @@ -63,23 +63,24 @@ </div> </div>) } else if (card.type === 'range') { let value = [(card.minValue || 0), (card.maxValue || 20)] // let value = [(card.minValue || 0), (card.maxValue || 20)] if (card.initval) { value = card.initval.split(',') value = [+value[0], +value[1]] // value = card.initval.split(',') // value = [+value[0], +value[1]] } formItem = (<div className="am-list-item slider"> <div className="am-list-line"> {card.labelShow !== 'false' ? <div className="am-input-label">{card.label}</div> : null} <div className="am-input-control"> <Range min={card.minValue || 0} max={card.maxValue || 20} value={value} /> </div> </div> </div>) formItem = <div></div> // formItem = (<div className="am-list-item slider"> // <div className="am-list-line"> // {card.labelShow !== 'false' ? <div className="am-input-label">{card.label}</div> : null} // <div className="am-input-control"> // <Range // min={card.minValue || 0} // max={card.maxValue || 20} // value={value} // /> // </div> // </div> // </div>) // } else if (card.type === 'daterange') { // let value = '请选择' // if (card.initval === 'week') { src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -586,7 +586,7 @@ if (plot.repeat === 'average') { let _mdata = new Map() _cdata.forEach(item => { if (!item[plot.Xaxis]) return if (!item[plot.Xaxis] && item[plot.Xaxis] !== 0) return vFields.forEach(col => { if (typeof(item[col.field]) !== 'number') { @@ -602,6 +602,8 @@ // dodge is not support linear attribute, please use category attribute! 时间格式 if (/^\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2}:\d{2})?/.test(item[plot.Xaxis])) { item[plot.Xaxis] = ' ' + item[plot.Xaxis] } else { item[plot.Xaxis] = ' ' + item[plot.Xaxis] } @@ -631,7 +633,7 @@ } else if (plot.repeat === 'cumsum') { let _mdata = new Map() _cdata.forEach(item => { if (!item[plot.Xaxis]) return if (!item[plot.Xaxis] && item[plot.Xaxis] !== 0) return vFields.forEach(col => { if (typeof(item[col.field]) !== 'number') { @@ -646,6 +648,8 @@ }) if (/^\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2}:\d{2})?/.test(item[plot.Xaxis])) { item[plot.Xaxis] = ' ' + item[plot.Xaxis] } else { item[plot.Xaxis] = ' ' + item[plot.Xaxis] } @@ -672,10 +676,12 @@ } else { // plot.repeat === 'unrepeat' let _mdata = new Map() _cdata.forEach(item => { if (!item[plot.Xaxis]) return if (!item[plot.Xaxis] && item[plot.Xaxis] !== 0) return if (/^\d{4}-\d{2}-\d{2}(\s\d{2}:\d{2}:\d{2})?/.test(item[plot.Xaxis])) { item[plot.Xaxis] = ' ' + item[plot.Xaxis] } else { item[plot.Xaxis] = '' + item[plot.Xaxis] } if (!_mdata.has(item[plot.Xaxis])) {