Skip to content

Commit 5ca4e13

Browse files
committed
chore: build
1 parent 56bc2e6 commit 5ca4e13

File tree

7 files changed

+22
-20
lines changed

7 files changed

+22
-20
lines changed

packages/uni-h5/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const BLACKLIST = [
2929
'useI18n',
3030
'MatchMedia',
3131
// TODO 整理tags后调整此处
32-
'Loading'
32+
'Loading',
3333
]
3434

3535
export function genApiJson(code: string) {

packages/uni-mp-compiler/src/transforms/transformRef.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ export function rewriteRefProp(
119119
}
120120
parseExprWithRewrite(
121121
context.helperString(helper) +
122-
'(' +
123-
code +
124-
', ' +
125-
id +
126-
(Object.keys(opts).length ? ', ' + JSON.stringify(opts) : '') +
127-
')',
122+
'(' +
123+
code +
124+
', ' +
125+
id +
126+
(Object.keys(opts).length ? ', ' + JSON.stringify(opts) : '') +
127+
')',
128128
prop.loc,
129129
context
130130
)

packages/uni-mp-compiler/src/transforms/transformUniElement.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
builtInComponents,
3333
builtInCustomElements,
3434
filterName,
35-
filterObserverName
35+
filterObserverName,
3636
} from './utils'
3737
import { parseVForKeyAlias } from './transformSlot'
3838
import { parseRefCode } from './transformRef'
@@ -49,7 +49,6 @@ import {
4949
import { parseExpr } from '../ast'
5050
import { genBabelExpr } from '../codegen'
5151

52-
5352
export function rewriteId(node: ElementNode, context: TransformContext) {
5453
const isUniElement = !isUserComponent(node, context)
5554
const origTagName = node.tag
@@ -143,9 +142,9 @@ export function rewriteId(node: ElementNode, context: TransformContext) {
143142
}
144143
let idOptions:
145144
| {
146-
name: string
147-
type?: SetUniElementIdTagType
148-
}
145+
name: string
146+
type?: SetUniElementIdTagType
147+
}
149148
| string = origTagName
150149
if (isBuiltInComponent || isBuiltInCustomElement) {
151150
idOptions = {

packages/uni-mp-compiler/src/transforms/utils.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export function rewriteExpression(
145145
ignoreLiteral: boolean
146146
referencedScope?: CodegenScope
147147
} = {
148-
property: true,
149-
ignoreLiteral: false,
150-
}
148+
property: true,
149+
ignoreLiteral: false,
150+
}
151151
) {
152152
if (node.type === NodeTypes.SIMPLE_EXPRESSION && node.isStatic) {
153153
return node
@@ -260,5 +260,8 @@ export function isFilterExpr(node: ExpressionNode, context: TransformContext) {
260260
return false
261261
}
262262

263-
export const builtInCustomElements = ['uni-cloud-db-element', 'uni-loading-element']
264-
export const builtInComponents = ['unicloud-db', 'uniloading']
263+
export const builtInCustomElements = [
264+
'uni-cloud-db-element',
265+
'uni-loading-element',
266+
]
267+
export const builtInComponents = ['unicloud-db', 'uniloading']

packages/uni-shared/dist/uni-shared.cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const UVUE_WEB_BUILT_IN_TAGS = [
162162
'sticky-header',
163163
'cloud-db-element',
164164
'loading-element',
165-
'loading'
165+
'loading',
166166
].map((tag) => 'uni-' + tag);
167167
const UVUE_MP_BUILT_IN_TAGS = [
168168
'list-view',

packages/uni-shared/dist/uni-shared.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const UVUE_WEB_BUILT_IN_TAGS = [
160160
'sticky-header',
161161
'cloud-db-element',
162162
'loading-element',
163-
'loading'
163+
'loading',
164164
].map((tag) => 'uni-' + tag);
165165
const UVUE_MP_BUILT_IN_TAGS = [
166166
'list-view',

packages/uni-shared/src/tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const UVUE_WEB_BUILT_IN_TAGS = [
165165
'sticky-header',
166166
'cloud-db-element',
167167
'loading-element',
168-
'loading'
168+
'loading',
169169
].map((tag) => 'uni-' + tag)
170170

171171
export const UVUE_MP_BUILT_IN_TAGS = [

0 commit comments

Comments
 (0)