import Cron from "./cron"; import Base from "./base"; export default { name: "cl-cron", mixins: [Base], components: { Cron }, props: { value: String, placeholder: { type: String, default: "请输入定时策略" } }, data() { return { cronPopover: false, cron: "" }; }, watch: { cron: { handler(val) { this.fieldValue = val; this.$emit("change", val); } }, value: { immediate: true, handler(val) { this.cron = val; } }, fieldValue: { immediate: true, handler(val) { this.cron = val; } } }, methods: { changeCron(val) { this.cron = val; }, hidePopover() { this.cronPopover = false; } }, render() { const vnode = ( ); return this.renderComponent(vnode); } };