Skip to content

Commit 717dd61

Browse files
committed
【API】优化微件API
1 parent 5f4deb2 commit 717dd61

26 files changed

+86
-38
lines changed

build/jsdocs/classic/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"src/common/iServer/GeoCodingParameter.js","src/common/iServer/GeoDecodingParameter.js"
2222
],
2323
"exclude": [
24-
"src/classic/libs","src/classic/theme","src/classic/resource","src/common/overlay/levelRenderer"
24+
"src/classic/libs","src/classic/theme","src/classic/resource","src/common/overlay/levelRenderer","src/common/widgets"
2525
]
2626
},
2727
"plugins": ["plugins/markdown"],

build/jsdocs/mapboxgl/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"src/common","src/mapboxgl"
2323
],
2424
"exclude": [
25-
"src/common/overlay/levelRenderer"
25+
"src/common/overlay/levelRenderer","src/common/widgets"
2626
]
2727
},
2828
"plugins": ["plugins/markdown"],

build/jsdocs/openlayers/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"src/common","src/openlayers"
2323
],
2424
"exclude": [
25-
"src/common/overlay/levelRenderer"
25+
"src/common/overlay/levelRenderer","src/common/widgets"
2626
]
2727
},
2828
"plugins": ["plugins/markdown"],

build/jsdocs/template/config.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,33 @@
329329
},
330330
"Widgets": {
331331
"name": "微件",
332-
"name_en": "Widgets"
332+
"name_en": "Widgets",
333+
"content": {
334+
"Common": {
335+
"name": "通用",
336+
"name_en": "Common"
337+
},
338+
"OpenFile": {
339+
"name": "打开文件微件",
340+
"name_en": "OpenFile"
341+
},
342+
"DataFlow": {
343+
"name": "数据流微件",
344+
"name_en": "DataFlow"
345+
},
346+
"ClientComputation": {
347+
"name": "客户端计算微件",
348+
"name_en": "ClientComputation"
349+
},
350+
"DistributedAnalysis": {
351+
"name": "分布式分析微件",
352+
"name_en": "DistributedAnalysis"
353+
},
354+
"POISearch": {
355+
"name": "地址匹配或图层要素查询微件",
356+
"name_en": "POISearch"
357+
}
358+
}
333359
},
334360
"Security": {
335361
"name": "安全",

src/common/widgets/messagebox/MessageBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {SuperMap} from '../../SuperMap';
66
/**
77
* @class SuperMap.Widgets.MessageBox
88
* @classdesc MessageBox 微件,信息框提示
9-
* @category Widgets
9+
* @category Widgets Common
1010
*/
1111
export class MessageBox {
1212

src/common/widgets/openfile/FileModel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {FileTypes, FileConfig} from '../CommonTypes'
66
/**
77
* @class SuperMap.FileModel
88
* @description 文件数据微件数据模型,用于存储一些文件数据或状态,todo 结构待完善
9+
* @category Widgets OpenFile
10+
* @private
911
*/
1012
export class FileModel {
1113
constructor(options) {

src/common/widgets/templates/CityTabsPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {Util} from '../../commontypes/Util';
88
/**
99
* @class SuperMap.Widgets.CityTabsPage
1010
* @classdesc 城市地址匹配组件模板
11+
* @category Widgets Common
1112
* @param {Object|Array.<string>} config - 城市名称配置列表,支持两种格式:{key1:{A:[],B:[]}, key2:{C:[],D:[]}} 或
1213
* ["成都市","北京市"],用户可根据自己的项目需求进行配置
1314
*/

src/common/widgets/templates/NavTabsPage.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4-
/**
5-
* @class NavTabsPage
4+
import {SuperMap} from '../../SuperMap';
5+
/**
6+
* @class SuperMap.Widgets.NavTabsPage
67
* @classdesc 标签页面组件
8+
* @category Widgets Common
79
* @param {Array.<Object>} [tabs=[]] - 标签对象数组 [{title: "",content: HTMLElement}],初始时,传入则创建页面。
810
* todo 思考拆分的控件应该以哪种方式使用
911
*/
@@ -135,4 +137,5 @@ export class NavTabsPage {
135137
}
136138
}
137139

138-
}
140+
}
141+
SuperMap.Widgets.NavTabsPage = NavTabsPage;

src/common/widgets/templates/PaginationContainer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {SuperMap} from '../../SuperMap';
77
/**
88
* @class SuperMap.Widgets.PaginationContainer
99
* @classdesc 分页组件模板
10+
* @category Widgets Common
1011
*/
1112
export class PaginationContainer {
1213
constructor(contents = null, pageCounts = 0) {

src/common/widgets/templates/WidgetContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {SuperMap} from '../../SuperMap';
99
* @classdesc 微件统一外框。
1010
* @param {string} title - 标题。
1111
* @param {Object} position - 设置外框绝对位置,包括上下左右:{"top":"5px","bottom":"5px","left":"5px","right":"5px"}
12-
* @category Widgets
12+
* @category Widgets Common
1313
*/
1414
export class WidgetContainer {
1515
constructor(title, position = null) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy