vue 组件嵌套需要注意写法
components: {
FileUpload,
accountNumber,
seeRepeat,
errorMessage,
applyForm: () => import(“../form.vue”), //如果组件相互套,可以用这种引入方法来解决
},
注,组件一定要写name 最好大写
版权声明:本文由Web学习之路发布,如需转载请注明出处。
components: {
FileUpload,
accountNumber,
seeRepeat,
errorMessage,
applyForm: () => import(“../form.vue”), //如果组件相互套,可以用这种引入方法来解决
},
注,组件一定要写name 最好大写
版权声明:本文由Web学习之路发布,如需转载请注明出处。
class,第一种就是把判断的变量放在后面,前面就是判断之后要设置的class名称v-bind:class="{ active: isActive, 'text-danger': hasError }">data: { isActive: tru...
//去除空格 type 1-所有空格 2-前后空格 3-前空格 4-后空格 function trim(value, trim) {  ...
setUp(){} //可以把所有数据和方法都放这里面一起导出,这个是在实现挂载之前就会执行的 ref基本的数据类型 reactive可以把数组,对象转成响应式 readonly处理之后的数据不能进行修改 toRefs可以把响应对象的某个解构出来的值变成响应式,如果原数据没有key,那就会...
filters:{ formatDate(date) { const lastDate = new Date(date); lastDate.setHours(0); lastDate.setMinutes(0); lastDate.setSecon...
<div class="ld-container" id="computer-main" ref="cmdlist"></div> scrollMoreData() { //const scrollT...