![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTML5
坚书直实i
最精彩的不是实现梦想的瞬间,而是坚持的过程
展开
-
使用 iview 组件 Carousel 制作首页轮播图
当我们需要制作轮播图时,一般是使用插件Swiper。npm i swiper但是现在iview 中自带了Carousel组件可以制作简单的轮播图,操作起来十分简单。这是官方给出的Api:代码如下:<Carousel :loop="true" :autoplay="true" :autoplay-speed="3000" arrow="never" > <CarouselItem> <img class="img" src="~@/i.原创 2021-08-24 22:03:50 · 1967 阅读 · 0 评论 -
js或vue中怎么才能输出变量或者参数的类型?
js或vue中怎么才能输出变量或者参数的类型?console.log(typeof(this.contextData.__value))this.contextData.__value 为变量或者参数原创 2021-05-28 16:38:47 · 434 阅读 · 0 评论 -
iview中禁止textarea文本域拉伸
iview中禁止textarea文本域拉伸把autosize属性maxRows和minRows设置成一样即可。 <FormItem label="服务大类描述:" > <Input type="textarea" :autosize="{maxRows:5,minRows: 5}"></Input> </FormItem>说明:autosize是自适应内容高度,仅在 textarea 类型下有效,可传入对象。如:{ minRows:.原创 2021-05-28 11:28:16 · 752 阅读 · 0 评论