多项选择题

关于VUE组件中prop属性验证语法正确的是()

A.Vue.component('my-component', { props: { name: { validator: function (value) { return ['success', 'warning', 'danger'].indexOf(value) !== -1 } } }})
B.Vue.component('my-component', { props: { age:{ validator:function (value){ return value〉10; } } }})
C.〈div id="app"〉 〈ol〉 〈todo-item v-for="item in sites" v-bind:todo="item"〉〈/todo-item〉 〈/ol〉〈/div〉 〈script〉Vue.component('todo-item', { props: ['todo'], template: '〈li〉{{ todo.text }}〈/li〉'})new Vue({ el: '#app', data: { sites: [ { text: 'Runoob' }, { text: 'Google' }, { text: 'Taobao' } ] }})〈/script〉
D.以上都不对