xt-element-ui 1.3.3 → 1.3.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.
Files changed (111) hide show
  1. package/CHANGELOG.md +72 -72
  2. package/LICENSE +21 -21
  3. package/README.md +240 -240
  4. package/docs/README.md +100 -100
  5. package/docs/components/base/xt-button.md +114 -114
  6. package/docs/components/base/xt-card-item.md +104 -104
  7. package/docs/components/base/xt-card.md +108 -108
  8. package/docs/components/base/xt-config-provider.md +199 -199
  9. package/docs/components/base/xt-flex-box.md +115 -115
  10. package/docs/components/base/xt-grid-box.md +302 -302
  11. package/docs/components/base/xt-input.md +150 -150
  12. package/docs/components/base/xt-map-provider.md +23 -23
  13. package/docs/components/base/xt-map.md +331 -331
  14. package/docs/components/base/xt-step-price.md +165 -165
  15. package/docs/components/base/xt-text.md +212 -212
  16. package/docs/components/base/xt-time.md +165 -165
  17. package/docs/components/extend/ex-bar.md +67 -67
  18. package/docs/components/extend/ex-button.md +62 -62
  19. package/docs/components/extend/ex-card.md +86 -86
  20. package/docs/components/extend/ex-chart.md +463 -463
  21. package/docs/components/extend/ex-icon.md +189 -189
  22. package/docs/components/extend/ex-line.md +70 -70
  23. package/docs/components/extend/ex-multi.md +155 -155
  24. package/docs/components/extend/ex-pie.md +69 -69
  25. package/docs/components/extend/ex-select-tree.md +210 -210
  26. package/docs/components/extend/ex-table.md +590 -590
  27. package/docs/components/extend/ex-upload.md +134 -134
  28. package/docs/components/utils/size.md +147 -147
  29. package/docs/components/utils/theme.md +182 -182
  30. package/lib/index.common.js +4112 -4122
  31. package/lib/index.umd.js +4072 -4081
  32. package/lib/index.umd.min.js +3 -3
  33. package/package.json +80 -81
  34. package/src/components/ex-button/index.js +7 -7
  35. package/src/components/ex-button/index.vue +66 -66
  36. package/src/components/ex-button/style/index.scss +67 -67
  37. package/src/components/ex-card/index.js +7 -7
  38. package/src/components/ex-card/index.vue +68 -68
  39. package/src/components/ex-card/style/index.scss +73 -73
  40. package/src/components/ex-chart/index.js +7 -7
  41. package/src/components/ex-chart/index.vue +136 -136
  42. package/src/components/ex-date-picker/index.js +7 -7
  43. package/src/components/ex-icon/index.js +7 -7
  44. package/src/components/ex-icon/index.vue +168 -168
  45. package/src/components/ex-icon/style/index.scss +7 -7
  46. package/src/components/ex-page/index.js +7 -7
  47. package/src/components/ex-select-tree/index.js +7 -7
  48. package/src/components/ex-table/ExTableCell.vue +22 -22
  49. package/src/components/ex-table/index.js +7 -7
  50. package/src/components/ex-table/virtualScrollData.js +35 -35
  51. package/src/components/ex-upload/index.js +7 -7
  52. package/src/components/index.scss +39 -39
  53. package/src/components/xt-button/index.js +7 -7
  54. package/src/components/xt-button/index.vue +97 -97
  55. package/src/components/xt-card/index.js +7 -7
  56. package/src/components/xt-card/style/index.scss +48 -48
  57. package/src/components/xt-card-item/index.js +7 -7
  58. package/src/components/xt-card-item/style/index copy.scss +71 -71
  59. package/src/components/xt-card-item/style/index.scss +82 -82
  60. package/src/components/xt-config-provider/index.js +7 -7
  61. package/src/components/xt-config-provider/index.vue +362 -362
  62. package/src/components/xt-config-provider/style/index.scss +11 -11
  63. package/src/components/xt-flex-box/index.js +7 -7
  64. package/src/components/xt-flex-box/style/index.scss +81 -81
  65. package/src/components/xt-grid-box/index.js +7 -7
  66. package/src/components/xt-grid-box/style/index.scss +92 -92
  67. package/src/components/xt-grid-item/index.js +7 -7
  68. package/src/components/xt-grid-item/index.vue +106 -106
  69. package/src/components/xt-input/index.js +7 -7
  70. package/src/components/xt-input/index.vue +66 -66
  71. package/src/components/xt-input/style/index.scss +84 -84
  72. package/src/components/xt-map/adapters/amap.js +235 -235
  73. package/src/components/xt-map/adapters/baidu.js +254 -254
  74. package/src/components/xt-map/adapters/base.js +267 -267
  75. package/src/components/xt-map/adapters/index.js +29 -29
  76. package/src/components/xt-map/adapters/tianditu.js +242 -242
  77. package/src/components/xt-map/config/xt-map-config.js +197 -197
  78. package/src/components/xt-map/index.js +8 -8
  79. package/src/components/xt-map/index.vue +351 -351
  80. package/src/components/xt-map/loaders/script-loader.js +114 -114
  81. package/src/components/xt-map/provider.vue +200 -200
  82. package/src/components/xt-map/style/index.scss +77 -77
  83. package/src/components/xt-map-provider/index.js +8 -8
  84. package/src/components/xt-step-price/index.js +10 -10
  85. package/src/components/xt-step-price/index.vue +272 -272
  86. package/src/components/xt-step-price/style/index.scss +123 -123
  87. package/src/components/xt-step-price-item/index.js +7 -7
  88. package/src/components/xt-step-price-item/index.vue +187 -187
  89. package/src/components/xt-text/index.js +7 -7
  90. package/src/components/xt-text/index.vue +1 -1
  91. package/src/components/xt-text/style/index.scss +92 -92
  92. package/src/components/xt-time/index.js +7 -7
  93. package/src/components/xt-time/index.vue +313 -313
  94. package/src/components/xt-time/style/index.scss +23 -23
  95. package/src/config/element-registry.js +135 -135
  96. package/src/index.js +162 -178
  97. package/src/styles/css-variables.scss +257 -257
  98. package/src/styles/theme/background.scss +5 -5
  99. package/src/styles/theme/border-radius.scss +3 -3
  100. package/src/styles/theme/borders.scss +3 -3
  101. package/src/styles/theme/colors.scss +101 -101
  102. package/src/styles/theme/component-variables.scss +69 -69
  103. package/src/styles/theme/dark-variables.scss +28 -28
  104. package/src/styles/theme/font.scss +12 -12
  105. package/src/styles/theme/index.scss +11 -11
  106. package/src/styles/theme/shadows.scss +2 -2
  107. package/src/styles/theme/spacing.scss +4 -4
  108. package/src/styles/theme/transitions.scss +2 -2
  109. package/src/styles/theme/typography.scss +4 -4
  110. package/src/styles/variables-export.scss +85 -85
  111. package/src/utils/index.js +191 -202
