File tree Expand file tree Collapse file tree 4 files changed +482
-132
lines changed Expand file tree Collapse file tree 4 files changed +482
-132
lines changed Original file line number Diff line number Diff line change 1717 "test" : " echo 'no tests!' && npm run lint" ,
1818 "lint" : " xo" ,
1919 "prepublish" : " npm run build" ,
20- "build" : " npm run build:umd && npm run build:cjs && npm run build:compress" ,
21- "build:umd" : " bili --format umd --env.NODE_ENV development --module-name PrismComponent" ,
22- "build:compress" : " bili --format umd-compress --env.NODE_ENV production --module-name PrismComponent" ,
20+ "build" : " npm run build:umd && npm run build:cjs" ,
21+ "build:umd" : " bili --format umd,umdCompress --env.NODE_ENV production --module-name PrismComponent" ,
2322 "build:cjs" : " bili --format cjs"
2423 },
2524 "author" : " egoist <0x142857@gmail.com>" ,
2625 "license" : " MIT" ,
2726 "dependencies" : {},
2827 "devDependencies" : {
29- "bili" : " ^0.16.0 " ,
28+ "bili" : " ^0.17.3 " ,
3029 "eslint-config-rem" : " ^3.0.0" ,
31- "poi" : " ^9.0.4 " ,
30+ "poi" : " ^9.1.2 " ,
3231 "prismjs" : " ^1.6.0" ,
3332 "xo" : " ^0.18.0"
3433 },
Original file line number Diff line number Diff line change 1+ import { assign } from './utils'
2+
13export default {
24 functional : true ,
35 props : {
@@ -23,9 +25,9 @@ export default {
2325
2426 return h (
2527 'pre' ,
26- {
27- class : className
28- } ,
28+ assign ( { } , ctx . data , {
29+ class : [ ctx . data . class , className ] ,
30+ } ) ,
2931 [
3032 h ( 'code' , {
3133 class : className ,
Original file line number Diff line number Diff line change 1+ export function assign ( obj ) {
2+ for ( let i = 1 ; i < arguments . length ; i ++ ) {
3+ // eslint-disable-next-line guard-for-in, prefer-rest-params
4+ for ( const p in arguments [ i ] ) obj [ p ] = arguments [ i ] [ p ]
5+ }
6+ return obj
7+ }
You can’t perform that action at this time.
0 commit comments