@vtj/materials 0.12.21 → 0.12.22

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.
@@ -6,9 +6,10 @@ import type {
6
6
  import { version } from '../version';
7
7
  import { setPackageName } from '../shared';
8
8
  import chart from './chart';
9
+ import mapChart from './map-chart';
9
10
 
10
11
  const name = '@vtj/charts';
11
- const components: MaterialDescription[] = [chart].flat();
12
+ const components: MaterialDescription[] = [chart, mapChart].flat();
12
13
 
13
14
  const categories: MaterialCategory[] = [
14
15
  {
@@ -0,0 +1,55 @@
1
+ import type { MaterialDescription } from '@vtj/core';
2
+ import Chart from './chart';
3
+ const desc: MaterialDescription = {
4
+ name: 'XMapChart',
5
+ label: 'Geo地图',
6
+ categoryId: 'map',
7
+ props: [
8
+ {
9
+ name: 'option',
10
+ label: 'option',
11
+ title: 'ECharts option',
12
+ setters: 'ObjectSetter'
13
+ },
14
+ {
15
+ name: 'width',
16
+ label: 'width',
17
+ setters: ['StringSetter']
18
+ },
19
+ {
20
+ name: 'height',
21
+ label: 'height',
22
+ setters: ['StringSetter']
23
+ },
24
+ {
25
+ name: 'name',
26
+ label: '地图名称',
27
+ defaultValue: 'china',
28
+ setters: ['StringSetter']
29
+ },
30
+ {
31
+ name: 'geoJson',
32
+ title: '文件路径或GeoJSON对象',
33
+ defaultValue:
34
+ 'https://unpkg.com/vtj-geojson@0.1.3/geo/100000/100000.geoJson',
35
+ setters: ['StringSetter', 'ObjectSetter']
36
+ }
37
+ ],
38
+ events: [...(Chart.events || [])],
39
+ snippet: {
40
+ props: {
41
+ width: '100%',
42
+ height: '400px',
43
+ option: {
44
+ series: [
45
+ {
46
+ data: [],
47
+ type: 'map'
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ };
54
+
55
+ export default desc;
package/src/version.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/materials
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.21
5
+ * @version 0.12.22
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export const version = '0.12.21';
8
+ export const version = '0.12.22';