Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
2cb2bca2
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2cb2bca2
编写于
5月 25, 2024
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(harmony): button
上级
62355b9e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
14 deletion
+20
-14
packages/global.d.ts
packages/global.d.ts
+1
-0
packages/shims-node.d.ts
packages/shims-node.d.ts
+1
-1
packages/uni-app-harmony/build.json
packages/uni-app-harmony/build.json
+6
-6
packages/uni-app-harmony/src/view/framework/dom/components/index.ts
...ni-app-harmony/src/view/framework/dom/components/index.ts
+2
-0
packages/uni-app-harmony/src/view/plus.ts
packages/uni-app-harmony/src/view/plus.ts
+1
-0
packages/uni-app-harmony/vite.config.ts
packages/uni-app-harmony/vite.config.ts
+6
-5
packages/uni-app-plus/vite.config.ts
packages/uni-app-plus/vite.config.ts
+1
-0
packages/uni-components/src/vue/button/index.tsx
packages/uni-components/src/vue/button/index.tsx
+2
-2
未找到文件。
packages/global.d.ts
浏览文件 @
2cb2bca2
...
...
@@ -34,6 +34,7 @@ declare var __DEV__: boolean
declare
var
__TEST__
:
boolean
declare
var
__NODE_JS__
:
boolean
declare
var
__APP_VIEW__
:
boolean
declare
var
__PLUS__
:
boolean
// Feature flags
declare
var
__VUE_OPTIONS_API__
:
boolean
...
...
packages/shims-node.d.ts
浏览文件 @
2cb2bca2
...
...
@@ -7,7 +7,7 @@ declare namespace NodeJS {
NODE_ENV
:
'
production
'
|
'
development
'
|
'
test
'
UNI_NODE_ENV
:
'
production
'
|
'
development
'
|
'
test
'
UNI_PLATFORM
:
UniApp
.
PLATFORM
UNI_APP_PLATFORM
:
'
android
'
|
'
ios
'
UNI_APP_PLATFORM
:
'
android
'
|
'
ios
'
|
'
harmony
'
UNI_SUB_PLATFORM
:
'
quickapp-webview-huawei
'
|
'
quickapp-webview-union
'
UNI_UTS_PLATFORM
:
'
app-android
'
|
'
app-ios
'
|
'
web
'
|
UniApp
.
PLATFORM
...
...
packages/uni-app-harmony/build.json
浏览文件 @
2cb2bca2
...
...
@@ -9,18 +9,18 @@
"replacements"
:
{
"process.env.NODE_ENV"
:
"'production'"
,
"__X__"
:
"false"
,
"__PLATFORM__"
:
"'
harmony
'"
,
"__PLATFORM__"
:
"'
app
'"
,
"__APP_VIEW__"
:
"false"
,
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_PROD_DEVTOOLS__"
:
"false"
,
"__VUE_PROD_HYDRATION_MISMATCH_DETAILS__"
:
"false"
,
"__UNI_FEATURE_WX__"
:
"true"
,
"__UNI_FEATURE_PROMISE__"
:
"false"
,
"__UNI_FEATURE_I18N_EN__"
:
"
tru
e"
,
"__UNI_FEATURE_I18N_ES__"
:
"
tru
e"
,
"__UNI_FEATURE_I18N_FR__"
:
"
tru
e"
,
"__UNI_FEATURE_I18N_ZH_HANS__"
:
"
tru
e"
,
"__UNI_FEATURE_I18N_ZH_HANT__"
:
"
tru
e"
,
"__UNI_FEATURE_I18N_EN__"
:
"
fals
e"
,
"__UNI_FEATURE_I18N_ES__"
:
"
fals
e"
,
"__UNI_FEATURE_I18N_FR__"
:
"
fals
e"
,
"__UNI_FEATURE_I18N_ZH_HANS__"
:
"
fals
e"
,
"__UNI_FEATURE_I18N_ZH_HANT__"
:
"
fals
e"
,
"plus.os.name"
:
"'Harmony'"
,
"plus.os.version"
:
"''"
},
...
...
packages/uni-app-harmony/src/view/framework/dom/components/index.ts
浏览文件 @
2cb2bca2
import
{
UniTextNode
}
from
'
@dcloudio/uni-app-plus/view/framework/dom/elements/UniTextNode
'
import
{
UniComment
}
from
'
@dcloudio/uni-app-plus/view/framework/dom/elements/UniComment
'
import
{
UniViewElement
}
from
'
@dcloudio/uni-app-plus/view/framework/dom/elements/UniViewElement
'
import
{
UniButton
}
from
'
@dcloudio/uni-app-plus/view/framework/dom/components/UniButton
'
export
const
BuiltInComponents
=
{
'
#text
'
:
UniTextNode
,
'
#comment
'
:
UniComment
,
VIEW
:
UniViewElement
,
BUTTON
:
UniButton
,
}
packages/uni-app-harmony/src/view/plus.ts
浏览文件 @
2cb2bca2
...
...
@@ -4,6 +4,7 @@ import { extend } from '@vue/shared'
export
default
{
webview
:
{
currentWebview
()
{
// TODO getStyle
return
extend
({},
nativeChannel
.
invokeSync
(
'
currentWebview
'
))
},
postMessageToUniNView
(
data
:
any
,
id
:
string
)
{
...
...
packages/uni-app-harmony/vite.config.ts
浏览文件 @
2cb2bca2
...
...
@@ -62,14 +62,15 @@ export default defineConfig({
__PLATFORM__
:
JSON
.
stringify
(
'
app
'
),
__NODE_JS__
:
false
,
__APP_VIEW__
:
true
,
__UNI_FEATURE_I18N_EN__
:
tru
e
,
__UNI_FEATURE_I18N_ES__
:
tru
e
,
__UNI_FEATURE_I18N_FR__
:
tru
e
,
__UNI_FEATURE_I18N_ZH_HANS__
:
tru
e
,
__UNI_FEATURE_I18N_ZH_HANT__
:
tru
e
,
__UNI_FEATURE_I18N_EN__
:
fals
e
,
__UNI_FEATURE_I18N_ES__
:
fals
e
,
__UNI_FEATURE_I18N_FR__
:
fals
e
,
__UNI_FEATURE_I18N_ZH_HANS__
:
fals
e
,
__UNI_FEATURE_I18N_ZH_HANT__
:
fals
e
,
__IMPORT_META_ENV_BASE_URL__
:
JSON
.
stringify
(
''
),
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
'
production
'
),
__X__
:
false
,
__PLUS__
:
false
,
'
plus.os.name
'
:
"
'Harmony'
"
,
'
plus.os.version
'
:
"
''
"
,
},
...
...
packages/uni-app-plus/vite.config.ts
浏览文件 @
2cb2bca2
...
...
@@ -70,6 +70,7 @@ export default defineConfig({
__IMPORT_META_ENV_BASE_URL__
:
JSON
.
stringify
(
''
),
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
'
production
'
),
__X__
:
false
,
__PLUS__
:
true
,
},
resolve
:
{
alias
:
[
...
...
packages/uni-components/src/vue/button/index.tsx
浏览文件 @
2cb2bca2
...
...
@@ -30,7 +30,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
false
as
unknown
as
UniFormCtx
)
const
{
hovering
,
binding
}
=
useHover
(
props
)
const
{
t
}
=
useI18n
()
const
{
t
}
=
/*#__PURE__*/
useI18n
()
const
onClick
=
withWebEvent
((
e
:
Event
,
isLabelClick
:
boolean
)
=>
{
if
(
props
.
disabled
)
{
return
e
.
stopImmediatePropagation
()
...
...
@@ -50,7 +50,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
}
return
}
if
(
__PLATFORM__
===
'
app
'
&&
props
.
openType
===
'
feedback
'
)
{
if
(
__PLATFORM__
===
'
app
'
&&
__PLUS__
&&
props
.
openType
===
'
feedback
'
)
{
openFeedback
(
t
(
'
uni.button.feedback.title
'
),
t
(
'
uni.button.feedback.send
'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录