Skip to content

Commit

Permalink
fix(charts): [charts]Pack and remove huicharts files (#2897)
Browse files Browse the repository at this point in the history
* fix: 修改图表打包

* fix: 图表打包指令修改

* fix: huiCharts打包替换为Chart

* fix: 删除huicharts打包

* fix: 修改charts文档以及chart打包导出

* fix: 修改打包排除charts逻辑

* fix: excludeComponent添加图表组件名称

* fix: 修改excludeComponents

* fix: 修改chart导出,修改案例引用路径

* fix: 修改chart导出,修改案例引用路径
  • Loading branch information
Davont authored Feb 18, 2025
1 parent 216bb90 commit 57023fc
Show file tree
Hide file tree
Showing 247 changed files with 489 additions and 279 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsAmap as TinyAutonaviMap } from '@opentiny/vue'
import { TinyHuichartsAmap as TinyAutonaviMap } from '@opentiny/vue-huicharts'
const options = ref({
key: '4b5f2cf2cba25200cc6b68c398468899',
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/amap/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsAmap } from '@opentiny/vue'
import { TinyHuichartsAmap } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script setup lang="jsx">
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = {
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo4.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo5.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo6.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue'
import { TinyHuichartsBar as TinyChartBar } from '@opentiny/vue-huicharts'
const options = ref({
// 双向柱状图形态
type: 'double-sides',
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bar/demo7.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBar } from '@opentiny/vue'
import { TinyHuichartsBar } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/demos/pc/app/chart/base-composition-api.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuicharts as TinyChart, TinyButton } from '@opentiny/vue'
import { TinyHuicharts as TinyChart } from '@opentiny/vue-huicharts'
import { TinyButton } from '@opentiny/vue'
const colorMode = ref('default')
const key = ref(0)
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/demos/pc/app/chart/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
</template>

<script lang="jsx">
import { TinyHuicharts, TinyButton } from '@opentiny/vue'
import { TinyHuicharts } from '@opentiny/vue-huicharts'
import { TinyButton } from '@opentiny/vue'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBmap as TinyBaiduMap } from '@opentiny/vue'
import { TinyHuichartsBmap as TinyBaiduMap } from '@opentiny/vue-huicharts'
const options = ref({
key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK',
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/bmap/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBmap } from '@opentiny/vue'
import { TinyHuichartsBmap } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/boxplot/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue-huicharts'
const options = ref({
direction: 'horizontal', // 横向
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/boxplot/multiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script setup lang="jsx">
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot as TinyChartBoxplot } from '@opentiny/vue-huicharts'
import { ref } from 'vue'
function makeData() {
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/boxplot/vertical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsBoxplot } from '@opentiny/vue'
import { TinyHuichartsBoxplot } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/demo2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/demo3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/demo4.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/demo5.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue'
import { TinyHuichartsCandle as TinyChartCandle } from '@opentiny/vue-huicharts'
const baseData = [
['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000],
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/candle/demo6.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsCandle } from '@opentiny/vue'
import { TinyHuichartsCandle } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsPie as TinyChartPie, TinyModal } from '@opentiny/vue'
import { TinyHuichartsPie as TinyChartPie } from '@opentiny/vue-huicharts'
import { TinyModal } from '@opentiny/vue'
const options = ref({
type: 'pie',
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/demos/pc/app/chart/events/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
</template>

<script lang="jsx">
import { TinyHuichartsPie, TinyModal } from '@opentiny/vue'
import { TinyHuichartsPie } from '@opentiny/vue-huicharts'
import { TinyModal } from '@opentiny/vue'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsFunnel as TinyChartFunnel } from '@opentiny/vue'
import { TinyHuichartsFunnel as TinyChartFunnel } from '@opentiny/vue-huicharts'
const options = ref({
data: [
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/funnel/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsFunnel } from '@opentiny/vue'
import { TinyHuichartsFunnel } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup lang="jsx">
import { ref } from 'vue'
import { TinyHuichartsFunnel as TinyChartFunnel } from '@opentiny/vue'
import { TinyHuichartsFunnel as TinyChartFunnel } from '@opentiny/vue-huicharts'
const options = ref({
sort: 'ascending',
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/funnel/demo2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="jsx">
import { TinyHuichartsFunnel } from '@opentiny/vue'
import { TinyHuichartsFunnel } from '@opentiny/vue-huicharts'
export default {
components: {
Expand Down
Loading

0 comments on commit 57023fc

Please sign in to comment.