@netless/forge-slide 0.1.1-alpha.6 → 0.1.1-alpha.7
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/Slide.d.ts +1 -0
- package/dist/Slide.d.ts.map +1 -1
- package/dist/SlideApplication.d.ts.map +1 -1
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/Slide.ts +1 -0
- package/src/SlideApplication.ts +5 -0
package/package.json
CHANGED
package/src/Slide.ts
CHANGED
|
@@ -42,6 +42,7 @@ export class SlideForge extends EventEmitter<SlideEvents> implements Application
|
|
|
42
42
|
public readonly view!: HTMLDivElement;
|
|
43
43
|
public readonly permissions!: ForgeSlidePermissions;
|
|
44
44
|
public readonly footView!: HTMLDivElement;
|
|
45
|
+
public readonly sideBarView!: HTMLDivElement;
|
|
45
46
|
/**
|
|
46
47
|
* 当前页面索引, 从 0 开始
|
|
47
48
|
*/
|
package/src/SlideApplication.ts
CHANGED
|
@@ -148,6 +148,11 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
|
|
|
148
148
|
return that.footer.root;
|
|
149
149
|
}
|
|
150
150
|
})
|
|
151
|
+
Object.defineProperty(this.emitter, "sidebarView", {
|
|
152
|
+
get(): any {
|
|
153
|
+
return that.sideBar.root;
|
|
154
|
+
}
|
|
155
|
+
})
|
|
151
156
|
Object.defineProperty(this.emitter, "pageIndex", {
|
|
152
157
|
get(): any {
|
|
153
158
|
return that.currentSlideIndex;
|