@cloudbase/weda-ui 3.13.4 → 3.13.5
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/configs/components/chart/line.d.ts +4 -0
- package/dist/configs/components/chart/line.js +27 -0
- package/dist/configs/components/chart/pie.d.ts +128 -0
- package/dist/configs/components/chart/pie.js +917 -0
- package/dist/configs/index.d.ts +8844 -9814
- package/dist/configs/index.js +1 -1
- package/dist/configs/type-utils/index.js +1 -7
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/echart/echart.js +1 -1
- package/package.json +1 -1
- package/dist/configs/components/chart/pie.json +0 -834
|
@@ -127,6 +127,10 @@ declare const config: {
|
|
|
127
127
|
readonly visible: false;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
readonly templates: readonly [{
|
|
131
|
+
readonly when: "dataSourceType";
|
|
132
|
+
readonly body: "\n{{#with $self as |$self|}}\n{{#if (helper_utils '===' $self.attributes.dataSourceType 'variable')}}\n[attributes]\n':datasourceVariable'=\"[\n {\n XLabel: { Value: 'sotm' },\n YLabels: [{ Name: '销售金额', Value: '124213' }],\n },\n {\n XLabel: { Value: 'Lisi' },\n YLabels: [{ Name: '销售金额', Value: '116123' }],\n },\n {\n XLabel: { Value: 'maza' },\n YLabels: [{ Name: '销售金额', Value: '100123' }],\n },\n]\"\n{{/if}}\n{{/with}}\n";
|
|
133
|
+
}];
|
|
130
134
|
};
|
|
131
135
|
readonly configMeta: {
|
|
132
136
|
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Line";
|
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../../type-utils';
|
|
2
|
+
const $attached_template = `
|
|
3
|
+
{{#with $self as |$self|}}
|
|
4
|
+
{{#if (helper_utils '===' $self.attributes.dataSourceType 'variable')}}
|
|
5
|
+
[attributes]
|
|
6
|
+
':datasourceVariable'="[
|
|
7
|
+
{
|
|
8
|
+
XLabel: { Value: 'sotm' },
|
|
9
|
+
YLabels: [{ Name: '销售金额', Value: '124213' }],
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
XLabel: { Value: 'Lisi' },
|
|
13
|
+
YLabels: [{ Name: '销售金额', Value: '116123' }],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
XLabel: { Value: 'maza' },
|
|
17
|
+
YLabels: [{ Name: '销售金额', Value: '100123' }],
|
|
18
|
+
},
|
|
19
|
+
]"
|
|
20
|
+
{{/if}}
|
|
21
|
+
{{/with}}
|
|
22
|
+
`;
|
|
2
23
|
const data = Type.Object({
|
|
3
24
|
chartType: Type.StringEnum({
|
|
4
25
|
title: '线条类型',
|
|
@@ -1005,6 +1026,12 @@ const config = defineConfig({
|
|
|
1005
1026
|
visible: false,
|
|
1006
1027
|
},
|
|
1007
1028
|
},
|
|
1029
|
+
templates: [
|
|
1030
|
+
{
|
|
1031
|
+
when: 'dataSourceType',
|
|
1032
|
+
body: $attached_template,
|
|
1033
|
+
},
|
|
1034
|
+
],
|
|
1008
1035
|
},
|
|
1009
1036
|
configMeta: {
|
|
1010
1037
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Line',
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
3
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
chartType: import("@sinclair/typebox").TUnsafe<string>;
|
|
5
|
+
isTitle: import("@sinclair/typebox").TBoolean;
|
|
6
|
+
title: import("@sinclair/typebox").TString;
|
|
7
|
+
dataSource: import("@sinclair/typebox").TObject<{
|
|
8
|
+
name: import("@sinclair/typebox").TString;
|
|
9
|
+
type: import("@sinclair/typebox").TString;
|
|
10
|
+
subType: import("@sinclair/typebox").TString;
|
|
11
|
+
methodName: import("@sinclair/typebox").TString;
|
|
12
|
+
}>;
|
|
13
|
+
dataSourceType: import("@sinclair/typebox").TUnsafe<string>;
|
|
14
|
+
dataModel: import("@sinclair/typebox").TObject<{
|
|
15
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17
|
+
viewId: import("@sinclair/typebox").TString;
|
|
18
|
+
methodName: import("@sinclair/typebox").TString;
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
21
|
+
datasourceVariable: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
22
|
+
XLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
23
|
+
Name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
Value: import("@sinclair/typebox").TString;
|
|
25
|
+
}>>;
|
|
26
|
+
YLabels: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
27
|
+
Name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
|
+
Value: import("@sinclair/typebox").TString;
|
|
29
|
+
}>>;
|
|
30
|
+
}>>;
|
|
31
|
+
connector: import("@sinclair/typebox").TObject<{
|
|
32
|
+
datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
33
|
+
title: import("@sinclair/typebox").TString;
|
|
34
|
+
id: import("@sinclair/typebox").TString;
|
|
35
|
+
name: import("@sinclair/typebox").TString;
|
|
36
|
+
}>>;
|
|
37
|
+
}>;
|
|
38
|
+
connectorMethod: import("@sinclair/typebox").TObject<{
|
|
39
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
|
+
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
41
|
+
}>;
|
|
42
|
+
connectorParams: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
43
|
+
filterData: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
44
|
+
setColor: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
45
|
+
dimensionalityShow: import("@sinclair/typebox").TNever;
|
|
46
|
+
xField: import("@sinclair/typebox").TObject<{
|
|
47
|
+
format: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"string" | "boolean" | "object" | "function" | "array" | "email" | "phone" | "url" | "x-image" | "x-rtf" | "datetime" | "date" | "time" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many" | "tel" | "x-long-text">[]>;
|
|
48
|
+
type: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"string" | "number" | "boolean" | "object" | "array">[]>;
|
|
49
|
+
title: import("@sinclair/typebox").TString;
|
|
50
|
+
name: import("@sinclair/typebox").TString;
|
|
51
|
+
}>;
|
|
52
|
+
xStatistics: import("@sinclair/typebox").TString;
|
|
53
|
+
xIsCountEmpty: import("@sinclair/typebox").TBoolean;
|
|
54
|
+
yFieldSubTitle: import("@sinclair/typebox").TNever;
|
|
55
|
+
yField: import("@sinclair/typebox").TObject<{
|
|
56
|
+
numValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
57
|
+
key: import("@sinclair/typebox").TString;
|
|
58
|
+
operationType: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>;
|
|
59
|
+
}>>>;
|
|
60
|
+
groupKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
61
|
+
}>;
|
|
62
|
+
legendShow: import("@sinclair/typebox").TNever;
|
|
63
|
+
isLegend: import("@sinclair/typebox").TBoolean;
|
|
64
|
+
legend: import("@sinclair/typebox").TUnsafe<string>;
|
|
65
|
+
dataTagShow: import("@sinclair/typebox").TNever;
|
|
66
|
+
isSeriesShowSymbol: import("@sinclair/typebox").TBoolean;
|
|
67
|
+
isPercent: import("@sinclair/typebox").TBoolean;
|
|
68
|
+
unitShow: import("@sinclair/typebox").TNever;
|
|
69
|
+
isUnit: import("@sinclair/typebox").TBoolean;
|
|
70
|
+
unit: import("@sinclair/typebox").TNumber;
|
|
71
|
+
decimalDigits: import("@sinclair/typebox").TNumber;
|
|
72
|
+
suffix: import("@sinclair/typebox").TString;
|
|
73
|
+
}>;
|
|
74
|
+
readonly events: readonly [];
|
|
75
|
+
readonly meta: {
|
|
76
|
+
readonly title: "饼图";
|
|
77
|
+
readonly description: "用于报表场景下表示数据在总体中的占比。";
|
|
78
|
+
readonly figureIcon: "../../figureIcons/Pie.svg";
|
|
79
|
+
readonly icon: "../../icons/Pie.svg";
|
|
80
|
+
readonly category: "图表";
|
|
81
|
+
readonly categoryOrder: 600;
|
|
82
|
+
readonly componentOrder: 560;
|
|
83
|
+
readonly visible: readonly ["APP"];
|
|
84
|
+
readonly inlineStyleForm: {
|
|
85
|
+
readonly fontSize: {
|
|
86
|
+
readonly visible: false;
|
|
87
|
+
};
|
|
88
|
+
readonly color: {
|
|
89
|
+
readonly visible: false;
|
|
90
|
+
};
|
|
91
|
+
readonly fontWeight: {
|
|
92
|
+
readonly visible: false;
|
|
93
|
+
};
|
|
94
|
+
readonly lineHeight: {
|
|
95
|
+
readonly visible: false;
|
|
96
|
+
};
|
|
97
|
+
readonly justifyContent: {
|
|
98
|
+
readonly visible: false;
|
|
99
|
+
};
|
|
100
|
+
readonly flexDirection: {
|
|
101
|
+
readonly visible: false;
|
|
102
|
+
};
|
|
103
|
+
readonly border: {
|
|
104
|
+
readonly visible: false;
|
|
105
|
+
};
|
|
106
|
+
readonly background: {
|
|
107
|
+
readonly visible: false;
|
|
108
|
+
};
|
|
109
|
+
readonly boxShadow: {
|
|
110
|
+
readonly visible: false;
|
|
111
|
+
};
|
|
112
|
+
readonly opacity: {
|
|
113
|
+
readonly visible: false;
|
|
114
|
+
};
|
|
115
|
+
readonly alignItems: {
|
|
116
|
+
readonly visible: false;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly templates: readonly [{
|
|
120
|
+
readonly when: "dataSourceType";
|
|
121
|
+
readonly body: "\n{{#with $self as |$self|}}\n{{#if (helper_utils '===' $self.attributes.dataSourceType 'variable')}}\n[attributes]\n':datasourceVariable'=\"[\n {\n XLabel: { Value: 'sotm' },\n YLabels: [{ Name: '销售金额', Value: '124213' }],\n },\n {\n XLabel: { Value: 'Lisi' },\n YLabels: [{ Name: '销售金额', Value: '116123' }],\n },\n {\n XLabel: { Value: 'maza' },\n YLabels: [{ Name: '销售金额', Value: '100123' }],\n },\n]\"\n{{/if}}\n{{/with}}\n";
|
|
122
|
+
}];
|
|
123
|
+
};
|
|
124
|
+
readonly configMeta: {
|
|
125
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export default config;
|