Compare commits
5 Commits
V2.4.3-alp
...
V2.4.4-alp
Author | SHA1 | Date | |
---|---|---|---|
c281e56d6d | |||
ba35f1b252 | |||
6819fdead9 | |||
6169d2ac90 | |||
786761f1ca |
@ -1,3 +1,9 @@
|
|||||||
|
# 2.4.4-alpha (2019-09-05)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- **scrollBoard:** Header column width is abnormal when row data is empty.
|
||||||
|
|
||||||
# 2.4.3-alpha (2019-09-04)
|
# 2.4.3-alpha (2019-09-04)
|
||||||
|
|
||||||
### Perfect
|
### Perfect
|
||||||
|
@ -40,6 +40,7 @@ Vue.use(borderBox1)
|
|||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
||||||
|
* **飞线图**添加多中心点及反向飞线功能
|
||||||
* **边框**及**装饰**添加颜色及其他必要配置项,增强可配置性及灵活性.
|
* **边框**及**装饰**添加颜色及其他必要配置项,增强可配置性及灵活性.
|
||||||
|
|
||||||
### 致谢
|
### 致谢
|
||||||
|
@ -41,6 +41,7 @@ Detailed documents and examples can be viewed on the [HomePage](http://datav.jia
|
|||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
||||||
|
* **flylineChart**Add multi-center point and reverse fly line function.
|
||||||
* Add color and other necessary configuration to the **borderBox** and **decoration** to enhance configurability and flexibility.
|
* Add color and other necessary configuration to the **borderBox** and **decoration** to enhance configurability and flexibility.
|
||||||
|
|
||||||
### Acknowledgement
|
### Acknowledgement
|
||||||
|
14
dist/datav.map.js
vendored
14
dist/datav.map.js
vendored
@ -23125,10 +23125,18 @@
|
|||||||
rowsData
|
rowsData
|
||||||
} = this;
|
} = this;
|
||||||
const {
|
const {
|
||||||
columnWidth
|
columnWidth,
|
||||||
|
header
|
||||||
} = mergedConfig;
|
} = mergedConfig;
|
||||||
const usedWidth = columnWidth.reduce((all, w) => all + w, 0);
|
const usedWidth = columnWidth.reduce((all, w) => all + w, 0);
|
||||||
const columnNum = rowsData[0] ? rowsData[0].ceils.length : 0;
|
let columnNum = 0;
|
||||||
|
|
||||||
|
if (rowsData[0]) {
|
||||||
|
columnNum = rowsData[0].ceils.length;
|
||||||
|
} else if (header.length) {
|
||||||
|
columnNum = header.length;
|
||||||
|
}
|
||||||
|
|
||||||
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length);
|
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length);
|
||||||
const widths = new Array(columnNum).fill(avgWidth);
|
const widths = new Array(columnNum).fill(avgWidth);
|
||||||
this.widths = util_2$1(widths, columnWidth);
|
this.widths = util_2$1(widths, columnWidth);
|
||||||
@ -23319,7 +23327,7 @@
|
|||||||
/* style */
|
/* style */
|
||||||
const __vue_inject_styles__$u = function (inject) {
|
const __vue_inject_styles__$u = function (inject) {
|
||||||
if (!inject) return
|
if (!inject) return
|
||||||
inject("data-v-87495252_0", { source: ".dv-scroll-board {\n position: relative;\n width: 100%;\n height: 100%;\n color: #fff;\n}\n.dv-scroll-board .text {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .header {\n display: flex;\n flex-direction: row;\n font-size: 15px;\n}\n.dv-scroll-board .header .header-item {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows {\n overflow: hidden;\n}\n.dv-scroll-board .rows .row-item {\n display: flex;\n font-size: 14px;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows .ceil {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .rows .index {\n border-radius: 3px;\n padding: 0px 3px;\n}\n", map: {"version":3,"sources":["main.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,WAAW;AACb;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB","file":"main.vue","sourcesContent":[".dv-scroll-board {\n position: relative;\n width: 100%;\n height: 100%;\n color: #fff;\n}\n.dv-scroll-board .text {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .header {\n display: flex;\n flex-direction: row;\n font-size: 15px;\n}\n.dv-scroll-board .header .header-item {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows {\n overflow: hidden;\n}\n.dv-scroll-board .rows .row-item {\n display: flex;\n font-size: 14px;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows .ceil {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .rows .index {\n border-radius: 3px;\n padding: 0px 3px;\n}\n"]}, media: undefined });
|
inject("data-v-309bd8aa_0", { source: ".dv-scroll-board {\n position: relative;\n width: 100%;\n height: 100%;\n color: #fff;\n}\n.dv-scroll-board .text {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .header {\n display: flex;\n flex-direction: row;\n font-size: 15px;\n}\n.dv-scroll-board .header .header-item {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows {\n overflow: hidden;\n}\n.dv-scroll-board .rows .row-item {\n display: flex;\n font-size: 14px;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows .ceil {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .rows .index {\n border-radius: 3px;\n padding: 0px 3px;\n}\n", map: {"version":3,"sources":["main.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,WAAW;AACb;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB","file":"main.vue","sourcesContent":[".dv-scroll-board {\n position: relative;\n width: 100%;\n height: 100%;\n color: #fff;\n}\n.dv-scroll-board .text {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .header {\n display: flex;\n flex-direction: row;\n font-size: 15px;\n}\n.dv-scroll-board .header .header-item {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows {\n overflow: hidden;\n}\n.dv-scroll-board .rows .row-item {\n display: flex;\n font-size: 14px;\n transition: all 0.3s;\n}\n.dv-scroll-board .rows .ceil {\n padding: 0 10px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dv-scroll-board .rows .index {\n border-radius: 3px;\n padding: 0px 3px;\n}\n"]}, media: undefined });
|
||||||
|
|
||||||
};
|
};
|
||||||
/* scoped */
|
/* scoped */
|
||||||
|
@ -260,11 +260,16 @@ export default {
|
|||||||
calcWidths () {
|
calcWidths () {
|
||||||
const { width, mergedConfig, rowsData } = this
|
const { width, mergedConfig, rowsData } = this
|
||||||
|
|
||||||
const { columnWidth } = mergedConfig
|
const { columnWidth, header } = mergedConfig
|
||||||
|
|
||||||
const usedWidth = columnWidth.reduce((all, w) => all + w, 0)
|
const usedWidth = columnWidth.reduce((all, w) => all + w, 0)
|
||||||
|
|
||||||
const columnNum = rowsData[0] ? rowsData[0].ceils.length : 0
|
let columnNum = 0
|
||||||
|
if (rowsData[0]) {
|
||||||
|
columnNum = rowsData[0].ceils.length
|
||||||
|
} else if (header.length) {
|
||||||
|
columnNum = header.length
|
||||||
|
}
|
||||||
|
|
||||||
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length)
|
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jiaminghi/data-view",
|
"name": "@jiaminghi/data-view",
|
||||||
"version": "2.4.3",
|
"version": "2.4.4",
|
||||||
"author": "JiaMing <743192023@qq.com>",
|
"author": "JiaMing <743192023@qq.com>",
|
||||||
"description": "Vue Large screen data display component library",
|
"description": "Vue Large screen data display component library",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
|
@ -260,11 +260,16 @@ export default {
|
|||||||
calcWidths () {
|
calcWidths () {
|
||||||
const { width, mergedConfig, rowsData } = this
|
const { width, mergedConfig, rowsData } = this
|
||||||
|
|
||||||
const { columnWidth } = mergedConfig
|
const { columnWidth, header } = mergedConfig
|
||||||
|
|
||||||
const usedWidth = columnWidth.reduce((all, w) => all + w, 0)
|
const usedWidth = columnWidth.reduce((all, w) => all + w, 0)
|
||||||
|
|
||||||
const columnNum = rowsData[0] ? rowsData[0].ceils.length : 0
|
let columnNum = 0
|
||||||
|
if (rowsData[0]) {
|
||||||
|
columnNum = rowsData[0].ceils.length
|
||||||
|
} else if (header.length) {
|
||||||
|
columnNum = header.length
|
||||||
|
}
|
||||||
|
|
||||||
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length)
|
const avgWidth = (width - usedWidth) / (columnNum - columnWidth.length)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user