|
|
@@ -15,6 +15,10 @@ export default {
|
|
|
schedule: {
|
|
|
type: String,
|
|
|
default: null
|
|
|
+ },
|
|
|
+ editable: {
|
|
|
+ type: [Boolean, String],
|
|
|
+ default: false
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
|
@@ -32,7 +36,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getApi () {
|
|
|
- return this.$attrs.editable ? getSchedule : getScheduleCache
|
|
|
+ return this.editable ? getSchedule : getScheduleCache
|
|
|
},
|
|
|
getSchedule () {
|
|
|
const options = {
|
|
|
@@ -81,6 +85,7 @@ export default {
|
|
|
return h(detail.type === ScheduleType.RECUR ? 'ScheduleSwiper' : 'ScheduleCalendar', {
|
|
|
props: {
|
|
|
detail,
|
|
|
+ editable: this.editable,
|
|
|
...this.$attrs
|
|
|
},
|
|
|
on: this.$listeners
|