Open douzi8 opened 6 years ago
wx:for
的时候,必须强制指明wx:key
属性image
,include
标签src引用本地资源的使用必须使用/xx
绝对路径class
属性不能为空placeholder-class="input-placeholder"
,placeholder-style
bindfocus
属性,必须同时设置bindblur
属性type
属性,值必须是text
,number
,idcard
,digit
中的一种form2-input, form2-input-right(二选一)
,show-dots
/lizard/style/icon/
里面的图标form2-item-l
,form2-item
,flex-wrap
, flex-center-wrap
只能取其一data-xx
属性(百度不支持),改成使用id标识v-for
的时候,必须强制指明:key
属性class
属性不能为空注意:
框架目录的base.wxss和layout.wxss不参与校验,人工校验规则即可
没有使用的css代码,必须删掉
只能使用::after
, :after
, :: before
,: before
,:first-child
,:last-child
,:nth-child(n)
,:nth-last-child(n)
伪类
禁止使用1rpx
值,可以改为1px
使用align-items
, transition
, transform
, animation
,justify-content
必须同时写出-webkit-
前缀
使用-webkit-transition
属性时候,transform值必须带-webkit-
前缀
-webkit-transition: -webkit-transform .2s ease 0s;
除了css selector为.flex-wrap
, .flex-column-wrap
, .flex-center-wrap
, .flex-multi-row
, .form2-item
, 都不能定义display: flex
除了css selector为flex
, 都不能定义flex
属性
定义了width
属性,就不允许定义padding-left
, padding-right
属性, 如果使用padding
定义,则这两项属性必须为0
定义了height
属性,就不允许定义padding-top
, padding-bottom
属性, 如果使用padding
定义,则这两项属性必须为0
position
的值不能是fixed
(H5代码校验)
vertical-align
的值不能是middle
,推荐使用flex-center-wrap
类名
page-top,page-bottom
不能有父元素,除非父元素是block
元素标签名字规范只能是小写字母,-
禁止使用icon标签,请使用svg替代
/lizard/component/debug/index
"ui-debug": "/lizard/component/debug/index"
组件black
或者white
npm install -g imageoptim-cli@1.15.4 npm install -g eslint-plugin-lcb-min
安装模块
eslint安装 eslint规则介绍
babel-eslint安装
imageOptim安装
需要注意,安装好的软件必须直接放在mac的Applications目录下面 打开imageOptim软件进行有损压缩
svgo安装
prettier安装
css-prettier安装
html-prettier安装
eslint-plugin-lcb-mini
业务项目
小程序模块clone
h5模块clone
Lizard框架提交
微信小程序框架clone
h5框架clone