@cloudbase/weda-ui 3.29.0 → 3.29.2

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.
@@ -2087,7 +2087,6 @@ export declare const components: {
2087
2087
  };
2088
2088
  };
2089
2089
  Chart: {
2090
- readonly $schema: string;
2091
2090
  readonly data: import("@sinclair/typebox").TObject<{
2092
2091
  template: import("@sinclair/typebox").TString;
2093
2092
  option: import("@sinclair/typebox").TUnknown;
@@ -2166,7 +2165,79 @@ export declare const components: {
2166
2165
  readonly categoryOrder: 600;
2167
2166
  readonly componentOrder: 570;
2168
2167
  readonly platform: readonly ["MOBILEWEB", "PCWEB"];
2168
+ readonly visible: readonly [];
2169
+ readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Chart";
2170
+ readonly group: {
2171
+ readonly 基础: {
2172
+ readonly 'x-index': 1;
2173
+ readonly expand: true;
2174
+ };
2175
+ readonly 高级属性: {
2176
+ readonly 'x-index': 2;
2177
+ readonly expand: true;
2178
+ };
2179
+ };
2180
+ readonly templates: readonly [{
2181
+ readonly when: "$attached";
2182
+ readonly to: "$children";
2183
+ readonly body: "\n{{#with $self as |$self|}}\n\n{{#if (helper_utils '===' $self.attributes.template 'line')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'empty')}}\n[attributes]\n':option'=\"{\n}\"\n':opts'=\"{\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'square')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 面积颜色样式\n areaStyle: {\n opacity: 0.7, // 透明度,值为0-1\n color: '#2A70E2' // 面积颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'bar')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'bar', // 图表类型:柱状图bar\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '柱状图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'pie')}}\n[attributes]\n':option'=\"{\n // 饼图数据\n series: [\n {\n type: 'pie', //图表类型:饼状图\n data: [\n {\n value: 1080,\n name: '一月份',\n itemStyle: {\n color: '#587' //饼图颜色\n }\n },\n { value: 735, name: '二月份' },\n { value: 580, name: '三月份' },\n { value: 484, name: '四月份' },\n { value: 300, name: '五月份' }\n ],\n // 图形上的文本标签\n label: {\n show:true,\n position: 'outside' // outside|inside|inner|center\n } ,\n radius: '50%', //半径\n }\n ],\n title: {\n text: '饼状图标题',\n x: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'scatter')}}\n[attributes]\n':option'=\"{\n // 图表数据\n series: [\n {\n type: 'scatter', //图表类型:散点(气泡)图\n data: [\n [0, 2], // 横纵坐标的值 [x,y]\n [10.0, 8.04],\n [8.07, 6.95],\n [13.0, 7.58],\n [9.05, 8.81],\n [11.0, 8.33],\n [14.0, 7.66],\n [13.4, 6.81],\n [10.0, 6.33],\n [14.0, 8.96],\n [12.5, 6.82],\n [9.15, 7.2],\n [11.5, 7.2],\n [3.03, 4.23],\n [12.2, 7.83],\n [2.02, 4.47],\n [1.05, 3.33],\n [4.05, 4.96],\n [6.03, 7.24],\n [12.0, 6.26],\n [12.0, 8.84],\n [7.08, 5.82],\n [5.02, 5.68]\n ],\n name: '系列1',\n color: '#2A70E2', //标记颜色\n symbolSize: 20 // 标记大小\n }\n ],\n xAxis: {},\n yAxis: {},\n title: {\n text: '散点图标题',\n x: 'center'\n },\n legend: {\n show: true,\n bottom: 0\n }\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'gauge')}}\n[attributes]\n':option'=\"{\n // 仪表盘数据\n series: [\n {\n // 数据\n data: [\n {\n value: 50,\n name: '得分'\n }\n ],\n detail: {\n formatter: '{value}'\n },\n name: '比赛结果',//图表名称,在图表提示中获取\n type: 'gauge',// 图表类型:仪表盘gauge\n }\n ],\n // 图表提示\n tooltip: {\n formatter: '{a}{b} : {c}'\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{/if}}\n{{/with}}\n";
2184
+ }, {
2185
+ readonly when: "template";
2186
+ readonly to: "$children";
2187
+ readonly body: "\n{{#with $self as |$self|}}\n\n{{#if (helper_utils '===' $self.attributes.template 'line')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'empty')}}\n[attributes]\n':option'=\"{\n}\"\n':opts'=\"{\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'square')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 面积颜色样式\n areaStyle: {\n opacity: 0.7, // 透明度,值为0-1\n color: '#2A70E2' // 面积颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'bar')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'bar', // 图表类型:柱状图bar\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '柱状图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'pie')}}\n[attributes]\n':option'=\"{\n // 饼图数据\n series: [\n {\n type: 'pie', //图表类型:饼状图\n data: [\n {\n value: 1080,\n name: '一月份',\n itemStyle: {\n color: '#587' //饼图颜色\n }\n },\n { value: 735, name: '二月份' },\n { value: 580, name: '三月份' },\n { value: 484, name: '四月份' },\n { value: 300, name: '五月份' }\n ],\n // 图形上的文本标签\n label: {\n show:true,\n position: 'outside' // outside|inside|inner|center\n } ,\n radius: '50%', //半径\n }\n ],\n title: {\n text: '饼状图标题',\n x: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'scatter')}}\n[attributes]\n':option'=\"{\n // 图表数据\n series: [\n {\n type: 'scatter', //图表类型:散点(气泡)图\n data: [\n [0, 2], // 横纵坐标的值 [x,y]\n [10.0, 8.04],\n [8.07, 6.95],\n [13.0, 7.58],\n [9.05, 8.81],\n [11.0, 8.33],\n [14.0, 7.66],\n [13.4, 6.81],\n [10.0, 6.33],\n [14.0, 8.96],\n [12.5, 6.82],\n [9.15, 7.2],\n [11.5, 7.2],\n [3.03, 4.23],\n [12.2, 7.83],\n [2.02, 4.47],\n [1.05, 3.33],\n [4.05, 4.96],\n [6.03, 7.24],\n [12.0, 6.26],\n [12.0, 8.84],\n [7.08, 5.82],\n [5.02, 5.68]\n ],\n name: '系列1',\n color: '#2A70E2', //标记颜色\n symbolSize: 20 // 标记大小\n }\n ],\n xAxis: {},\n yAxis: {},\n title: {\n text: '散点图标题',\n x: 'center'\n },\n legend: {\n show: true,\n bottom: 0\n }\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'gauge')}}\n[attributes]\n':option'=\"{\n // 仪表盘数据\n series: [\n {\n // 数据\n data: [\n {\n value: 50,\n name: '得分'\n }\n ],\n detail: {\n formatter: '{value}'\n },\n name: '比赛结果',//图表名称,在图表提示中获取\n type: 'gauge',// 图表类型:仪表盘gauge\n }\n ],\n // 图表提示\n tooltip: {\n formatter: '{a}{b} : {c}'\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{/if}}\n{{/with}}\n";
2188
+ }];
2189
+ readonly inlineStyleForm: {
2190
+ readonly fontSize: {
2191
+ readonly visible: false;
2192
+ };
2193
+ readonly color: {
2194
+ readonly visible: false;
2195
+ };
2196
+ readonly fontWeight: {
2197
+ readonly visible: false;
2198
+ };
2199
+ readonly lineHeight: {
2200
+ readonly visible: false;
2201
+ };
2202
+ readonly justifyContent: {
2203
+ readonly visible: false;
2204
+ };
2205
+ readonly flexDirection: {
2206
+ readonly visible: false;
2207
+ };
2208
+ readonly border: {
2209
+ readonly visible: false;
2210
+ };
2211
+ readonly background: {
2212
+ readonly visible: false;
2213
+ };
2214
+ readonly boxShadow: {
2215
+ readonly visible: false;
2216
+ };
2217
+ readonly opacity: {
2218
+ readonly visible: false;
2219
+ };
2220
+ readonly alignItems: {
2221
+ readonly visible: false;
2222
+ };
2223
+ };
2224
+ };
2225
+ readonly $schema: string;
2226
+ };
2227
+ ECharts: {
2228
+ readonly meta: {
2169
2229
  readonly visible: readonly ["APP"];
2230
+ readonly platform: readonly ["WEB", "MP"];
2231
+ readonly name: "ECharts";
2232
+ readonly componentName: "ECharts";
2233
+ readonly title: "更多图表";
2234
+ readonly keyWords: readonly ["chart", "echart", "echarts", "通用图表", "万能图表", "折线图", "面积图", "漏斗图", "仪表盘", "柱状图", "饼图"];
2235
+ readonly description: "这是一个万能的图表组件,可配置出多种图表如折线图、饼状图、面积图、地图、漏斗图、仪表盘等所有的图表";
2236
+ readonly figureIcon: "../figureIcons/Chart.svg";
2237
+ readonly icon: "../icons/Chart.svg";
2238
+ readonly category: "图表";
2239
+ readonly categoryOrder: 600;
2240
+ readonly componentOrder: 570;
2170
2241
  readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Chart";
2171
2242
  readonly group: {
2172
2243
  readonly 基础: {
@@ -2223,6 +2294,73 @@ export declare const components: {
2223
2294
  };
2224
2295
  };
2225
2296
  };
2297
+ readonly data: import("@sinclair/typebox").TObject<{
2298
+ template: import("@sinclair/typebox").TString;
2299
+ option: import("@sinclair/typebox").TUnknown;
2300
+ dark: import("@sinclair/typebox").TBoolean;
2301
+ opts: import("@sinclair/typebox").TObject<{}>;
2302
+ }>;
2303
+ readonly properties: import("@sinclair/typebox").TObject<{
2304
+ echartsInstance: import("@sinclair/typebox").TUnknown;
2305
+ echarts: import("@sinclair/typebox").TUnknown;
2306
+ }>;
2307
+ readonly classes: readonly [{
2308
+ readonly name: "根元素";
2309
+ readonly selector: ".wd-chart";
2310
+ readonly description: "树组件根元素";
2311
+ }, {
2312
+ readonly name: "PC 端根元素";
2313
+ readonly selector: ".wd-pc-chart";
2314
+ readonly description: "可以为 PC 端的编写样式";
2315
+ }, {
2316
+ readonly name: "H5 端根元素";
2317
+ readonly selector: ".wd-h5-chart";
2318
+ readonly description: "可以为 H5 端的编写样式";
2319
+ }];
2320
+ readonly methods: readonly [{
2321
+ readonly name: "setOption";
2322
+ readonly label: "设置图表配置";
2323
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
2324
+ readonly description: "设置图表实例的配置项以及数据,万能接口,所有参数和数据的修改都可以通过 setOption 完成,您可以直接查看[Echarts官方图表示例](https://echarts.apache.org/zh/api.html#echartsInstance.setOption)";
2325
+ readonly params: import("@sinclair/typebox").TObject<{
2326
+ option: import("@sinclair/typebox").TUnknown;
2327
+ opts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
2328
+ notMerge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2329
+ replaceMerge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
2330
+ lazyUpdate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2331
+ }>>;
2332
+ }>;
2333
+ }, {
2334
+ readonly name: "setTheme";
2335
+ readonly label: "设置主题";
2336
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
2337
+ readonly description: "设置图表实例的主题,支持设置不同类型的主题,默认有dart、auto,也可以通过Echarts官方提供的[registerTheme方法](https://echarts.apache.org/zh/api.html#echarts.registerTheme)注册主题";
2338
+ readonly params: import("@sinclair/typebox").TObject<{
2339
+ theme: import("@sinclair/typebox").TString;
2340
+ }>;
2341
+ }];
2342
+ readonly events: readonly [{
2343
+ readonly title: "图表Ready";
2344
+ readonly name: "onReady";
2345
+ readonly description: "当前图表已完成实例初始化";
2346
+ readonly detail: import("@sinclair/typebox").TObject<{
2347
+ echartsInstance: import("@sinclair/typebox").TUnknown;
2348
+ echarts: import("@sinclair/typebox").TUnknown;
2349
+ }>;
2350
+ }, {
2351
+ readonly title: "单击";
2352
+ readonly name: "click";
2353
+ readonly description: "当点击图表中的坐标点时触发该方法,具体可以见[Echarts官方事件说明](https://echarts.apache.org/zh/api.html#events.%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6.click)";
2354
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
2355
+ readonly detail: import("@sinclair/typebox").TUnknown;
2356
+ }, {
2357
+ readonly title: "双击";
2358
+ readonly name: "dblclick";
2359
+ readonly description: "当双击图表中的坐标点时触发该方法,具体可以见[Echarts官方事件说明](https://echarts.apache.org/zh/api.html#events.%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6.dblclick)";
2360
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
2361
+ readonly detail: import("@sinclair/typebox").TUnknown;
2362
+ }];
2363
+ readonly $schema: string;
2226
2364
  };
2227
2365
  WdOfficialAccount: {
2228
2366
  $schema: string;
@@ -21352,7 +21490,6 @@ declare const _default: {
21352
21490
  };
21353
21491
  };
21354
21492
  Chart: {
21355
- readonly $schema: string;
21356
21493
  readonly data: import("@sinclair/typebox").TObject<{
21357
21494
  template: import("@sinclair/typebox").TString;
21358
21495
  option: import("@sinclair/typebox").TUnknown;
@@ -21431,7 +21568,79 @@ declare const _default: {
21431
21568
  readonly categoryOrder: 600;
21432
21569
  readonly componentOrder: 570;
21433
21570
  readonly platform: readonly ["MOBILEWEB", "PCWEB"];
21571
+ readonly visible: readonly [];
21572
+ readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Chart";
21573
+ readonly group: {
21574
+ readonly 基础: {
21575
+ readonly 'x-index': 1;
21576
+ readonly expand: true;
21577
+ };
21578
+ readonly 高级属性: {
21579
+ readonly 'x-index': 2;
21580
+ readonly expand: true;
21581
+ };
21582
+ };
21583
+ readonly templates: readonly [{
21584
+ readonly when: "$attached";
21585
+ readonly to: "$children";
21586
+ readonly body: "\n{{#with $self as |$self|}}\n\n{{#if (helper_utils '===' $self.attributes.template 'line')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'empty')}}\n[attributes]\n':option'=\"{\n}\"\n':opts'=\"{\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'square')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 面积颜色样式\n areaStyle: {\n opacity: 0.7, // 透明度,值为0-1\n color: '#2A70E2' // 面积颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'bar')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'bar', // 图表类型:柱状图bar\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '柱状图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'pie')}}\n[attributes]\n':option'=\"{\n // 饼图数据\n series: [\n {\n type: 'pie', //图表类型:饼状图\n data: [\n {\n value: 1080,\n name: '一月份',\n itemStyle: {\n color: '#587' //饼图颜色\n }\n },\n { value: 735, name: '二月份' },\n { value: 580, name: '三月份' },\n { value: 484, name: '四月份' },\n { value: 300, name: '五月份' }\n ],\n // 图形上的文本标签\n label: {\n show:true,\n position: 'outside' // outside|inside|inner|center\n } ,\n radius: '50%', //半径\n }\n ],\n title: {\n text: '饼状图标题',\n x: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'scatter')}}\n[attributes]\n':option'=\"{\n // 图表数据\n series: [\n {\n type: 'scatter', //图表类型:散点(气泡)图\n data: [\n [0, 2], // 横纵坐标的值 [x,y]\n [10.0, 8.04],\n [8.07, 6.95],\n [13.0, 7.58],\n [9.05, 8.81],\n [11.0, 8.33],\n [14.0, 7.66],\n [13.4, 6.81],\n [10.0, 6.33],\n [14.0, 8.96],\n [12.5, 6.82],\n [9.15, 7.2],\n [11.5, 7.2],\n [3.03, 4.23],\n [12.2, 7.83],\n [2.02, 4.47],\n [1.05, 3.33],\n [4.05, 4.96],\n [6.03, 7.24],\n [12.0, 6.26],\n [12.0, 8.84],\n [7.08, 5.82],\n [5.02, 5.68]\n ],\n name: '系列1',\n color: '#2A70E2', //标记颜色\n symbolSize: 20 // 标记大小\n }\n ],\n xAxis: {},\n yAxis: {},\n title: {\n text: '散点图标题',\n x: 'center'\n },\n legend: {\n show: true,\n bottom: 0\n }\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'gauge')}}\n[attributes]\n':option'=\"{\n // 仪表盘数据\n series: [\n {\n // 数据\n data: [\n {\n value: 50,\n name: '得分'\n }\n ],\n detail: {\n formatter: '{value}'\n },\n name: '比赛结果',//图表名称,在图表提示中获取\n type: 'gauge',// 图表类型:仪表盘gauge\n }\n ],\n // 图表提示\n tooltip: {\n formatter: '{a}{b} : {c}'\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{/if}}\n{{/with}}\n";
21587
+ }, {
21588
+ readonly when: "template";
21589
+ readonly to: "$children";
21590
+ readonly body: "\n{{#with $self as |$self|}}\n\n{{#if (helper_utils '===' $self.attributes.template 'line')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'empty')}}\n[attributes]\n':option'=\"{\n}\"\n':opts'=\"{\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'square')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line', // 图表类型: 折线图line\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 面积颜色样式\n areaStyle: {\n opacity: 0.7, // 透明度,值为0-1\n color: '#2A70E2' // 面积颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '折线图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'bar')}}\n[attributes]\n':option'=\"{\n // X 轴数据\n xAxis: {\n data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']\n },\n // Y轴 系列数据\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'bar', // 图表类型:柱状图bar\n name: '分数', // 图例名称\n label: { // 图形标签\n show: true,\n formatter: '{c}' // 标签值,通常无需关注。https://echarts.apache.org/zh/option.html#tooltip.formatter\n },\n // 线条颜色样式\n lineStyle: {\n color: '#2A70E2' // 折线颜色\n },\n // 折线拐点标志样式\n itemStyle:{\n color: 'auto' // 拐点颜色,默认\n }\n }\n ],\n yAxis: {\n type: 'value' // Y 轴格式,通常无需修改\n },\n // 标题展示\n title: {\n show: true,\n text: '柱状图标题',\n x: 'center', //水平居中\n },\n // 图例展示\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'pie')}}\n[attributes]\n':option'=\"{\n // 饼图数据\n series: [\n {\n type: 'pie', //图表类型:饼状图\n data: [\n {\n value: 1080,\n name: '一月份',\n itemStyle: {\n color: '#587' //饼图颜色\n }\n },\n { value: 735, name: '二月份' },\n { value: 580, name: '三月份' },\n { value: 484, name: '四月份' },\n { value: 300, name: '五月份' }\n ],\n // 图形上的文本标签\n label: {\n show:true,\n position: 'outside' // outside|inside|inner|center\n } ,\n radius: '50%', //半径\n }\n ],\n title: {\n text: '饼状图标题',\n x: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n show: true,\n bottom: 0\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'scatter')}}\n[attributes]\n':option'=\"{\n // 图表数据\n series: [\n {\n type: 'scatter', //图表类型:散点(气泡)图\n data: [\n [0, 2], // 横纵坐标的值 [x,y]\n [10.0, 8.04],\n [8.07, 6.95],\n [13.0, 7.58],\n [9.05, 8.81],\n [11.0, 8.33],\n [14.0, 7.66],\n [13.4, 6.81],\n [10.0, 6.33],\n [14.0, 8.96],\n [12.5, 6.82],\n [9.15, 7.2],\n [11.5, 7.2],\n [3.03, 4.23],\n [12.2, 7.83],\n [2.02, 4.47],\n [1.05, 3.33],\n [4.05, 4.96],\n [6.03, 7.24],\n [12.0, 6.26],\n [12.0, 8.84],\n [7.08, 5.82],\n [5.02, 5.68]\n ],\n name: '系列1',\n color: '#2A70E2', //标记颜色\n symbolSize: 20 // 标记大小\n }\n ],\n xAxis: {},\n yAxis: {},\n title: {\n text: '散点图标题',\n x: 'center'\n },\n legend: {\n show: true,\n bottom: 0\n }\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{else if (helper_utils '===' $self.attributes.template 'gauge')}}\n[attributes]\n':option'=\"{\n // 仪表盘数据\n series: [\n {\n // 数据\n data: [\n {\n value: 50,\n name: '得分'\n }\n ],\n detail: {\n formatter: '{value}'\n },\n name: '比赛结果',//图表名称,在图表提示中获取\n type: 'gauge',// 图表类型:仪表盘gauge\n }\n ],\n // 图表提示\n tooltip: {\n formatter: '{a}{b} : {c}'\n },\n}\"\n':opts'=\"{\n height: 'auto', // 默认auto,单位px\n width: 'auto'\n}\"\n\n{{/if}}\n{{/with}}\n";
21591
+ }];
21592
+ readonly inlineStyleForm: {
21593
+ readonly fontSize: {
21594
+ readonly visible: false;
21595
+ };
21596
+ readonly color: {
21597
+ readonly visible: false;
21598
+ };
21599
+ readonly fontWeight: {
21600
+ readonly visible: false;
21601
+ };
21602
+ readonly lineHeight: {
21603
+ readonly visible: false;
21604
+ };
21605
+ readonly justifyContent: {
21606
+ readonly visible: false;
21607
+ };
21608
+ readonly flexDirection: {
21609
+ readonly visible: false;
21610
+ };
21611
+ readonly border: {
21612
+ readonly visible: false;
21613
+ };
21614
+ readonly background: {
21615
+ readonly visible: false;
21616
+ };
21617
+ readonly boxShadow: {
21618
+ readonly visible: false;
21619
+ };
21620
+ readonly opacity: {
21621
+ readonly visible: false;
21622
+ };
21623
+ readonly alignItems: {
21624
+ readonly visible: false;
21625
+ };
21626
+ };
21627
+ };
21628
+ readonly $schema: string;
21629
+ };
21630
+ ECharts: {
21631
+ readonly meta: {
21434
21632
  readonly visible: readonly ["APP"];
21633
+ readonly platform: readonly ["WEB", "MP"];
21634
+ readonly name: "ECharts";
21635
+ readonly componentName: "ECharts";
21636
+ readonly title: "更多图表";
21637
+ readonly keyWords: readonly ["chart", "echart", "echarts", "通用图表", "万能图表", "折线图", "面积图", "漏斗图", "仪表盘", "柱状图", "饼图"];
21638
+ readonly description: "这是一个万能的图表组件,可配置出多种图表如折线图、饼状图、面积图、地图、漏斗图、仪表盘等所有的图表";
21639
+ readonly figureIcon: "../figureIcons/Chart.svg";
21640
+ readonly icon: "../icons/Chart.svg";
21641
+ readonly category: "图表";
21642
+ readonly categoryOrder: 600;
21643
+ readonly componentOrder: 570;
21435
21644
  readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Chart";
21436
21645
  readonly group: {
21437
21646
  readonly 基础: {
@@ -21488,6 +21697,73 @@ declare const _default: {
21488
21697
  };
21489
21698
  };
21490
21699
  };
21700
+ readonly data: import("@sinclair/typebox").TObject<{
21701
+ template: import("@sinclair/typebox").TString;
21702
+ option: import("@sinclair/typebox").TUnknown;
21703
+ dark: import("@sinclair/typebox").TBoolean;
21704
+ opts: import("@sinclair/typebox").TObject<{}>;
21705
+ }>;
21706
+ readonly properties: import("@sinclair/typebox").TObject<{
21707
+ echartsInstance: import("@sinclair/typebox").TUnknown;
21708
+ echarts: import("@sinclair/typebox").TUnknown;
21709
+ }>;
21710
+ readonly classes: readonly [{
21711
+ readonly name: "根元素";
21712
+ readonly selector: ".wd-chart";
21713
+ readonly description: "树组件根元素";
21714
+ }, {
21715
+ readonly name: "PC 端根元素";
21716
+ readonly selector: ".wd-pc-chart";
21717
+ readonly description: "可以为 PC 端的编写样式";
21718
+ }, {
21719
+ readonly name: "H5 端根元素";
21720
+ readonly selector: ".wd-h5-chart";
21721
+ readonly description: "可以为 H5 端的编写样式";
21722
+ }];
21723
+ readonly methods: readonly [{
21724
+ readonly name: "setOption";
21725
+ readonly label: "设置图表配置";
21726
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
21727
+ readonly description: "设置图表实例的配置项以及数据,万能接口,所有参数和数据的修改都可以通过 setOption 完成,您可以直接查看[Echarts官方图表示例](https://echarts.apache.org/zh/api.html#echartsInstance.setOption)";
21728
+ readonly params: import("@sinclair/typebox").TObject<{
21729
+ option: import("@sinclair/typebox").TUnknown;
21730
+ opts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
21731
+ notMerge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21732
+ replaceMerge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
21733
+ lazyUpdate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21734
+ }>>;
21735
+ }>;
21736
+ }, {
21737
+ readonly name: "setTheme";
21738
+ readonly label: "设置主题";
21739
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
21740
+ readonly description: "设置图表实例的主题,支持设置不同类型的主题,默认有dart、auto,也可以通过Echarts官方提供的[registerTheme方法](https://echarts.apache.org/zh/api.html#echarts.registerTheme)注册主题";
21741
+ readonly params: import("@sinclair/typebox").TObject<{
21742
+ theme: import("@sinclair/typebox").TString;
21743
+ }>;
21744
+ }];
21745
+ readonly events: readonly [{
21746
+ readonly title: "图表Ready";
21747
+ readonly name: "onReady";
21748
+ readonly description: "当前图表已完成实例初始化";
21749
+ readonly detail: import("@sinclair/typebox").TObject<{
21750
+ echartsInstance: import("@sinclair/typebox").TUnknown;
21751
+ echarts: import("@sinclair/typebox").TUnknown;
21752
+ }>;
21753
+ }, {
21754
+ readonly title: "单击";
21755
+ readonly name: "click";
21756
+ readonly description: "当点击图表中的坐标点时触发该方法,具体可以见[Echarts官方事件说明](https://echarts.apache.org/zh/api.html#events.%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6.click)";
21757
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
21758
+ readonly detail: import("@sinclair/typebox").TUnknown;
21759
+ }, {
21760
+ readonly title: "双击";
21761
+ readonly name: "dblclick";
21762
+ readonly description: "当双击图表中的坐标点时触发该方法,具体可以见[Echarts官方事件说明](https://echarts.apache.org/zh/api.html#events.%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6.dblclick)";
21763
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
21764
+ readonly detail: import("@sinclair/typebox").TUnknown;
21765
+ }];
21766
+ readonly $schema: string;
21491
21767
  };
21492
21768
  WdOfficialAccount: {
21493
21769
  $schema: string;
@@ -136,6 +136,7 @@ import WdOfficialAccount from './components/wd-official-account';
136
136
  import WdModal from './components/wd-modal';
137
137
  import WdDrawer from './components/wd-drawer';
138
138
  import Chart from './components/echart';
139
+ import ECharts from './components/echarts';
139
140
  import WdCanvas from './components/wd-canvas';
140
141
  import WdAudio from './components/wd-audio';
141
142
  import WdAd from './components/wd-ad';
@@ -166,6 +167,7 @@ export const components = {
166
167
  WdModal,
167
168
  WdDrawer,
168
169
  Chart,
170
+ ECharts,
169
171
  WdOfficialAccount,
170
172
  WdTree,
171
173
  WdFormDetail,
@@ -4,6 +4,7 @@ import type { LCDS } from '@cloudbase/cals';
4
4
  import React from 'react';
5
5
  import { $SCHEMA } from '../utils/constants';
6
6
  type XPlatform = LCDS.XPlatform;
7
+ export { Kind, Hint, Modifier } from '@sinclair/typebox';
7
8
  export type { Static } from '@sinclair/typebox';
8
9
  export type { Simplify };
9
10
  declare const dataSourceFormat: readonly ["string", "tel", "x-long-text", "phone", "datetime", "date", "time", "boolean", "array", "object", "email", "url", "x-image", "x-rtf", "x-enum", "x-location", "x-file", "x-autonumber", "x-area-code", "function", "related", "father-son", "many-many"];
@@ -1,4 +1,6 @@
1
1
  import { Type as T, Kind, ExtendedTypeBuilder as TypeboxTypeBuilder, } from '@sinclair/typebox';
2
+ // export { Kind, Modifier } from '@sinclair/typebox';
3
+ export { Kind, Hint, Modifier } from '@sinclair/typebox';
2
4
  // https://git.woa.com/QBase/lcap/datasource/blob/main/packages/ds-helper/src/datasource-field-type.ts
3
5
  const dataSourceFormat = [
4
6
  'string',
@@ -411,6 +411,8 @@ export const FORM_ITEM_DATA = {
411
411
  subType: 'connector',
412
412
  provider: 'tencent-map',
413
413
  showReload: true,
414
+ supportV2Protocol: true,
415
+ templateCode: 'qqmapV2',
414
416
  },
415
417
  }),
416
418
  locationType: Type.NumberEnum({
@@ -1375,11 +1377,13 @@ export const FORM_ITEM_DATA = {
1375
1377
  description: '显示所选位置的地图',
1376
1378
  'x-index': 172,
1377
1379
  'x-category': X_CATEGORY.SELECT,
1378
- 'x-linkages': [{
1380
+ 'x-linkages': [
1381
+ {
1379
1382
  type: 'value:visible',
1380
1383
  target: 'openLocation',
1381
- condition: '{{$self.value === true}}'
1382
- }]
1384
+ condition: '{{$self.value === true}}',
1385
+ },
1386
+ ],
1383
1387
  }),
1384
1388
  openLocation: Type.Boolean({
1385
1389
  type: 'boolean',
@@ -1389,7 +1393,7 @@ export const FORM_ITEM_DATA = {
1389
1393
  'x-helper-text': '仅支持小程序端开启,开启后,可点击地图调起微信内置地图查看位置,或者开始导航',
1390
1394
  'x-index': 173,
1391
1395
  'x-category': X_CATEGORY.SELECT,
1392
- 'x-platforms': ['MP']
1396
+ 'x-platforms': ['MP'],
1393
1397
  }),
1394
1398
  searchable: Type.Boolean({
1395
1399
  title: '选项支持搜索',
@@ -1,5 +1,5 @@
1
1
  /**
2
- @cloudbase/weda-ui v3.29.0
2
+ @cloudbase/weda-ui v3.29.2
3
3
  */
4
4
  @charset "UTF-8";@media (min-width:1024px){.weda-ui .weui-cells{font-size:1em}.weui .weui-cell_active:active{background-color:unset!important}}@font-face{font-family:lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOE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7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format('woff2')}.wd-form--vertical-left .wedatea2td-form .weda-formcells__pc.horizontal,.wd-form--vertical-right .wedatea2td-form .weda-formcells__pc.horizontal,.wedatea2td-form--vertical .wd-form--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wedatea2td-form .weda-formcells__pc.horizontal{flex-direction:column}.g-swiper-item>div>*{max-width:100%;max-height:100%;object-fit:cover;max-width:100%;object-fit:cover;max-width:100%;max-height:100%;object-fit:cover;width:100%;height:auto;max-width:100%;object-fit:cover}.form-detail-wrap .form-detail-content-wrap .form-detail-group-header-container{display:flex;align-items:center;justify-content:space-between}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-menu .wedatea2td-menu--light .wedatea2td-menu__list li.is-selected>.wedatea2td-menu__item:hover,.wedatea2td-drawer .wedatea2td-menu--light .wedatea2td-menu__list li .wedatea2td-menu__item:hover{background-color:var(--weda-navigation-menu-hover-color)}.weda-menu-mobile .weda-menu__wrapper{display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 2px rgba(0,0,0,.05)}.weda-menu .wedatea2td-menu__text .menu-text,.weda-menu__drawer .wedatea2td-menu__text .menu-text{display:flex;justify-content:center;align-items:center}.ExEditor-basic{box-sizing:border-box;min-height:var(--exeditor-editor-min-height,100px);background:var(--exeditor-editor-background,#fff);padding:var(--exeditor-editor-padding,20px);white-space:pre-wrap;--exeditor-hr-color:var(--exeditor-basic-hr-color, #e7e7e7);--exeditor-link-color:var(--exeditor-basic-link-color, #0052ff);--exeditor-selected-outline:var(--exeditor-basic-selected-outline, 2px solid #68cef8);--exeditor-selected-background:var(--exeditor-basic-selected-background, rgba(24, 144, 255, 0.3));--exeditor-selected-cell-background:var(--exeditor-basic-selected-cell-background, rgba(24, 144, 255, 0.15));--exeditor-formula-vertical-align:var(--exeditor-basic-formula-vertical-align, middle)}@media (max-width:1024px){.g-swiper .g-swiper__turn-next,.g-swiper .g-swiper__turn-pre{display:none}.modal-table-delete .wedatea2td-dialog__inner,.model-relation-selector-modal .wedatea2td-dialog__inner,.wedatea2td-dialog__inner{min-width:0;width:90%;margin:10px 0}.wedatea2td-form.model-form{width:100%}}.markdown-body .octicon{fill:currentColor}.markdown-body pre{word-wrap:normal}.wd-form-item.wd-pc-rich-text-root .ExEditor-basic,.wd-form-item.wd-pc-rich-text-root .exeditor-toolbar{background-color:inherit}.wd-add-relation-button-wrap{display:flex;align-items:center;color:var(--wd-color-brand,#0052d9);white-space:pre-wrap}.weda-import-csv-file-modal .file-json-map-wrap{display:flex;flex-direction:column;box-sizing:border-box}.weda-import-csv-file-modal .import-file-result-wrap .error-container{display:flex;flex-direction:column}.weda-import-csv-file-modal .import-file-result-wrap .error-content{flex:1}.wd-table-wrap-filter .wedatea2td-input:focus,.wd-table-wrap-filter .wedatea2td-input:hover,.wd-table-wrap-filter .wedatea2td-textarea-group:focus,.wd-table-wrap-filter .wedatea2td-textarea-group:hover,.wd-table-wrap-filter .wedatea2td-textarea:focus,.wd-table-wrap-filter .wedatea2td-textarea:hover,.wedatea2td-overlay .wedatea2td-checkbox:focus,.wedatea2td-overlay .wedatea2td-checkbox:hover,.wedatea2td-overlay input[type=checkbox]:focus,.wedatea2td-overlay input[type=checkbox]:hover{border-color:var(--wd-color-brand,#0052d9)}.weda-ui_mapChoose_search_input_clear{display:flex;justify-content:center}.form-select-map .wedatea2td-dialog__inner{box-shadow:none;min-width:100vw!important}.weda-ui-custom-calendar-op__end,.weda-ui-custom-calendar-op__start{display:flex;align-items:center}.weui-tag span{word-wrap:break-word;word-break:break-word}.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content,.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label,.weda-ui-user-select-container-list__start .wedatea2td-tree.wedatea2td-tree--checkbox-separate .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label .wedatea2td-tree__label-title{background-color:var(--wd-color-brand-light,#d4e3fc)}.weda-select-user-dept-breadcrumb{display:flex;align-items:center}.form-location-con_disabled{opacity:.4}body{font-size:var(--wd-font-base)}@font-face{font-family:wd-lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEA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QDaUzYN7x9WTMOV1ntYtmtaZz6SDmI1Yj1kgGBsQXUbdLGhpU1/ckK4uVaMRS43e0s5XdMDDAv+fsxfFK5eMn+flK1c8/L15MHlG+YTYTKW4025bWp7UUQH2n1j/y9Tt6J+5mykLynYv6i9HZvqC/QNV2kZ7HXO/X7/bDf9+T1/Rpe/YolYsWYXO1XS/CmOv6KUuBnUoITNTDEhJNqb1rYTOf1sRhF1D0EvKOkYiRSHnElw9UGd7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format("woff2")}.t-icon{speak:none;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wd-space-align-items--flex-start{align-items:flex-start;align-items:center;align-items:flex-end}.wd-space-justify-content--flex-start{justify-content:flex-start;justify-content:center;justify-content:flex-end}.wd-btn{--wd-btn-sm-padding:0.0625rem calc(var(--wd-space-base) * 2);--wd-btn-md-padding:0.25rem calc(var(--wd-space-base) * 4);--wd-btn-lg-padding:0.4375rem calc(var(--wd-space-base) * 6);--wd-btn-margin-top:0;--wd-btn-margin-top:0;--wd-btn-font-size-sm:var(--wd-font-size-2);--wd-btn-line-height-sm:1.5;--wd-btn-min-height-sm:24px;--wd-btn-font-size-md:var(--wd-font-size-3);--wd-btn-line-height-md:1.5;--wd-btn-min-height-md:32px;--wd-btn-font-size-lg:var(--wd-font-size-4);--wd-btn-line-height-lg:1.5;--wd-btn-min-height-lg:40px;--wd-btn-icon-space-sm:var(--wd-space-base);--wd-btn-icon-space-md:calc(var(--wd-space-base) * 2);--wd-btn-icon-space-lg:calc(var(--wd-space-base) * 3);--wd-btn-icon-size-sm:calc(var(--wd-btn-font-size-sm) + 0.125rem);--wd-btn-icon-size-md:calc(var(--wd-btn-font-size-md) + 0.125rem);--wd-btn-icon-size-lg:calc(var(--wd-btn-font-size-lg) + 0.25rem);--wd-btn-border-radius:var(--wd-border-radius);--wd-btn-color-text:var(--wd-color-text-default);--wd-btn-color-text-inverse:var(--wd-color-text-inverse);--wd-btn-color-text-hover:var(--wd-color-text-default);--wd-btn-color-text-active:var(--wd-color-text-default);--wd-btn-color-text-focus:var(--wd-color-text-default);--wd-btn-color-text-disabled:var(--wd-color-text-disabled);--wd-btn-color-brand:var(--wd-color-brand);--wd-btn-color-brand-hover:var(--wd-color-brand-hover);--wd-btn-color-brand-active:var(--wd-color-brand-active);--wd-btn-color-brand-focus:var(--wd-color-brand-focus);--wd-btn-color-brand-disabled:var(--wd-color-brand-disabled);--wd-btn-color-warning:var(--wd-color-warning);--wd-btn-color-warning-hover:var(--wd-color-warning-hover);--wd-btn-color-warning-active:var(--wd-color-warning-active);--wd-btn-color-warning-focus:var(--wd-color-warning-focus);--wd-btn-color-warning-disabled:var(--wd-color-warning-disabled);--wd-btn-color-error:var(--wd-color-error);--wd-btn-color-error-hover:var(--wd-color-error-hover);--wd-btn-color-error-active:var(--wd-color-error-active);--wd-btn-color-error-focus:var(--wd-color-error-focus);--wd-btn-color-error-disabled:var(--wd-color-error-disabled);--wd-btn-color-gray:var(
5
5
  --wd-color-gray-1
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 获取地图 API Key
3
+ * @param {Object} dataSource - 数据源配置
4
+ * @param {string} dataSource.name - 数据源名称
5
+ * @param {string} dataSource.templateCode - 模板代码
6
+ * @returns {Promise<string>} API Key
7
+ */
8
+ export function fetchLocationApiKey(dataSource: {
9
+ name: string;
10
+ templateCode: string;
11
+ }): Promise<string>;
@@ -0,0 +1,20 @@
1
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
+ // @ts-nocheck
3
+ import { callDataSource, getOpenApi } from '../../../../utils/tcb';
4
+ /**
5
+ * 获取地图 API Key
6
+ * @param {Object} dataSource - 数据源配置
7
+ * @param {string} dataSource.name - 数据源名称
8
+ * @param {string} dataSource.templateCode - 模板代码
9
+ * @returns {Promise<string>} API Key
10
+ */
11
+ export function fetchLocationApiKey(dataSource) {
12
+ const fetchApiKey = dataSource.templateCode === 'qqmapV2'
13
+ ? getOpenApi({ userAPIsID: dataSource.name, path: '/getApiKey' })
14
+ : callDataSource({ dataSourceName: dataSource.name, methodName: 'getApiKey' });
15
+ return fetchApiKey.then((res) => {
16
+ var _a;
17
+ const apiKey = ((_a = res === null || res === void 0 ? void 0 : res.result) === null || _a === void 0 ? void 0 : _a.apiKey) || (res === null || res === void 0 ? void 0 : res.apiKey);
18
+ return apiKey;
19
+ });
20
+ }
@@ -8,7 +8,6 @@ import { renderDecorator } from '../../../renderDecorator';
8
8
  import MapView from '../../common/mapView';
9
9
  import SelectModal from '../../common/selectModal';
10
10
  import { propTypes, defaultProps } from '../../common/propsConfig';
11
- import { callDataSource } from '../../../../../utils/tcb';
12
11
  import { inH5IsMobile } from '../../../../../utils/platform';
13
12
  import { useConfig } from '../../../../../utils/config-context';
14
13
  import { emptyObject } from '../../../../../utils/constant';
@@ -17,6 +16,7 @@ import ChooseBtn from '../ChooseBtn';
17
16
  import { WdText } from '../../../../wd-text';
18
17
  import { checkCustomLocation } from '../../common/useLocationInfo';
19
18
  import { errorHandler } from '../../../../../utils/error';
19
+ import { fetchLocationApiKey } from '../../common/fetchLocationApiKey';
20
20
  import './style';
21
21
  const { useEffect, useState, useRef } = React;
22
22
  export default function LocationH5(props) {
@@ -195,43 +195,30 @@ export default function LocationH5(props) {
195
195
  }, [APIKEY, locationType, dataSourceStatus]);
196
196
  useEffect(() => {
197
197
  // 调用API数据源方法
198
- if (dataSource.name) {
199
- callDataSource({
200
- dataSourceName: dataSource.name,
201
- methodName: 'getApiKey',
202
- })
203
- .then((res) => {
204
- if (res.apiKey) {
205
- setAPIKEY(res.apiKey);
206
- setDataSourceStatus({
207
- status: true,
208
- message: '',
209
- });
210
- setApiKeyStatus({
211
- status: true,
212
- message: '',
213
- });
214
- }
215
- })
216
- .catch((error) => {
217
- const { comErrorInfo } = errorHandler({
218
- code: 'WdLocation.DatasourceError',
219
- id,
220
- error,
221
- });
222
- events === null || events === void 0 ? void 0 : events.error({ error: comErrorInfo });
223
- setDataSourceStatus({
224
- status: false,
225
- message: error,
226
- });
227
- });
228
- }
229
- else {
198
+ if (!dataSource.name) {
230
199
  setDataSourceStatus({
231
200
  status: false,
232
201
  message: '请在编辑器属性区配置地图APIs',
233
202
  });
203
+ return;
234
204
  }
205
+ fetchLocationApiKey(dataSource)
206
+ .then((apiKey) => {
207
+ if (apiKey) {
208
+ setAPIKEY(apiKey);
209
+ setDataSourceStatus({ status: true, message: '' });
210
+ setApiKeyStatus({ status: true, message: '' });
211
+ }
212
+ })
213
+ .catch((error) => {
214
+ const { comErrorInfo } = errorHandler({
215
+ code: 'WdLocation.DatasourceError',
216
+ id,
217
+ error,
218
+ });
219
+ events === null || events === void 0 ? void 0 : events.error({ error: comErrorInfo });
220
+ setDataSourceStatus({ status: false, message: error });
221
+ });
235
222
  }, [dataSource]);
236
223
  const showToast = (message) => {
237
224
  weui.toast(message, {