* perf: remove isChromatic on real build
* revert: Revert #10475 in MkTime
This reverts commit 7d11cf8ec9
.
* @rollup/plugin-replace as dependencies
* fix pnpm-lock,yaml
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
parent
55c10d0d88
commit
47c7b4b9cc
5 changed files with 178 additions and 72 deletions
|
@ -8,6 +8,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import isChromatic from 'chromatic/isChromatic';
|
||||
import { onUnmounted } from 'vue';
|
||||
import { i18n } from '@/i18n';
|
||||
import { dateTimeFormat } from '@/scripts/intl-const';
|
||||
|
@ -17,7 +18,7 @@ const props = withDefaults(defineProps<{
|
|||
origin?: Date | null;
|
||||
mode?: 'relative' | 'absolute' | 'detail';
|
||||
}>(), {
|
||||
origin: null,
|
||||
origin: isChromatic() ? new Date('2023-04-01T00:00:00Z') : null,
|
||||
mode: 'relative',
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue