5 lines
955 B
JavaScript
5 lines
955 B
JavaScript
|
|
/*!
|
||
|
|
Build based on gin-vue-admin
|
||
|
|
Time : 1776662816000 */
|
||
|
|
import{E as e}from"./087AC4D233B64EB0index.D87tq4Bj.js";import{Q as t,R as a,S as s,a as i,H as o,i as n,d as u,o as r,K as l,x as p,O as d,G as h}from"./087AC4D233B64EB0index.D-00lXMX.js";const v=t(0),f=t(0),c={__name:"index",props:{options:{type:Object,default:()=>({})},autoResize:{type:Boolean,default:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){const d=i(!1);return o(()=>{d.value=!0}),(e=>{const t=()=>{v.value=window.innerWidth,f.value=window.innerHeight,e&&"function"==typeof e&&e(v.value,f.value)};a(t),s("resize",t,{passive:!0})})(()=>{d.value=!1,o(()=>{d.value=!0})}),(a,s)=>d.value?(r(),n(p(e),{key:0,option:t.options,autoresize:t.autoResize,style:l({width:t.width,height:t.height})},null,8,["option","autoresize","style"])):u("",!0)}};function y(e){const t=d(),a=h(()=>t.isDark);return{chartOption:h(()=>e(a.value))}}export{c as _,y as u};
|