diff --git a/common/uni.css b/common/uni.css
index 6a8221132b534dc2d8c584fd72e2299e744a512a..cc196f2c516783147c43150bc83124d5fa82c731 100644
--- a/common/uni.css
+++ b/common/uni.css
@@ -83,7 +83,7 @@
.uni-input {
height: 50rpx;
padding: 15rpx 25rpx;
- line-height: 50rpx;
+ /* line-height: 50rpx; */
font-size: 28rpx;
background: #FFF;
flex: 1;
diff --git a/components/enum-data/enum-data.vue b/components/enum-data/enum-data.vue
index 85b1f50ad69c4070f34a16e7e1f15c227d34e806..61243fe4ec55da34ff1303ef87d991ad496f539e 100644
--- a/components/enum-data/enum-data.vue
+++ b/components/enum-data/enum-data.vue
@@ -1,4 +1,6 @@
\ No newline at end of file
diff --git a/components/u-link/u-link.vue b/components/u-link/u-link.vue
index 247030dc899e73ccfc86b7dfaa6322fe39886de0..045ded60ba0c454c3a49e80314e33003173eafc8 100644
--- a/components/u-link/u-link.vue
+++ b/components/u-link/u-link.vue
@@ -4,7 +4,7 @@
-
+
+
diff --git a/components/uni-navbar-lite/uni-navbar-lite.vue b/components/uni-navbar-lite/uni-navbar-lite.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5efd192fa33fe8ff82e9e66fb13827a593ff9211
--- /dev/null
+++ b/components/uni-navbar-lite/uni-navbar-lite.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/uni-navbar-lite/uniicons.ttf b/components/uni-navbar-lite/uniicons.ttf
new file mode 100644
index 0000000000000000000000000000000000000000..e370efe839a69693e9ee79483f7bbca34f49dcfd
Binary files /dev/null and b/components/uni-navbar-lite/uniicons.ttf differ
diff --git a/hello-uniapp-x.apk b/hello-uniapp-x.apk
index 34d4669de39cc3e77920ad46e63757b15a47bd4c..aef6105e1b7396f9cfb32182e8418b8fe113845c 100644
Binary files a/hello-uniapp-x.apk and b/hello-uniapp-x.apk differ
diff --git a/jest-setup.js b/jest-setup.js
index 8ddb4e3dcc2ab8cec2a57e4b4696418e07e6ea10..0864a9dead1eb066c6899d7df57909b744e534f6 100644
--- a/jest-setup.js
+++ b/jest-setup.js
@@ -6,13 +6,14 @@ const {
const hbuilderx_version = process.env.HX_Version
const uniTestPlatformInfo = process.env.uniTestPlatformInfo ? process.env.uniTestPlatformInfo.replace(/\s/g,'_') : ''
const folderName = `__image_snapshots__/${hbuilderx_version}/__${uniTestPlatformInfo}__`
+const baseFolderName = `__image_snapshots__/base`
expect.extend({
toMatchImageSnapshot: configureToMatchImageSnapshot({
customSnapshotIdentifier(args) {
return args.currentTestName.replace(/\//g, '-').replace(' ', '-');
},
- customSnapshotsDir: path.join(__dirname, folderName),
+ customSnapshotsDir: path.join(__dirname, baseFolderName),
customDiffDir: path.join(__dirname, `${folderName}/`, 'diff'),
}),
});
\ No newline at end of file
diff --git a/jest.config.js b/jest.config.js
index f3dd67c9d447ee3bd768582a2f7e79c1c68b5f9a..1ce69aa8cf578672d1fc77048cc5e05eed9e6e29 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,10 +1,10 @@
module.exports = {
- testTimeout: 10000,
+ testTimeout: 30000,
reporters: ['default'],
watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
moduleFileExtensions: ['js', 'json'],
rootDir: __dirname,
- testMatch: ["/pages/**/*test.[jt]s?(x)"],
+ testMatch: ["/pages/API/storage/storage.test.js"],
testPathIgnorePatterns: ['/node_modules/'],
setupFilesAfterEnv: ['/jest-setup.js'],
}
diff --git a/manifest.json b/manifest.json
index e309c620b13199348ba00591d8443559b7223beb..5644e684dc448688844ffce447f98ee01fc7bc00 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "hello-uniapp x",
"appid" : "__UNI__3584C99",
"description" : "",
- "versionName" : "1.0.5",
- "versionCode" : 105,
+ "versionName" : "1.0.10",
+ "versionCode" : 10010,
"uni-app-x" : {},
/* 快应用特有相关 */
"quickapp" : {},
@@ -27,5 +27,10 @@
"uniStatistics" : {
"enable" : false
},
+ "app": {
+ "duts": [
+ "uni-facialRecognitionVerify"
+ ]
+ },
"vueVersion" : "3"
}
diff --git a/pages.json b/pages.json
index 910a1da3516257a79ba57a51def55acb8d0f5544..4a17638b235d867452a0cbac19d49722a5966551 100644
--- a/pages.json
+++ b/pages.json
@@ -243,6 +243,13 @@
"navigationBarTitleText": "设置导航条颜色"
}
},
+ {
+ "path": "pages/API/set-navigation-bar-color/set-custom-navigation-bar-color",
+ "style": {
+ "navigationBarTitleText": "设置自定义导航栏颜色",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/API/navigator/new-page/new-page-1",
"style": {
@@ -263,6 +270,12 @@
"enablePullDownRefresh": true
}
},
+ {
+ "path": "pages/API/get-element-by-id/get-element-by-id",
+ "style": {
+ "navigationBarTitleText": "获取节点"
+ }
+ },
{
"path": "pages/API/nodes-info/nodes-info",
"style": {
@@ -288,7 +301,7 @@
}
},
{
- "path": "pages/API/show-loading/show-loading",
+ "path": "pages/API/loading/loading",
"style": {
"navigationBarTitleText": "加载提示框"
}
@@ -336,24 +349,48 @@
"navigationBarTitleText": "background-image"
}
},
+ {
+ "path": "pages/CSS/border/border-bottom",
+ "style": {
+ "navigationBarTitleText": "border-bottom"
+ }
+ },
{
"path": "pages/CSS/border/border-color",
"style": {
"navigationBarTitleText": "border-color"
}
},
+ {
+ "path": "pages/CSS/border/border-left",
+ "style": {
+ "navigationBarTitleText": "border-left"
+ }
+ },
{
"path": "pages/CSS/border/border-radius",
"style": {
"navigationBarTitleText": "border-radius"
}
},
+ {
+ "path": "pages/CSS/border/border-right",
+ "style": {
+ "navigationBarTitleText": "border-right"
+ }
+ },
{
"path": "pages/CSS/border/border-style",
"style": {
"navigationBarTitleText": "border-style"
}
},
+ {
+ "path": "pages/CSS/border/border-top",
+ "style": {
+ "navigationBarTitleText": "border-top"
+ }
+ },
{
"path": "pages/CSS/border/border-width",
"style": {
@@ -479,12 +516,12 @@
"style": {
"navigationBarTitleText": "width"
}
- },
- {
- "path": "pages/CSS/layout/z-index",
- "style": {
- "navigationBarTitleText": "z-index"
- }
+ },
+ {
+ "path": "pages/CSS/layout/z-index",
+ "style": {
+ "navigationBarTitleText": "z-index"
+ }
},
{
"path": "pages/CSS/layout/visibility",
@@ -667,7 +704,13 @@
}
},
{
- "path": "pages/API/call-function/call-function",
+ "path": "pages/API/unicloud-call-function/unicloud-call-function",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/API/unicloud-import-object/unicloud-import-object",
"style": {
"navigationBarTitleText": ""
}
@@ -709,11 +752,17 @@
}
},
{
- "path": "pages/API/save-image-to-album/save-image-to-album",
+ "path": "pages/API/save-image-to-photos-album/save-image-to-photos-album",
"style": {
"navigationBarTitleText": "保存图片到相册"
}
},
+ {
+ "path": "pages/API/choose-image/choose-image",
+ "style": {
+ "navigationBarTitleText": "图片"
+ }
+ },
{
"path": "pages/component/scroll-view/scroll-view-refresher",
"style": {
@@ -762,18 +811,6 @@
"navigationBarTitleText": "模板"
}
},
- {
- "path": "pages/component/long-list/long-list",
- "style": {
- "navigationBarTitleText": "长列表示例"
- }
- },
- {
- "path": "pages/component/long-list/detail/detail",
- "style": {
- "navigationBarTitleText": "详情示例"
- }
- },
{
"path": "pages/template/swiper-list/swiper-list",
"style": {
@@ -875,9 +912,40 @@
{
"path": "pages/template/pull-zoom-image/pull-zoom-image",
"style": {
- "enablePullDownRefresh": false,
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/API/unicloud-file-api/unicloud-file-api",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/API/unicloud-database/unicloud-database",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/template/navbar-lite/navbar-lite",
+ "style": {
+ "navigationBarTitleText": "自定义导航栏",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/template/custom-tab-bar/custom-tab-bar",
+ "style": {
+ "navigationBarTitleText": "自定义TabBar"
+ }
+ }, {
+ "path": "pages/API/facial-recognition-verify/facial-recognition-verify",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
}
],
"globalStyle": {
@@ -929,4 +997,4 @@
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
-}
+}
\ No newline at end of file
diff --git a/pages/API/action-sheet/action-sheet.uvue b/pages/API/action-sheet/action-sheet.uvue
index 60e8adc88ee0c1e617c488d0ca8878c0b13ce17d..a16c30bde2a2acf73ca8ec9585402a9a5937500b 100644
--- a/pages/API/action-sheet/action-sheet.uvue
+++ b/pages/API/action-sheet/action-sheet.uvue
@@ -82,9 +82,11 @@
if (this.itemContentLarge) {
itemInfo = ['两个黄鹂鸣翠柳,一行白鹭上青天。窗含西岭千秋雪,门泊东吴万里船', '水光潋滟晴方好,山色空蒙雨亦奇。 欲把西湖比西子,淡妆浓抹总相宜', '']
- } else if (this.itemNumLargeSelect) {
+ }
+
+ if (this.itemNumLargeSelect) {
// 大量选项测试,不能超过6个元素 https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
- itemInfo = []
+ itemInfo = []
for (var i = 1; i <= 10; i++) {
itemInfo.push('两个黄鹂鸣翠柳,一行白鹭上青天');
}
diff --git a/pages/API/choose-image/choose-image.uvue b/pages/API/choose-image/choose-image.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..87806047bdd028a94e9cba64f02646312d4103b5
--- /dev/null
+++ b/pages/API/choose-image/choose-image.uvue
@@ -0,0 +1,292 @@
+
+
+
+
+
+
+
+
+
+
+ 图片来源
+
+
+ {{sourceType[sourceTypeIndex]}}
+
+
+
+
+
+ 图片质量
+
+
+ {{sizeType[sizeTypeIndex]}}
+
+
+
+
+
+ 数量限制
+
+
+
+
+
+
+
+ 图像裁剪
+
+
+
+
+
+
+
+
+ 图片质量(%)
+
+
+
+
+
+
+
+ 裁剪宽度(px)
+
+
+
+
+
+
+
+ 裁剪高度(px)
+
+
+
+
+
+
+
+ 保留原宽高
+
+
+
+
+
+
+
+
+
+
+ 点击可预览选好的图片
+
+ {{imageList.length}}/{{countIndex+1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/API/download-file/download-file.test.js b/pages/API/download-file/download-file.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..9b41ee42097f2cf6240fd095bc47f1dafe551f33
--- /dev/null
+++ b/pages/API/download-file/download-file.test.js
@@ -0,0 +1,18 @@
+const PAGE_PATH = '/pages/API/download-file/download-file'
+
+describe('ExtApi-DownloadFile', () => {
+
+ let page;
+ let res;
+ beforeAll(async () => {
+ page = await program.reLaunch(PAGE_PATH)
+ await page.waitFor(600);
+ await page.callMethod('jest_downloadFile');
+ await page.waitFor(500);
+ res = await page.data('jest_result');
+ });
+
+ it('Check ', async () => {
+ expect(res).toBe(true);
+ });
+});
diff --git a/pages/API/download-file/download-file.uvue b/pages/API/download-file/download-file.uvue
index e028784e245e9c2c4851fc9584eb22e5a4073f31..0b00386498952ed858f520c7b577357a0293853e 100644
--- a/pages/API/download-file/download-file.uvue
+++ b/pages/API/download-file/download-file.uvue
@@ -21,14 +21,15 @@
diff --git a/pages/API/facial-recognition-verify/facial-recognition-verify.uvue b/pages/API/facial-recognition-verify/facial-recognition-verify.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..b1bbd655554c33e5192407670306d094fa4173bb
--- /dev/null
+++ b/pages/API/facial-recognition-verify/facial-recognition-verify.uvue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js b/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..f182c9431135bc9321d0c6fbb2e1fae50245ead6
--- /dev/null
+++ b/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js
@@ -0,0 +1,34 @@
+const PAGE_PATH = '/pages/API/get-app-authorize-setting/get-app-authorize-setting'
+
+describe('ExtApi-GetAppAuthorizeSetting', () => {
+
+ let page;
+ let res;
+ let commonSupportList = [
+ 'authorized', 'denied', 'not determined', 'config error'
+ ]
+ let locationAccuracySupportList = [
+ 'reduced', 'full', 'unsupported'
+ ]
+ beforeAll(async () => {
+ page = await program.reLaunch(PAGE_PATH)
+ await page.waitFor(600);
+ res = await uni.getAppAuthorizeSetting();
+ });
+ it('Check cameraAuthorized', async () => {
+ expect(commonSupportList).toContain(res.cameraAuthorized)
+ });
+
+ it('Check locationAuthorized', async () => {
+ expect(commonSupportList).toContain(res.locationAuthorized)
+ });
+ it('Check locationAccuracy', async () => {
+ expect(locationAccuracySupportList).toContain(res.locationAccuracy)
+ });
+ it('Check microphoneAuthorized', async () => {
+ expect(commonSupportList).toContain(res.microphoneAuthorized)
+ });
+ it('Check notificationAuthorized', async () => {
+ expect(commonSupportList).toContain(res.notificationAuthorized)
+ });
+});
diff --git a/pages/API/get-app-base-info/get-app-base-info.test.js b/pages/API/get-app-base-info/get-app-base-info.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..4c61b7bfafed7d025d8eae7c882c4c567bb34d49
--- /dev/null
+++ b/pages/API/get-app-base-info/get-app-base-info.test.js
@@ -0,0 +1,33 @@
+const PAGE_PATH = '/pages/API/get-app-base-info/get-app-base-info'
+
+describe('ExtApi-GetAppBaseInfo', () => {
+
+ let page;
+ let res;
+ const stringProperties = [
+ 'appId', 'appName', 'appVersion', 'appVersionCode', 'appLanguage',
+ 'language', 'version', 'uniCompileVersion', 'uniPlatform', 'uniRuntimeVersion',
+ ]
+ const numberProperties = [
+ 'uniCompileVersionCode', 'uniRuntimeVersionCode'
+ ]
+ beforeAll(async () => {
+ page = await program.reLaunch(PAGE_PATH)
+ await page.waitFor(600);
+ res = await uni.getAppBaseInfo();
+ });
+ it('Check properties', async () => {
+ for (const key in res) {
+ const value = res[key];
+ console.log("key :",key , "value :", value);
+ if (stringProperties.indexOf(key) != -1) {
+ expect(value).not.toBeNull();
+ expect(value).not.toBe("");
+ }
+ if (numberProperties.indexOf(key) != -1) {
+ expect(value).not.toBeNull();
+ expect(value).toBeGreaterThanOrEqual(3.90);
+ }
+ }
+ });
+});
diff --git a/pages/API/get-app-base-info/get-app-base-info.uvue b/pages/API/get-app-base-info/get-app-base-info.uvue
index 4d603059b50b0226157bc3fa2a3a6b93997f9da7..43b159394ebd30e0c4f550368921cf7a8f427f95 100644
--- a/pages/API/get-app-base-info/get-app-base-info.uvue
+++ b/pages/API/get-app-base-info/get-app-base-info.uvue
@@ -37,17 +37,17 @@
methods: {
getAppBaseInfo: function () {
const res = uni.getAppBaseInfo();
- //类型对象暂时不支持forin或Object.keys(), 临时通过字符串进行转化。
- const json = JSON.stringify(res);
- const result = JSON.parse