mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: fix mourn tree shaking
This commit is contained in:
parent
0346ecd96a
commit
9eb337bd0e
@ -1 +1,3 @@
|
||||
import './mourn';
|
||||
import mourn from './mourn';
|
||||
|
||||
mourn();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import './mourn';
|
||||
import mourn from './mourn';
|
||||
import Vue from 'vue';
|
||||
import Locale from '../../src/locale';
|
||||
import Lazyload from '../../src/lazyload';
|
||||
@ -6,6 +6,8 @@ import { get } from '../../src/utils';
|
||||
import { camelize } from '../../src/utils/format/string';
|
||||
import enUS from '../../src/locale/lang/en-US';
|
||||
|
||||
mourn();
|
||||
|
||||
Vue.use(Lazyload, {
|
||||
lazyComponent: true,
|
||||
});
|
||||
|
@ -1,12 +1,18 @@
|
||||
const now = new Date();
|
||||
export default function () {
|
||||
const now = new Date();
|
||||
|
||||
if (now.getFullYear() === 2020 && now.getMonth() === 3 && now.getDate() === 4) {
|
||||
const filter = `
|
||||
if (
|
||||
now.getFullYear() === 2020 &&
|
||||
now.getMonth() === 3 &&
|
||||
now.getDate() === 4
|
||||
) {
|
||||
const filter = `
|
||||
html{
|
||||
filter: grayscale(100%);
|
||||
-webkit-filter: grayscale(100%);
|
||||
-moz-filter: grayscale(100%);
|
||||
}
|
||||
`;
|
||||
document.head.insertAdjacentHTML('beforeend', `<style>${filter}</style>`);
|
||||
document.head.insertAdjacentHTML('beforeend', `<style>${filter}</style>`);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user