@vtj/charts 0.9.2 → 0.9.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/dist/index.mjs +3 -3
- package/dist/index.umd.js +4 -4
- package/package.json +6 -6
- package/types/version.d.ts +3 -3
package/dist/index.mjs
CHANGED
@@ -3,13 +3,13 @@ import * as R from "echarts";
|
|
3
3
|
import { useResizeObserver as g } from "@vueuse/core";
|
4
4
|
import { debounce as y } from "@vtj/utils";
|
5
5
|
/**!
|
6
|
-
* Copyright (c)
|
6
|
+
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
7
7
|
* @name @vtj/charts
|
8
8
|
* @author CHC chenhuachun1549@dingtalk.com
|
9
|
-
* @version 0.9.
|
9
|
+
* @version 0.9.4
|
10
10
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
11
11
|
*/
|
12
|
-
const S = "0.9.
|
12
|
+
const S = "0.9.4";
|
13
13
|
function w(n, r, s) {
|
14
14
|
const e = o();
|
15
15
|
return u(() => {
|
package/dist/index.umd.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
(function(t,o){typeof exports=="object"&&typeof module
|
2
|
-
* Copyright (c)
|
1
|
+
(function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.VtjCharts={}))})(this,function(t){"use strict";/**!
|
2
|
+
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/charts
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.9.
|
5
|
+
* @version 0.9.4
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
|
-
*/const o="0.9.
|
7
|
+
*/const o="0.9.4";function f(n,u,i){const e=Vue.ref();return Vue.onMounted(()=>{const s=Vue.unref(u);s&&(e.value||(e.value=Vue.markRaw(n.init(s))),e.value&&e.value.setOption(i.value||{}))}),Vue.onUnmounted(()=>{e.value&&e.value.dispose()}),Vue.watch(i,s=>{e.value&&e.value.setOption(s||{})},{deep:!0}),VueUse.useResizeObserver(u,VtjUtils.debounce(()=>{e.value&&e.value.resize()},150)),{echartsInstance:e}}const a=Vue.defineComponent({name:"XChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"400px"},option:{type:Object}},setup(n){const{width:u,height:i,option:e}=Vue.toRefs(n),s=Vue.ref(),l=Vue.computed(()=>({width:u.value,height:i.value})),{echartsInstance:d}=f(echarts,s,e);return{chartRef:s,option:e,styles:l,echartsInstance:d}},render(){const{styles:n}=this;return Vue.h("div",{class:"x-chart",ref:"chartRef",style:n})},expose:["chartRef","option","echartsInstance"]}),c=[a],r=Symbol("INSTALLED_KEY");function h(n){n[r]||(n[r]=!0,c.forEach(u=>{u.name&&n.component(u.name,u)}))}t.INSTALLED_KEY=r,t.VTJ_CHARTS_VERSION=o,t.XChart=a,t.components=c,t.install=h,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/charts",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.9.
|
4
|
+
"version": "0.9.4",
|
5
5
|
"type": "module",
|
6
6
|
"engines": {
|
7
7
|
"node": ">=16.0.0"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"@vueuse/core": "~
|
11
|
-
"echarts": "~5.
|
12
|
-
"@vtj/
|
13
|
-
"@vtj/
|
10
|
+
"@vueuse/core": "~12.3.0",
|
11
|
+
"echarts": "~5.6.0",
|
12
|
+
"@vtj/icons": "~0.9.4",
|
13
|
+
"@vtj/utils": "~0.9.4"
|
14
14
|
},
|
15
15
|
"devDependencies": {
|
16
|
-
"@vtj/cli": "~0.9.
|
16
|
+
"@vtj/cli": "~0.9.2"
|
17
17
|
},
|
18
18
|
"files": [
|
19
19
|
"dist",
|
package/types/version.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**!
|
2
|
-
* Copyright (c)
|
2
|
+
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/charts
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.9.
|
5
|
+
* @version 0.9.3
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.9.
|
8
|
+
export declare const version = "0.9.3";
|