@materialui-reactjs/admin 2.0.0 → 2.0.1
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/CHANGELOG.md +30 -0
- package/README.md +4 -1
- package/dist/Common-DFahMuQE.cjs +11 -0
- package/dist/{Common-1GAoFU4L.js → Common-_PK8HLKN.js} +22 -16
- package/dist/HeaderUpdate-Dirxjmxs.cjs +1 -0
- package/dist/{HeaderUpdate-UXncZcAD.js → HeaderUpdate-drlnuHI8.js} +24 -25
- package/dist/{UDragFile-BqGt1-gK.js → UDragFile-D8wOZ1Ut.js} +2 -2
- package/dist/UDragFile-Db0sK4M7.cjs +1 -0
- package/dist/{Validator-aKlMgoxl.js → Validator-D2zwZeov.js} +73 -50
- package/dist/Validator-DBxl8wtE.cjs +1 -0
- package/dist/ckeditor/ckeditor.d.ts +3 -0
- package/dist/ckeditor/plugins/elfinder.d.ts +11 -0
- package/dist/ckeditor/plugins/fullscreen.d.ts +15 -0
- package/dist/ckeditor/plugins/pdffinder.d.ts +18 -0
- package/dist/ckeditor/types.d.ts +37 -0
- package/dist/{common-DVWX6AUQ.js → common-CEZp8xpQ.js} +14 -3
- package/dist/common-ivDX6gGq.cjs +1 -0
- package/dist/components/echarts/index.cjs +1 -1
- package/dist/components/echarts/index.js +1 -1
- package/dist/components/form/AsxhUImages.d.ts +2 -1
- package/dist/components/form/BoxAddRow.d.ts +2 -1
- package/dist/components/form/CusForm.d.ts +19 -6
- package/dist/components/form/Editor.d.ts +2 -1
- package/dist/components/form/EfImage.d.ts +2 -1
- package/dist/components/form/EfImages.d.ts +2 -1
- package/dist/components/form/PImage.d.ts +2 -1
- package/dist/components/form/SelectAddRowBoxAdvanced.d.ts +13 -4
- package/dist/components/form/SelectBox.d.ts +20 -7
- package/dist/components/form/UDragFile.d.ts +2 -1
- package/dist/components/form/UFile.d.ts +2 -1
- package/dist/components/form/UFiles.d.ts +9 -2
- package/dist/components/form/UImages.d.ts +2 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +2 -2
- package/dist/components/meta/CardTable.d.ts +4 -2
- package/dist/components/meta/CardTable.types.d.ts +11 -5
- package/dist/components/meta/CusTooltip.d.ts +7 -1
- package/dist/components/meta/Head.d.ts +10 -1
- package/dist/components/meta/HeaderDetail.d.ts +2 -1
- package/dist/components/meta/ScrollTable.d.ts +7 -3
- package/dist/components/meta/SearchBox.d.ts +2 -1
- package/dist/components/meta/SortableItem.d.ts +11 -1
- package/dist/components/meta/index.cjs +1 -1
- package/dist/components/meta/index.js +2 -2
- package/dist/components/sidebar/index.cjs +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/single/List.d.ts +15 -4
- package/dist/components/single/Update.d.ts +2 -1
- package/dist/components/single/UpdateTableDetail.d.ts +2 -1
- package/dist/components/single/index.cjs +1 -1
- package/dist/components/single/index.js +1 -1
- package/dist/components/top-navbar/index.cjs +1 -1
- package/dist/components/top-navbar/index.js +28 -28
- package/dist/echarts-Bi3uwLbg.cjs +1 -0
- package/dist/{echarts-CRmndsxC.js → echarts-CTzMqeR5.js} +4 -4
- package/dist/form-heyswTRq.js +3897 -0
- package/dist/form-sgtop6li.cjs +49 -0
- package/dist/hook/common.d.ts +22 -0
- package/dist/hook/detail.cjs +1 -1
- package/dist/hook/detail.js +1 -1
- package/dist/hook/fields.cjs +1 -1
- package/dist/hook/fields.js +1 -1
- package/dist/hook/index.cjs +1 -1
- package/dist/hook/index.d.ts +4 -3
- package/dist/hook/index.js +10 -10
- package/dist/hook/update.cjs +1 -1
- package/dist/hook/update.d.ts +2 -2
- package/dist/hook/update.js +10 -7
- package/dist/index.cjs +1 -1
- package/dist/index.js +11 -11
- package/dist/meta-BANk9kHW.cjs +1 -0
- package/dist/meta-CheDAmMh.js +745 -0
- package/dist/sidebar-CfQAYWi-.cjs +1 -0
- package/dist/{sidebar-CVORMKBY.js → sidebar-CzRmfvhi.js} +3 -3
- package/dist/{single-CqD5cgNi.js → single-BsJ7TYJi.js} +240 -252
- package/dist/single-C2WPEjhk.cjs +1 -0
- package/dist/utils/Common.d.ts +100 -27
- package/dist/utils/Env.d.ts +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +49 -40
- package/package.json +1 -1
- package/dist/Common-BBYXssMH.cjs +0 -11
- package/dist/HeaderUpdate-DIwc8EAA.cjs +0 -1
- package/dist/UDragFile-oJ05zNLR.cjs +0 -1
- package/dist/Validator-BcydBvOg.cjs +0 -1
- package/dist/common-CHDJQ2Ca.cjs +0 -1
- package/dist/echarts-Dla22xas.cjs +0 -1
- package/dist/form-BNAbGCXe.js +0 -45955
- package/dist/form-DUL_O4IY.cjs +0 -65
- package/dist/meta-CXHXSPbq.cjs +0 -1
- package/dist/meta-Dhll5zt9.js +0 -764
- package/dist/sidebar-G5Ody16K.cjs +0 -1
- package/dist/single-CsUaxEjQ.cjs +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SingleUpdate } from './Update';
|
|
2
2
|
import { PropsType } from '../../hook/update';
|
|
3
|
+
import { TableFormBody } from '../meta/CardTable.types';
|
|
3
4
|
export declare class SingleUpdateTableDetail extends SingleUpdate {
|
|
4
5
|
urlGetDeTableList: string;
|
|
5
6
|
urlGetDeTable: string;
|
|
@@ -12,7 +13,7 @@ export declare class SingleUpdateTableDetail extends SingleUpdate {
|
|
|
12
13
|
fetchDataDetails(): Promise<{}>;
|
|
13
14
|
render(): import('react').JSX.Element;
|
|
14
15
|
renderDeTable(): import('react').JSX.Element;
|
|
15
|
-
renderModalDeBody:
|
|
16
|
+
renderModalDeBody: TableFormBody;
|
|
16
17
|
handleDetailSubmit: (e: React.SubmitEvent<HTMLFormElement>) => Promise<void>;
|
|
17
18
|
editDetailAfter: (_itemId: number) => Promise<void>;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../single-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../single-C2WPEjhk.cjs");exports.SingleDetail=e.s,exports.SingleFields=e.o,exports.SingleImport=e.a,exports.SingleIndex=e.i,exports.SingleUpdate=e.r,exports.SingleUpdateDetail=e.n,exports.SingleUpdateTableDetail=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../single-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../../single-BsJ7TYJi.js";
|
|
2
2
|
export { a as SingleDetail, r as SingleFields, e as SingleImport, t as SingleIndex, i as SingleUpdate, n as SingleUpdateDetail, o as SingleUpdateTableDetail };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../rolldown-runtime-BocRIvOZ.cjs"),t=require("../../Common-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../rolldown-runtime-BocRIvOZ.cjs"),t=require("../../Common-DFahMuQE.cjs");let n=require("react");n=e.t(n,1);let r=require("react/jsx-runtime"),i=require("react-router-dom");var a=({userName:e,role:n})=>{let a=(0,i.useNavigate)(),o=async()=>{a(`/`,{replace:!0}),localStorage.removeItem(`isLogin`),window.dispatchEvent(new Event(`storage`))};return(0,r.jsx)(`nav`,{className:`navbar navbar-main navbar-expand-lg position-sticky z-index-sticky shadow-none bg-gradient-dark py-3 px-0`,"data-scroll":`true`,children:(0,r.jsx)(`div`,{className:`container-fluid`,children:(0,r.jsx)(`div`,{className:`collapse navbar-collapse mt-sm-0 mt-2 me-md-0 me-sm-4`,children:(0,r.jsx)(`ul`,{className:`navbar-nav justify-content-end ms-auto`,children:(0,r.jsxs)(`li`,{className:`nav-item dropdown py-0`,children:[(0,r.jsxs)(`button`,{className:`btn btn-sm btn-outline-light dropdown-toggle`,"data-bs-toggle":`dropdown`,"aria-expanded":`false`,children:[(0,r.jsx)(`i`,{className:`fa-regular fa-user-circle me-1`}),e,n&&(0,r.jsx)(`span`,{className:`badge bg-warning text-white ms-2`,children:n})]}),(0,r.jsxs)(`ul`,{className:`dropdown-menu dropdown-menu-end dropdown-menu-animation dropdown-md p-2 border border-radius-xl mt-0 mt-lg-3`,role:`menu`,children:[e&&(0,r.jsx)(`li`,{className:`dropdown-item border-radius-md`,children:(0,r.jsx)(i.Link,{className:`d-block w-100 nav-link py-1`,to:`/profile`,children:`Thông tin tài khoản`})}),e&&(0,r.jsx)(`li`,{className:`dropdown-item border-radius-md`,children:(0,r.jsx)(i.Link,{className:`d-block w-100 nav-link py-1`,to:`/userlogs`,children:`Nhật ký hoạt động`})}),(0,r.jsx)(`li`,{className:`dropdown-item border-radius-md`,children:(0,r.jsx)(i.Link,{className:`d-block w-100 nav-link py-1`,to:`#`,onClick:async e=>{e.preventDefault();try{await o(),t.S(`Đăng xuất thành công`,`top-end`,!0)}catch(e){t.x(t.s(e))}},children:`Đăng xuất`})})]})]})})})})})};exports.TopNavbar=a;
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, s as t, x as n } from "../../Common-_PK8HLKN.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { Link as
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Link as a, useNavigate as o } from "react-router-dom";
|
|
5
5
|
//#region src/components/top-navbar/TopNavbar.tsx
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
|
|
6
|
+
var s = ({ userName: s, role: c }) => {
|
|
7
|
+
let l = o(), u = async () => {
|
|
8
|
+
l("/", { replace: !0 }), localStorage.removeItem("isLogin"), window.dispatchEvent(new Event("storage"));
|
|
9
9
|
};
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ r("nav", {
|
|
11
11
|
className: "navbar navbar-main navbar-expand-lg position-sticky z-index-sticky shadow-none bg-gradient-dark py-3 px-0",
|
|
12
12
|
"data-scroll": "true",
|
|
13
|
-
children: /* @__PURE__ */
|
|
13
|
+
children: /* @__PURE__ */ r("div", {
|
|
14
14
|
className: "container-fluid",
|
|
15
|
-
children: /* @__PURE__ */
|
|
15
|
+
children: /* @__PURE__ */ r("div", {
|
|
16
16
|
className: "collapse navbar-collapse mt-sm-0 mt-2 me-md-0 me-sm-4",
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ r("ul", {
|
|
18
18
|
className: "navbar-nav justify-content-end ms-auto",
|
|
19
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ i("li", {
|
|
20
20
|
className: "nav-item dropdown py-0",
|
|
21
|
-
children: [/* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ i("button", {
|
|
22
22
|
className: "btn btn-sm btn-outline-light dropdown-toggle",
|
|
23
23
|
"data-bs-toggle": "dropdown",
|
|
24
24
|
"aria-expanded": "false",
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
/* @__PURE__ */ r("i", { className: "fa-regular fa-user-circle me-1" }),
|
|
27
|
+
s,
|
|
28
|
+
c && /* @__PURE__ */ r("span", {
|
|
29
29
|
className: "badge bg-warning text-white ms-2",
|
|
30
|
-
children:
|
|
30
|
+
children: c
|
|
31
31
|
})
|
|
32
32
|
]
|
|
33
|
-
}), /* @__PURE__ */
|
|
33
|
+
}), /* @__PURE__ */ i("ul", {
|
|
34
34
|
className: "dropdown-menu dropdown-menu-end dropdown-menu-animation dropdown-md p-2 border border-radius-xl mt-0 mt-lg-3",
|
|
35
35
|
role: "menu",
|
|
36
36
|
children: [
|
|
37
|
-
|
|
37
|
+
s && /* @__PURE__ */ r("li", {
|
|
38
38
|
className: "dropdown-item border-radius-md",
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ r(a, {
|
|
40
40
|
className: "d-block w-100 nav-link py-1",
|
|
41
41
|
to: "/profile",
|
|
42
42
|
children: "Thông tin tài khoản"
|
|
43
43
|
})
|
|
44
44
|
}),
|
|
45
|
-
|
|
45
|
+
s && /* @__PURE__ */ r("li", {
|
|
46
46
|
className: "dropdown-item border-radius-md",
|
|
47
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ r(a, {
|
|
48
48
|
className: "d-block w-100 nav-link py-1",
|
|
49
49
|
to: "/userlogs",
|
|
50
50
|
children: "Nhật ký hoạt động"
|
|
51
51
|
})
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ r("li", {
|
|
54
54
|
className: "dropdown-item border-radius-md",
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ r(a, {
|
|
56
56
|
className: "d-block w-100 nav-link py-1",
|
|
57
57
|
to: "#",
|
|
58
|
-
onClick: async (
|
|
59
|
-
|
|
58
|
+
onClick: async (r) => {
|
|
59
|
+
r.preventDefault();
|
|
60
60
|
try {
|
|
61
|
-
await
|
|
61
|
+
await u(), e("Đăng xuất thành công", "top-end", !0);
|
|
62
62
|
} catch (e) {
|
|
63
|
-
t(e
|
|
63
|
+
n(t(e));
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
children: "Đăng xuất"
|
|
@@ -75,4 +75,4 @@ var o = ({ userName: o, role: s }) => {
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
//#endregion
|
|
78
|
-
export {
|
|
78
|
+
export { s as TopNavbar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime"),r=require("echarts-for-react");r=e.t(r,1);var i=(0,t.memo)(({title:e=`Bar Chart`,labels:i,values:a,color:o=`#5470C6`,showGrid:s=!1,visible:c=!1})=>{let l=(0,t.useRef)(null),u=(0,t.useMemo)(()=>({title:{text:e,left:`center`,textStyle:{fontSize:18,fontFamily:`Roboto, sans-serif`}},textStyle:{fontFamily:`Roboto, sans-serif`},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`}},xAxis:{type:`category`,data:i,axisTick:{alignWithLabel:!0},axisLabel:{rotate:0}},yAxis:{type:`value`,splitLine:{show:s}},series:[{data:a,type:`bar`,barWidth:`50%`,itemStyle:{color:o,borderRadius:[6,6,0,0]},emphasis:{itemStyle:{color:`#91cc75`}}}],grid:{left:`5%`,right:`5%`,bottom:`10%`,containLabel:!0},animationDuration:600}),[e,i,a,o,s]);return(0,t.useEffect)(()=>{c&&l.current?.getEchartsInstance()?.resize()},[c]),(0,n.jsx)(r.default,{ref:l,option:u,style:{height:400,width:`100%`},notMerge:!0,autoResize:!0,lazyUpdate:!0})}),a=(0,t.memo)(({title:e=`Line Chart`,labels:i,values:a,color:o=`#5470C6`,visible:s=!1})=>{let c=(0,t.useRef)(null),l=(0,t.useMemo)(()=>({title:{text:e,left:`center`,textStyle:{fontSize:18,fontFamily:`Roboto, sans-serif`}},textStyle:{fontFamily:`Roboto, sans-serif`},tooltip:{trigger:`axis`},xAxis:{type:`category`,data:i,boundaryGap:!1},yAxis:{type:`value`,min:e=>Math.floor(e.min*.9),max:e=>Math.ceil(e.max*1.1)},series:[{data:a,type:`line`,smooth:!0,lineStyle:{color:o,width:3},itemStyle:{color:o},areaStyle:{color:`${o}33`}}],grid:{left:`5%`,right:`5%`,bottom:`10%`,containLabel:!0}}),[e,i,a,o]);return(0,t.useEffect)(()=>{s&&c.current?.getEchartsInstance()?.resize()},[s]),(0,n.jsx)(r.default,{ref:c,option:l,style:{height:400,width:`100%`},notMerge:!0,autoResize:!0,lazyUpdate:!0})}),o=(0,t.memo)(({title:e=`Multi Bar Chart`,labels:i,series:a,visible:o=!1})=>{let s=(0,t.useRef)(null),c=(0,t.useMemo)(()=>({title:{text:e,left:`center`,textStyle:{fontSize:18,fontFamily:`Roboto, sans-serif`}},textStyle:{fontFamily:`Roboto, sans-serif`},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`}},legend:{top:`5%`,left:`center`,icon:`circle`},grid:{top:`15%`,left:`5%`,right:`5%`,bottom:`10%`,containLabel:!0},xAxis:{type:`category`,data:Array.isArray(i)?i:[],axisTick:{alignWithLabel:!0}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#eee`}}},series:Array.isArray(a)?a.map(e=>({name:e.name,type:`bar`,data:e.data,barWidth:`40%`,itemStyle:{color:e.color,borderRadius:[4,4,0,0]},emphasis:{focus:`series`}})):[],animationDuration:600}),[e,i,a]);return(0,t.useEffect)(()=>{o&&s.current?.getEchartsInstance()?.resize()},[o]),(0,n.jsx)(r.default,{ref:s,option:c,style:{height:400,width:`100%`},notMerge:!0,autoResize:!0,lazyUpdate:!0})}),s=(0,t.memo)(({title:e=`Multi-Line Chart`,labels:i,series:a,visible:o=!1})=>{let s=(0,t.useRef)(null),c=(0,t.useMemo)(()=>({title:{text:e,left:`center`,textStyle:{fontSize:18,fontFamily:`Roboto, sans-serif`}},textStyle:{fontFamily:`Roboto, sans-serif`},tooltip:{trigger:`axis`,backgroundColor:`rgba(50,50,50,0.8)`,borderWidth:0,textStyle:{color:`#fff`}},legend:{top:`5%`,left:`center`,icon:`circle`},grid:{top:`15%`,left:`5%`,right:`5%`,bottom:`10%`,containLabel:!0},xAxis:{type:`category`,data:Array.isArray(i)?i:[],boundaryGap:!1,axisLine:{lineStyle:{color:`#aaa`}},axisLabel:{fontSize:12}},yAxis:{type:`value`,axisLine:{show:!1},splitLine:{lineStyle:{color:`#eee`}}},series:Array.isArray(a)?a.map(e=>({name:e.name,type:`line`,data:e.data,smooth:!0,lineStyle:{width:3,color:e.color},itemStyle:{color:e.color},areaStyle:{color:e.color?`${e.color}33`:void 0},emphasis:{focus:`series`}})):[],animationDuration:600}),[e,i,a]);return(0,t.useEffect)(()=>{o&&s.current?.getEchartsInstance()?.resize()},[o]),(0,n.jsx)(r.default,{ref:s,option:c,style:{height:400,width:`100%`},notMerge:!0,autoResize:!0,lazyUpdate:!0})}),c=(0,t.memo)(({title:e=`Pie Chart`,data:i,visible:a=!1})=>{let o=(0,t.useRef)(null),s=(0,t.useMemo)(()=>({title:{text:e,left:`center`,textStyle:{fontSize:18,fontFamily:`Roboto, sans-serif`}},textStyle:{fontFamily:`Roboto, sans-serif`},tooltip:{trigger:`item`,formatter:`{a} <br/>{b}: {c} ({d}%)`},legend:{left:`center`,top:`top`},series:[{name:e,type:`pie`,radius:`65%`,center:[`50%`,`60%`],data:i,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:`rgba(0, 0, 0, 0.3)`}},label:{formatter:`{b}: {d}%`}}]}),[i,e]);return(0,t.useEffect)(()=>{a&&o.current?.getEchartsInstance()?.resize()},[a]),(0,n.jsx)(r.default,{ref:o,option:s,style:{height:400,width:`100%`},notMerge:!0,autoResize:!0,lazyUpdate:!0})});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -156,14 +156,14 @@ var o = e(({ title: e = "Bar Chart", labels: o, values: s, color: c = "#5470C6",
|
|
|
156
156
|
},
|
|
157
157
|
xAxis: {
|
|
158
158
|
type: "category",
|
|
159
|
-
data: o,
|
|
159
|
+
data: Array.isArray(o) ? o : [],
|
|
160
160
|
axisTick: { alignWithLabel: !0 }
|
|
161
161
|
},
|
|
162
162
|
yAxis: {
|
|
163
163
|
type: "value",
|
|
164
164
|
splitLine: { lineStyle: { color: "#eee" } }
|
|
165
165
|
},
|
|
166
|
-
series: s.map((e) => ({
|
|
166
|
+
series: Array.isArray(s) ? s.map((e) => ({
|
|
167
167
|
name: e.name,
|
|
168
168
|
type: "bar",
|
|
169
169
|
data: e.data,
|
|
@@ -178,7 +178,7 @@ var o = e(({ title: e = "Bar Chart", labels: o, values: s, color: c = "#5470C6",
|
|
|
178
178
|
]
|
|
179
179
|
},
|
|
180
180
|
emphasis: { focus: "series" }
|
|
181
|
-
})),
|
|
181
|
+
})) : [],
|
|
182
182
|
animationDuration: 600
|
|
183
183
|
}), [
|
|
184
184
|
e,
|
|
@@ -229,7 +229,7 @@ var o = e(({ title: e = "Bar Chart", labels: o, values: s, color: c = "#5470C6",
|
|
|
229
229
|
},
|
|
230
230
|
xAxis: {
|
|
231
231
|
type: "category",
|
|
232
|
-
data: o,
|
|
232
|
+
data: Array.isArray(o) ? o : [],
|
|
233
233
|
boundaryGap: !1,
|
|
234
234
|
axisLine: { lineStyle: { color: "#aaa" } },
|
|
235
235
|
axisLabel: { fontSize: 12 }
|