Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
daf34f35
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
daf34f35
编写于
5月 13, 2021
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: getSelectedTextRange
上级
8b3d8a85
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
190 addition
and
18 deletion
+190
-18
packages/uni-api/src/index.ts
packages/uni-api/src/index.ts
+3
-0
packages/uni-api/src/protocols/keyboard/getSelectedTextRange.ts
...es/uni-api/src/protocols/keyboard/getSelectedTextRange.ts
+2
-0
packages/uni-api/src/service/keyboard/getSelectedTextRange.ts
...ages/uni-api/src/service/keyboard/getSelectedTextRange.ts
+52
-0
packages/uni-components/src/components/movable-view/index.tsx
...ages/uni-components/src/components/movable-view/index.tsx
+1
-0
packages/uni-components/src/helpers/useField.ts
packages/uni-components/src/helpers/useField.ts
+36
-0
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+31
-0
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+64
-18
packages/uni-h5/src/service/api/index.ts
packages/uni-h5/src/service/api/index.ts
+1
-0
未找到文件。
packages/uni-api/src/index.ts
浏览文件 @
daf34f35
...
@@ -10,6 +10,8 @@ export * from './service/ui/createIntersectionObserver'
...
@@ -10,6 +10,8 @@ export * from './service/ui/createIntersectionObserver'
export
*
from
'
./service/ui/createSelectorQuery
'
export
*
from
'
./service/ui/createSelectorQuery
'
export
*
from
'
./service/ui/tabBar
'
export
*
from
'
./service/ui/tabBar
'
export
*
from
'
./service/keyboard/getSelectedTextRange
'
// protocols
// protocols
export
*
from
'
./protocols/base/canIUse
'
export
*
from
'
./protocols/base/canIUse
'
...
@@ -28,6 +30,7 @@ export * from './protocols/file/getFileInfo'
...
@@ -28,6 +30,7 @@ export * from './protocols/file/getFileInfo'
export
*
from
'
./protocols/file/openDocument
'
export
*
from
'
./protocols/file/openDocument
'
export
*
from
'
./protocols/keyboard/keyboard
'
export
*
from
'
./protocols/keyboard/keyboard
'
export
*
from
'
./protocols/keyboard/getSelectedTextRange
'
export
*
from
'
./protocols/location/chooseLocation
'
export
*
from
'
./protocols/location/chooseLocation
'
export
*
from
'
./protocols/location/getLocation
'
export
*
from
'
./protocols/location/getLocation
'
...
...
packages/uni-api/src/protocols/keyboard/getSelectedTextRange.ts
0 → 100644
浏览文件 @
daf34f35
export
const
API_GET_SELECTED_TEXT_RANGE
=
'
getSelectedTextRange
'
export
type
API_TYPE_GET_SELECTED_TEXT_RANGE
=
typeof
uni
.
getSelectedTextRange
packages/uni-api/src/service/keyboard/getSelectedTextRange.ts
0 → 100644
浏览文件 @
daf34f35
import
{
createCallbacks
,
getCurrentPageId
,
ServiceJSBridge
,
}
from
'
@dcloudio/uni-core
'
import
{
API_GET_SELECTED_TEXT_RANGE
,
API_TYPE_GET_SELECTED_TEXT_RANGE
,
}
from
'
../../protocols/keyboard/getSelectedTextRange
'
import
{
defineAsyncApi
}
from
'
../../helpers/api
'
const
getSelectedTextRangeEventCallbacks
=
createCallbacks
(
'
getSelectedTextRangeEvent
'
)
ServiceJSBridge
.
subscribe
&&
ServiceJSBridge
.
subscribe
(
'
onGetSelectedTextRange
'
,
({
callbackId
,
data
}:
{
callbackId
:
number
;
data
:
Data
})
=>
{
const
callback
=
getSelectedTextRangeEventCallbacks
.
pop
(
callbackId
)
if
(
callback
)
{
callback
(
data
)
}
}
)
export
const
getSelectedTextRange
=
defineAsyncApi
<
API_TYPE_GET_SELECTED_TEXT_RANGE
>
(
API_GET_SELECTED_TEXT_RANGE
,
(
_
,
{
resolve
,
reject
})
=>
{
const
pageId
=
getCurrentPageId
()
ServiceJSBridge
.
publishHandler
&&
ServiceJSBridge
.
publishHandler
(
'
getSelectedTextRange
'
,
{
pageId
,
callbackId
:
getSelectedTextRangeEventCallbacks
.
push
(
function
(
res
:
UniApp
.
GetSelectedTextRangeSuccessCallbackResult
)
{
if
(
typeof
res
.
end
===
'
undefined
'
&&
typeof
res
.
start
===
'
undefined
'
)
{
reject
(
'
no focused
'
)
}
else
{
resolve
(
res
)
}
}),
},
pageId
)
}
)
packages/uni-components/src/components/movable-view/index.tsx
浏览文件 @
daf34f35
...
@@ -683,6 +683,7 @@ function useMovableViewState(
...
@@ -683,6 +683,7 @@ function useMovableViewState(
'
px) translateZ(0px) scale(
'
+
'
px) translateZ(0px) scale(
'
+
scale
+
scale
+
'
)
'
'
)
'
// TODO 使用 uni.previewImage 点击关闭时,由于组件销毁此处会报错
rootRef
.
value
!
.
style
.
transform
=
transform
rootRef
.
value
!
.
style
.
transform
=
transform
rootRef
.
value
!
.
style
.
webkitTransform
=
transform
rootRef
.
value
!
.
style
.
webkitTransform
=
transform
_translateX
=
x
_translateX
=
x
...
...
packages/uni-components/src/helpers/useField.ts
浏览文件 @
daf34f35
...
@@ -19,6 +19,41 @@ import {
...
@@ -19,6 +19,41 @@ import {
}
from
'
./useKeyboard
'
}
from
'
./useKeyboard
'
import
{
useScopedAttrs
}
from
'
./useScopedAttrs
'
import
{
useScopedAttrs
}
from
'
./useScopedAttrs
'
import
{
useFormField
}
from
'
./useFormField
'
import
{
useFormField
}
from
'
./useFormField
'
import
{
getCurrentPageId
}
from
'
@dcloudio/uni-core
'
const
pageIds
:
number
[]
=
[]
const
UniViewJSBridgeSubscribe
=
function
()
{
const
pageId
=
getCurrentPageId
()
if
(
pageIds
.
includes
(
pageId
))
return
pageIds
.
push
(
pageId
)
UniViewJSBridge
.
subscribe
(
pageId
+
'
.getSelectedTextRange
'
,
function
({
pageId
,
callbackId
}:
{
pageId
:
number
;
callbackId
:
number
})
{
const
activeElement
=
document
.
activeElement
if
(
!
activeElement
)
return
const
tagName
=
activeElement
.
tagName
.
toLowerCase
()
const
tagNames
=
[
'
input
'
,
'
textarea
'
]
const
data
:
{
errMsg
?:
string
start
?:
number
|
null
end
?:
number
|
null
}
=
{}
if
(
tagNames
.
includes
(
tagName
))
{
data
.
start
=
(
activeElement
as
HTMLInputElement
).
selectionStart
data
.
end
=
(
activeElement
as
HTMLInputElement
).
selectionEnd
}
UniViewJSBridge
.
publishHandler
(
'
onGetSelectedTextRange
'
,
{
callbackId
,
data
,
},
pageId
)
}
)
}
// App 延迟获取焦点
// App 延迟获取焦点
const
FOCUS_DELAY
=
200
const
FOCUS_DELAY
=
200
...
@@ -356,6 +391,7 @@ export function useField(
...
@@ -356,6 +391,7 @@ export function useField(
emit
:
SetupContext
[
'
emit
'
],
emit
:
SetupContext
[
'
emit
'
],
beforeInput
?:
(
event
:
Event
,
state
:
State
)
=>
any
beforeInput
?:
(
event
:
Event
,
state
:
State
)
=>
any
)
{
)
{
UniViewJSBridgeSubscribe
()
const
{
fieldRef
,
state
,
trigger
}
=
useBase
(
props
,
rootRef
,
emit
)
const
{
fieldRef
,
state
,
trigger
}
=
useBase
(
props
,
rootRef
,
emit
)
const
{
triggerInput
}
=
useValueSync
(
props
,
state
,
emit
,
trigger
)
const
{
triggerInput
}
=
useValueSync
(
props
,
state
,
emit
,
trigger
)
useAutoFocus
(
props
,
fieldRef
)
useAutoFocus
(
props
,
fieldRef
)
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
daf34f35
...
@@ -914,6 +914,13 @@ ServiceJSBridge.subscribe("onCanvasMethodCallback", ({callbackId, data}) => {
...
@@ -914,6 +914,13 @@ ServiceJSBridge.subscribe("onCanvasMethodCallback", ({callbackId, data}) => {
}
}
});
});
const
API_ON_TAB_BAR_MID_BUTTON_TAP
=
"
onTabBarMidButtonTap
"
;
const
API_ON_TAB_BAR_MID_BUTTON_TAP
=
"
onTabBarMidButtonTap
"
;
const
getSelectedTextRangeEventCallbacks
=
createCallbacks
(
"
getSelectedTextRangeEvent
"
);
ServiceJSBridge
.
subscribe
&&
ServiceJSBridge
.
subscribe
(
"
onGetSelectedTextRange
"
,
({
callbackId
,
data
})
=>
{
const
callback
=
getSelectedTextRangeEventCallbacks
.
pop
(
callbackId
);
if
(
callback
)
{
callback
(
data
);
}
});
const
API_GET_STORAGE
=
"
getStorage
"
;
const
API_GET_STORAGE
=
"
getStorage
"
;
const
GetStorageProtocol
=
{
const
GetStorageProtocol
=
{
key
:
{
key
:
{
...
@@ -2984,6 +2991,29 @@ function useFormField(nameKey, value) {
...
@@ -2984,6 +2991,29 @@ function useFormField(nameKey, value) {
};
};
uniForm
.
addField
(
ctx
);
uniForm
.
addField
(
ctx
);
}
}
const
pageIds
=
[];
const
UniViewJSBridgeSubscribe
=
function
()
{
const
pageId
=
getCurrentPageId
();
if
(
pageIds
.
includes
(
pageId
))
return
;
pageIds
.
push
(
pageId
);
UniViewJSBridge
.
subscribe
(
pageId
+
"
.getSelectedTextRange
"
,
function
({
pageId
:
pageId2
,
callbackId
})
{
const
activeElement
=
document
.
activeElement
;
if
(
!
activeElement
)
return
;
const
tagName
=
activeElement
.
tagName
.
toLowerCase
();
const
tagNames
=
[
"
input
"
,
"
textarea
"
];
const
data
=
{};
if
(
tagNames
.
includes
(
tagName
))
{
data
.
start
=
activeElement
.
selectionStart
;
data
.
end
=
activeElement
.
selectionEnd
;
}
UniViewJSBridge
.
publishHandler
(
"
onGetSelectedTextRange
"
,
{
callbackId
,
data
},
pageId2
);
});
};
function
getValueString
(
value
)
{
function
getValueString
(
value
)
{
return
value
===
null
?
""
:
String
(
value
);
return
value
===
null
?
""
:
String
(
value
);
}
}
...
@@ -3208,6 +3238,7 @@ function useEvent(fieldRef, state, trigger, triggerInput, beforeInput) {
...
@@ -3208,6 +3238,7 @@ function useEvent(fieldRef, state, trigger, triggerInput, beforeInput) {
vue
.
watch
(()
=>
fieldRef
.
value
,
initField
);
vue
.
watch
(()
=>
fieldRef
.
value
,
initField
);
}
}
function
useField
(
props2
,
rootRef
,
emit2
,
beforeInput
)
{
function
useField
(
props2
,
rootRef
,
emit2
,
beforeInput
)
{
UniViewJSBridgeSubscribe
();
const
{
fieldRef
,
state
,
trigger
}
=
useBase
(
props2
,
rootRef
,
emit2
);
const
{
fieldRef
,
state
,
trigger
}
=
useBase
(
props2
,
rootRef
,
emit2
);
const
{
triggerInput
}
=
useValueSync
(
props2
,
state
,
emit2
,
trigger
);
const
{
triggerInput
}
=
useValueSync
(
props2
,
state
,
emit2
,
trigger
);
useAutoFocus
(
props2
,
fieldRef
);
useAutoFocus
(
props2
,
fieldRef
);
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
daf34f35
...
@@ -485,7 +485,7 @@ var safeAreaInsets = {
...
@@ -485,7 +485,7 @@ var safeAreaInsets = {
onChange,
onChange,
offChange
offChange
};
};
var out = safeAreaInsets;
var
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out = safeAreaInsets;
const onEventPrevent = /* @__PURE__ */ withModifiers(() => {
const onEventPrevent = /* @__PURE__ */ withModifiers(() => {
}, ["prevent"]);
}, ["prevent"]);
const onEventStop = /* @__PURE__ */ withModifiers(() => {
const onEventStop = /* @__PURE__ */ withModifiers(() => {
...
@@ -497,10 +497,10 @@ function getWindowOffset() {
...
@@ -497,10 +497,10 @@ function getWindowOffset() {
const left = parseInt(style.getPropertyValue("--window-left"));
const left = parseInt(style.getPropertyValue("--window-left"));
const right = parseInt(style.getPropertyValue("--window-right"));
const right = parseInt(style.getPropertyValue("--window-right"));
return {
return {
top: top ? top + out.top : 0,
top: top ? top +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top : 0,
bottom: bottom ? bottom + out.bottom : 0,
bottom: bottom ? bottom +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom : 0,
left: left ? left + out.left : 0,
left: left ? left +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left : 0,
right: right ? right + out.right : 0
right: right ? right +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right : 0
};
};
}
}
function updateCssVar(cssVars) {
function updateCssVar(cssVars) {
...
@@ -1185,7 +1185,7 @@ function normalizePageMeta(pageMeta) {
...
@@ -1185,7 +1185,7 @@ function normalizePageMeta(pageMeta) {
let offset = rpx2px(refreshOptions.offset);
let offset = rpx2px(refreshOptions.offset);
const {type} = navigationBar;
const {type} = navigationBar;
if (type !== "transparent" && type !== "none") {
if (type !== "transparent" && type !== "none") {
offset += NAVBAR_HEIGHT + out.top;
offset += NAVBAR_HEIGHT +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top;
}
}
refreshOptions.offset = offset;
refreshOptions.offset = offset;
refreshOptions.height = rpx2px(refreshOptions.height);
refreshOptions.height = rpx2px(refreshOptions.height);
...
@@ -3069,6 +3069,27 @@ const createSelectorQuery = () => {
...
@@ -3069,6 +3069,27 @@ const createSelectorQuery = () => {
const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap";
const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap";
const onTabBarMidButtonTap = /* @__PURE__ */ defineOnApi(API_ON_TAB_BAR_MID_BUTTON_TAP, () => {
const onTabBarMidButtonTap = /* @__PURE__ */ defineOnApi(API_ON_TAB_BAR_MID_BUTTON_TAP, () => {
});
});
const API_GET_SELECTED_TEXT_RANGE = "getSelectedTextRange";
const getSelectedTextRangeEventCallbacks = createCallbacks("getSelectedTextRangeEvent");
ServiceJSBridge.subscribe && ServiceJSBridge.subscribe("onGetSelectedTextRange", ({callbackId, data}) => {
const callback2 = getSelectedTextRangeEventCallbacks.pop(callbackId);
if (callback2) {
callback2(data);
}
});
const getSelectedTextRange = /* @__PURE__ */ defineAsyncApi(API_GET_SELECTED_TEXT_RANGE, (_, {resolve, reject}) => {
const pageId = getCurrentPageId();
ServiceJSBridge.publishHandler && ServiceJSBridge.publishHandler("getSelectedTextRange", {
pageId,
callbackId: getSelectedTextRangeEventCallbacks.push(function(res) {
if (typeof res.end === "undefined" && typeof res.start === "undefined") {
reject("no focused");
} else {
resolve(res);
}
})
}, pageId);
});
const API_CAN_I_USE = "canIUse";
const API_CAN_I_USE = "canIUse";
const CanIUseProtocol = [
const CanIUseProtocol = [
{
{
...
@@ -7472,6 +7493,29 @@ function useFormField(nameKey, value) {
...
@@ -7472,6 +7493,29 @@ function useFormField(nameKey, value) {
uniForm.removeField(ctx);
uniForm.removeField(ctx);
});
});
}
}
const pageIds = [];
const UniViewJSBridgeSubscribe = function() {
const pageId = getCurrentPageId();
if (pageIds.includes(pageId))
return;
pageIds.push(pageId);
UniViewJSBridge.subscribe(pageId + ".getSelectedTextRange", function({pageId: pageId2, callbackId}) {
const activeElement = document.activeElement;
if (!activeElement)
return;
const tagName = activeElement.tagName.toLowerCase();
const tagNames = ["input", "textarea"];
const data = {};
if (tagNames.includes(tagName)) {
data.start = activeElement.selectionStart;
data.end = activeElement.selectionEnd;
}
UniViewJSBridge.publishHandler("onGetSelectedTextRange", {
callbackId,
data
}, pageId2);
});
};
function getValueString(value) {
function getValueString(value) {
return value === null ? "" : String(value);
return value === null ? "" : String(value);
}
}
...
@@ -7705,6 +7749,7 @@ function useEvent(fieldRef, state2, trigger, triggerInput, beforeInput) {
...
@@ -7705,6 +7749,7 @@ function useEvent(fieldRef, state2, trigger, triggerInput, beforeInput) {
watch(() => fieldRef.value, initField);
watch(() => fieldRef.value, initField);
}
}
function useField(props2, rootRef, emit2, beforeInput) {
function useField(props2, rootRef, emit2, beforeInput) {
UniViewJSBridgeSubscribe();
const {fieldRef, state: state2, trigger} = useBase(props2, rootRef, emit2);
const {fieldRef, state: state2, trigger} = useBase(props2, rootRef, emit2);
const {triggerInput} = useValueSync(props2, state2, emit2, trigger);
const {triggerInput} = useValueSync(props2, state2, emit2, trigger);
useAutoFocus(props2, fieldRef);
useAutoFocus(props2, fieldRef);
...
@@ -14919,7 +14964,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
...
@@ -14919,7 +14964,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
const windowWidth = getWindowWidth(screenWidth);
const windowWidth = getWindowWidth(screenWidth);
let windowHeight = window.innerHeight;
let windowHeight = window.innerHeight;
const language = navigator.language;
const language = navigator.language;
const statusBarHeight = out.top;
const statusBarHeight =
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top;
let osname;
let osname;
let osversion;
let osversion;
let model;
let model;
...
@@ -15032,12 +15077,12 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
...
@@ -15032,12 +15077,12 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
const system = `${osname} ${osversion}`;
const system = `${osname} ${osversion}`;
const platform = osname.toLocaleLowerCase();
const platform = osname.toLocaleLowerCase();
const safeArea = {
const safeArea = {
left: out.left,
left:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left,
right: windowWidth - out.right,
right: windowWidth -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
top: out.top,
top:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top,
bottom: windowHeight - out.bottom,
bottom: windowHeight -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom,
width: windowWidth -
out.left -
out.right,
width: windowWidth -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
height: windowHeight -
out.top -
out.bottom
height: windowHeight -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom
};
};
const {top: windowTop, bottom: windowBottom} = getWindowOffset();
const {top: windowTop, bottom: windowBottom} = getWindowOffset();
windowHeight -= windowTop;
windowHeight -= windowTop;
...
@@ -15057,10 +15102,10 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
...
@@ -15057,10 +15102,10 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
model,
model,
safeArea,
safeArea,
safeAreaInsets: {
safeAreaInsets: {
top: out.top,
top:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top,
right: out.right,
right:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
bottom: out.bottom,
bottom:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom,
left: out.left
left:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left
}
}
};
};
});
});
...
@@ -17403,6 +17448,7 @@ var api = /* @__PURE__ */ Object.freeze({
...
@@ -17403,6 +17448,7 @@ var api = /* @__PURE__ */ Object.freeze({
canvasGetImageData,
canvasGetImageData,
canvasPutImageData,
canvasPutImageData,
canvasToTempFilePath,
canvasToTempFilePath,
getSelectedTextRange,
cssVar,
cssVar,
cssEnv,
cssEnv,
cssConstant,
cssConstant,
...
@@ -19814,4 +19860,4 @@ var index = /* @__PURE__ */ defineComponent({
...
@@ -19814,4 +19860,4 @@ var index = /* @__PURE__ */ defineComponent({
return openBlock(), createBlock("div", clazz, [loadingVNode]);
return openBlock(), createBlock("div", clazz, [loadingVNode]);
}
}
});
});
export {index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$8 as Audio, index$k as Button, _sfc_main$7 as Canvas, index$h as Checkbox, index$j as CheckboxGroup, _sfc_main$2 as CoverImage, _sfc_main$3 as CoverView, index$g as Editor, Form, Friction$1 as Friction, index$f as Icon, index$e as Image, Input, index$i as Label, LayoutComponent, index$3 as Map, MovableArea, MovableView, _sfc_main$6 as Navigator, index$2 as PageComponent, _sfc_main$1 as Picker, PickerView, PickerViewColumn, index$d as Progress, index$b as Radio, index$c as RadioGroup, ResizeSensor, _sfc_main$5 as RichText, _sfc_main$4 as ScrollView, Scroller$1 as Scroller, index$a as Slider, Spring$1 as Spring, Swiper, SwiperItem, index$9 as Switch, index$8 as Text, index$7 as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$5 as Video, index$6 as View, index$4 as WebView, addInterceptor, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createMapContext, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, disableScrollBounce, downloadFile, getApp$1 as getApp, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLocation, getNetworkType, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getVideoInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideTabBarRedDot, hideToast, initScrollBounce, loadFontFace, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, onAccelerometerChange, onCompassChange, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, openDocument, openLocation, pageScrollTo, index$l as plugin, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeStorage, removeStorageSync, removeTabBarBadge, request, sendSocketMessage, setNavigationBarColor, setNavigationBarTitle, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setupApp, setupPage, showActionSheet, showLoading, showModal, showNavigationBarLoading, showTabBar, showTabBarRedDot, showToast, startAccelerometer, startCompass, startPullDownRefresh, stopAccelerometer, stopCompass, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useAttrs, useBooleanAttr, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent};
export {index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$8 as Audio, index$k as Button, _sfc_main$7 as Canvas, index$h as Checkbox, index$j as CheckboxGroup, _sfc_main$2 as CoverImage, _sfc_main$3 as CoverView, index$g as Editor, Form, Friction$1 as Friction, index$f as Icon, index$e as Image, Input, index$i as Label, LayoutComponent, index$3 as Map, MovableArea, MovableView, _sfc_main$6 as Navigator, index$2 as PageComponent, _sfc_main$1 as Picker, PickerView, PickerViewColumn, index$d as Progress, index$b as Radio, index$c as RadioGroup, ResizeSensor, _sfc_main$5 as RichText, _sfc_main$4 as ScrollView, Scroller$1 as Scroller, index$a as Slider, Spring$1 as Spring, Swiper, SwiperItem, index$9 as Switch, index$8 as Text, index$7 as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$5 as Video, index$6 as View, index$4 as WebView, addInterceptor, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createMapContext, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, disableScrollBounce, downloadFile, getApp$1 as getApp, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLocation, getNetworkType, getS
electedTextRange, getS
torage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getVideoInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideTabBarRedDot, hideToast, initScrollBounce, loadFontFace, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, onAccelerometerChange, onCompassChange, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, openDocument, openLocation, pageScrollTo, index$l as plugin, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeStorage, removeStorageSync, removeTabBarBadge, request, sendSocketMessage, setNavigationBarColor, setNavigationBarTitle, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setupApp, setupPage, showActionSheet, showLoading, showModal, showNavigationBarLoading, showTabBar, showTabBarRedDot, showToast, startAccelerometer, startCompass, startPullDownRefresh, stopAccelerometer, stopCompass, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useAttrs, useBooleanAttr, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent};
packages/uni-h5/src/service/api/index.ts
浏览文件 @
daf34f35
...
@@ -74,5 +74,6 @@ export {
...
@@ -74,5 +74,6 @@ export {
canvasGetImageData
,
canvasGetImageData
,
canvasPutImageData
,
canvasPutImageData
,
canvasToTempFilePath
,
canvasToTempFilePath
,
getSelectedTextRange
,
}
from
'
@dcloudio/uni-api
'
}
from
'
@dcloudio/uni-api
'
//#endif
//#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录