change name

This commit is contained in:
xsl
2026-03-11 18:15:04 +08:00
parent cdb7cf68fd
commit bbda7591eb
16 changed files with 19 additions and 19 deletions
@@ -1,8 +1,8 @@
{
"id": "XF-cameraUTS",
"id": "My-cameraUTS",
"displayName": "UTS实现自定义相机拍照和录像功能",
"version": "1.1.1",
"description": "XF-cameraUTS封装了Android和iOS自定义相机预览的功能。",
"description": "MY-cameraUTS封装了Android和iOS自定义相机预览的功能。",
"keywords": [
"相机",
"录像",
@@ -1,12 +1,12 @@
# **概述**
XF-cameraUTS封装了Android和iOS自定义相机预览的功能。
MY-cameraUTS封装了Android和iOS自定义相机预览的功能。
## **模块调用**
```js
<xf-camera style="height:750rpx; background-color: red;" @ready="ready" @error="onError" @stop="stop" :flash="flash" :position="device">
</xf-camera>
<my-camera style="height:750rpx; background-color: red;" @ready="ready" @error="onError" @stop="stop" :flash="flash" :position="device">
</my-camera>
```
## 参数说明:
@@ -33,7 +33,7 @@ flash
## uni-app项目中(nvue)调用示例:
```js
import { takePhoto } from "@/uni_modules/XF-cameraUTS"
import { takePhoto } from "@/uni_modules/MY-cameraUTS"
takePhoto({
success: (res) => {
@@ -45,8 +45,8 @@ takePhoto({
## uni-app x项目(uvue)中调用示例:
```js
import { takePhoto } from "@/uni_modules/XF-cameraUTS";
import { TakePhotoOption, TakePhotoSuccessCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
import { takePhoto } from "@/uni_modules/MY-cameraUTS";
import { TakePhotoOption, TakePhotoSuccessCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
let options = {
success: (res : TakePhotoSuccessCallbackResult) => {
@@ -72,7 +72,7 @@ iOS、Android系统
## uni-app项目中(nvue)调用示例:
```js
import { startRecord } from "@/uni_modules/XF-cameraUTS"
import { startRecord } from "@/uni_modules/MY-cameraUTS"
startRecord({
success: (res) => {
@@ -84,8 +84,8 @@ startRecord({
## uni-app x项目(uvue)中调用示例:
```js
import { startRecord } from "@/uni_modules/XF-cameraUTS";
import { CameraContextStartRecordOption, GeneralCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
import { startRecord } from "@/uni_modules/MY-cameraUTS";
import { CameraContextStartRecordOption, GeneralCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
let options = {
success: (res : GeneralCallbackResult) => {
@@ -112,7 +112,7 @@ iOS、Android系统
## uni-app项目中(nvue)调用示例:
```js
import { stopRecord } from "@/uni_modules/XF-cameraUTS"
import { stopRecord } from "@/uni_modules/MY-cameraUTS"
stopRecord({
success: (res) => {
@@ -124,8 +124,8 @@ stopRecord({
## uni-app x项目(uvue)中调用示例:
```js
import { stopRecord } from "@/uni_modules/XF-cameraUTS";
import { CameraContextStopRecordOption, StopRecordSuccessCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
import { stopRecord } from "@/uni_modules/MY-cameraUTS";
import { CameraContextStopRecordOption, StopRecordSuccessCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
let options = {
success: (res : StopRecordSuccessCallbackResult) => {
@@ -151,7 +151,7 @@ iOS、Android系统
## uni-app项目中(nvue)调用示例:
```js
import { switchCamera } from "@/uni_modules/XF-cameraUTS"
import { switchCamera } from "@/uni_modules/MY-cameraUTS"
switchCamera({
position: 'back',
@@ -164,8 +164,8 @@ switchCamera({
## uni-app x项目(uvue)中调用示例:
```js
import { switchCamera } from "@/uni_modules/XF-cameraUTS";
import { SwitchOption, GeneralCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
import { switchCamera } from "@/uni_modules/MY-cameraUTS";
import { SwitchOption, GeneralCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
let options = {
position: 'back',
@@ -13,7 +13,7 @@
/**
* 组件名称也就是开发者使用的标签
*/
name: "xf-camera",
name: "my-camera",
/**
* 组件涉及的事件声明只有声明过的事件才能被正常发送
*/
@@ -17,7 +17,7 @@
/**
* 组件名称也就是开发者使用的标签
*/
name: "xf-camera",
name: "my-camera",
/**
* 组件涉及的事件声明只有声明过的事件才能被正常发送
*/