Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
anyefeiyu
uni-app
提交
f175a46f
U
uni-app
项目概览
anyefeiyu
/
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,发现更多精彩内容 >>
提交
f175a46f
编写于
11月 26, 2021
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
e614e770
变更
14
展开全部
隐藏空白更改
内联
并排
Showing
14 changed file
with
350 addition
and
29 deletion
+350
-29
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+45
-8
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+12
-8
packages/uni-app-plus/dist/view.umd.min.js
packages/uni-app-plus/dist/view.umd.min.js
+2
-2
packages/uni-h5/dist/index.umd.min.js
packages/uni-h5/dist/index.umd.min.js
+1
-1
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+36
-1
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+36
-1
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+36
-1
packages/uni-mp-lark/dist/index.js
packages/uni-mp-lark/dist/index.js
+36
-1
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+36
-1
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+36
-1
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+36
-1
packages/uni-quickapp-native/dist/vue.dev.js
packages/uni-quickapp-native/dist/vue.dev.js
+1
-1
packages/uni-quickapp-native/dist/vue.prod.js
packages/uni-quickapp-native/dist/vue.prod.js
+1
-1
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+36
-1
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1480,13 +1480,17 @@ var zhHant = {
"
uni.chooseLocation.cancel
"
:
"
取消
"
};
const
messages
=
{
en
,
es
,
fr
,
'
zh-Hans
'
:
zhHans
,
'
zh-Hant
'
:
zhHant
};
const
messages
=
{};
{
Object
.
assign
(
messages
,
{
en
,
es
,
fr
,
'
zh-Hans
'
:
zhHans
,
'
zh-Hant
'
:
zhHant
});
}
let
locale
;
...
...
@@ -1498,6 +1502,26 @@ let locale;
}
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
messages
...
...
@@ -1538,7 +1562,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
class
EventChannel
{
constructor
(
id
,
events
)
{
...
...
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
f175a46f
...
...
@@ -1702,13 +1702,17 @@ var serviceContext = (function () {
"uni.chooseLocation.cancel": "取消"
};
const messages = {
en,
es,
fr,
'zh-Hans': zhHans,
'zh-Hant': zhHant
};
const messages = {};
{
Object.assign(messages, {
en,
es,
fr,
'zh-Hans': zhHans,
'zh-Hant': zhHant
});
}
let locale;
...
...
@@ -5802,7 +5806,7 @@ var serviceContext = (function () {
animationDuration: 200,
uniNView: {
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize:
plus_.screen.resolutionWidth / 20
,
defaultFontSize:
16
,
viewport: plus_.screen.resolutionWidth
}
};
...
...
packages/uni-app-plus/dist/view.umd.min.js
浏览文件 @
f175a46f
此差异已折叠。
点击以展开。
packages/uni-h5/dist/index.umd.min.js
浏览文件 @
f175a46f
此差异已折叠。
点击以展开。
packages/uni-mp-alipay/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -2051,12 +2051,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
my
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -2097,7 +2119,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1729,12 +1729,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
swan
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1775,7 +1797,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-kuaishou/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1478,12 +1478,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
ks
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1524,7 +1546,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-lark/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1528,12 +1528,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
tt
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1574,7 +1596,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1639,12 +1639,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
wx
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1685,7 +1707,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1735,12 +1735,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
tt
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1781,7 +1803,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1370,12 +1370,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
wx
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1416,7 +1438,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
eventChannels
=
{};
...
...
packages/uni-quickapp-native/dist/vue.dev.js
浏览文件 @
f175a46f
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
f175a46f
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
f175a46f
...
...
@@ -1445,12 +1445,34 @@ function handleEvent (event) {
}
}
const
messages
=
{};
let
locale
;
{
locale
=
qa
.
getSystemInfoSync
().
language
;
}
function
initI18nMessages
()
{
if
(
!
isEnableLocale
())
{
return
}
const
localeKeys
=
Object
.
keys
(
__uniConfig
.
locales
);
if
(
localeKeys
.
length
)
{
localeKeys
.
forEach
((
locale
)
=>
{
const
curMessages
=
messages
[
locale
];
const
userMessages
=
__uniConfig
.
locales
[
locale
];
if
(
curMessages
)
{
Object
.
assign
(
curMessages
,
userMessages
);
}
else
{
messages
[
locale
]
=
userMessages
;
}
});
}
}
initI18nMessages
();
const
i18n
=
initVueI18n
(
locale
,
{}
...
...
@@ -1491,7 +1513,20 @@ function initAppLocale (Vue, appVm, locale) {
localeWatchers
.
forEach
(
watch
=>
watch
(
v
));
}
});
}
}
function
isEnableLocale
()
{
return
typeof
__uniConfig
!==
'
undefined
'
&&
__uniConfig
.
locales
&&
!!
Object
.
keys
(
__uniConfig
.
locales
).
length
}
// export function initI18n() {
// const localeKeys = Object.keys(__uniConfig.locales || {})
// if (localeKeys.length) {
// localeKeys.forEach((locale) =>
// i18n.add(locale, __uniConfig.locales[locale])
// )
// }
// }
const
hooks
=
[
'
onShow
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录