Commit b17103d1 authored by TtTao's avatar TtTao

初始化:cli项目

parent defb2698
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
/node_modules/* /node_modules/*
/.idea/* /.idea/*
deploy.sh deploy.sh
package-lock.json
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
type: String, type: String,
default: 'none' default: 'none'
}, },
//top rpx 选择框高度也用这个值 //toprpx 选择框高度也用这个值
top: { top: {
type: Number, type: Number,
default: 90 default: 90
......
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
style += '</style>'; style += '</style>';
html = style + html; html = style + html;
} }
// 处理 rpx // 处理rpx
if (html.includes('rpx')) if (html.includes('rpx'))
html = html.replace(/[0-9.]+\s*rpx/g, $ => (parseFloat($) * windowWidth / 750) + 'px'); html = html.replace(/[0-9.]+\s*rpx/g, $ => (parseFloat($) * windowWidth / 750) + 'px');
return html; 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