Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
02e3ddea
提交
02e3ddea
authored
8月 15, 2023
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 优化组件自动注入和样式兼容问题
上级
8cd921f3
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
26 行增加
和
23 行删除
+26
-23
index.ts
src/components/Map/Mapbox/widgets/BottomBar/index.ts
+1
-1
BottomBar.vue
...components/Map/Mapbox/widgets/BottomBar/src/BottomBar.vue
+0
-0
index.ts
src/components/Map/Mapbox/widgets/Legend/index.ts
+1
-1
Legend.vue
src/components/Map/Mapbox/widgets/Legend/src/Legend.vue
+0
-0
index.ts
src/components/Map/Mapbox/widgets/SwitchControl/index.ts
+1
-1
SwitchControl.vue
...ts/Map/Mapbox/widgets/SwitchControl/src/SwitchControl.vue
+0
-0
index.vue
src/pages/business/monitor/rain/index.vue
+20
-10
components.d.ts
types/components.d.ts
+3
-10
没有找到文件。
src/components/Map/Mapbox/widgets/BottomBar/index.ts
浏览文件 @
02e3ddea
export
type
*
from
'./src/types'
export
*
from
'./src/hook'
export
{
default
as
BottomBarWidget
}
from
'./src/
index
.vue'
export
{
default
as
BottomBarWidget
}
from
'./src/
BottomBar
.vue'
src/components/Map/Mapbox/widgets/BottomBar/src/
index
.vue
→
src/components/Map/Mapbox/widgets/BottomBar/src/
BottomBar
.vue
浏览文件 @
02e3ddea
File moved
src/components/Map/Mapbox/widgets/Legend/index.ts
浏览文件 @
02e3ddea
export
type
*
from
'./src/types'
export
*
from
'./src/hook'
export
{
default
as
LegendWidget
}
from
'./src/
index
.vue'
export
{
default
as
LegendWidget
}
from
'./src/
Legend
.vue'
src/components/Map/Mapbox/widgets/Legend/src/
index
.vue
→
src/components/Map/Mapbox/widgets/Legend/src/
Legend
.vue
浏览文件 @
02e3ddea
File moved
src/components/Map/Mapbox/widgets/SwitchControl/index.ts
浏览文件 @
02e3ddea
export
type
*
from
'./src/types'
export
*
from
'./src/hook'
export
{
default
as
SwitchControlWidget
}
from
'./src/
index
.vue'
export
{
default
as
SwitchControlWidget
}
from
'./src/
SwitchControl
.vue'
src/components/Map/Mapbox/widgets/SwitchControl/src/
index
.vue
→
src/components/Map/Mapbox/widgets/SwitchControl/src/
SwitchControl
.vue
浏览文件 @
02e3ddea
File moved
src/pages/business/monitor/rain/index.vue
浏览文件 @
02e3ddea
...
...
@@ -20,12 +20,12 @@
// 前后切换小部件
const
[
registerSwitchControlWidget
]
=
useSwitchControlWidget
({
show
:
true
,
prev
:
()
=>
console
.
log
(
'prev'
),
next
:
()
=>
console
.
log
(
'next'
),
prev
:
()
=>
Message
.
toast
(
'prev'
),
next
:
()
=>
Message
.
toast
(
'next'
),
})
// 图例小部件
const
[
registerLegendWidget
]
=
useLegendWidget
({
const
[
registerLegendWidget
,
{
toggleExpand
:
toggleLegendWidgetExpand
}
]
=
useLegendWidget
({
show
:
true
,
expand
:
true
,
title
:
defaultLegendConfig
.
title
,
...
...
@@ -39,6 +39,10 @@
height
:
100
,
maxHeight
:
200
,
})
function
testPackUp
()
{
toggleLegendWidgetExpand
()
}
</
script
>
<
template
>
...
...
@@ -59,7 +63,7 @@
<!-- 底部 Bar 小部件 -->
<BottomBarWidget
@
register=
"registerBottomBarWidget"
>
<!-- 内容 Slot -->
<view
class=
"c-coolGray"
>
底部交互控件/展示内容
</view>
<view
class=
"c-coolGray"
@
tap=
"testPackUp"
>
底部交互控件/展示内容
</view>
</BottomBarWidget>
</view>
</view>
...
...
@@ -74,17 +78,23 @@
//
bottom
:
calc
(
30
rpx
+
80
rpx
+
v-bind
(
height
));
}
}
</
style
>
<
style
>
/* 外部套一层防止全局污染 */
.rain
{
//
#ifdef
H5
:
deep
(.
mapboxgl-ctrl-bottom-right
)
{
bottom
:
calc
(
30
rpx
+
60
rpx
+
v-bind
(
height
));
bottom
:
calc
(
30
rpx
+
50
rpx
+
v-bind
(
height
));
}
:deep
(
.mapboxgl-ctrl-bottom-left
)
{
bottom
:
calc
(
30
rpx
+
50
rpx
+
v-bind
(
height
));
}
//
#endif
//
#ifdef
APP-PLUS
:deep
(
.mapboxgl-ctrl-bottom-right
)
{
bottom
:
calc
(
5
rpx
+
v-bind
(
height
));
}
:deep
(
.mapboxgl-ctrl-bottom-left
)
{
bottom
:
calc
(
30
rpx
+
60
rpx
+
v-bind
(
height
));
bottom
:
calc
(
5
rpx
+
v-bind
(
height
));
}
//
#endif
}
</
style
>
types/components.d.ts
浏览文件 @
02e3ddea
...
...
@@ -7,14 +7,12 @@ export {}
declare
module
'vue'
{
export
interface
GlobalComponents
{
BottomBar
:
typeof
import
(
'./../src/components/Map/Mapbox/components/BottomBar.vue'
)[
'default'
]
BottomBarWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/BottomBarWidget.vue'
)[
'default'
]
BottomBar
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/BottomBar/src/BottomBar.vue'
)[
'default'
]
CacheImage
:
typeof
import
(
'./../src/components/CacheImage/index.vue'
)[
'default'
]
CustomPicker
:
typeof
import
(
'./../src/components/CustomPicker/index.vue'
)[
'default'
]
Empty
:
typeof
import
(
'./../src/components/Empty/index.vue'
)[
'default'
]
FDragItem
:
typeof
import
(
'./../src/components/FirstUI/fui-drag/f-drag-item.vue'
)[
'default'
]
FIndexListItem
:
typeof
import
(
'./../src/components/FirstUI/fui-index-list/f-index-list-item.vue'
)[
'default'
]
FloatFillter
:
typeof
import
(
'./../src/components/Map/Mapbox/components/FloatFillter.vue'
)[
'default'
]
FloatFillterWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/FloatFillterWidget.vue'
)[
'default'
]
FuiActionsheet
:
typeof
import
(
'./../src/components/FirstUI/fui-actionsheet/fui-actionsheet.vue'
)[
'default'
]
FuiAlert
:
typeof
import
(
'./../src/components/FirstUI/fui-alert/fui-alert.vue'
)[
'default'
]
...
...
@@ -140,19 +138,14 @@ declare module 'vue' {
Grid
:
typeof
import
(
'./../src/components/Layout/Grid.vue'
)[
'default'
]
Header
:
typeof
import
(
'./../src/components/Layout/Header.vue'
)[
'default'
]
Icon
:
typeof
import
(
'./../src/components/Icon/index.vue'
)[
'default'
]
LeftBar
:
typeof
import
(
'./../src/components/Map/Mapbox/components/LeftBar.vue'
)[
'default'
]
LeftBarWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/LeftBarWidget.vue'
)[
'default'
]
Legend
:
typeof
import
(
'./../src/components/Map/Mapbox/components/Legend.vue'
)[
'default'
]
LegendWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/components/LegendWidget/index.vue'
)[
'default'
]
Legend
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/Legend/src/Legend.vue'
)[
'default'
]
Mapbox
:
typeof
import
(
'./../src/components/Map/Mapbox/index.vue'
)[
'default'
]
MenuHeader
:
typeof
import
(
'./../src/components/Layout/MenuHeader.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
Src
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/BottomBar/src/index.vue'
)[
'default'
]
SwitchControl
:
typeof
import
(
'./../src/components/Map/Mapbox/components/SwitchControl.vue'
)[
'default'
]
SwitchControlWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/SwitchControlWidget.vue'
)[
'default'
]
SwitchControl
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/SwitchControl/src/SwitchControl.vue'
)[
'default'
]
ThumbnailPreview
:
typeof
import
(
'./../src/components/ThumbnailPreview/index.vue'
)[
'default'
]
TopBar
:
typeof
import
(
'./../src/components/Map/Mapbox/components/TopBar.vue'
)[
'default'
]
TopBarWidget
:
typeof
import
(
'./../src/components/Map/Mapbox/widgets/TopBarWidget.vue'
)[
'default'
]
View
:
typeof
import
(
'./../src/components/Layout/View.vue'
)[
'default'
]
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论