@@ -1,189 +1,189 @@
1
- ## ExIcon 图标
2
-
3
- 统一图标组件,支持 ElementUI 字体图标(el-icon)、SVG Sprite 图标、内联 SVG,以及可扩展的自定义字体图标。
4
-
5
- ## 基础用法:ElementUI 字体图标
6
-
7
- `name` 以 `el-icon-` 开头时,自动识别为 ElementUI 字体图标:
8
-
9
- ::: demo ElementUI 字体图标示例
10
- ```vue
11
- <template>
12
- <div style="font-size: 24px">
13
- <ex-icon name="el-icon-edit" style="margin-right: 16px" />
14
- <ex-icon name="el-icon-delete" style="margin-right: 16px" />
15
- <ex-icon name="el-icon-search" style="margin-right: 16px" />
16
- <ex-icon name="el-icon-share" style="margin-right: 16px" />
17
- <ex-icon name="el-icon-setting" />
18
- </div>
19
- </template>
20
- ```
21
- :::
22
-
23
- ## SVG Sprite 图标
24
-
25
- `name` 以 `#` 或 `svg:` 开头时,自动识别为 SVG Sprite(通过 `<use>` 引用)。使用前请确保项目已通过 `svg-sprite-loader` 等方式注册了对应的 SVG 图标:
26
-
27
- ::: demo SVG Sprite 图标示例
28
- ```vue
29
- <template>
30
- <div style="font-size: 24px; color: #1890ff">
31
- <ex-icon name="#icon-user" style="margin-right: 16px" />
32
- <ex-icon name="svg:icon-home" style="margin-right: 16px" />
33
- <ex-icon name="#icon-star" />
34
- </div>
35
- </template>
36
- ```
37
- :::
38
-
39
- ## 内联 SVG 图标
40
-
41
- `name` 传入完整的 `<svg>` 字符串时,将作为内联 SVG 渲染:
42
-
43
- ::: demo 内联 SVG 示例
44
- ```vue
45
- <template>
46
- <ex-icon
47
- :size="32"
48
- color="#f56c6c"
49
- :name="'<svg viewBox=&quot;0 0 1024 1024&quot;><path d=&quot;M512 938.666667L85.333333 512l170.666667-170.666667 256 256 256-256L938.666667 512 512 938.666667z&quot; fill=&quot;currentColor&quot;></path></svg>'"
50
- />
51
- </template>
52
- ```
53
- :::
54
-
55
- ## 自定义字体图标(本地扩展)
56
-
57
- 除 `el-icon-` 前缀外,其它自定义前缀会自动作为自定义字体图标渲染(需在项目中自行准备 @font-face 字体文件及对应 class)。例如使用 `my-icon-star`:
58
-
59
- ```scss
60
- // 项目中准备好字体文件及 class
61
- @font-face {
62
- font-family: 'my-icon';
63
- src: url('./fonts/my-icon.ttf') format('truetype');
64
- }
65
- .my-icon {
66
- font-family: 'my-icon' !important;
67
- }
68
- .my-icon-star::before {
69
- content: '\e001';
70
- }
71
- ```
72
-
73
- ::: demo 自定义字体图标示例
74
- ```vue
75
- <template>
76
- <div style="font-size: 24px">
77
- <ex-icon name="my-icon-star" style="margin-right: 16px" />
78
- <ex-icon name="my-icon-heart" />
79
- </div>
80
- </template>
81
-
82
- <script>
83
- export default {
84
- created() {
85
- // 注册自定义前缀,避免自动添加 ex-icon 前缀
86
- ExIcon.registerPrefix('my-icon-')
87
- }
88
- }
89
- </script>
90
- ```
91
- :::
92
-
93
- 未注册自定义前缀时,组件会自动为其添加 `ex-icon` 作为基础 class,方便与项目本地的 @font-face 配合:
94
-
95
- ```scss
96
- .ex-icon {
97
- font-family: 'ex-iconfont' !important;
98
- font-size: 16px;
99
- font-style: normal;
100
- }
101
- .ex-icon-star::before { content: '\e001'; }
102
- ```
103
-
104
- ## 尺寸与颜色
105
-
106
- 通过 `size` 和 `color` 属性控制图标大小与颜色:
107
-
108
- ::: demo 图标尺寸颜色示例
109
- ```vue
110
- <template>
111
- <div>
112
- <ex-icon name="el-icon-star-on" :size="16" color="#909399" style="margin-right: 16px" />
113
- <ex-icon name="el-icon-star-on" :size="24" color="#e6a23c" style="margin-right: 16px" />
114
- <ex-icon name="el-icon-star-on" :size="32" color="#f56c6c" style="margin-right: 16px" />
115
- <ex-icon name="el-icon-star-on" :size="48" color="#67c23a" style="margin-right: 16px" />
116
- <ex-icon name="el-icon-star-on" size="2em" color="#409eff" />
117
- </div>
118
- </template>
119
- ```
120
- :::
121
-
122
- ## 旋转动画
123
-
124
- 设置 `spin` 让图标持续旋转(常用于加载状态):
125
-
126
- ::: demo 图标旋转示例
127
- ```vue
128
- <template>
129
- <div style="font-size: 24px">
130
- <ex-icon name="el-icon-loading" spin style="margin-right: 16px" />
131
- <ex-icon name="el-icon-refresh" spin />
132
- </div>
133
- </template>
134
- ```
135
- :::
136
-
137
- ## 点击事件
138
-
139
- 支持 `@click` 事件:
140
-
141
- ::: demo 图标点击示例
142
- ```vue
143
- <template>
144
- <div style="font-size: 24px">
145
- <ex-icon
146
- name="el-icon-favorite"
147
- color="#f56c6c"
148
- @click="handleClick"
149
- style="cursor: pointer"
150
- />
151
- <span style="margin-left: 8px; font-size: 14px">点击次数:{{ count }}</span>
152
- </div>
153
- </template>
154
-
155
- <script>
156
- export default {
157
- data() {
158
- return { count: 0 }
159
- },
160
- methods: {
161
- handleClick() {
162
- this.count++
163
- }
164
- }
165
- }
166
- </script>
167
- ```
168
- :::
169
-
170
- ## Attributes
171
-
172
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
173
- |------|------|------|--------|--------|
174
- | name | 图标名称(支持 el-icon-xxx 自定义前缀) | string | — | '' |
175
- | size | 图标尺寸(数字单位 px,也可传入如 '2em' 的字符串) | string / number | — | '' |
176
- | color | 图标颜色(CSS color 值) | string | — | '' |
177
- | spin | 是否持续旋转 | boolean | — | false |
178
-
179
- ## Events
180
-
181
- | 事件名 | 说明 | 回调参数 |
182
- |--------|------|----------|
183
- | click | 点击图标时触发 | event |
184
-
185
- ## 静态方法
186
-
187
- | 方法名 | 说明 | 参数 |
188
- |--------|------|------|
189
- | ExIcon.registerPrefix(prefix) | 注册自定义字体图标前缀,注册后该前缀的图标不会自动添加 `ex-icon` 基础 class | prefix: string |
1
+ ## ExIcon 图标
2
+
3
+ 统一图标组件,支持 ElementUI 字体图标(el-icon)、SVG Sprite 图标、内联 SVG,以及可扩展的自定义字体图标。
4
+
5
+ ## 基础用法:ElementUI 字体图标
6
+
7
+ `name` 以 `el-icon-` 开头时,自动识别为 ElementUI 字体图标:
8
+
9
+ ::: demo ElementUI 字体图标示例
10
+ ```vue
11
+ <template>
12
+ <div style="font-size: 24px">
13
+ <ex-icon name="el-icon-edit" style="margin-right: 16px" />
14
+ <ex-icon name="el-icon-delete" style="margin-right: 16px" />
15
+ <ex-icon name="el-icon-search" style="margin-right: 16px" />
16
+ <ex-icon name="el-icon-share" style="margin-right: 16px" />
17
+ <ex-icon name="el-icon-setting" />
18
+ </div>
19
+ </template>
20
+ ```
21
+ :::
22
+
23
+ ## SVG Sprite 图标
24
+
25
+ `name` 以 `#` 或 `svg:` 开头时,自动识别为 SVG Sprite(通过 `<use>` 引用)。使用前请确保项目已通过 `svg-sprite-loader` 等方式注册了对应的 SVG 图标:
26
+
27
+ ::: demo SVG Sprite 图标示例
28
+ ```vue
29
+ <template>
30
+ <div style="font-size: 24px; color: #1890ff">
31
+ <ex-icon name="#icon-user" style="margin-right: 16px" />
32
+ <ex-icon name="svg:icon-home" style="margin-right: 16px" />
33
+ <ex-icon name="#icon-star" />
34
+ </div>
35
+ </template>
36
+ ```
37
+ :::
38
+
39
+ ## 内联 SVG 图标
40
+
41
+ `name` 传入完整的 `<svg>` 字符串时,将作为内联 SVG 渲染:
42
+
43
+ ::: demo 内联 SVG 示例
44
+ ```vue
45
+ <template>
46
+ <ex-icon
47
+ :size="32"
48
+ color="#f56c6c"
49
+ :name="'<svg viewBox=&quot;0 0 1024 1024&quot;><path d=&quot;M512 938.666667L85.333333 512l170.666667-170.666667 256 256 256-256L938.666667 512 512 938.666667z&quot; fill=&quot;currentColor&quot;></path></svg>'"
50
+ />
51
+ </template>
52
+ ```
53
+ :::
54
+
55
+ ## 自定义字体图标(本地扩展)
56
+
57
+ 除 `el-icon-` 前缀外,其它自定义前缀会自动作为自定义字体图标渲染(需在项目中自行准备 @font-face 字体文件及对应 class)。例如使用 `my-icon-star`:
58
+
59
+ ```scss
60
+ // 项目中准备好字体文件及 class
61
+ @font-face {
62
+ font-family: 'my-icon';
63
+ src: url('./fonts/my-icon.ttf') format('truetype');
64
+ }
65
+ .my-icon {
66
+ font-family: 'my-icon' !important;
67
+ }
68
+ .my-icon-star::before {
69
+ content: '\e001';
70
+ }
71
+ ```
72
+
73
+ ::: demo 自定义字体图标示例
74
+ ```vue
75
+ <template>
76
+ <div style="font-size: 24px">
77
+ <ex-icon name="my-icon-star" style="margin-right: 16px" />
78
+ <ex-icon name="my-icon-heart" />
79
+ </div>
80
+ </template>
81
+
82
+ <script>
83
+ export default {
84
+ created() {
85
+ // 注册自定义前缀,避免自动添加 ex-icon 前缀
86
+ ExIcon.registerPrefix('my-icon-')
87
+ }
88
+ }
89
+ </script>
90
+ ```
91
+ :::
92
+
93
+ 未注册自定义前缀时,组件会自动为其添加 `ex-icon` 作为基础 class,方便与项目本地的 @font-face 配合:
94
+
95
+ ```scss
96
+ .ex-icon {
97
+ font-family: 'ex-iconfont' !important;
98
+ font-size: 16px;
99
+ font-style: normal;
100
+ }
101
+ .ex-icon-star::before { content: '\e001'; }
102
+ ```
103
+
104
+ ## 尺寸与颜色
105
+
106
+ 通过 `size` 和 `color` 属性控制图标大小与颜色:
107
+
108
+ ::: demo 图标尺寸颜色示例
109
+ ```vue
110
+ <template>
111
+ <div>
112
+ <ex-icon name="el-icon-star-on" :size="16" color="#909399" style="margin-right: 16px" />
113
+ <ex-icon name="el-icon-star-on" :size="24" color="#e6a23c" style="margin-right: 16px" />
114
+ <ex-icon name="el-icon-star-on" :size="32" color="#f56c6c" style="margin-right: 16px" />
115
+ <ex-icon name="el-icon-star-on" :size="48" color="#67c23a" style="margin-right: 16px" />
116
+ <ex-icon name="el-icon-star-on" size="2em" color="#409eff" />
117
+ </div>
118
+ </template>
119
+ ```
120
+ :::
121
+
122
+ ## 旋转动画
123
+
124
+ 设置 `spin` 让图标持续旋转(常用于加载状态):
125
+
126
+ ::: demo 图标旋转示例
127
+ ```vue
128
+ <template>
129
+ <div style="font-size: 24px">
130
+ <ex-icon name="el-icon-loading" spin style="margin-right: 16px" />
131
+ <ex-icon name="el-icon-refresh" spin />
132
+ </div>
133
+ </template>
134
+ ```
135
+ :::
136
+
137
+ ## 点击事件
138
+
139
+ 支持 `@click` 事件:
140
+
141
+ ::: demo 图标点击示例
142
+ ```vue
143
+ <template>
144
+ <div style="font-size: 24px">
145
+ <ex-icon
146
+ name="el-icon-favorite"
147
+ color="#f56c6c"
148
+ @click="handleClick"
149
+ style="cursor: pointer"
150
+ />
151
+ <span style="margin-left: 8px; font-size: 14px">点击次数:{{ count }}</span>
152
+ </div>
153
+ </template>
154
+
155
+ <script>
156
+ export default {
157
+ data() {
158
+ return { count: 0 }
159
+ },
160
+ methods: {
161
+ handleClick() {
162
+ this.count++
163
+ }
164
+ }
165
+ }
166
+ </script>
167
+ ```
168
+ :::
169
+
170
+ ## Attributes
171
+
172
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
173
+ |------|------|------|--------|--------|
174
+ | name | 图标名称(支持 el-icon-xxx 自定义前缀) | string | — | '' |
175
+ | size | 图标尺寸(数字单位 px,也可传入如 '2em' 的字符串) | string / number | — | '' |
176
+ | color | 图标颜色(CSS color 值) | string | — | '' |
177
+ | spin | 是否持续旋转 | boolean | — | false |
178
+
179
+ ## Events
180
+
181
+ | 事件名 | 说明 | 回调参数 |
182
+ |--------|------|----------|
183
+ | click | 点击图标时触发 | event |
184
+
185
+ ## 静态方法
186
+
187
+ | 方法名 | 说明 | 参数 |
188
+ |--------|------|------|
189
+ | ExIcon.registerPrefix(prefix) | 注册自定义字体图标前缀,注册后该前缀的图标不会自动添加 `ex-icon` 基础 class | prefix: string |
@@ -1,71 +1,71 @@
1
- ## ExLine - 折线图组件
2
-
3
- 基于 ECharts 封装的折线图组件。
4
-
5
- ## 基本用法
6
-
7
- ::: demo 折线图基础示例
8
- ```vue
9
- <template>
10
- <ExChart type="line" :chartData="chartData" style="height: 400px;" />
11
- </template>
12
-
13
- <script>
14
- export default {
15
- data() {
16
- return {
17
- chartData: [
18
- { name: '1月', value: 50 },
19
- { name: '2月', value: 65 },
20
- { name: '3月', value: 78 },
21
- { name: '4月', value: 82 },
22
- { name: '5月', value: 95 },
23
- { name: '6月', value: 88 }
24
- ]
25
- }
26
- }
27
- }
28
- </script>
29
- ```
30
- :::
31
-
32
- ## 面积区域
33
-
34
- ::: demo 显示面积区域
35
- ```vue
36
- <template>
37
- <ExChart type="line" :chartData="chartData" :isArea="true" style="height: 400px;" />
38
- </template>
39
-
40
- <script>
41
- export default {
42
- data() {
43
- return {
44
- chartData: [
45
- { name: '1月', value: 2450 },
46
- { name: '2月', value: 2800 },
47
- { name: '3月', value: 3200 },
48
- { name: '4月', value: 2950 },
49
- { name: '5月', value: 3500 },
50
- { name: '6月', value: 3800 },
51
- { name: '7月', value: 4200 },
52
- { name: '8月', value: 4500 }
53
- ]
54
- }
55
- }
56
- }
57
- </script>
58
- ```
59
- :::
60
-
61
- ## 属性说明
62
-
63
- | 属性 | 类型 | 默认值 | 说明 |
64
- |------|------|--------|------|
65
- | `chartData` | Array | [] | 图表数据 |
66
- | `theme` | String | '' | 主题名称 |
67
- | `size` | String | 'medium' | 尺寸 |
68
- | `isDark` | Boolean | false | 是否暗色模式 |
69
- | `isArea` | Boolean | false | 是否显示面积区域 |
70
- | `energyType` | String | '' | Y轴单位 |
1
+ ## ExLine - 折线图组件
2
+
3
+ 基于 ECharts 封装的折线图组件。
4
+
5
+ ## 基本用法
6
+
7
+ ::: demo 折线图基础示例
8
+ ```vue
9
+ <template>
10
+ <ExChart type="line" :chartData="chartData" style="height: 400px;" />
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ data() {
16
+ return {
17
+ chartData: [
18
+ { name: '1月', value: 50 },
19
+ { name: '2月', value: 65 },
20
+ { name: '3月', value: 78 },
21
+ { name: '4月', value: 82 },
22
+ { name: '5月', value: 95 },
23
+ { name: '6月', value: 88 }
24
+ ]
25
+ }
26
+ }
27
+ }
28
+ </script>
29
+ ```
30
+ :::
31
+
32
+ ## 面积区域
33
+
34
+ ::: demo 显示面积区域
35
+ ```vue
36
+ <template>
37
+ <ExChart type="line" :chartData="chartData" :isArea="true" style="height: 400px;" />
38
+ </template>
39
+
40
+ <script>
41
+ export default {
42
+ data() {
43
+ return {
44
+ chartData: [
45
+ { name: '1月', value: 2450 },
46
+ { name: '2月', value: 2800 },
47
+ { name: '3月', value: 3200 },
48
+ { name: '4月', value: 2950 },
49
+ { name: '5月', value: 3500 },
50
+ { name: '6月', value: 3800 },
51
+ { name: '7月', value: 4200 },
52
+ { name: '8月', value: 4500 }
53
+ ]
54
+ }
55
+ }
56
+ }
57
+ </script>
58
+ ```
59
+ :::
60
+
61
+ ## 属性说明
62
+
63
+ | 属性 | 类型 | 默认值 | 说明 |
64
+ |------|------|--------|------|
65
+ | `chartData` | Array | [] | 图表数据 |
66
+ | `theme` | String | '' | 主题名称 |
67
+ | `size` | String | 'medium' | 尺寸 |
68
+ | `isDark` | Boolean | false | 是否暗色模式 |
69
+ | `isArea` | Boolean | false | 是否显示面积区域 |
70
+ | `energyType` | String | '' | Y轴单位 |
71
71
  | `intervalvalue` | Number | 0 | 自定义间隔值 |