Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhyuwa committed Mar 18, 2021
1 parent d23919a commit 179fc8b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
34 changes: 26 additions & 8 deletions docs/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<header class="relative z-10 max-w-screen-lg xl:max-w-screen-xl mx-auto">
<div class="relative px-4 sm:px-6 md:px-8 mb-14 sm:mb-20 xl:mb-8">
<div
class="border-b border-gray-700 border-opacity-90 py-4 flex items-center justify-between mb-12 sm:mb-20 -mx-4 px-4 sm:mx-0 sm:px-0 lg:mb-24 xl:mb-28"
class="border-b border-gray-700 border-opacity-70 py-4 flex items-center justify-between mb-20 -mx-4 px-4 sm:mx-0 sm:px-0 lg:mb-24 xl:mb-32 2xl:mb-40"
>
<div class="flex">
<a href="/" class="block">
Expand Down Expand Up @@ -137,7 +137,7 @@
>
<button
type="button"
class="w-full sm:w-auto flex-none bg-gray-50 text-gray-400 hover:text-gray-900 font-mono leading-6 py-3 sm:px-6 border border-gray-200 rounded-xl flex items-center justify-center space-x-2 sm:space-x-4 focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-gray-300 focus:outline-none transition ease-out duration-300"
class="w-full sm:w-auto flex-none text-xs sm:text-base font-semibold bg-gray-50 text-gray-400 hover:text-gray-900 font-mono leading-6 py-3 sm:px-6 border border-gray-200 rounded-xl flex items-center justify-center space-x-2 sm:space-x-4 focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-gray-300 focus:outline-none transition ease-out duration-300"
>
<span class="text-gray-900">
{{ value || placeholder }}
Expand Down Expand Up @@ -1271,6 +1271,11 @@ export default {
month: 'MMM'
});
const playFormatter = ref({
date: 'YYYY-MM-DD',
month: 'MMM'
});
const heroModel = ref([
dayjs().format(formatter.value.date),
dayjs()
Expand All @@ -1292,7 +1297,14 @@ export default {
startFrom: [],
shortcuts: [],
disableDate: [],
disableInRange: [],
disableInRange: [
dayjs()
.subtract(7, 'd')
.format(playFormatter.value.date),
dayjs()
.subtract(1, 'd')
.format(playFormatter.value.date)
],
trigger: [],
slots: [],
footer: [],
Expand All @@ -1305,11 +1317,6 @@ export default {
customShortcuts: []
});
const playFormatter = ref({
date: 'YYYY-MM-DD',
month: 'MMM'
});
const customShortcuts = () => {
return [
{
Expand Down Expand Up @@ -1349,6 +1356,17 @@ export default {
.format(formatter.value.date)}`;
}
}, 1000);
setInterval(() => {
if (myRef.value) {
myRef.value.LitepieDatepickerRef.parentElement.classList.add('dark');
setTimeout(() => {
myRef.value.LitepieDatepickerRef.parentElement.classList.remove(
'dark'
);
}, 10000);
}
}, 20000);
});
return {
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"dayjs": "^1.10.4",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"litepie-datepicker": "^1.0.6",
"litepie-datepicker": "^1.0.7",
"minimist": "^1.2.5",
"postcss": "^7.0.35",
"prismjs": "^1.23.0",
Expand Down

0 comments on commit 179fc8b

Please sign in to comment.