xt-element-ui 2.0.3 → 2.0.4
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/docs/components/base/xt-bar.md +1 -1
- package/docs/components/base/xt-map-provider.md +2 -0
- package/docs/components/base/xt-map.md +21 -10
- package/docs/components/base/xt-page.md +4 -2
- package/docs/components/base/xt-scroll-arrow.md +5 -2
- package/docs/components/base/xt-step-price.md +2 -1
- package/lib/index.common.js +15023 -12062
- package/lib/index.css +1 -1
- package/lib/index.umd.js +15028 -12067
- package/lib/index.umd.min.js +11 -11
- package/package.json +2 -2
- package/src/components/xt-chart/XtBar.vue +33 -10
- package/src/components/xt-chart/XtLine.vue +33 -1
- package/src/components/xt-chart/XtMulti.vue +35 -1
- package/src/components/xt-chart/XtPie.vue +31 -1
- package/src/components/xt-chart/pieList.vue +0 -1
- package/src/components/xt-chart/utils.js +31 -0
- package/src/components/xt-date-picker/index.vue +8 -8
- package/src/components/xt-page/index.vue +1 -1
- package/src/components/xt-scroll-arrow/index.vue +72 -1
- package/src/components/xt-select-tree/index.vue +0 -7
- package/src/components/xt-step-price/index.vue +4 -2
- package/src/components/xt-step-price-item/index.vue +2 -1
- package/src/components/xt-upload/index.vue +5 -8
- package/src/index.js +23 -2
- package/src/components/xt-card-item/index copy.vue +0 -93
package/src/index.js
CHANGED
|
@@ -38,6 +38,13 @@ import XtChart from './components/xt-chart' // XtChart 组件(基于 ECharts
|
|
|
38
38
|
import XtIcon from './components/xt-icon' // XtIcon 组件(支持 el-icon / svg / 自定义字体)
|
|
39
39
|
import XtTable from './components/xt-table' // XtTable 组件(基于 ElementUI Table 封装)
|
|
40
40
|
import XtScrollArrow from './components/xt-scroll-arrow'
|
|
41
|
+
import XtBar from './components/xt-chart/XtBar.vue'
|
|
42
|
+
import XtLine from './components/xt-chart/XtLine.vue'
|
|
43
|
+
import XtPie from './components/xt-chart/XtPie.vue'
|
|
44
|
+
import XtMulti from './components/xt-chart/XtMulti.vue'
|
|
45
|
+
import XtPage from './components/xt-page'
|
|
46
|
+
import XtSelectTree from './components/xt-select-tree'
|
|
47
|
+
import XtUpload from './components/xt-upload'
|
|
41
48
|
|
|
42
49
|
|
|
43
50
|
const components = [
|
|
@@ -62,7 +69,14 @@ const components = [
|
|
|
62
69
|
XtChart,
|
|
63
70
|
XtIcon,
|
|
64
71
|
XtTable,
|
|
65
|
-
XtScrollArrow
|
|
72
|
+
XtScrollArrow,
|
|
73
|
+
XtBar,
|
|
74
|
+
XtLine,
|
|
75
|
+
XtPie,
|
|
76
|
+
XtMulti,
|
|
77
|
+
XtPage,
|
|
78
|
+
XtSelectTree,
|
|
79
|
+
XtUpload
|
|
66
80
|
]
|
|
67
81
|
|
|
68
82
|
const install = function (Vue, options = {}) {
|
|
@@ -132,7 +146,14 @@ export default {
|
|
|
132
146
|
XtDatePicker,
|
|
133
147
|
XtIcon,
|
|
134
148
|
XtTable,
|
|
135
|
-
XtScrollArrow
|
|
149
|
+
XtScrollArrow,
|
|
150
|
+
XtBar,
|
|
151
|
+
XtLine,
|
|
152
|
+
XtPie,
|
|
153
|
+
XtMulti,
|
|
154
|
+
XtPage,
|
|
155
|
+
XtSelectTree,
|
|
156
|
+
XtUpload
|
|
136
157
|
}
|
|
137
158
|
|
|
138
159
|
// XtChart 组件按需导出(使用时需自行安装 echarts 依赖)
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FlexBox
|
|
3
|
-
v-if="iconType=='border'"
|
|
4
|
-
class="xt-card-item is-border"
|
|
5
|
-
:class="[iconType=='border'?`is-${type}`:'']"
|
|
6
|
-
:style="cardItemStyle"
|
|
7
|
-
content="between"
|
|
8
|
-
>
|
|
9
|
-
<span class="item__label" v-if="title">
|
|
10
|
-
<slot name="label">{{ label }}</slot>
|
|
11
|
-
</span>
|
|
12
|
-
<span class="item__value">
|
|
13
|
-
<slot name="value">{{ value }}</slot>
|
|
14
|
-
</span>
|
|
15
|
-
<span class="item__unit">
|
|
16
|
-
<slot name="unit">{{ unit }}</slot>
|
|
17
|
-
</span>
|
|
18
|
-
</FlexBox>
|
|
19
|
-
<FlexBox
|
|
20
|
-
v-else
|
|
21
|
-
class="xt-card-item"
|
|
22
|
-
:direction="direction"
|
|
23
|
-
:content="contentAlign"
|
|
24
|
-
>
|
|
25
|
-
<slot name="icon">
|
|
26
|
-
<el-button :type="type" :circle="circle" :round="round" plain :icon="icon"></el-button>
|
|
27
|
-
</slot>
|
|
28
|
-
<div class="item__value">
|
|
29
|
-
<span class="value" :style="valueStyle">
|
|
30
|
-
<slot name="value">{{ label }}</slot>
|
|
31
|
-
</span>
|
|
32
|
-
<div class="unit">{{ value }}</div>
|
|
33
|
-
</div>
|
|
34
|
-
</FlexBox>
|
|
35
|
-
</template>
|
|
36
|
-
<script>
|
|
37
|
-
import FlexBox from '../xt-flex-box/index.vue'
|
|
38
|
-
export default {
|
|
39
|
-
name: "XtCardItem",
|
|
40
|
-
components: {
|
|
41
|
-
FlexBox
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
iconType: { default: "border" },
|
|
45
|
-
type: { default: "primary" },
|
|
46
|
-
label: {},
|
|
47
|
-
value: {},
|
|
48
|
-
unit: {},
|
|
49
|
-
icon: {},
|
|
50
|
-
iconAt: { default: "right" },
|
|
51
|
-
color: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: ''
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
data() {
|
|
57
|
-
return {
|
|
58
|
-
circle: false,
|
|
59
|
-
round: false
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
computed: {
|
|
63
|
-
contentAlign() {
|
|
64
|
-
return this.iconAt == 'center' ? 'center' : 'start'
|
|
65
|
-
},
|
|
66
|
-
direction() {
|
|
67
|
-
const iconAtMap = {
|
|
68
|
-
left: 'row',
|
|
69
|
-
right: 'row-reverse',
|
|
70
|
-
top: 'column',
|
|
71
|
-
bottom: 'column-reverse'
|
|
72
|
-
}
|
|
73
|
-
return iconAtMap[this.iconAt]
|
|
74
|
-
},
|
|
75
|
-
cardItemStyle() {
|
|
76
|
-
if (this.iconType === 'border' && this.type === 'primary' && this.color) {
|
|
77
|
-
return {
|
|
78
|
-
'--xt-card-item-color': this.color
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return {}
|
|
82
|
-
},
|
|
83
|
-
valueStyle() {
|
|
84
|
-
if (this.iconType !== 'border' && this.type === 'primary' && this.color) {
|
|
85
|
-
return {
|
|
86
|
-
color: this.color
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return {}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
</script>
|