Commit b17103d1 authored by TtTao's avatar TtTao

初始化:cli项目

parent defb2698
......@@ -2,3 +2,4 @@
/node_modules/*
/.idea/*
deploy.sh
package-lock.json
......@@ -108,7 +108,7 @@ export default {
type: String,
default: 'none'
},
//top rpx 选择框高度也用这个值
//toprpx 选择框高度也用这个值
top: {
type: Number,
default: 90
......
......@@ -525,7 +525,7 @@
style += '</style>';
html = style + html;
}
// 处理 rpx
// 处理rpx
if (html.includes('rpx'))
html = html.replace(/[0-9.]+\s*rpx/g, $ => (parseFloat($) * windowWidth / 750) + 'px');
return html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment