Skip to content

Commit feea189

Browse files
authored
refactor(charts): [charts] rename chart-core packages to huicharts-core (#2027)
* fix: 【Charts】update charts snapshots * fix: 修复图表height为100%时的高度问题 * fix: 优化图表extend逻辑 * fix: 修复图表extend失效问题 * fix: 删除注释 * fix: 新增图表echartOption变量,以便用户获取echart配置 * fix: 修复playground百度地图案例错误问题 * fix: 修复图表option复杂变量失效问题 * fix: 修改高德百度地图案例注释 * fix: chart-core添加cloneDeep引入 * fix: 修改chart组件getFormatted函数判断逻辑 * fix: 更新chart-core包版本为3.17.1 * fix: 修复箱型图data为空数组时的报错问题 * fix: 添加图标属性逻辑的深拷贝 * fix: 删除注释文件 * docs: 更新图表文档 * fix: 修复机器人提出的问题 * chore: [charts]rename chart-core packages to huicharts-core * fix: 修改图表引用路径 * fix: 修改盒须图案例代码和图表简介 * fix: 切换图表基本引入,删除本地无用代码 * fix: 修复图表colors属性失效问题,修改引入路径 * fix: 更新chart图表依赖 * fix: 修改chart打包路径 * fix: 修改图表组件路径和案例导入路径 * fix: 修改案例导入路径 * fix: 还原文件 --------- Co-authored-by: Davont <davontz.icloud.com>
1 parent 3e824bb commit feea189

File tree

706 files changed

+1918
-16018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

706 files changed

+1918
-16018
lines changed

examples/sites/demos/mobile-first/app/tabs/show-echarts.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
</template>
1111

1212
<script>
13-
import { Tabs, TabItem, ChartBar, ChartGauge } from '@opentiny/vue'
13+
import { Tabs, TabItem, HuichartsBar, HuichartsGauge } from '@opentiny/vue'
1414
1515
export default {
1616
components: {
1717
TinyTabs: Tabs,
1818
TinyTabItem: TabItem,
19-
TinyBar: ChartBar,
20-
TinyGauge: ChartGauge
19+
TinyBar: HuichartsBar,
20+
TinyGauge: HuichartsGauge
2121
},
2222
data() {
2323
return {

examples/sites/demos/pc/app/chart/amap/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { AutonaviMap as TinyAutonaviMap } from '@opentiny/vue'
9+
import { HuichartsAmap as TinyAutonaviMap } from '@opentiny/vue'
1010
1111
const options = ref({
1212
key: '4b5f2cf2cba25200cc6b68c398468899',

examples/sites/demos/pc/app/chart/amap/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { AutonaviMap } from '@opentiny/vue'
8+
import { HuichartsAmap } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyAutonaviMap: AutonaviMap
12+
TinyAutonaviMap: HuichartsAmap
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1010
1111
const options = ref({
1212
data: [

examples/sites/demos/pc/app/chart/bar/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo2-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</template>
66

77
<script setup lang="jsx">
8-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
8+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
99
1010
const options = {
1111
data: [

examples/sites/demos/pc/app/chart/bar/demo2.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo3-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1010
1111
const options = ref({
1212
data: [

examples/sites/demos/pc/app/chart/bar/demo3.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo4-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1010
1111
const options = ref({
1212
data: [

examples/sites/demos/pc/app/chart/bar/demo4.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo5-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1010
1111
const options = ref({
1212
data: [

examples/sites/demos/pc/app/chart/bar/demo5.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo6-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1010
1111
const options = ref({
1212
data: [

examples/sites/demos/pc/app/chart/bar/demo6.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/bar/demo7-composition-api.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartBar as TinyChartBar } from '@opentiny/vue'
10-
9+
import { HuichartsBar as TinyChartBar } from '@opentiny/vue'
1110
const options = ref({
1211
// 双向柱状图形态
1312
type: 'double-sides',

examples/sites/demos/pc/app/chart/bar/demo7.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartBar } from '@opentiny/vue'
8+
import { HuichartsBar } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBar: ChartBar
12+
TinyBar: HuichartsBar
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<script setup lang="jsx">
3030
import { ref } from 'vue'
31-
import { Chart as TinyChart, Button as TinyButton } from '@opentiny/vue'
31+
import { Huicharts as TinyChart, Button as TinyButton } from '@opentiny/vue'
3232
3333
const colorMode = ref('default')
3434
const key = ref(0)

examples/sites/demos/pc/app/chart/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
</template>
2828

2929
<script lang="jsx">
30-
import { Chart, Button } from '@opentiny/vue'
30+
import { Huicharts, Button } from '@opentiny/vue'
3131
3232
export default {
3333
components: {
34-
TinyChart: Chart,
34+
TinyChart: Huicharts,
3535
TinyButton: Button
3636
},
3737
methods: {

examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { BaiduMap as TinyBaiduMap } from '@opentiny/vue'
9+
import { HuichartsBmap as TinyBaiduMap } from '@opentiny/vue'
1010
1111
const options = ref({
1212
key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK',

examples/sites/demos/pc/app/chart/bmap/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { BaiduMap } from '@opentiny/vue'
8+
import { HuichartsBmap } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyBaiduMap: BaiduMap
12+
TinyBaiduMap: HuichartsBmap
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/boxplot/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<script setup lang="jsx">
66
import { ref } from 'vue'
7-
import { ChartBoxplot as TinyChartBoxplot } from '@opentiny/vue'
7+
import { HuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
88
99
const options = ref({
1010
data: [

examples/sites/demos/pc/app/chart/boxplot/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
</template>
44

55
<script lang="jsx">
6-
import { ChartBoxplot } from '@opentiny/vue'
6+
import { HuichartsBoxplot } from '@opentiny/vue'
77
88
export default {
99
components: {
10-
TinyBoxplot: ChartBoxplot
10+
TinyBoxplot: HuichartsBoxplot
1111
},
1212
data() {
1313
return {

examples/sites/demos/pc/app/chart/boxplot/multiple-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<script setup lang="jsx">
66
import { ref } from 'vue'
7-
import { ChartBoxplot as TinyChartBoxplot } from '@opentiny/vue'
7+
import { HuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
88
99
const options = ref({
1010
direction: 'horizontal', // 横向

examples/sites/demos/pc/app/chart/boxplot/multiple.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
</template>
44

55
<script lang="jsx">
6-
import { ChartBoxplot } from '@opentiny/vue'
6+
import { HuichartsBoxplot } from '@opentiny/vue'
77
88
export default {
99
components: {
10-
TinyBoxplot: ChartBoxplot
10+
TinyBoxplot: HuichartsBoxplot
1111
},
1212
data() {
1313
return {

examples/sites/demos/pc/app/chart/boxplot/vertical-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script setup lang="jsx">
6-
import { ChartBoxplot as TinyChartBoxplot } from '@opentiny/vue'
6+
import { HuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
77
import { ref } from 'vue'
88
99
function makeData() {

examples/sites/demos/pc/app/chart/boxplot/vertical.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
</template>
44

55
<script lang="jsx">
6-
import { ChartBoxplot } from '@opentiny/vue'
6+
import { HuichartsBoxplot } from '@opentiny/vue'
77
88
export default {
99
components: {
10-
TinyBoxplot: ChartBoxplot
10+
TinyBoxplot: HuichartsBoxplot
1111
},
1212
data() {
13+
const sourceData0 = this.makeData()
14+
const sourceData1 = this.makeData()
15+
const sourceData2 = this.makeData()
1316
return {
14-
sourceData0: makeData(),
15-
sourceData1: makeData(),
16-
sourceData2: makeData(),
1717
options: {
1818
padding: [50, 30, 55, 20],
1919
xAxis: {

examples/sites/demos/pc/app/chart/candle/base-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartCandle as TinyChartCandle } from '@opentiny/vue'
9+
import { HuichartsCandle as TinyChartCandle } from '@opentiny/vue'
1010
1111
const baseData = [
1212
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],

examples/sites/demos/pc/app/chart/candle/base.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartCandle } from '@opentiny/vue'
8+
import { HuichartsCandle } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyCandle: ChartCandle
12+
TinyCandle: HuichartsCandle
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/candle/demo2-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartCandle as TinyChartCandle } from '@opentiny/vue'
9+
import { HuichartsCandle as TinyChartCandle } from '@opentiny/vue'
1010
1111
const baseData = [
1212
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],

examples/sites/demos/pc/app/chart/candle/demo2.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartCandle } from '@opentiny/vue'
8+
import { HuichartsCandle } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyCandle: ChartCandle
12+
TinyCandle: HuichartsCandle
1313
},
1414
data() {
1515
return {

examples/sites/demos/pc/app/chart/candle/demo3-composition-api.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="jsx">
88
import { ref } from 'vue'
9-
import { ChartCandle as TinyChartCandle } from '@opentiny/vue'
9+
import { HuichartsCandle as TinyChartCandle } from '@opentiny/vue'
1010
1111
const baseData = [
1212
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],

examples/sites/demos/pc/app/chart/candle/demo3.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</template>
66

77
<script lang="jsx">
8-
import { ChartCandle } from '@opentiny/vue'
8+
import { HuichartsCandle } from '@opentiny/vue'
99
1010
export default {
1111
components: {
12-
TinyCandle: ChartCandle
12+
TinyCandle: HuichartsCandle
1313
},
1414
data() {
1515
return {

0 commit comments

Comments
 (0)