Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee4d5c8

Browse files
committed
feat(presets): support hide presets
1 parente1ac7e7 commitee4d5c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎src/components/Picker.vue‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
v-show="pickerVisible"
1313
>
1414
<calendar-ranges
15+
v-if="showPresets && presets"
1516
:canSelect="inRange"
1617
:presets="presets"
1718
@clickCancel="pickerVisible = false"
@@ -134,6 +135,10 @@ export default {
134135
type:Boolean,
135136
default:true,
136137
},
138+
showPresets: {
139+
type:Boolean,
140+
default:true,
141+
},
137142
},
138143
data () {
139144
constdata= {

‎src/components/Ranges.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<divclass="ranges">
3-
<ulv-if="presets">
3+
<ul>
44
<li
55
v-for="(item, index) in presets_"
66
:key="index"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp