Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
菜鸟程序猿_c
uni-app
提交
2578630e
U
uni-app
项目概览
菜鸟程序猿_c
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2578630e
编写于
6月 17, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: bump vite from 2.9.9 to 2.9.12
上级
a28e4205
变更
14
展开全部
隐藏空白更改
内联
并排
Showing
14 changed file
with
1121 addition
and
1218 deletion
+1121
-1218
package.json
package.json
+1
-1
packages/playground/ssr/package.json
packages/playground/ssr/package.json
+1
-1
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-3
packages/uni-app-plus/vite.config.ts
packages/uni-app-plus/vite.config.ts
+1
-1
packages/uni-app-vite/package.json
packages/uni-app-vite/package.json
+1
-1
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
+1
-1
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
+1
-1
packages/uni-app-vue/dist/view.runtime.esm.js
packages/uni-app-vue/dist/view.runtime.esm.js
+1
-1
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
+1
-1
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
+1
-1
packages/uni-mp-compiler/src/transforms/transformClass.ts
packages/uni-mp-compiler/src/transforms/transformClass.ts
+2
-1
packages/uni-mp-compiler/src/transforms/transformStyle.ts
packages/uni-mp-compiler/src/transforms/transformStyle.ts
+34
-29
packages/vite-plugin-uni/package.json
packages/vite-plugin-uni/package.json
+2
-2
pnpm-lock.yaml
pnpm-lock.yaml
+1073
-1174
未找到文件。
package.json
浏览文件 @
2578630e
...
...
@@ -87,7 +87,7 @@
"
semver
"
:
"
^7.3.5
"
,
"
ts-jest
"
:
"
^27.0.3
"
,
"
typescript
"
:
"
4.6.4
"
,
"
vite
"
:
"
2.9.
9
"
,
"
vite
"
:
"
2.9.
12
"
,
"
vue
"
:
"
3.2.37
"
,
"
vue-router
"
:
"
^4.0.16
"
,
"
yorkie
"
:
"
^2.0.0
"
...
...
packages/playground/ssr/package.json
浏览文件 @
2578630e
...
...
@@ -21,6 +21,6 @@
"compression"
:
"^1.7.4"
,
"cypress"
:
"^7.3.0"
,
"serve-static"
:
"^1.14.1"
,
"vite"
:
"2.9.
9
"
"vite"
:
"2.9.
12
"
}
}
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
2578630e
此差异已折叠。
点击以展开。
packages/uni-app-plus/vite.config.ts
浏览文件 @
2578630e
...
...
@@ -122,7 +122,7 @@ export default defineConfig({
build
:
{
target
:
'
es2015
'
,
cssTarget
,
minify
:
true
,
minify
:
'
terser
'
,
cssCodeSplit
:
false
,
lib
:
{
name
:
'
uni-app-view
'
,
...
...
packages/uni-app-vite/package.json
浏览文件 @
2578630e
...
...
@@ -40,7 +40,7 @@
"@vue/compiler-core"
:
"3.2.37"
,
"esbuild"
:
"^0.14.27"
,
"postcss"
:
"^8.4.13"
,
"vite"
:
"2.9.
9
"
,
"vite"
:
"2.9.
12
"
,
"vue"
:
"3.2.37"
}
}
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
浏览文件 @
2578630e
import
{
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
extend
,
EMPTY_OBJ
,
isArray
,
NOOP
,
remove
,
isObject
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
hasChanged
,
hasOwn
,
hyphenate
,
toNumber
,
isSet
,
isMap
,
isPlainObject
,
invokeArrayFns
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
isModelListener
,
def
,
toRawType
,
parseStringStyle
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
extend
,
isArray
,
NOOP
,
remove
,
EMPTY_OBJ
,
isObject
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
hasChanged
,
hasOwn
,
hyphenate
,
toNumber
,
isSet
,
isMap
,
isPlainObject
,
invokeArrayFns
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
isModelListener
,
def
,
toRawType
,
parseStringStyle
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
export
{
camelize
,
capitalize
,
hyphenate
,
normalizeClass
,
normalizeProps
,
normalizeStyle
,
toDisplayString
,
toHandlerKey
}
from
'
@vue/shared
'
;
import
{
pauseTracking
,
resetTracking
,
isRef
,
toRaw
,
isShallow
as
isShallow$1
,
isReactive
,
ReactiveEffect
,
ref
,
isProxy
,
proxyRefs
,
markRaw
,
computed
as
computed$1
,
shallowReadonly
,
EffectScope
,
track
,
isReadonly
,
reactive
,
shallowReactive
,
trigger
}
from
'
@vue/reactivity
'
;
export
{
EffectScope
,
ReactiveEffect
,
customRef
,
effect
,
effectScope
,
getCurrentScope
,
isProxy
,
isReactive
,
isReadonly
,
isRef
,
isShallow
,
markRaw
,
onScopeDispose
,
proxyRefs
,
reactive
,
readonly
,
ref
,
shallowReactive
,
shallowReadonly
,
shallowRef
,
stop
,
toRaw
,
toRef
,
toRefs
,
triggerRef
,
unref
}
from
'
@vue/reactivity
'
;
...
...
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
浏览文件 @
2578630e
import
{
isString
,
isFunction
,
isPromise
,
EMPTY_OBJ
,
isArray
,
NOOP
,
remove
,
camelize
,
capitalize
,
isObject
,
toHandlerKey
,
getGlobalThis
,
EMPTY_ARR
,
normalizeClass
,
extend
,
normalizeStyle
,
isOn
,
hasChanged
,
hasOwn
,
hyphenate
,
toNumber
,
isSet
,
isMap
,
isPlainObject
,
invokeArrayFns
,
NO
,
isReservedProp
,
isModelListener
,
def
,
parseStringStyle
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
isArray
,
NOOP
,
remove
,
EMPTY_OBJ
,
camelize
,
capitalize
,
isObject
,
toHandlerKey
,
getGlobalThis
,
EMPTY_ARR
,
normalizeClass
,
extend
,
normalizeStyle
,
isOn
,
hasChanged
,
hasOwn
,
hyphenate
,
toNumber
,
isSet
,
isMap
,
isPlainObject
,
invokeArrayFns
,
NO
,
isReservedProp
,
isModelListener
,
def
,
parseStringStyle
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
export
{
camelize
,
capitalize
,
hyphenate
,
normalizeClass
,
normalizeProps
,
normalizeStyle
,
toDisplayString
,
toHandlerKey
}
from
'
@vue/shared
'
;
import
{
pauseTracking
,
resetTracking
,
isRef
,
toRaw
,
isShallow
,
isReactive
,
ReactiveEffect
,
ref
,
isProxy
,
proxyRefs
,
markRaw
,
computed
as
computed$1
,
EffectScope
,
track
,
reactive
,
shallowReactive
,
trigger
}
from
'
@vue/reactivity
'
;
export
{
EffectScope
,
ReactiveEffect
,
customRef
,
effect
,
effectScope
,
getCurrentScope
,
isProxy
,
isReactive
,
isReadonly
,
isRef
,
isShallow
,
markRaw
,
onScopeDispose
,
proxyRefs
,
reactive
,
readonly
,
ref
,
shallowReactive
,
shallowReadonly
,
shallowRef
,
stop
,
toRaw
,
toRef
,
toRefs
,
triggerRef
,
unref
}
from
'
@vue/reactivity
'
;
...
...
packages/uni-app-vue/dist/view.runtime.esm.js
浏览文件 @
2578630e
import
{
extend
,
isObject
,
toRawType
,
def
,
hasChanged
,
isArray
,
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
EMPTY_OBJ
,
NOOP
,
remove
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
toNumber
,
hyphenate
,
invokeArrayFns
,
looseIndexOf
,
isSet
,
looseEqual
,
isHTMLTag
,
isSVGTag
,
isMap
,
isPlainObject
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
hasOwn
,
isModelListener
,
isIntegerKey
,
isSymbol
,
isGloballyWhitelisted
,
isSpecialBooleanAttr
,
includeBooleanAttr
}
from
'
@vue/shared
'
;
import
{
extend
,
isObject
,
toRawType
,
def
,
hasChanged
,
isArray
,
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
NOOP
,
remove
,
EMPTY_OBJ
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
toNumber
,
hyphenate
,
invokeArrayFns
,
looseIndexOf
,
isSet
,
looseEqual
,
isHTMLTag
,
isSVGTag
,
isMap
,
isPlainObject
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
hasOwn
,
isModelListener
,
isIntegerKey
,
isSymbol
,
isGloballyWhitelisted
,
isSpecialBooleanAttr
,
includeBooleanAttr
}
from
'
@vue/shared
'
;
export
{
camelize
,
capitalize
,
normalizeClass
,
normalizeProps
,
normalizeStyle
,
toDisplayString
,
toHandlerKey
}
from
'
@vue/shared
'
;
function
warn
(
msg
,
...
args
)
{
...
...
packages/uni-app-vue/dist/vue.runtime.esm.dev.js
浏览文件 @
2578630e
import
{
isRootHook
,
isRootImmediateHook
,
ON_LOAD
,
UniInputElement
,
UniTextAreaElement
,
UniElement
,
UniTextNode
,
UniCommentNode
,
forcePatchProp
,
resolveOwnerEl
,
ATTR_V_OWNER_ID
,
ATTR_V_RENDERJS
,
JSON_PROTOCOL
}
from
'
@dcloudio/uni-shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
extend
,
EMPTY_OBJ
,
isArray
,
NOOP
,
remove
,
isObject
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
hasChanged
,
toNumber
,
invokeArrayFns
,
hyphenate
,
isHTMLTag
,
isSVGTag
,
isSet
,
isMap
,
isPlainObject
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
isModelListener
,
hasOwn
,
def
,
toRawType
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
getGlobalThis
,
extend
,
isArray
,
NOOP
,
remove
,
EMPTY_OBJ
,
isObject
,
toHandlerKey
,
camelize
,
capitalize
,
EMPTY_ARR
,
normalizeClass
,
normalizeStyle
,
isOn
,
NO
,
hasChanged
,
toNumber
,
invokeArrayFns
,
hyphenate
,
isHTMLTag
,
isSVGTag
,
isSet
,
isMap
,
isPlainObject
,
isBuiltInDirective
,
isReservedProp
,
makeMap
,
isModelListener
,
hasOwn
,
def
,
toRawType
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
export
{
camelize
,
capitalize
,
normalizeClass
,
normalizeProps
,
normalizeStyle
,
toDisplayString
,
toHandlerKey
}
from
'
@vue/shared
'
;
import
{
pauseTracking
,
resetTracking
,
isRef
,
toRaw
,
isShallow
as
isShallow$1
,
isReactive
,
ReactiveEffect
,
ref
,
isProxy
,
proxyRefs
,
markRaw
,
computed
as
computed$1
,
shallowReadonly
,
EffectScope
,
track
,
isReadonly
,
reactive
,
shallowReactive
,
trigger
}
from
'
@vue/reactivity
'
;
export
{
EffectScope
,
ReactiveEffect
,
customRef
,
effect
,
effectScope
,
getCurrentScope
,
isProxy
,
isReactive
,
isReadonly
,
isRef
,
isShallow
,
markRaw
,
onScopeDispose
,
proxyRefs
,
reactive
,
readonly
,
ref
,
shallowReactive
,
shallowReadonly
,
shallowRef
,
stop
,
toRaw
,
toRef
,
toRefs
,
triggerRef
,
unref
}
from
'
@vue/reactivity
'
;
...
...
packages/uni-app-vue/dist/vue.runtime.esm.prod.js
浏览文件 @
2578630e
import
{
isRootHook
,
isRootImmediateHook
,
ON_LOAD
,
UniInputElement
,
UniTextAreaElement
,
UniElement
,
UniTextNode
,
UniCommentNode
,
forcePatchProp
,
resolveOwnerEl
,
ATTR_V_OWNER_ID
,
ATTR_V_RENDERJS
,
JSON_PROTOCOL
}
from
'
@dcloudio/uni-shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
EMPTY_OBJ
,
isArray
,
NOOP
,
remove
,
camelize
,
capitalize
,
isObject
,
toHandlerKey
,
getGlobalThis
,
EMPTY_ARR
,
normalizeClass
,
extend
,
normalizeStyle
,
isOn
,
hasChanged
,
toNumber
,
invokeArrayFns
,
hyphenate
,
isSet
,
isMap
,
isPlainObject
,
NO
,
isReservedProp
,
isModelListener
,
hasOwn
,
def
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
import
{
isString
,
isFunction
,
isPromise
,
isArray
,
NOOP
,
remove
,
EMPTY_OBJ
,
camelize
,
capitalize
,
isObject
,
toHandlerKey
,
getGlobalThis
,
EMPTY_ARR
,
normalizeClass
,
extend
,
normalizeStyle
,
isOn
,
hasChanged
,
toNumber
,
invokeArrayFns
,
hyphenate
,
isSet
,
isMap
,
isPlainObject
,
NO
,
isReservedProp
,
isModelListener
,
hasOwn
,
def
,
isGloballyWhitelisted
}
from
'
@vue/shared
'
;
export
{
camelize
,
capitalize
,
normalizeClass
,
normalizeProps
,
normalizeStyle
,
toDisplayString
,
toHandlerKey
}
from
'
@vue/shared
'
;
import
{
pauseTracking
,
resetTracking
,
isRef
,
toRaw
,
isShallow
,
isReactive
,
ReactiveEffect
,
ref
,
isProxy
,
proxyRefs
,
markRaw
,
computed
as
computed$1
,
EffectScope
,
track
,
reactive
,
shallowReactive
,
trigger
}
from
'
@vue/reactivity
'
;
export
{
EffectScope
,
ReactiveEffect
,
customRef
,
effect
,
effectScope
,
getCurrentScope
,
isProxy
,
isReactive
,
isReadonly
,
isRef
,
isShallow
,
markRaw
,
onScopeDispose
,
proxyRefs
,
reactive
,
readonly
,
ref
,
shallowReactive
,
shallowReadonly
,
shallowRef
,
stop
,
toRaw
,
toRef
,
toRefs
,
triggerRef
,
unref
}
from
'
@vue/reactivity
'
;
...
...
packages/uni-mp-compiler/src/transforms/transformClass.ts
浏览文件 @
2578630e
...
...
@@ -20,6 +20,7 @@ import {
StringLiteral
,
parenthesizedExpression
,
binaryExpression
,
isPrivateName
,
}
from
'
@babel/types
'
import
{
DirectiveNode
,
...
...
@@ -230,7 +231,7 @@ function createClassBindingByObjectExpression(expr: ObjectExpression) {
expr
.
properties
.
forEach
((
prop
)
=>
{
if
(
isObjectProperty
(
prop
))
{
const
{
value
}
=
prop
if
(
isUndefined
(
value
as
Expression
))
{
if
(
isUndefined
(
value
as
Expression
)
||
isPrivateName
(
prop
.
key
)
)
{
// remove {a:undefined}
return
}
...
...
packages/uni-mp-compiler/src/transforms/transformStyle.ts
浏览文件 @
2578630e
...
...
@@ -12,6 +12,7 @@ import {
isObjectProperty
,
binaryExpression
,
isIdentifier
,
isPrivateName
,
}
from
'
@babel/types
'
import
{
DirectiveNode
,
...
...
@@ -147,29 +148,31 @@ function rewriteStyleObjectExpression(
}
}
else
if
(
isObjectProperty
(
prop
))
{
const
{
key
,
value
,
computed
}
=
prop
if
(
computed
)
{
// {[handle(computedKey)]:1} => {[a]:1}
const
newExpr
=
rewirteWithHelper
(
HYPHENATE
,
key
,
loc
,
context
)
if
(
newExpr
)
{
prop
.
key
=
newExpr
if
(
!
isPrivateName
(
key
))
{
if
(
computed
)
{
// {[handle(computedKey)]:1} => {[a]:1}
const
newExpr
=
rewirteWithHelper
(
HYPHENATE
,
key
,
loc
,
context
)
if
(
newExpr
)
{
prop
.
key
=
newExpr
}
}
else
{
// {fontSize:'15px'} => {'font-size':'15px'}
prop
.
key
=
parseStringLiteral
(
key
)
prop
.
key
.
value
=
hyphenate
(
prop
.
key
.
value
)
+
'
:
'
}
}
else
{
// {fontSize:'15px'} => {'font-size':'15px'}
prop
.
key
=
parseStringLiteral
(
prop
.
key
)
prop
.
key
.
value
=
hyphenate
(
prop
.
key
.
value
)
+
'
:
'
}
// {fontSize:`${fontSize}px`} => {'font-size':a}
if
(
isStaticLiteral
(
value
))
{
return
}
else
{
const
newExpr
=
parseExprWithRewrite
(
genBabelExpr
(
value
as
Expression
),
loc
,
context
,
value
as
Expression
)
if
(
newExpr
)
{
prop
.
value
=
newExpr
// {fontSize:`${fontSize}px`} => {'font-size':a}
if
(
isStaticLiteral
(
value
))
{
return
}
else
{
const
newExpr
=
parseExprWithRewrite
(
genBabelExpr
(
value
as
Expression
),
loc
,
context
,
value
as
Expression
)
if
(
newExpr
)
{
prop
.
value
=
newExpr
}
}
}
}
...
...
@@ -216,13 +219,15 @@ function createStyleBindingByObjectExpression(expr: ObjectExpression) {
concat
(
prop
.
argument
)
}
else
if
(
isObjectProperty
(
prop
))
{
const
{
key
,
value
}
=
prop
const
expr
=
createBinaryExpression
(
isStringLiteral
(
key
)
?
key
// 之前已经补充了:
:
createBinaryExpression
(
key
,
stringLiteral
(
'
:
'
)),
value
as
Expression
)
concat
(
expr
)
if
(
!
isPrivateName
(
key
))
{
const
expr
=
createBinaryExpression
(
isStringLiteral
(
key
)
?
key
// 之前已经补充了:
:
createBinaryExpression
(
key
,
stringLiteral
(
'
:
'
)),
value
as
Expression
)
concat
(
expr
)
}
}
})
return
result
...
...
packages/vite-plugin-uni/package.json
浏览文件 @
2578630e
...
...
@@ -53,11 +53,11 @@
"@types/sass"
:
"^1.16.0"
,
"@vue/babel-plugin-jsx"
:
"^1.1.1"
,
"chokidar"
:
"^3.5.3"
,
"vite"
:
"2.9.
9
"
,
"vite"
:
"2.9.
12
"
,
"vue"
:
"3.2.37"
},
"peerDependencies"
:
{
"vite"
:
"2.9.
9
"
"vite"
:
"2.9.
12
"
},
"uni-app"
:
{
"compilerVersion"
:
"3.4.17"
...
...
pnpm-lock.yaml
浏览文件 @
2578630e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录