This commit is contained in:
lchen committed 2026-11-23 17:22:07 +08:00
1 parent 5cb14ffd44
commit 05ce7035dd
15 files changed
+946 -460

No files matched your search

-11
View File
@@ -1125,7 +1125,6 @@ export class Grid {
/**
* 列类型枚举
* @readonly
* @type {GridColumnTypeEnum}
* @property {number} Common=0 - 通用列(只读)
* @property {number} Input=1 - 单行文本列
@@ -1179,7 +1178,6 @@ export class Grid {
/**
* 获取全局是否可支持点击扩展
* @readonly
* @type {boolean}
*/
get isExpandable() {
@@ -1192,14 +1190,12 @@ export class Grid {
/**
* 获取 Grid 的页面元素
* @readonly
* @type {HTMLDivElement}
*/
get element() { return this._var.el }
/**
* 获取当前 Grid 是否已发生改变
* @readonly
* @type {boolean}
*/
get changed() {
@@ -1212,14 +1208,12 @@ export class Grid {
/**
* 返回所有数据的数据(未过滤)
* @readonly
* @type {GridRowItem[]}
*/
get allSource() { return this._var.source?.map(s => s.values) }
/**
* 获取已过滤的数据中的扩展对象数组
* @readonly
* @type {GridExpandableObject[]}
* @property {HTMLElement} element - 扩展行元素
*/
@@ -1227,14 +1221,12 @@ export class Grid {
/**
* 获取当前是否为虚模式状态
* @readonly
* @type {boolean}
*/
get virtual() { return this._var.currentSource?.length > this.virtualCount }
/**
* 获取当前排序的列关键字,为 null 则当前无排序列
* @readonly
* @type {string | null}
*/
get sortKey() {
@@ -1246,7 +1238,6 @@ export class Grid {
/**
* 获取当前选中的行对象
* @readonly
* @type {GridRowItem | null}
* @since 1.0.7
*/
@@ -1280,14 +1271,12 @@ export class Grid {
/**
* 获取虚模式起始索引
* @readonly
* @type {number}
*/
get startIndex() { return this._var.startIndex }
/**
* 获取当前选中行的索引,为 -1 则当前没有选中行
* @readonly
* @type {number}
*/
get selectedIndex() { return (this._var.selectedIndexes && this._var.selectedIndexes[0]) ?? -1 }