Skip to content

Commit 179fc8b

Browse files
committed
update docs
1 parent d23919a commit 179fc8b

File tree

3 files changed

+36
-18
lines changed

3 files changed

+36
-18
lines changed

docs/src/App.vue

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<header class="relative z-10 max-w-screen-lg xl:max-w-screen-xl mx-auto">
5959
<div class="relative px-4 sm:px-6 md:px-8 mb-14 sm:mb-20 xl:mb-8">
6060
<div
61-
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"
61+
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"
6262
>
6363
<div class="flex">
6464
<a href="/" class="block">
@@ -137,7 +137,7 @@
137137
>
138138
<button
139139
type="button"
140-
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"
140+
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"
141141
>
142142
<span class="text-gray-900">
143143
{{ value || placeholder }}
@@ -1271,6 +1271,11 @@ export default {
12711271
month: 'MMM'
12721272
});
12731273
1274+
const playFormatter = ref({
1275+
date: 'YYYY-MM-DD',
1276+
month: 'MMM'
1277+
});
1278+
12741279
const heroModel = ref([
12751280
dayjs().format(formatter.value.date),
12761281
dayjs()
@@ -1292,7 +1297,14 @@ export default {
12921297
startFrom: [],
12931298
shortcuts: [],
12941299
disableDate: [],
1295-
disableInRange: [],
1300+
disableInRange: [
1301+
dayjs()
1302+
.subtract(7, 'd')
1303+
.format(playFormatter.value.date),
1304+
dayjs()
1305+
.subtract(1, 'd')
1306+
.format(playFormatter.value.date)
1307+
],
12961308
trigger: [],
12971309
slots: [],
12981310
footer: [],
@@ -1305,11 +1317,6 @@ export default {
13051317
customShortcuts: []
13061318
});
13071319
1308-
const playFormatter = ref({
1309-
date: 'YYYY-MM-DD',
1310-
month: 'MMM'
1311-
});
1312-
13131320
const customShortcuts = () => {
13141321
return [
13151322
{
@@ -1349,6 +1356,17 @@ export default {
13491356
.format(formatter.value.date)}`;
13501357
}
13511358
}, 1000);
1359+
1360+
setInterval(() => {
1361+
if (myRef.value) {
1362+
myRef.value.LitepieDatepickerRef.parentElement.classList.add('dark');
1363+
setTimeout(() => {
1364+
myRef.value.LitepieDatepickerRef.parentElement.classList.remove(
1365+
'dark'
1366+
);
1367+
}, 10000);
1368+
}
1369+
}, 20000);
13521370
});
13531371
13541372
return {

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"dayjs": "^1.10.4",
6464
"eslint-config-prettier": "^8.1.0",
6565
"eslint-plugin-prettier": "^3.3.1",
66-
"litepie-datepicker": "^1.0.6",
66+
"litepie-datepicker": "^1.0.7",
6767
"minimist": "^1.2.5",
6868
"postcss": "^7.0.35",
6969
"prismjs": "^1.23.0",

0 commit comments

Comments
 (0)