File tree Expand file tree Collapse file tree 4 files changed +19
-10
lines changed
Expand file tree Collapse file tree 4 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 3030
3131 - name : Prepare Nuxt
3232 run : npm run prepare
33-
33+
3434 - name : Fix all auto-fixable errors
3535 id : fix-lint
3636 run : npm run lint:fix
Original file line number Diff line number Diff line change @@ -30,9 +30,12 @@ function formatList(value: typeof props.modelValue) {
3030 const list = [] as string []
3131 if (value ) {
3232 for (const tag of value ) {
33- typeof tag === ' string'
34- ? list .push (tag )
35- : list .push (` ${tag .lang }: ${t (tag .level )} ` )
33+ if (typeof tag === ' string' ) {
34+ list .push (tag )
35+ }
36+ else {
37+ list .push (` ${tag .lang }: ${t (tag .level )} ` )
38+ }
3639 }
3740 }
3841 return list
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export default defineComponent({
2323 el .style .height = ' auto'
2424 const height = getComputedStyle (element ).height
2525 el .style .height = ' 0'
26- // eslint-disable-next-line no-unused-expressions
27- getComputedStyle (element ).height
26+
27+ const _ = getComputedStyle (element ).height
2828 requestAnimationFrame (() => {
2929 el .style .height = height
3030 })
@@ -37,8 +37,9 @@ export default defineComponent({
3737 const el = element as HTMLElement
3838 const height = getComputedStyle (element ).height
3939 el .style .height = height
40- // eslint-disable-next-line no-unused-expressions
41- getComputedStyle (element ).height
40+
41+ const _ = getComputedStyle (element ).height
42+
4243 requestAnimationFrame (() => {
4344 el .style .height = ' 0'
4445 })
Original file line number Diff line number Diff line change @@ -10,15 +10,20 @@ export default function usePrint() {
1010 docTitle . value = document . title
1111
1212 addEventListener ( 'beforeprint' , ( ) => {
13- formSettings . value . layout === 'one-column' ? printMargin ( '0.45in' ) : printMargin ( '0in' )
13+ if ( formSettings . value . layout === 'one-column' ) {
14+ printMargin ( '0.45in' )
15+ }
16+ else {
17+ printMargin ( '0in' )
18+ }
1419 } )
1520
1621 addEventListener ( 'afterprint' , ( ) => {
1722 if ( typeof docTitle . value === 'string' )
1823 document . title = docTitle . value
1924 } )
2025
21- addEventListener ( 'keydown' , ( e ) => {
26+ addEventListener ( 'keydown' , ( e : KeyboardEvent ) => {
2227 if ( e . metaKey && e . key === 'p' ) {
2328 e . preventDefault ( )
2429 downloadPdf ( )
You can’t perform that action at this time.
0 commit comments