Aliyundrive (#436)

* init

* init

* add example

* add initControl

* add initControl

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* build all

* build all

* update style
This commit is contained in:
Harvey Zack authored and GitHub committed 2022-12-31 21:16:54 +08:00
1 parent 4dcde5a539
commit 6b791be35a
52 files changed
+689 -50

No files matched your search

+3 -2
View File
@@ -1,3 +1,4 @@
import screenfull from '../libs/screenfull';
import { append, tooltip, setStyle } from '../utils';
export default function fullscreen(option) {
@@ -15,8 +16,8 @@ export default function fullscreen(option) {
art.fullscreen = !art.fullscreen;
});
art.on('fullscreen', (value) => {
if (value) {
screenfull.on('change', () => {
if (art.fullscreen) {
tooltip($control, i18n.get('Exit Fullscreen'));
setStyle($fullscreenOn, 'display', 'none');
setStyle($fullscreenOff, 'display', 'inline-flex');