diff --git a/.idea/UniappTool.xml b/.idea/UniappTool.xml index de1b1b9..ae96833 100644 --- a/.idea/UniappTool.xml +++ b/.idea/UniappTool.xml @@ -1,13 +1,14 @@ - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 3c741df..574077a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/package.json b/package.json index 0b3a7f4..55c7d3a 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,9 @@ "@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001", "@uni-helper/uni-app-types": "1.0.0-alpha.4", "@uni-helper/uni-ui-types": "1.0.0-alpha.4", + "@vicons/ionicons5": "^0.12.0", + "@vicons/material": "^0.12.0", + "@vicons/utils": "^0.1.4", "@vue/runtime-core": "^3.4.21", "sass": "^1.79.5", "sass-loader": "10.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0fc720..df6dab2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,6 +99,15 @@ importers: '@uni-helper/uni-ui-types': specifier: 1.0.0-alpha.4 version: 1.0.0-alpha.4(@uni-helper/uni-app-types@1.0.0-alpha.4(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3)))(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3)) + '@vicons/ionicons5': + specifier: ^0.12.0 + version: 0.12.0 + '@vicons/material': + specifier: ^0.12.0 + version: 0.12.0 + '@vicons/utils': + specifier: ^0.1.4 + version: 0.1.4(vue@3.5.12(typescript@5.6.3)) '@vue/runtime-core': specifier: ^3.4.21 version: 3.5.12 @@ -825,6 +834,9 @@ packages: peerDependencies: vite: ^5.2.8 + '@emotion/hash@0.8.0': + resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} + '@esbuild/aix-ppc64@0.20.2': resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} engines: {node: '>=12'} @@ -1494,6 +1506,9 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/node@14.14.45': + resolution: {integrity: sha512-DssMqTV9UnnoxDWu959sDLZzfvqCF0qDNRjaWeYSui9xkFe61kKo4l1TWNTQONpuXEm+gLMRvdlzvNHBamzmEw==} + '@types/node@22.7.5': resolution: {integrity: sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==} @@ -1524,6 +1539,17 @@ packages: typescript: ^5.0.0 vue: ^3.0.0 + '@vicons/ionicons5@0.12.0': + resolution: {integrity: sha512-Iy1EUVRpX0WWxeu1VIReR1zsZLMc4fqpt223czR+Rpnrwu7pt46nbnC2ycO7ItI/uqDLJxnbcMC7FujKs9IfFA==} + + '@vicons/material@0.12.0': + resolution: {integrity: sha512-chv1CYAl8P32P3Ycwgd5+vw/OFNc2mtkKdb1Rw4T5IJmKy6GVDsoUKV3N2l208HATn7CCQphZtuPDdsm7K2kmA==} + + '@vicons/utils@0.1.4': + resolution: {integrity: sha512-OHI19qVNN6i+uPQ+Y3f2s0dUxwsYnOCcKBW7XOU4yXXO1aU3ZoKpblCc3+4N0qmgoJs5rWKRAaMisipqEXJwAg==} + peerDependencies: + vue: ^3.0.6 + '@vitejs/plugin-legacy@5.3.2': resolution: {integrity: sha512-8moCOrIMaZ/Rjln0Q6GsH6s8fAt1JOI3k8nmfX4tXUxE5KAExVctSyOBk+A25GClsdSWqIk2yaUthH3KJ2X4tg==} engines: {node: ^18.0.0 || >=20.0.0} @@ -1662,6 +1688,9 @@ packages: '@webassemblyjs/wast-printer@1.12.1': resolution: {integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==} + '@xicons/utils@0.1.4': + resolution: {integrity: sha512-uXxKDLz9abr80yJC05XSTq6wlyFcdW+N/1IYJkeHjzzXVc4VQ0sEYMoMMTjAH7HQBOyOkzOB4pf5NGF72lwa8Q==} + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -2039,6 +2068,9 @@ packages: css-list-helpers@2.0.0: resolution: {integrity: sha512-9Bj8tZ0jWbAM3u/U6m/boAzAwLPwtjzFvwivr2piSvyVa3K3rChJzQy4RIHkNkKiZCHrEMWDJWtTR8UyVhdDnQ==} + css-render@0.13.9: + resolution: {integrity: sha512-n3C4ZH59rveBrUlAD7n0Ze9/gUMKa4dlH1C9CWKpGcIHR/xRcIVXzBGy1iw8WWq2ySmn2/ZqOpySQNAK5Pb6sw==} + css-system-font-keywords@1.0.0: resolution: {integrity: sha512-1umTtVd/fXS25ftfjB71eASCrYhilmEsvDEI6wG/QplnmlfmVM5HkZ/ZX46DT5K3eblFPgLUHt5BRCb0YXkSFA==} @@ -2057,6 +2089,9 @@ packages: resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} engines: {node: '>=8'} + csstype@3.0.11: + resolution: {integrity: sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==} + csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} @@ -5353,6 +5388,8 @@ snapshots: - vue - webpack-sources + '@emotion/hash@0.8.0': {} + '@esbuild/aix-ppc64@0.20.2': optional: true @@ -6153,6 +6190,8 @@ snapshots: '@types/json-schema@7.0.15': {} + '@types/node@14.14.45': {} + '@types/node@22.7.5': dependencies: undici-types: 6.19.8 @@ -6178,6 +6217,15 @@ snapshots: typescript: 5.6.3 vue: 3.5.12(typescript@5.6.3) + '@vicons/ionicons5@0.12.0': {} + + '@vicons/material@0.12.0': {} + + '@vicons/utils@0.1.4(vue@3.5.12(typescript@5.6.3))': + dependencies: + '@xicons/utils': 0.1.4 + vue: 3.5.12(typescript@5.6.3) + '@vitejs/plugin-legacy@5.3.2(terser@5.34.1)(vite@5.2.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))': dependencies: '@babel/core': 7.25.8 @@ -6410,6 +6458,10 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 + '@xicons/utils@0.1.4': + dependencies: + css-render: 0.13.9 + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -6814,6 +6866,12 @@ snapshots: css-list-helpers@2.0.0: {} + css-render@0.13.9: + dependencies: + '@emotion/hash': 0.8.0 + '@types/node': 14.14.45 + csstype: 3.0.11 + css-system-font-keywords@1.0.0: {} cssesc@3.0.0: {} @@ -6826,6 +6884,8 @@ snapshots: dependencies: cssom: 0.3.8 + csstype@3.0.11: {} + csstype@3.1.3: {} data-urls@2.0.0: diff --git a/src/App.vue b/src/App.vue index 4e1a63a..9adbabf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,7 +12,9 @@ export default { } - diff --git a/src/pages/test-page/test-page.vue b/src/pages/test-page/test-page.vue index 936b55e..9c46eef 100644 --- a/src/pages/test-page/test-page.vue +++ b/src/pages/test-page/test-page.vue @@ -41,6 +41,22 @@ + + + + + + + + + + + + + + + + @@ -56,6 +72,13 @@ const ctx = reactive({ } }) +function vibrateShortHandler() { + uni.vibrateShort({}) +} + +function vibrateLongHandler() { + uni.vibrateLong({}) +} function mockRequest(){ uni.request({ diff --git a/src/static/icon/device-select.png b/src/static/icon/device-select.png new file mode 100644 index 0000000..562d6d0 Binary files /dev/null and b/src/static/icon/device-select.png differ diff --git a/src/static/icon/device.png b/src/static/icon/device.png new file mode 100644 index 0000000..5e82477 Binary files /dev/null and b/src/static/icon/device.png differ diff --git a/src/uni.scss b/src/uni.scss index b9249e9..852e09b 100644 --- a/src/uni.scss +++ b/src/uni.scss @@ -11,7 +11,8 @@ * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ - +/* 需要放到文件最上面 */ +@import '@dcloudio/uni-ui/lib/uni-scss/variables.scss'; /* 颜色变量 */ /* 行为相关颜色 */