File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
packages/webpack-plugin/lib/platform/style/wx Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -547,6 +547,17 @@ module.exports = function getSpec ({ warn, error }) {
547547 // })
548548 // return cssMap
549549 // }
550+ const formatBorder = ( { prop, value, selector } , { mode } ) => {
551+ value = value . trim ( )
552+ if ( value === 'none' ) {
553+ return {
554+ prop : 'borderWidth' ,
555+ value : 0
556+ }
557+ } else {
558+ return formatAbbreviation ( { prop, value, selector } , { mode } )
559+ }
560+ }
550561
551562 return {
552563 supportedModes : [ 'ios' , 'android' , 'harmony' ] ,
@@ -593,6 +604,12 @@ module.exports = function getSpec ({ warn, error }) {
593604 // android: formatBoxShadow,
594605 // harmony: formatBoxShadow
595606 // },
607+ {
608+ test : 'border' ,
609+ ios : formatBorder ,
610+ android : formatBorder ,
611+ harmony : formatBorder
612+ } ,
596613 // 通用的简写格式匹配
597614 {
598615 test : new RegExp ( '^(' + Object . keys ( AbbreviationMap ) . join ( '|' ) + ')$' ) ,
You can’t perform that action at this time.
0 commit comments