@ibiz-template/runtime 0.1.3 → 0.1.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/index.esm.js +69 -2
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/engine/md-view.engine.d.ts +2 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +3 -2
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts +15 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts +24 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.d.ts +2 -0
- package/out/interface/controller/controller/control/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.js +2 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.js +1 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar.event.js +1 -0
- package/out/interface/controller/event/control/i-tree.event.d.ts +19 -1
- package/out/interface/controller/event/control/i-tree.event.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.d.ts +2 -0
- package/out/interface/controller/event/control/index.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.js +2 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts +11 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.js +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts +12 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.js +1 -0
- package/out/interface/controller/event/view/index.d.ts +2 -0
- package/out/interface/controller/event/view/index.d.ts.map +1 -1
- package/out/interface/controller/event/view/index.js +2 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts +11 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.js +1 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts +162 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar.state.js +1 -0
- package/out/interface/controller/state/control/i-tree.state.d.ts +9 -2
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.d.ts +2 -0
- package/out/interface/controller/state/control/index.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.js +2 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.js +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +2 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +2 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts +30 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.js +76 -0
- package/out/service/vo/calendar-item-data/index.d.ts +2 -0
- package/out/service/vo/calendar-item-data/index.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/index.js +1 -0
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/package.json +6 -6
- package/src/engine/md-view.engine.ts +5 -2
- package/src/interface/controller/controller/control/i-calendar-exp-bar.controller.ts +19 -0
- package/src/interface/controller/controller/control/i-calendar.controller.ts +25 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +5 -1
- package/src/interface/controller/controller/control/index.ts +2 -0
- package/src/interface/controller/event/control/i-calendar-exp-bar.event.ts +10 -0
- package/src/interface/controller/event/control/i-calendar.event.ts +11 -0
- package/src/interface/controller/event/control/i-tree.event.ts +14 -1
- package/src/interface/controller/event/control/index.ts +2 -0
- package/src/interface/controller/event/view/i-calendar-exp-view.event.ts +11 -0
- package/src/interface/controller/event/view/i-calendar-view.event.ts +12 -0
- package/src/interface/controller/event/view/index.ts +2 -0
- package/src/interface/controller/state/control/i-calendar-exp-bar.state.ts +10 -0
- package/src/interface/controller/state/control/i-calendar.state.ts +172 -0
- package/src/interface/controller/state/control/i-tree.state.ts +10 -2
- package/src/interface/controller/state/control/index.ts +2 -0
- package/src/interface/controller/state/view/i-calendar-exp-view.state.ts +10 -0
- package/src/interface/controller/state/view/i-calendar-view.state.ts +10 -0
- package/src/interface/controller/state/view/index.ts +2 -0
- package/src/service/vo/calendar-item-data/calendar-item-data.ts +94 -0
- package/src/service/vo/calendar-item-data/index.ts +1 -0
- package/src/service/vo/index.ts +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ISysCalendarItem } from '@ibiz/model-core';
|
|
2
|
+
import { ICalendarItemData } from '../../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* 日历项数据
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class CalendarItemData
|
|
8
|
+
* @implements {ICalendarItemData}
|
|
9
|
+
*/
|
|
10
|
+
export declare class CalendarItemData implements ICalendarItemData {
|
|
11
|
+
private model;
|
|
12
|
+
private data;
|
|
13
|
+
constructor(model: ISysCalendarItem, data: IData);
|
|
14
|
+
get deData(): IData;
|
|
15
|
+
get navId(): string;
|
|
16
|
+
get itemType(): string;
|
|
17
|
+
get bkColor(): string;
|
|
18
|
+
get beginTime(): string;
|
|
19
|
+
get color(): string;
|
|
20
|
+
get content(): string;
|
|
21
|
+
get endTime(): string;
|
|
22
|
+
get icon(): string;
|
|
23
|
+
get id(): string;
|
|
24
|
+
get level(): string;
|
|
25
|
+
get tag2(): string;
|
|
26
|
+
get tag(): string;
|
|
27
|
+
get text(): string;
|
|
28
|
+
get tips(): string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=calendar-item-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-item-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/calendar-item-data/calendar-item-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;GAMG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB;IAEtD,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,IAAI;gBADJ,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,KAAK;IAGrB,IAAI,MAAM,IAAI,KAAK,CAElB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,IAAI,SAAS,IAAI,MAAM,CAGtB;IAED,IAAI,KAAK,IAAI,MAAM,CAKlB;IAED,IAAI,OAAO,IAAI,MAAM,CAGpB;IAED,IAAI,OAAO,IAAI,MAAM,CAGpB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,EAAE,IAAI,MAAM,CAKf;IAED,IAAI,KAAK,IAAI,MAAM,CAGlB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;CACF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 日历项数据
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @class CalendarItemData
|
|
6
|
+
* @implements {ICalendarItemData}
|
|
7
|
+
*/
|
|
8
|
+
export class CalendarItemData {
|
|
9
|
+
constructor(model, data) {
|
|
10
|
+
this.model = model;
|
|
11
|
+
this.data = data;
|
|
12
|
+
}
|
|
13
|
+
get deData() {
|
|
14
|
+
return this.data;
|
|
15
|
+
}
|
|
16
|
+
get navId() {
|
|
17
|
+
return `${this.itemType}@${this.id}`;
|
|
18
|
+
}
|
|
19
|
+
get itemType() {
|
|
20
|
+
return this.model.itemType;
|
|
21
|
+
}
|
|
22
|
+
get bkColor() {
|
|
23
|
+
const fieldName = this.model.bkcolorAppDEFieldId;
|
|
24
|
+
return fieldName && this.data[fieldName]
|
|
25
|
+
? this.data[fieldName]
|
|
26
|
+
: this.model.bkcolor;
|
|
27
|
+
}
|
|
28
|
+
get beginTime() {
|
|
29
|
+
const fieldName = this.model.beginTimeAppDEFieldId;
|
|
30
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
31
|
+
}
|
|
32
|
+
get color() {
|
|
33
|
+
const fieldName = this.model.colorAppDEFieldId;
|
|
34
|
+
return fieldName && this.data[fieldName]
|
|
35
|
+
? this.data[fieldName]
|
|
36
|
+
: this.model.color;
|
|
37
|
+
}
|
|
38
|
+
get content() {
|
|
39
|
+
const fieldName = this.model.contentAppDEFieldId;
|
|
40
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
41
|
+
}
|
|
42
|
+
get endTime() {
|
|
43
|
+
const fieldName = this.model.endTimeAppDEFieldId;
|
|
44
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
45
|
+
}
|
|
46
|
+
get icon() {
|
|
47
|
+
const fieldName = this.model.iconAppDEFieldId;
|
|
48
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
49
|
+
}
|
|
50
|
+
get id() {
|
|
51
|
+
const fieldName = this.model.idAppDEFieldId;
|
|
52
|
+
return fieldName && this.data[fieldName]
|
|
53
|
+
? this.data[fieldName]
|
|
54
|
+
: this.data.srfkey;
|
|
55
|
+
}
|
|
56
|
+
get level() {
|
|
57
|
+
const fieldName = this.model.levelAppDEFieldId;
|
|
58
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
59
|
+
}
|
|
60
|
+
get tag2() {
|
|
61
|
+
const fieldName = this.model.tag2AppDEFieldId;
|
|
62
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
63
|
+
}
|
|
64
|
+
get tag() {
|
|
65
|
+
const fieldName = this.model.tagAppDEFieldId;
|
|
66
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
67
|
+
}
|
|
68
|
+
get text() {
|
|
69
|
+
const fieldName = this.model.textAppDEFieldId;
|
|
70
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
71
|
+
}
|
|
72
|
+
get tips() {
|
|
73
|
+
const fieldName = this.model.tipsAppDEFieldId;
|
|
74
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/calendar-item-data/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-item-data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
package/out/service/vo/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"build:rollup": "rollup -c",
|
|
22
22
|
"lint": "eslint 'src/**/*.ts'",
|
|
23
23
|
"lint:fix": "eslint --fix 'src/**/*.ts'",
|
|
24
|
-
"publish:next": "npm run build && npm publish --access public --tag=next",
|
|
25
|
-
"publish:dev": "npm run build && npm publish --access public --tag=dev",
|
|
26
|
-
"publish:beta": "npm run build && npm publish --access public --tag=beta",
|
|
24
|
+
"publish:next": "npm run build && npm publish --access public --tag=next --registry=http://npm.zhr.icu:4873/",
|
|
25
|
+
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=http://npm.zhr.icu:4873/",
|
|
26
|
+
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=http://npm.zhr.icu:4873/",
|
|
27
27
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
28
28
|
},
|
|
29
29
|
"author": "chitanda",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ibiz-template/core": "^0.1.
|
|
32
|
+
"@ibiz-template/core": "^0.1.5",
|
|
33
33
|
"@ibiz/model-core": "^0.0.14",
|
|
34
34
|
"@types/path-browserify": "^1.0.0",
|
|
35
35
|
"@types/qs": "^6.9.7",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"qx-util": "^0.4.8",
|
|
54
54
|
"ramda": "^0.29.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "76df195a7f16de6aec8c14d1315c09db06b5c3ff"
|
|
57
57
|
}
|
|
@@ -192,11 +192,14 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
192
192
|
protected async openData(args: {
|
|
193
193
|
data: IData[];
|
|
194
194
|
event?: MouseEvent;
|
|
195
|
+
context?: IContext;
|
|
196
|
+
params?: IParams;
|
|
195
197
|
}): Promise<void> {
|
|
196
198
|
const { data, event } = args;
|
|
197
199
|
|
|
198
200
|
// 添加选中数据的主键
|
|
199
|
-
const context = this.view.context.clone();
|
|
201
|
+
const context = (args.context || this.view.context).clone();
|
|
202
|
+
const params = args.params || this.view.params;
|
|
200
203
|
const deName =
|
|
201
204
|
data[0].srfdecodename?.toLowerCase() ||
|
|
202
205
|
calcDeCodeNameById(this.xdataControl.model.appDataEntityId!);
|
|
@@ -204,7 +207,7 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
204
207
|
|
|
205
208
|
const result = await this.view.scheduler?.triggerCustom('opendata', {
|
|
206
209
|
context,
|
|
207
|
-
params
|
|
210
|
+
params,
|
|
208
211
|
data,
|
|
209
212
|
event,
|
|
210
213
|
view: this.view,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ITreeExpBar } from '@ibiz/model-core';
|
|
2
|
+
import { ITreeExpBarEvent } from '../../event';
|
|
3
|
+
import { ITreeExpBarState } from '../../state';
|
|
4
|
+
import { IExpBarControlController } from './i-exp-bar-control.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 日历部件控制器
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2023-05-04 01:47:16
|
|
10
|
+
* @export
|
|
11
|
+
* @interface ICalendarController
|
|
12
|
+
* @extends {IMDControlController}
|
|
13
|
+
*/
|
|
14
|
+
export interface ICalendarExpBarController
|
|
15
|
+
extends IExpBarControlController<
|
|
16
|
+
ITreeExpBar,
|
|
17
|
+
ITreeExpBarState,
|
|
18
|
+
ITreeExpBarEvent
|
|
19
|
+
> {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IDECalendar } from '@ibiz/model-core';
|
|
2
|
+
import { ICalendarEvent } from '../../event';
|
|
3
|
+
import { ICalendarState } from '../../state';
|
|
4
|
+
import { IMDControlController } from './i-md-control.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 日历部件控制器
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2023-05-04 01:47:16
|
|
10
|
+
* @export
|
|
11
|
+
* @interface ICalendarController
|
|
12
|
+
* @extends {IMDControlController}
|
|
13
|
+
*/
|
|
14
|
+
export interface ICalendarController
|
|
15
|
+
extends IMDControlController<IDECalendar, ICalendarState, ICalendarEvent> {
|
|
16
|
+
/**
|
|
17
|
+
* 设置选中日期
|
|
18
|
+
*
|
|
19
|
+
* @author zk
|
|
20
|
+
* @date 2023-08-08 11:08:24
|
|
21
|
+
* @param {Date} date
|
|
22
|
+
* @memberof ICalendarController
|
|
23
|
+
*/
|
|
24
|
+
setSelectDate(date: Date): void;
|
|
25
|
+
}
|
|
@@ -26,5 +26,9 @@ export interface ITreeExpBarController
|
|
|
26
26
|
* @return {*} {(INavViewMsg | undefined)}
|
|
27
27
|
* @memberof ITreeExpBarController
|
|
28
28
|
*/
|
|
29
|
-
getNavViewMsg(
|
|
29
|
+
getNavViewMsg(
|
|
30
|
+
data: IData[],
|
|
31
|
+
context: IContext,
|
|
32
|
+
params: IParams,
|
|
33
|
+
): INavViewMsg | undefined;
|
|
30
34
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ITreeNodeData } from '../../state';
|
|
2
|
+
import { EventBase } from '../argument';
|
|
1
3
|
import { IMDControlEvent } from './i-md-control.event';
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -8,4 +10,15 @@ import { IMDControlEvent } from './i-md-control.event';
|
|
|
8
10
|
* @export
|
|
9
11
|
* @interface IMDControlEvent
|
|
10
12
|
*/
|
|
11
|
-
export
|
|
13
|
+
export interface ITreeEvent extends IMDControlEvent {
|
|
14
|
+
/**
|
|
15
|
+
* 数据激活事件
|
|
16
|
+
*
|
|
17
|
+
* @author lxm
|
|
18
|
+
* @date 2022-08-31 14:08:22
|
|
19
|
+
*/
|
|
20
|
+
onActive: {
|
|
21
|
+
event: EventBase & { nodeData: ITreeNodeData };
|
|
22
|
+
emitArgs: { data: IData[]; nodeData: ITreeNodeData };
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -33,3 +33,5 @@ export * from './i-wf-step-trace-view.event';
|
|
|
33
33
|
export * from './i-portal-view.event';
|
|
34
34
|
export * from './i-app-portal-view.event';
|
|
35
35
|
export * from './i-de-portal-view.event';
|
|
36
|
+
export * from './i-calendar-view.event';
|
|
37
|
+
export * from './i-calendar-exp-view.event';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExpBarControlState } from './i-exp-bar-control.state';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 日历导航栏部件状态
|
|
5
|
+
* @author zk
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ICalendarExpBarState
|
|
8
|
+
* @extends {IExpBarControlState}
|
|
9
|
+
*/
|
|
10
|
+
export interface ICalendarExpBarState extends IExpBarControlState {}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { IMDControlState } from './i-md-control.state';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 日历部件状态
|
|
5
|
+
* @author zk
|
|
6
|
+
* @date 2023-05-22 02:18:43
|
|
7
|
+
* @export
|
|
8
|
+
* @interface ICalendarState
|
|
9
|
+
* @extends {IMDControlState}
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface ICalendarState extends IMDControlState {
|
|
13
|
+
/**
|
|
14
|
+
* 多数据部件数据集合
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-08-17 19:08:11
|
|
17
|
+
* @type {IData[]}
|
|
18
|
+
*/
|
|
19
|
+
items: ICalendarItemData[];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 选中的日期
|
|
23
|
+
*
|
|
24
|
+
* @author zk
|
|
25
|
+
* @date 2023-08-08 07:08:39
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ICalendarState
|
|
28
|
+
*/
|
|
29
|
+
selectedDate: Date;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 日历项数据
|
|
34
|
+
*
|
|
35
|
+
* @author zk
|
|
36
|
+
* @date 2023-08-08 01:08:52
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ICalendarItemData
|
|
39
|
+
*/
|
|
40
|
+
export interface ICalendarItemData {
|
|
41
|
+
/**
|
|
42
|
+
* 背景色
|
|
43
|
+
*
|
|
44
|
+
* @author zk
|
|
45
|
+
* @date 2023-08-08 01:08:17
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ICalendarItemData
|
|
48
|
+
*/
|
|
49
|
+
bkColor: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 开始时间
|
|
53
|
+
*
|
|
54
|
+
* @date 2023-08-08 01:08:46
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ICalendarItemData
|
|
57
|
+
*/
|
|
58
|
+
beginTime: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 颜色
|
|
62
|
+
*
|
|
63
|
+
* @date 2023-08-08 01:08:46
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ICalendarItemData
|
|
66
|
+
*/
|
|
67
|
+
color: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 内容
|
|
71
|
+
*
|
|
72
|
+
* @date 2023-08-08 01:08:46
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ICalendarItemData
|
|
75
|
+
*/
|
|
76
|
+
content: string;
|
|
77
|
+
/**
|
|
78
|
+
* 结束时间
|
|
79
|
+
*
|
|
80
|
+
* @date 2023-08-08 01:08:46
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ICalendarItemData
|
|
83
|
+
*/
|
|
84
|
+
endTime: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 图标
|
|
88
|
+
*
|
|
89
|
+
* @date 2023-08-08 01:08:46
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ICalendarItemData
|
|
92
|
+
*/
|
|
93
|
+
icon: string;
|
|
94
|
+
/**
|
|
95
|
+
* id标识
|
|
96
|
+
*
|
|
97
|
+
* @date 2023-08-08 01:08:46
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ICalendarItemData
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* 级别
|
|
104
|
+
*
|
|
105
|
+
* @date 2023-08-08 01:08:46
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ICalendarItemData
|
|
108
|
+
*/
|
|
109
|
+
level: string;
|
|
110
|
+
/**
|
|
111
|
+
* 标记2
|
|
112
|
+
*
|
|
113
|
+
* @date 2023-08-08 01:08:46
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ICalendarItemData
|
|
116
|
+
*/
|
|
117
|
+
tag2: string;
|
|
118
|
+
/**
|
|
119
|
+
* 标记1
|
|
120
|
+
*
|
|
121
|
+
* @date 2023-08-08 01:08:46
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof ICalendarItemData
|
|
124
|
+
*/
|
|
125
|
+
tag: string;
|
|
126
|
+
/**
|
|
127
|
+
* 文本
|
|
128
|
+
*
|
|
129
|
+
* @date 2023-08-08 01:08:46
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof ICalendarItemData
|
|
132
|
+
*/
|
|
133
|
+
text: string;
|
|
134
|
+
/**
|
|
135
|
+
* 提示
|
|
136
|
+
*
|
|
137
|
+
* @date 2023-08-08 01:08:46
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof ICalendarItemData
|
|
140
|
+
*/
|
|
141
|
+
tips: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 实体数据
|
|
145
|
+
*
|
|
146
|
+
* @author zk
|
|
147
|
+
* @date 2023-08-08 01:08:12
|
|
148
|
+
* @type {IData}
|
|
149
|
+
* @memberof ICalendarItemData
|
|
150
|
+
*/
|
|
151
|
+
deData: IData;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 日历项名称
|
|
155
|
+
*
|
|
156
|
+
* @author zk
|
|
157
|
+
* @date 2023-08-08 01:08:12
|
|
158
|
+
* @type {IData}
|
|
159
|
+
* @memberof ICalendarItemData
|
|
160
|
+
*/
|
|
161
|
+
itemType: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 导航标识
|
|
165
|
+
*
|
|
166
|
+
* @author zk
|
|
167
|
+
* @date 2023-08-08 04:08:25
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof ICalendarItemData
|
|
170
|
+
*/
|
|
171
|
+
navId: string;
|
|
172
|
+
}
|
|
@@ -16,10 +16,10 @@ export interface ITreeState extends IMDControlState {
|
|
|
16
16
|
* @type {ITreeNodeData}
|
|
17
17
|
* @memberof TreeState
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
rootNodes: ITreeNodeData[];
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 外部提供的默认展开的节点集合
|
|
23
23
|
*
|
|
24
24
|
* @author zk
|
|
25
25
|
* @date 2023-07-10 08:07:25
|
|
@@ -28,6 +28,14 @@ export interface ITreeState extends IMDControlState {
|
|
|
28
28
|
*/
|
|
29
29
|
defaultExpandedKeys: string[];
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* 实际默认展开节点集合
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2023-08-09 05:06:56
|
|
35
|
+
* @type {string[]}
|
|
36
|
+
*/
|
|
37
|
+
expandedKeys: string[];
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* 右键上下文菜单状态
|
|
33
41
|
* @author lxm
|