leleccccc
leleccccc
> I wrote it like this > > ```js > // tailwind.config.js > plugins: [ > function ({ addBase }) { > addBase({ > ".el-button": { > "background-color": "var(--el-button-bg-color,var(--el-color-white))" >...
> @ga-devfront Ah, trunk uses p5 instead of three. Try loading p5 from npm, and replacing `THREE: THREE` with `p5: p5` in the initialization. I also encountered this problem in...
> ```js > { > type:'object', > field:'student', > props:{ > rule: [ > { > type:'input', > title:'生名称', > field:'name', > }, > { > type:'object', > field:'math', >...
> , trigger:'change' 似乎不行,还是只有提交的时候会显示请输入,我把自定义的input内容删光不会显示请输入
As of now, I still haven't seen the design of the slot
如果只是连续点击防止表单多次提交,给按钮加loading不就好了
> > > 如果只是连续点击防止表单多次提交,给按钮加loading不就好了 > > > > > > 是可以这样但是要增加几个代码麻烦,如果支持直接给个时间,可以少写好几行代码 > > 写死一个时间不是个好办法,因为响应点击事件所做的事情耗费的时间是不确定的,拿典型的点击“提交”按钮提交数据到api为例,受一些因素波动,这个响应时间是不确定的,而你这个需求是写死一个固定的时间,这样体验会不好(比如接口响应的比这个固定时间快,用户再次点击时发现点击无效),所以最好还是用loading或者disabled来阻止请求,并且在api处理完成后更新loading或disabled状态 是的,这估计也就验证码发送后倒计时场景比较适用固定禁用时间的按钮