Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦想橡皮擦
uni-starter
提交
b7fb0671
U
uni-starter
项目概览
梦想橡皮擦
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b7fb0671
编写于
9月 20, 2022
作者:
DCloud_JSON
提交者:
study夏羽
10月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 更新表结构,解决部分clientDB操作没有权限的问题
上级
eab26cd5
变更
89
展开全部
显示空白变更内容
内联
并排
Showing
89 changed file
with
4156 addition
and
2640 deletion
+4156
-2640
uni_modules/uni-calendar/changelog.md
uni_modules/uni-calendar/changelog.md
+8
-0
uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
...ni-calendar/components/uni-calendar/uni-calendar-item.vue
+11
-4
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
...les/uni-calendar/components/uni-calendar/uni-calendar.vue
+19
-11
uni_modules/uni-calendar/components/uni-calendar/util.js
uni_modules/uni-calendar/components/uni-calendar/util.js
+12
-16
uni_modules/uni-calendar/package.json
uni_modules/uni-calendar/package.json
+4
-7
uni_modules/uni-data-picker/changelog.md
uni_modules/uni-data-picker/changelog.md
+64
-56
uni_modules/uni-data-picker/components/uni-data-picker/keypress.js
...es/uni-data-picker/components/uni-data-picker/keypress.js
+45
-45
uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue
...ata-picker/components/uni-data-picker/uni-data-picker.vue
+27
-12
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js
...-picker/components/uni-data-pickerview/uni-data-picker.js
+563
-563
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue
...er/components/uni-data-pickerview/uni-data-pickerview.vue
+9
-7
uni_modules/uni-data-picker/package.json
uni_modules/uni-data-picker/package.json
+89
-91
uni_modules/uni-data-select/changelog.md
uni_modules/uni-data-select/changelog.md
+22
-0
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
...ata-select/components/uni-data-select/uni-data-select.vue
+440
-0
uni_modules/uni-data-select/package.json
uni_modules/uni-data-select/package.json
+85
-0
uni_modules/uni-data-select/readme.md
uni_modules/uni-data-select/readme.md
+8
-0
uni_modules/uni-datetime-picker/changelog.md
uni_modules/uni-datetime-picker/changelog.md
+18
-0
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
...e-picker/components/uni-datetime-picker/calendar-item.vue
+5
-3
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
...tetime-picker/components/uni-datetime-picker/calendar.vue
+37
-11
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json
...tetime-picker/components/uni-datetime-picker/i18n/en.json
+9
-6
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json
...e-picker/components/uni-datetime-picker/i18n/zh-Hans.json
+12
-9
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json
...e-picker/components/uni-datetime-picker/i18n/zh-Hant.json
+22
-19
uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
...ime-picker/components/uni-datetime-picker/time-picker.vue
+6
-3
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
...er/components/uni-datetime-picker/uni-datetime-picker.vue
+61
-43
uni_modules/uni-datetime-picker/package.json
uni_modules/uni-datetime-picker/package.json
+4
-7
uni_modules/uni-easyinput/changelog.md
uni_modules/uni-easyinput/changelog.md
+2
-0
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
.../uni-easyinput/components/uni-easyinput/uni-easyinput.vue
+12
-5
uni_modules/uni-easyinput/package.json
uni_modules/uni-easyinput/package.json
+4
-7
uni_modules/uni-fab/changelog.md
uni_modules/uni-fab/changelog.md
+4
-0
uni_modules/uni-fab/components/uni-fab/uni-fab.vue
uni_modules/uni-fab/components/uni-fab/uni-fab.vue
+14
-2
uni_modules/uni-fab/package.json
uni_modules/uni-fab/package.json
+4
-7
uni_modules/uni-feedback/changelog.md
uni_modules/uni-feedback/changelog.md
+4
-0
uni_modules/uni-feedback/package.json
uni_modules/uni-feedback/package.json
+6
-2
uni_modules/uni-feedback/pages/opendb-feedback/list.vue
uni_modules/uni-feedback/pages/opendb-feedback/list.vue
+1
-1
uni_modules/uni-file-picker/changelog.md
uni_modules/uni-file-picker/changelog.md
+55
-53
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
...ile-picker/components/uni-file-picker/uni-file-picker.vue
+12
-6
uni_modules/uni-file-picker/components/uni-file-picker/utils.js
...dules/uni-file-picker/components/uni-file-picker/utils.js
+109
-109
uni_modules/uni-file-picker/package.json
uni_modules/uni-file-picker/package.json
+86
-86
uni_modules/uni-id-pages/changelog.md
uni_modules/uni-id-pages/changelog.md
+12
-0
uni_modules/uni-id-pages/common/common.js
uni_modules/uni-id-pages/common/common.js
+2
-2
uni_modules/uni-id-pages/common/login-page.scss
uni_modules/uni-id-pages/common/login-page.scss
+31
-14
uni_modules/uni-id-pages/package.json
uni_modules/uni-id-pages/package.json
+1
-1
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
+5
-1
uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue
...modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue
+10
-4
uni_modules/uni-id-pages/pages/retrieve/retrieve.vue
uni_modules/uni-id-pages/pages/retrieve/retrieve.vue
+9
-3
uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
...les/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
+14
-42
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
+1
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
...i-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
+1
-1
uni_modules/uni-id-pages/uniCloud/database/uni-id-log.schema.json
...les/uni-id-pages/uniCloud/database/uni-id-log.schema.json
+6
-2
uni_modules/uni-id-pages/uniCloud/database/uni-id-permissions.schema.json
...id-pages/uniCloud/database/uni-id-permissions.schema.json
+9
-6
uni_modules/uni-id-pages/uniCloud/database/uni-id-roles.schema.json
...s/uni-id-pages/uniCloud/database/uni-id-roles.schema.json
+16
-14
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
...s/uni-id-pages/uniCloud/database/uni-id-users.schema.json
+431
-429
uni_modules/uni-id/changelog.md
uni_modules/uni-id/changelog.md
+22
-0
uni_modules/uni-id/package.json
uni_modules/uni-id/package.json
+9
-8
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/LICENSE.md
...s/uni-id/uniCloud/cloudfunctions/common/uni-id/LICENSE.md
+201
-0
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
...les/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
+1
-0
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
...uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
+16
-0
uni_modules/uni-nav-bar/changelog.md
uni_modules/uni-nav-bar/changelog.md
+4
-0
uni_modules/uni-nav-bar/package.json
uni_modules/uni-nav-bar/package.json
+1
-1
uni_modules/uni-notice-bar/changelog.md
uni_modules/uni-notice-bar/changelog.md
+15
-13
uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
...i-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
+51
-20
uni_modules/uni-notice-bar/package.json
uni_modules/uni-notice-bar/package.json
+86
-89
uni_modules/uni-pagination/changelog.md
uni_modules/uni-pagination/changelog.md
+7
-0
uni_modules/uni-pagination/components/uni-pagination/i18n/en.json
...les/uni-pagination/components/uni-pagination/i18n/en.json
+2
-1
uni_modules/uni-pagination/components/uni-pagination/i18n/es.json
...les/uni-pagination/components/uni-pagination/i18n/es.json
+2
-1
uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json
...les/uni-pagination/components/uni-pagination/i18n/fr.json
+2
-1
uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json
...ni-pagination/components/uni-pagination/i18n/zh-Hans.json
+2
-1
uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json
...ni-pagination/components/uni-pagination/i18n/zh-Hant.json
+2
-1
uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue
...i-pagination/components/uni-pagination/uni-pagination.vue
+73
-17
uni_modules/uni-pagination/package.json
uni_modules/uni-pagination/package.json
+4
-7
uni_modules/uni-pagination/readme.md
uni_modules/uni-pagination/readme.md
+0
-2
uni_modules/uni-scss/manifest.json
uni_modules/uni-scss/manifest.json
+0
-95
uni_modules/uni-search-bar/readme.md
uni_modules/uni-search-bar/readme.md
+1
-1
uni_modules/uni-section/changelog.md
uni_modules/uni-section/changelog.md
+2
-0
uni_modules/uni-section/components/uni-section/uni-section.vue
...odules/uni-section/components/uni-section/uni-section.vue
+167
-0
uni_modules/uni-section/package.json
uni_modules/uni-section/package.json
+87
-0
uni_modules/uni-section/readme.md
uni_modules/uni-section/readme.md
+8
-0
uni_modules/uni-tooltip/changelog.md
uni_modules/uni-tooltip/changelog.md
+10
-0
uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue
...odules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue
+68
-0
uni_modules/uni-tooltip/package.json
uni_modules/uni-tooltip/package.json
+83
-0
uni_modules/uni-tooltip/readme.md
uni_modules/uni-tooltip/readme.md
+8
-0
uni_modules/uni-ui/changelog.md
uni_modules/uni-ui/changelog.md
+455
-392
uni_modules/uni-ui/package.json
uni_modules/uni-ui/package.json
+9
-8
uni_modules/uni-ui/readme.md
uni_modules/uni-ui/readme.md
+91
-92
uni_modules/uni-upgrade-center-app/changelog.md
uni_modules/uni-upgrade-center-app/changelog.md
+32
-30
uni_modules/uni-upgrade-center-app/package.json
uni_modules/uni-upgrade-center-app/package.json
+6
-8
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
+51
-15
uni_modules/uni-upgrade-center-app/readme.md
uni_modules/uni-upgrade-center-app/readme.md
+122
-118
uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/temp.png
...s/uni-upgrade-center-app/uniCloud/cloudfunctions/temp.png
+0
-0
uni_modules/uni-upgrade-center-app/utils/call-check-version.js
...odules/uni-upgrade-center-app/utils/call-check-version.js
+15
-8
未找到文件。
uni_modules/uni-calendar/changelog.md
浏览文件 @
b7fb0671
## 1.4.7(2022-09-16)
-
可以使用 uni-scss 控制主题色
## 1.4.6(2022-09-08)
-
fix: 表头年月切换,导致改变当前日期为选择月1号,且未触发change事件
## 1.4.5(2022-02-25)
-
修复 条件编译 nvue 不支持的 css 样式
## 1.4.4(2022-02-25)
-
修复 条件编译 nvue 不支持的 css 样式
## 1.4.3(2021-09-22)
-
修复 startDate、 endDate 属性失效的 bug
## 1.4.2(2021-08-24)
...
...
uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
浏览文件 @
b7fb0671
...
...
@@ -96,6 +96,13 @@
</
script
>
<
style
lang=
"scss"
scoped
>
$uni-font-size-base
:
14px
;
$uni-text-color
:
#333
;
$uni-font-size-sm
:
12px
;
$uni-color-error
:
#e43d33
;
$uni-opacity-disabled
:
0
.3
;
$uni-text-color-disable
:
#c0c0c0
;
$uni-primary
:
#2979ff
!
default
;
.uni-calendar-item__weeks-box
{
flex
:
1
;
/* #ifndef APP-NVUE */
...
...
@@ -145,11 +152,11 @@
}
.uni-calendar-item--isDay-text
{
color
:
$uni-
color-
primary
;
color
:
$uni-primary
;
}
.uni-calendar-item--isDay
{
background-color
:
$uni-
color-
primary
;
background-color
:
$uni-primary
;
opacity
:
0
.8
;
color
:
#fff
;
}
...
...
@@ -160,13 +167,13 @@
}
.uni-calendar-item--checked
{
background-color
:
$uni-
color-
primary
;
background-color
:
$uni-primary
;
color
:
#fff
;
opacity
:
0
.8
;
}
.uni-calendar-item--multiple
{
background-color
:
$uni-
color-
primary
;
background-color
:
$uni-primary
;
color
:
#fff
;
opacity
:
0
.8
;
}
...
...
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
浏览文件 @
b7fb0671
...
...
@@ -218,7 +218,7 @@
bindDateChange
(
e
)
{
const
value
=
e
.
detail
.
value
+
'
-1
'
console
.
log
(
this
.
cale
.
getDate
(
value
));
this
.
init
(
value
)
this
.
setDate
(
value
)
},
/**
* 初始化日期显示
...
...
@@ -361,6 +361,14 @@
</
script
>
<
style
lang=
"scss"
scoped
>
$uni-bg-color-mask
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.4
);
$uni-border-color
:
#EDEDED
;
$uni-text-color
:
#333
;
$uni-bg-color-hover
:
#f1f1f1
;
$uni-font-size-base
:
14px
;
$uni-text-color-placeholder
:
#808080
;
$uni-color-subtitle
:
#555555
;
$uni-text-color-grey
:
#999
;
.uni-calendar
{
/* #ifndef APP-NVUE */
display
:
flex
;
...
...
uni_modules/uni-calendar/components/uni-calendar/util.js
浏览文件 @
b7fb0671
...
...
@@ -122,7 +122,6 @@ class Calendar {
let
dateArr
=
[]
let
fullDate
=
this
.
date
.
fullDate
for
(
let
i
=
1
;
i
<=
dateData
;
i
++
)
{
let
isinfo
=
false
let
nowDate
=
full
.
year
+
'
-
'
+
(
full
.
month
<
10
?
full
.
month
:
full
.
month
)
+
'
-
'
+
(
i
<
10
?
'
0
'
+
i
:
i
)
...
...
@@ -311,11 +310,8 @@ class Calendar {
*/
_getWeek
(
dateData
)
{
const
{
fullDate
,
year
,
month
,
date
,
day
month
}
=
this
.
getDate
(
dateData
)
let
firstDay
=
new
Date
(
year
,
month
-
1
,
1
).
getDay
()
let
currentDay
=
new
Date
(
year
,
month
,
0
).
getDate
()
...
...
uni_modules/uni-calendar/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-calendar"
,
"displayName"
:
"uni-calendar 日历"
,
"version"
:
"1.4.
3
"
,
"version"
:
"1.4.
7
"
,
"description"
:
"日历组件"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -18,11 +18,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -39,7 +35,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[],
...
...
uni_modules/uni-data-picker/changelog.md
浏览文件 @
b7fb0671
## 1.0.8(2022-09-16)
-
可以使用 uni-scss 控制主题色
## 1.0.7(2022-07-06)
-
优化 pc端图标位置不正确的问题
## 1.0.6(2022-07-05)
-
优化 显示样式
## 1.0.5(2022-07-04)
-
修复 uni-data-picker 在 uni-forms-item 中宽度不正确的bug
## 1.0.4(2022-04-19)
-
修复 字节小程序 本地数据无法选择下一级的Bug
## 1.0.3(2022-02-25)
...
...
uni_modules/uni-data-picker/components/uni-data-picker/keypress.js
浏览文件 @
b7fb0671
uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue
浏览文件 @
b7fb0671
...
...
@@ -10,7 +10,7 @@
<scroll-view
v-else-if=
"inputSelected.length"
class=
"selected-area"
scroll-x=
"true"
>
<view
class=
"selected-list"
>
<view
class=
"selected-item"
v-for=
"(item,index) in inputSelected"
:key=
"index"
>
<text>
{{
item
.
text
}}
</text><text
v-if=
"index
<inputSelected.length-1
"
<text
class=
"text-color"
>
{{
item
.
text
}}
</text><text
v-if=
"index
<inputSelected.length-1
"
class=
"input-split-line"
>
{{
split
}}
</text>
</view>
</view>
...
...
@@ -18,7 +18,7 @@
<text
v-else
class=
"selected-area placeholder"
>
{{
placeholder
}}
</text>
<view
v-if=
"clearIcon && !readonly && inputSelected.length"
class=
"icon-clear"
@
click.stop=
"clear"
>
<uni-icons
type=
"clear"
color=
"#
e1e1e1"
size=
"1
4"
></uni-icons>
<uni-icons
type=
"clear"
color=
"#
c0c4cc"
size=
"2
4"
></uni-icons>
</view>
<view
class=
"arrow-area"
v-if=
"(!clearIcon || !inputSelected.length) && !readonly "
>
<view
class=
"input-arrow"
></view>
...
...
@@ -212,7 +212,9 @@
},
onchange
(
e
)
{
this
.
hide
()
this
.
inputSelected
=
e
this
.
$nextTick
(()
=>
{
this
.
inputSelected
=
e
;
})
this
.
_dispatchEvent
(
e
)
},
_processReadonly
(
dataList
,
value
)
{
...
...
@@ -294,6 +296,7 @@
<
style
>
.uni-data-tree
{
flex
:
1
;
position
:
relative
;
font-size
:
14px
;
}
...
...
@@ -310,11 +313,13 @@
align-items
:
center
;
flex-wrap
:
nowrap
;
font-size
:
14px
;
line-height
:
38px
;
padding
:
0
5px
;
/* line-height: 35px; */
padding
:
0
10px
;
padding-right
:
5px
;
overflow
:
hidden
;
/* #ifdef APP-NVUE */
height
:
40px
;
height
:
35px
;
/* #ifndef APP-NVUE */
box-sizing
:
border-box
;
/* #endif */
}
...
...
@@ -347,19 +352,24 @@
/* #endif */
flex-direction
:
row
;
flex-wrap
:
nowrap
;
padding
:
0
5px
;
/* padding: 0 5px; */
}
.selected-item
{
flex-direction
:
row
;
padding
:
0
1px
;
/* padding: 0 1px; */
/* #ifndef APP-NVUE */
white-space
:
nowrap
;
/* #endif */
}
.text-color
{
color
:
#333
;
}
.placeholder
{
color
:
grey
;
font-size
:
12px
;
}
.input-split-line
{
...
...
@@ -476,6 +486,11 @@
overflow
:
hidden
;
}
.icon-clear
{
display
:
flex
;
align-items
:
center
;
}
/* #ifdef H5 */
@media
all
and
(
min-width
:
768px
)
{
.uni-data-tree-cover
{
...
...
@@ -500,7 +515,7 @@
}
.icon-clear
{
margin-right
:
5px
;
/* margin-right: 5px; */
}
}
...
...
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js
浏览文件 @
b7fb0671
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue
浏览文件 @
b7fb0671
...
...
@@ -5,16 +5,16 @@
<template
v-for=
"(item,index) in selected"
>
<view
class=
"selected-item"
:class=
"
{'selected-item-active':index==selectedIndex, 'selected-item-text-overflow': ellipsis}"
:key="index"
v-if="item.text" @click="handleSelect(index)">
v-if="item.text" @click="handleSelect(index)">
<text
class=
""
>
{{
item
.
text
}}
</text>
</view>
</
template
>
</view>
</scroll-view>
<view
class=
"tab-c"
>
<
template
v-for=
"(child, i) in dataList"
>
<
template
v-for=
"(child, i) in dataList"
>
<scroll-view
class=
"list"
:key=
"i"
v-if=
"i==selectedIndex"
:scroll-y=
"true"
>
<view
class=
"item"
:class=
"
{'is-disabled': !!item.disable}" v-for="(item, j) in child"
:key="j"
<view
class=
"item"
:class=
"
{'is-disabled': !!item.disable}" v-for="(item, j) in child"
@click="handleNodeClick(item, i, j)">
<text
class=
"item-text item-text-overflow"
>
{{
item
[
map
.
text
]
}}
</text>
<view
class=
"check"
v-if=
"selected.length > i && item[map.value] == selected[i].value"
></view>
...
...
@@ -177,7 +177,9 @@
}
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
$uni-primary
:
#007aff
!
default
;
.uni-data-pickerview
{
flex
:
1
;
/* #ifndef APP-NVUE */
...
...
@@ -265,11 +267,11 @@
}
.selected-item-active
{
border-bottom
:
2px
solid
#007aff
;
border-bottom
:
2px
solid
$uni-primary
;
}
.selected-item-text
{
color
:
#007aff
;
color
:
$uni-primary
;
}
.tab-c
{
...
...
@@ -319,7 +321,7 @@
.check
{
margin-right
:
5px
;
border
:
2px
solid
#007aff
;
border
:
2px
solid
$uni-primary
;
border-left
:
0
;
border-top
:
0
;
height
:
12px
;
...
...
uni_modules/uni-data-picker/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-data-picker"
,
"displayName"
:
"uni-data-picker 数据驱动的picker选择器"
,
"version"
:
"1.0.
4"
,
"version"
:
"1.0.
8"
,
"description"
:
"单列、多列级联选择器,常用于省市区城市选择、公司部门选择、多级分类等场景"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -18,11 +18,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -39,7 +35,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
@@ -56,7 +53,7 @@
"client"
:
{
"App"
:
{
"app-vue"
:
"y"
,
"app-nvue"
:
"
y"
"app-nvue"
:
"
u"
},
"H5-mobile"
:
{
"Safari"
:
"y"
,
...
...
@@ -76,7 +73,8 @@
"阿里"
:
"y"
,
"百度"
:
"y"
,
"字节跳动"
:
"y"
,
"QQ"
:
"y"
"QQ"
:
"y"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
...
...
uni_modules/uni-data-select/changelog.md
0 → 100644
浏览文件 @
b7fb0671
## 0.1.9(2022-09-05)
-
修复 微信小程序下拉框出现后选择会点击到蒙板后面的输入框
## 0.1.8(2022-08-29)
-
修复 点击的位置不准确
## 0.1.7(2022-08-12)
-
新增 支持 disabled 属性
## 0.1.6(2022-07-06)
-
修复 pc端宽度异常的bug
## 0.1.5
-
修复 pc端宽度异常的bug
## 0.1.4(2022-07-05)
-
优化 显示样式
## 0.1.3(2022-06-02)
-
修复 localdata 赋值不生效的 bug
-
新增 支持 uni.scss 修改颜色
-
新增 支持选项禁用(数据选项设置 disabled: true 即禁用)
## 0.1.2(2022-05-08)
-
修复 当 value 为 0 时选择不生效的 bug
## 0.1.1(2022-05-07)
-
新增 记住上次的选项(仅 collection 存在时有效)
## 0.1.0(2022-04-22)
-
初始化
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
0 → 100644
浏览文件 @
b7fb0671
<
template
>
<view
class=
"uni-stat__select"
>
<span
v-if=
"label"
class=
"uni-label-text hide-on-phone"
>
{{
label
+
'
:
'
}}
</span>
<view
class=
"uni-stat-box"
:class=
"
{'uni-stat__actived': current}">
<view
class=
"uni-select"
:class=
"
{'uni-select--disabled':disabled}">
<view
class=
"uni-select__input-box"
@
click=
"toggleSelector"
>
<view
v-if=
"current"
class=
"uni-select__input-text"
>
{{
current
}}
</view>
<view
v-else
class=
"uni-select__input-text uni-select__input-placeholder"
>
{{
typePlaceholder
}}
</view>
<uni-icons
v-if=
"current && clear"
type=
"clear"
color=
"#c0c4cc"
size=
"24"
@
click=
"clearVal"
/>
<uni-icons
v-else
:type=
"showSelector? 'top' : 'bottom'"
size=
"14"
color=
"#999"
/>
</view>
<view
class=
"uni-select--mask"
v-if=
"showSelector"
@
click=
"toggleSelector"
/>
<view
class=
"uni-select__selector"
v-if=
"showSelector"
>
<view
class=
"uni-popper__arrow"
></view>
<scroll-view
scroll-y=
"true"
class=
"uni-select__selector-scroll"
>
<view
class=
"uni-select__selector-empty"
v-if=
"mixinDatacomResData.length === 0"
>
<text>
{{
emptyTips
}}
</text>
</view>
<view
v-else
class=
"uni-select__selector-item"
v-for=
"(item,index) in mixinDatacomResData"
:key=
"index"
@
click=
"change(item)"
>
<text
:class=
"
{'uni-select__selector__disabled': item.disable}">
{{
formatItemName
(
item
)
}}
</text>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
/**
* DataChecklist 数据选择器
* @description 通过数据渲染的下拉框组件
* @tutorial https://uniapp.dcloud.io/component/uniui/uni-data-select
* @property {String} value 默认值
* @property {Array} localdata 本地数据 ,格式 [{text:'',value:''}]
* @property {Boolean} clear 是否可以清空已选项
* @property {Boolean} emptyText 没有数据时显示的文字 ,本地数据无效
* @property {String} label 左侧标题
* @property {String} placeholder 输入框的提示文字
* @property {Boolean} disabled 是否禁用
* @event {Function} change 选中发生变化触发
*/
export
default
{
name
:
"
uni-stat-select
"
,
mixins
:
[
uniCloud
.
mixinDatacom
||
{}],
data
()
{
return
{
showSelector
:
false
,
current
:
''
,
mixinDatacomResData
:
[],
apps
:
[],
channels
:
[]
};
},
props
:
{
localdata
:
{
type
:
Array
,
default
()
{
return
[]
}
},
value
:
{
type
:
[
String
,
Number
],
default
:
''
},
modelValue
:
{
type
:
[
String
,
Number
],
default
:
''
},
label
:
{
type
:
String
,
default
:
''
},
placeholder
:
{
type
:
String
,
default
:
'
请选择
'
},
emptyTips
:
{
type
:
String
,
default
:
'
无选项
'
},
clear
:
{
type
:
Boolean
,
default
:
true
},
defItem
:
{
type
:
Number
,
default
:
0
},
disabled
:
{
type
:
Boolean
,
default
:
false
}
},
created
()
{
this
.
last
=
`
${
this
.
collection
}
_last_selected_option_value`
if
(
this
.
collection
&&
!
this
.
localdata
.
length
)
{
this
.
mixinDatacomEasyGet
()
}
},
computed
:
{
typePlaceholder
()
{
const
text
=
{
'
opendb-stat-app-versions
'
:
'
版本
'
,
'
opendb-app-channels
'
:
'
渠道
'
,
'
opendb-app-list
'
:
'
应用
'
}
const
common
=
this
.
placeholder
const
placeholder
=
text
[
this
.
collection
]
return
placeholder
?
common
+
placeholder
:
common
}
},
watch
:
{
localdata
:
{
immediate
:
true
,
handler
(
val
,
old
)
{
if
(
Array
.
isArray
(
val
)
&&
old
!==
val
)
{
this
.
mixinDatacomResData
=
val
}
}
},
// #ifndef VUE3
value
()
{
this
.
initDefVal
()
},
// #endif
// #ifdef VUE3
modelValue
()
{
this
.
initDefVal
()
},
// #endif
mixinDatacomResData
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
val
.
length
)
{
this
.
initDefVal
()
}
}
}
},
methods
:
{
initDefVal
()
{
let
defValue
=
''
if
((
this
.
value
||
this
.
value
===
0
)
&&
!
this
.
isDisabled
(
this
.
value
))
{
defValue
=
this
.
value
}
else
if
((
this
.
modelValue
||
this
.
modelValue
===
0
)
&&
!
this
.
isDisabled
(
this
.
modelValue
))
{
defValue
=
this
.
modelValue
}
else
{
let
strogeValue
if
(
this
.
collection
)
{
strogeValue
=
uni
.
getStorageSync
(
this
.
last
)
}
if
(
strogeValue
||
strogeValue
===
0
)
{
defValue
=
strogeValue
}
else
{
let
defItem
=
''
if
(
this
.
defItem
>
0
&&
this
.
defItem
<
this
.
mixinDatacomResData
.
length
)
{
defItem
=
this
.
mixinDatacomResData
[
this
.
defItem
-
1
].
value
}
defValue
=
defItem
}
this
.
emit
(
defValue
)
}
const
def
=
this
.
mixinDatacomResData
.
find
(
item
=>
item
.
value
===
defValue
)
this
.
current
=
def
?
this
.
formatItemName
(
def
)
:
''
},
/**
* @param {[String, Number]} value
* 判断用户给的 value 是否同时为禁用状态
*/
isDisabled
(
value
)
{
let
isDisabled
=
false
;
this
.
mixinDatacomResData
.
forEach
(
item
=>
{
if
(
item
.
value
===
value
)
{
isDisabled
=
item
.
disable
}
})
return
isDisabled
;
},
clearVal
()
{
this
.
emit
(
''
)
if
(
this
.
collection
)
{
uni
.
removeStorageSync
(
this
.
last
)
}
},
change
(
item
)
{
if
(
!
item
.
disable
)
{
this
.
showSelector
=
false
this
.
current
=
this
.
formatItemName
(
item
)
this
.
emit
(
item
.
value
)
}
},
emit
(
val
)
{
this
.
$emit
(
'
change
'
,
val
)
this
.
$emit
(
'
input
'
,
val
)
this
.
$emit
(
'
update:modelValue
'
,
val
)
if
(
this
.
collection
)
{
uni
.
setStorageSync
(
this
.
last
,
val
)
}
},
toggleSelector
()
{
if
(
this
.
disabled
){
return
}
this
.
showSelector
=
!
this
.
showSelector
},
formatItemName
(
item
)
{
let
{
text
,
value
,
channel_code
}
=
item
channel_code
=
channel_code
?
`(
${
channel_code
}
)`
:
''
return
this
.
collection
.
indexOf
(
'
app-list
'
)
>
0
?
`
${
text
}
(
${
value
}
)`
:
(
text
?
text
:
`未命名
${
channel_code
}
`
)
}
}
}
</
script
>
<
style
lang=
"scss"
>
$uni-base-color
:
#6a6a6a
!
default
;
$uni-main-color
:
#333
!
default
;
$uni-secondary-color
:
#909399
!
default
;
$uni-border-3
:
#e5e5e5
;
/* #ifndef APP-NVUE */
@media
screen
and
(
max-width
:
500px
)
{
.hide-on-phone
{
display
:
none
;
}
}
/* #endif */
.uni-stat__select
{
display
:
flex
;
align-items
:
center
;
// padding: 15px;
cursor
:
pointer
;
width
:
100%
;
flex
:
1
;
box-sizing
:
border-box
;
}
.uni-stat-box
{
width
:
100%
;
flex
:
1
;
}
.uni-stat__actived
{
width
:
100%
;
flex
:
1
;
// outline: 1px solid #2979ff;
}
.uni-label-text
{
font-size
:
14px
;
font-weight
:
bold
;
color
:
$uni-base-color
;
margin
:
auto
0
;
margin-right
:
5px
;
}
.uni-select
{
font-size
:
14px
;
border
:
1px
solid
$uni-border-3
;
box-sizing
:
border-box
;
border-radius
:
4px
;
padding
:
0
5px
;
padding-left
:
10px
;
position
:
relative
;
/* #ifndef APP-NVUE */
display
:
flex
;
user-select
:
none
;
/* #endif */
flex-direction
:
row
;
align-items
:
center
;
border-bottom
:
solid
1px
$uni-border-3
;
width
:
100%
;
flex
:
1
;
height
:
35px
;
&
--disabled
{
background-color
:
#f5f7fa
;
cursor
:
not
-
allowed
;
}
}
.uni-select__label
{
font-size
:
16px
;
// line-height: 22px;
height
:
35px
;
padding-right
:
10px
;
color
:
$uni-secondary-color
;
}
.uni-select__input-box
{
height
:
35px
;
position
:
relative
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex
:
1
;
flex-direction
:
row
;
align-items
:
center
;
}
.uni-select__input
{
flex
:
1
;
font-size
:
14px
;
height
:
22px
;
line-height
:
22px
;
}
.uni-select__input-plac
{
font-size
:
14px
;
color
:
$uni-secondary-color
;
}
.uni-select__selector
{
/* #ifndef APP-NVUE */
box-sizing
:
border-box
;
/* #endif */
position
:
absolute
;
top
:
calc
(
100%
+
12px
);
left
:
0
;
width
:
100%
;
background-color
:
#FFFFFF
;
border
:
1px
solid
#EBEEF5
;
border-radius
:
6px
;
box-shadow
:
0
2px
12px
0
rgba
(
0
,
0
,
0
,
0
.1
);
z-index
:
3
;
padding
:
4px
0
;
}
.uni-select__selector-scroll
{
/* #ifndef APP-NVUE */
max-height
:
200px
;
box-sizing
:
border-box
;
/* #endif */
}
.uni-select__selector-empty
,
.uni-select__selector-item
{
/* #ifndef APP-NVUE */
display
:
flex
;
cursor
:
pointer
;
/* #endif */
line-height
:
35px
;
font-size
:
14px
;
text-align
:
center
;
/* border-bottom: solid 1px $uni-border-3; */
padding
:
0px
10px
;
}
.uni-select__selector-item
:hover
{
background-color
:
#f9f9f9
;
}
.uni-select__selector-empty
:last-child
,
.uni-select__selector-item
:last-child
{
/* #ifndef APP-NVUE */
border-bottom
:
none
;
/* #endif */
}
.uni-select__selector__disabled
{
opacity
:
0
.4
;
cursor
:
default
;
}
/* picker 弹出层通用的指示小三角 */
.
uni-popper__arrow
,
.
uni-popper__arrow
:
:
after
{
position
:
absolute
;
display
:
block
;
width
:
0
;
height
:
0
;
border-color
:
transparent
;
border-style
:
solid
;
border-width
:
6px
;
}
.uni-popper__arrow
{
filter
:
drop-shadow
(
0
2px
12px
rgba
(
0
,
0
,
0
,
0
.03
));
top
:
-6px
;
left
:
10%
;
margin-right
:
3px
;
border-top-width
:
0
;
border-bottom-color
:
#EBEEF5
;
}
.
uni-popper__arrow
:
:
after
{
content
:
" "
;
top
:
1px
;
margin-left
:
-6px
;
border-top-width
:
0
;
border-bottom-color
:
#fff
;
}
.uni-select__input-text
{
// width: 280px;
width
:
100%
;
color
:
$uni-main-color
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.uni-select__input-placeholder
{
color
:
$uni-base-color
;
font-size
:
12px
;
}
.uni-select--mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
right
:
0
;
left
:
0
;
}
</
style
>
uni_modules/uni-data-select/package.json
0 → 100644
浏览文件 @
b7fb0671
{
"id"
:
"uni-data-select"
,
"displayName"
:
"uni-data-select 下拉框选择器"
,
"version"
:
"0.1.9"
,
"description"
:
"通过数据驱动的下拉框选择器"
,
"keywords"
:
[
"uni-ui"
,
"select"
,
"uni-data-select"
,
"下拉框"
,
"下拉选"
],
"repository"
:
"https://github.com/dcloudio/uni-ui"
,
"engines"
:
{
"HBuilderX"
:
"^3.1.1"
},
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
},
"sourcecode"
:
{
"price"
:
"0.00"
}
},
"contact"
:
{
"qq"
:
""
},
"declaration"
:
{
"ads"
:
"无"
,
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
"uni-load-more"
],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"y"
,
"aliyun"
:
"y"
},
"client"
:
{
"App"
:
{
"app-vue"
:
"u"
,
"app-nvue"
:
"n"
},
"H5-mobile"
:
{
"Safari"
:
"y"
,
"Android Browser"
:
"y"
,
"微信浏览器(Android)"
:
"y"
,
"QQ浏览器(Android)"
:
"y"
},
"H5-pc"
:
{
"Chrome"
:
"y"
,
"IE"
:
"y"
,
"Edge"
:
"y"
,
"Firefox"
:
"y"
,
"Safari"
:
"y"
},
"小程序"
:
{
"微信"
:
"y"
,
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
"联盟"
:
"u"
},
"Vue"
:
{
"vue2"
:
"y"
,
"vue3"
:
"y"
}
}
}
}
}
uni_modules/uni-data-select/readme.md
0 → 100644
浏览文件 @
b7fb0671
## DataSelect 下拉框选择器
> **组件名:uni-data-select**
> 代码块: `uDataSelect`
当选项过多时,使用下拉菜单展示并选择内容
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-select)
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
uni_modules/uni-datetime-picker/changelog.md
浏览文件 @
b7fb0671
## 2.2.11(2022-09-19)
-
修复,支付宝小程序样式错乱,
[
详情
](
https://github.com/dcloudio/uni-app/issues/3861
)
## 2.2.10(2022-09-19)
-
修复,反向选择日期范围,日期显示异常,
[
详情
](
https://ask.dcloud.net.cn/question/153401?item_id=212892&rf=false
)
## 2.2.9(2022-09-16)
-
可以使用 uni-scss 控制主题色
## 2.2.8(2022-09-08)
-
修复 close事件无效的 bug
## 2.2.7(2022-09-05)
-
修复 移动端 maskClick 无效的 bug,详见:
[
https://ask.dcloud.net.cn/question/140824?item_id=209458&rf=false
](
https://ask.dcloud.net.cn/question/140824?item_id=209458&rf=false
)
## 2.2.6(2022-06-30)
-
优化 组件样式,调整了组件图标大小、高度、颜色等,与uni-ui风格保持一致
## 2.2.5(2022-06-24)
-
修复 日历顶部年月及底部确认未国际化 bug
## 2.2.4(2022-03-31)
-
修复 Vue3 下动态赋值,单选类型未响应的 bug
## 2.2.3(2022-03-28)
-
修复 Vue3 下动态赋值未响应的 bug
## 2.2.2(2021-12-10)
-
修复 clear-icon 属性在小程序平台不生效的 bug
## 2.2.1(2021-12-10)
...
...
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
浏览文件 @
b7fb0671
...
...
@@ -62,6 +62,8 @@
</
script
>
<
style
lang=
"scss"
>
$uni-primary
:
#007aff
!
default
;
.uni-calendar-item__weeks-box
{
flex
:
1
;
/* #ifndef APP-NVUE */
...
...
@@ -78,7 +80,7 @@
font-size
:
14px
;
// font-family: Lato-Bold, Lato;
font-weight
:
bold
;
color
:
#455997
;
color
:
darken
(
$color
:
$uni-primary
,
$amount
:
40%
)
;
}
.uni-calendar-item__weeks-lunar-text
{
...
...
@@ -138,7 +140,7 @@
}
.uni-calendar-item__weeks-box
.uni-calendar-item--checked
{
background-color
:
#007aff
;
background-color
:
$uni-primary
;
border-radius
:
50%
;
box-sizing
:
border-box
;
border
:
3px
solid
#fff
;
...
...
@@ -159,7 +161,7 @@
.uni-calendar-item--multiple
.uni-calendar-item--before-checked
,
.uni-calendar-item--multiple
.uni-calendar-item--after-checked
{
background-color
:
#409eff
;
background-color
:
$uni-primary
;
border-radius
:
50%
;
box-sizing
:
border-box
;
border
:
3px
solid
#F6F7FC
;
...
...
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
浏览文件 @
b7fb0671
<
template
>
<view
class=
"uni-calendar"
@
mouseleave=
"leaveCale"
>
<view
v-if=
"!insert&&show"
class=
"uni-calendar__mask"
:class=
"
{'uni-calendar--mask-show':aniMaskShow}"
@click="clean">
</view>
@click="clean
();maskClick()
">
</view>
<view
v-if=
"insert || show"
class=
"uni-calendar__content"
:class=
"
{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow, 'uni-calendar__content-mobile': aniMaskShow}">
<view
class=
"uni-calendar__header"
:class=
"
{'uni-calendar__header-mobile' :!insert}">
...
...
@@ -10,7 +10,7 @@
</view>
<picker
mode=
"date"
:value=
"date"
fields=
"month"
@
change=
"bindDateChange"
>
<text
class=
"uni-calendar__header-text"
>
{{
(
nowDate
.
year
||
''
)
+
'
年
'
+
(
nowDate
.
month
||
''
)
+
'
月
'
}}
</text>
class=
"uni-calendar__header-text"
>
{{
(
nowDate
.
year
||
''
)
+
yearText
+
(
nowDate
.
month
||
''
)
+
monthText
}}
</text>
</picker>
<view
v-if=
"right"
class=
"uni-calendar__header-btn-box"
@
click.stop=
"next"
>
<view
class=
"uni-calendar__header-btn uni-calendar--right"
></view>
...
...
@@ -31,7 +31,7 @@
<text
class=
"uni-calendar__weeks-day-text"
>
{{
SUNText
}}
</text>
</view>
<view
class=
"uni-calendar__weeks-day"
>
<text
class=
"uni-calendar__weeks-day-text"
>
{{
mon
Text
}}
</text>
<text
class=
"uni-calendar__weeks-day-text"
>
{{
MON
Text
}}
</text>
</view>
<view
class=
"uni-calendar__weeks-day"
>
<text
class=
"uni-calendar__weeks-day-text"
>
{{
TUEText
}}
</text>
...
...
@@ -74,7 +74,9 @@
:hide-second=
"hideSecond"
:disabled=
"!tempRange.before"
class=
"time-picker-style"
>
</time-picker>
</view>
<uni-icons
type=
"arrowthinright"
color=
"#999"
style=
"line-height: 50px;"
></uni-icons>
<view
style=
"line-height: 50px;"
>
<uni-icons
type=
"arrowthinright"
color=
"#999"
></uni-icons>
</view>
<view
class=
"uni-date-changed--time-end"
>
<view
class=
"uni-date-changed--time-date"
>
{{
tempRange
.
after
?
tempRange
.
after
:
endDateText
}}
</view>
<time-picker
type=
"time"
:end=
"reactEndTime"
v-model=
"timeRange.endTime"
:border=
"false"
...
...
@@ -86,7 +88,7 @@
<!--
<view
class=
"uni-calendar__header-btn-box"
>
<text
class=
"uni-calendar__button-text uni-calendar--fixed-width"
>
{{
okText
}}
</text>
</view>
-->
<view
class=
"uni-datetime-picker--btn"
@
click=
"confirm"
>
确认
</view>
<view
class=
"uni-datetime-picker--btn"
@
click=
"confirm"
>
{{
confirmText
}}
</view>
</view>
</view>
</view>
...
...
@@ -332,7 +334,13 @@
okText
()
{
return
t
(
"
uni-datetime-picker.ok
"
)
},
monText
()
{
yearText
()
{
return
t
(
"
uni-datetime-picker.year
"
)
},
monthText
()
{
return
t
(
"
uni-datetime-picker.month
"
)
},
MONText
()
{
return
t
(
"
uni-calender.MON
"
)
},
TUEText
()
{
...
...
@@ -353,6 +361,9 @@
SUNText
()
{
return
t
(
"
uni-calender.SUN
"
)
},
confirmText
()
{
return
t
(
"
uni-calender.confirm
"
)
},
},
created
()
{
// 获取日历方法实例
...
...
@@ -402,6 +413,11 @@
this
.
close
()
},
// 蒙版点击事件
maskClick
()
{
this
.
$emit
(
'
maskClose
'
)
},
clearCalender
()
{
if
(
this
.
range
)
{
this
.
timeRange
.
startTime
=
''
...
...
@@ -537,8 +553,16 @@
this
.
cale
.
setMultiple
(
this
.
calendar
.
fullDate
,
true
)
this
.
weeks
=
this
.
cale
.
weeks
this
.
tempSingleDate
=
this
.
calendar
.
fullDate
const
beforeStatus
=
this
.
cale
.
multipleStatus
.
before
const
beforeDate
=
new
Date
(
this
.
cale
.
multipleStatus
.
before
).
getTime
()
const
afterDate
=
new
Date
(
this
.
cale
.
multipleStatus
.
after
).
getTime
()
if
(
beforeDate
>
afterDate
&&
afterDate
)
{
this
.
tempRange
.
before
=
this
.
cale
.
multipleStatus
.
after
this
.
tempRange
.
after
=
this
.
cale
.
multipleStatus
.
before
}
else
{
this
.
tempRange
.
before
=
this
.
cale
.
multipleStatus
.
before
this
.
tempRange
.
after
=
this
.
cale
.
multipleStatus
.
after
}
this
.
change
()
},
/**
...
...
@@ -595,6 +619,8 @@
</
script
>
<
style
lang=
"scss"
>
$uni-primary
:
#007aff
!
default
;
.uni-calendar
{
/* #ifndef APP-NVUE */
display
:
flex
;
...
...
@@ -705,7 +731,7 @@
text-align
:
center
;
width
:
100px
;
font-size
:
14px
;
color
:
#007aff
;
color
:
$uni-primary
;
/* #ifndef APP-NVUE */
letter-spacing
:
3px
;
/* #endif */
...
...
@@ -884,10 +910,10 @@
border-radius
:
100px
;
height
:
40px
;
line-height
:
40px
;
background-color
:
#007aff
;
background-color
:
$uni-primary
;
color
:
#fff
;
font-size
:
16px
;
letter-spacing
:
5
px
;
letter-spacing
:
2
px
;
}
/* #ifndef APP-NVUE */
...
...
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json
浏览文件 @
b7fb0671
...
...
@@ -9,11 +9,14 @@
"uni-datetime-picker.ok"
:
"ok"
,
"uni-datetime-picker.clear"
:
"clear"
,
"uni-datetime-picker.cancel"
:
"cancel"
,
"uni-datetime-picker.year"
:
"-"
,
"uni-datetime-picker.month"
:
""
,
"uni-calender.MON"
:
"MON"
,
"uni-calender.TUE"
:
"TUE"
,
"uni-calender.WED"
:
"WED"
,
"uni-calender.THU"
:
"THU"
,
"uni-calender.FRI"
:
"FRI"
,
"uni-calender.SAT"
:
"SAT"
,
"uni-calender.SUN"
:
"SUN"
"uni-calender.SUN"
:
"SUN"
,
"uni-calender.confirm"
:
"confirm"
}
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json
浏览文件 @
b7fb0671
...
...
@@ -9,11 +9,14 @@
"uni-datetime-picker.ok"
:
"确定"
,
"uni-datetime-picker.clear"
:
"清除"
,
"uni-datetime-picker.cancel"
:
"取消"
,
"uni-datetime-picker.year"
:
"年"
,
"uni-datetime-picker.month"
:
"月"
,
"uni-calender.SUN"
:
"日"
,
"uni-calender.MON"
:
"一"
,
"uni-calender.TUE"
:
"二"
,
"uni-calender.WED"
:
"三"
,
"uni-calender.THU"
:
"四"
,
"uni-calender.FRI"
:
"五"
,
"uni-calender.SAT"
:
"六"
"uni-calender.SAT"
:
"六"
,
"uni-calender.confirm"
:
"确认"
}
\ No newline at end of file
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json
浏览文件 @
b7fb0671
...
...
@@ -9,11 +9,14 @@
"uni-datetime-picker.ok"
:
"確定"
,
"uni-datetime-picker.clear"
:
"清除"
,
"uni-datetime-picker.cancel"
:
"取消"
,
"uni-datetime-picker.year"
:
"年"
,
"uni-datetime-picker.month"
:
"月"
,
"uni-calender.SUN"
:
"日"
,
"uni-calender.MON"
:
"一"
,
"uni-calender.TUE"
:
"二"
,
"uni-calender.WED"
:
"三"
,
"uni-calender.THU"
:
"四"
,
"uni-calender.FRI"
:
"五"
,
"uni-calender.SAT"
:
"六"
"uni-calender.SAT"
:
"六"
,
"uni-calender.confirm"
:
"確認"
}
\ No newline at end of file
uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
浏览文件 @
b7fb0671
...
...
@@ -770,7 +770,9 @@
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
$uni-primary
:
#007aff
!
default
;
.uni-datetime-picker
{
/* #ifndef APP-NVUE */
/* width: 100%; */
...
...
@@ -804,7 +806,7 @@
.uni-datetime-picker-btn-text
{
font-size
:
14px
;
color
:
#007AFF
;
color
:
$uni-primary
;
}
.uni-datetime-picker-btn-group
{
...
...
@@ -889,6 +891,7 @@
.uni-datetime-picker-text
{
font-size
:
14px
;
line-height
:
50px
}
.uni-datetime-picker-sign
{
...
...
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
浏览文件 @
b7fb0671
...
...
@@ -5,12 +5,12 @@
<view
class=
"uni-date-editor--x"
:class=
"
{'uni-date-editor--x__disabled': disabled,
'uni-date-x--border': border}">
<view
v-if=
"!isRange"
class=
"uni-date-x uni-date-single"
>
<uni-icons
type=
"calendar"
color=
"#
e1e1e1
"
size=
"22"
></uni-icons>
<uni-icons
type=
"calendar"
color=
"#
c0c4cc
"
size=
"22"
></uni-icons>
<input
class=
"uni-date__x-input"
type=
"text"
v-model=
"singleVal"
:placeholder=
"singlePlaceholderText"
:disabled=
"true"
/>
</view>
<view
v-else
class=
"uni-date-x uni-date-range"
>
<uni-icons
type=
"calendar"
color=
"#
e1e1e1
"
size=
"22"
></uni-icons>
<uni-icons
type=
"calendar"
color=
"#
c0c4cc
"
size=
"22"
></uni-icons>
<input
class=
"uni-date__x-input t-c"
type=
"text"
v-model=
"range.startDate"
:placeholder=
"startPlaceholderText"
:disabled=
"true"
/>
<slot>
...
...
@@ -20,7 +20,7 @@
:placeholder=
"endPlaceholderText"
:disabled=
"true"
/>
</view>
<view
v-if=
"showClearIcon"
class=
"uni-date__icon-clear"
@
click.stop=
"clear"
>
<uni-icons
type=
"clear"
color=
"#
e1e1e1"
size=
"18
"
></uni-icons>
<uni-icons
type=
"clear"
color=
"#
c0c4cc"
size=
"24
"
></uni-icons>
</view>
</view>
</slot>
...
...
@@ -91,7 +91,7 @@
<calendar
v-show=
"isPhone"
ref=
"mobile"
:clearDate=
"false"
:date=
"defSingleDate"
:defTime=
"reactMobDefTime"
:start-date=
"caleRange.startDate"
:end-date=
"caleRange.endDate"
:selectableTimes=
"mobSelectableTime"
:pleStatus=
"endMultipleStatus"
:showMonth=
"false"
:range=
"isRange"
:typeHasTime=
"hasTime"
:insert=
"false"
:hideSecond=
"hideSecond"
@
confirm=
"mobileChange"
/>
:hideSecond=
"hideSecond"
@
confirm=
"mobileChange"
@
maskClose=
"close"
/>
</view>
</
template
>
<
script
>
...
...
@@ -127,10 +127,23 @@
export
default
{
name
:
'
UniDatetimePicker
'
,
options
:
{
virtualHost
:
true
},
components
:
{
calendar
,
timePicker
},
inject
:
{
form
:
{
from
:
'
uniForm
'
,
default
:
null
},
formItem
:
{
from
:
'
uniFormItem
'
,
default
:
null
},
},
data
()
{
return
{
isRange
:
false
,
...
...
@@ -386,33 +399,16 @@
}
},
created
()
{
this
.
form
=
this
.
getForm
(
'
uniForms
'
)
this
.
formItem
=
this
.
getForm
(
'
uniFormsItem
'
)
// if (this.formItem) {
// if (this.formItem.name) {
// this.rename = this.formItem.name
// this.form.inputChildrens.push(this)
// }
// if (this.form && this.formItem) {
// this.$watch('formItem.errMsg', (newVal) => {
// this.localMsg = newVal
// })
// }
},
mounted
()
{
this
.
platform
()
},
methods
:
{
/**
* 获取父元素实例
*/
getForm
(
name
=
'
uniForms
'
)
{
let
parent
=
this
.
$parent
;
let
parentName
=
parent
.
$options
.
name
;
while
(
parentName
!==
name
)
{
parent
=
parent
.
$parent
;
if
(
!
parent
)
return
false
parentName
=
parent
.
$options
.
name
;
}
return
parent
;
},
initPicker
(
newVal
)
{
if
(
!
newVal
||
Array
.
isArray
(
newVal
)
&&
!
newVal
.
length
)
{
this
.
$nextTick
(()
=>
{
...
...
@@ -520,6 +516,7 @@
setTimeout
(()
=>
{
this
.
popup
=
false
this
.
$emit
(
'
maskClick
'
,
this
.
value
)
this
.
$refs
.
mobile
.
close
()
},
20
)
},
setEmit
(
value
)
{
...
...
@@ -545,7 +542,8 @@
}
}
}
this
.
formItem
&&
this
.
formItem
.
setValue
(
value
)
this
.
$emit
(
'
change
'
,
value
)
this
.
$emit
(
'
input
'
,
value
)
this
.
$emit
(
'
update:modelValue
'
,
value
)
...
...
@@ -710,7 +708,15 @@
this
.
$refs
.
pcSingle
&&
this
.
$refs
.
pcSingle
.
clearCalender
()
}
if
(
needEmit
)
{
this
.
formItem
&&
this
.
formItem
.
setValue
(
''
)
// 校验规则
// if(this.form && this.formItem){
// const {
// validateTrigger
// } = this.form
// if (validateTrigger === 'blur') {
// this.formItem.onFieldChange()
// }
// }
this
.
$emit
(
'
change
'
,
''
)
this
.
$emit
(
'
input
'
,
''
)
this
.
$emit
(
'
update:modelValue
'
,
''
)
...
...
@@ -730,7 +736,6 @@
this
.
$refs
.
right
&&
this
.
$refs
.
right
.
next
()
}
if
(
needEmit
)
{
this
.
formItem
&&
this
.
formItem
.
setValue
([])
this
.
$emit
(
'
change
'
,
[])
this
.
$emit
(
'
input
'
,
[])
this
.
$emit
(
'
update:modelValue
'
,
[])
...
...
@@ -778,7 +783,15 @@
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
$uni-primary
:
#007aff
!
default
;
.uni-date
{
/* #ifndef APP-NVUE */
width
:
100%
;
/* #endif */
flex
:
1
;
}
.uni-date-x
{
display
:
flex
;
flex-direction
:
row
;
...
...
@@ -789,25 +802,25 @@
background-color
:
#fff
;
color
:
#666
;
font-size
:
14px
;
flex
:
1
;
}
.uni-date-x--border
{
box-sizing
:
border-box
;
border-radius
:
4px
;
border
:
1px
solid
#
dcdfe6
;
border
:
1px
solid
#
e5e5e5
;
}
.uni-date-editor--x
{
display
:
flex
;
align-items
:
center
;
position
:
relative
;
}
.uni-date-editor--x
.uni-date__icon-clear
{
position
:
absolute
;
top
:
0
;
right
:
0
;
display
:
inline-block
;
box-sizing
:
border-box
;
border
:
9px
solid
transparent
;
padding
:
0
5px
;
display
:
flex
;
align-items
:
center
;
/* #ifdef H5 */
cursor
:
pointer
;
/* #endif */
...
...
@@ -815,10 +828,15 @@
.uni-date__x-input
{
padding
:
0
8px
;
height
:
40px
;
width
:
100%
;
line-height
:
40px
;
/* #ifndef APP-NVUE */
width
:
auto
;
/* #endif */
position
:
relative
;
overflow
:
hidden
;
flex
:
1
;
line-height
:
1
;
font-size
:
14px
;
height
:
35px
;
}
.t-c
{
...
...
@@ -926,14 +944,14 @@
}
.popup-x-footer
text
:hover
{
color
:
#007aff
;
color
:
$uni-primary
;
cursor
:
pointer
;
opacity
:
0
.8
;
}
.popup-x-footer
.confirm
{
margin-left
:
20px
;
color
:
#007aff
;
color
:
$uni-primary
;
}
.uni-date-changed
{
...
...
uni_modules/uni-datetime-picker/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-datetime-picker"
,
"displayName"
:
"uni-datetime-picker 日期选择器"
,
"version"
:
"2.2.
2
"
,
"version"
:
"2.2.
11
"
,
"description"
:
"uni-datetime-picker 日期时间选择器,支持日历,支持范围选择"
,
"keywords"
:
[
"uni-datetime-picker"
,
...
...
@@ -17,11 +17,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -38,7 +34,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
uni_modules/uni-easyinput/changelog.md
浏览文件 @
b7fb0671
## 1.1.1(2022-09-19)
-
修复,输入后回车,change 事件触发两次,
[
详情
](
https://ask.dcloud.net.cn/question/152149
)
## 1.1.0(2022-06-30)
-
新增 在 uni-forms 1.4.0 中使用可以在 blur 时校验内容
-
新增 clear 事件,点击右侧叉号图标触发
...
...
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
浏览文件 @
b7fb0671
...
...
@@ -202,7 +202,8 @@
showClearIcon
:
false
,
showPassword
:
false
,
focusShow
:
false
,
localMsg
:
''
localMsg
:
''
,
isEnter
:
false
// 用于判断当前是否是使用回车操作
};
},
computed
:
{
...
...
@@ -372,7 +373,9 @@
this
.
focusShow
=
false
this
.
$emit
(
'
blur
'
,
event
);
// 根据类型返回值,在event中获取的值理论上讲都是string
if
(
this
.
isEnter
===
false
)
{
this
.
$emit
(
'
change
'
,
this
.
val
)
}
// 失去焦点时参与表单校验
if
(
this
.
form
&&
this
.
formItem
)
{
const
{
...
...
@@ -390,7 +393,11 @@
*/
onConfirm
(
e
)
{
this
.
$emit
(
'
confirm
'
,
this
.
val
);
this
.
isEnter
=
true
;
this
.
$emit
(
'
change
'
,
this
.
val
)
this
.
$nextTick
(()
=>
{
this
.
isEnter
=
false
})
},
/**
...
...
uni_modules/uni-easyinput/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-easyinput"
,
"displayName"
:
"uni-easyinput 增强输入框"
,
"version"
:
"1.1.
0
"
,
"version"
:
"1.1.
1
"
,
"description"
:
"Easyinput 组件是对原生input组件的增强"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -17,11 +17,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -38,7 +34,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
uni_modules/uni-fab/changelog.md
浏览文件 @
b7fb0671
## 1.2.4(2022-09-07)
小程序端由于 style 使用了对象导致报错,
[
详情
](
https://ask.dcloud.net.cn/question/152790?item_id=211778&rf=false
)
## 1.2.3(2022-09-05)
-
修复 nvue 环境下,具有 tabBar 时,fab 组件下部位置无法正常获取 --window-bottom 的bug,详见:
[
https://ask.dcloud.net.cn/question/110638?notification_id=826310
](
https://ask.dcloud.net.cn/question/110638?notification_id=826310
)
## 1.2.2(2021-12-29)
-
更新 组件依赖
## 1.2.1(2021-11-19)
...
...
uni_modules/uni-fab/components/uni-fab/uni-fab.vue
浏览文件 @
b7fb0671
...
...
@@ -5,7 +5,9 @@
'uni-fab--rightBottom': rightBottom,
'uni-fab--leftTop': leftTop,
'uni-fab--rightTop': rightTop
}" class="uni-fab">
}" class="uni-fab"
:style="nvueBottom"
>
<view
:class=
"
{
'uni-fab__content--left': horizontal === 'left',
'uni-fab__content--right': horizontal === 'right',
...
...
@@ -32,7 +34,7 @@
'uni-fab__circle--leftTop': leftTop,
'uni-fab__circle--rightTop': rightTop,
'uni-fab__content--other-platform': !isAndroidNvue
}" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick">
}" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor
, 'bottom': nvueBottom
}" @click="_onClick">
<uni-icons
class=
"fab-circle-icon"
type=
"plusempty"
:color=
"styles.iconColor"
size=
"32"
:class=
"
{'uni-fab__plus--active': isShow
&&
content.length > 0}">
</uni-icons>
<!--
<view
class=
"fab-circle-v"
:class=
"
{'uni-fab__plus--active': isShow
&&
content.length > 0}">
</view>
...
...
@@ -158,6 +160,16 @@
},
horizontalRight
()
{
return
this
.
getPosition
(
2
,
'
horizontal
'
,
'
right
'
)
},
// 计算 nvue bottom
nvueBottom
()
{
const
safeBottom
=
uni
.
getSystemInfoSync
().
windowBottom
;
// #ifdef APP-NVUE
return
30
+
safeBottom
// #endif
// #ifndef APP-NVUE
return
30
// #endif
}
},
watch
:
{
...
...
uni_modules/uni-fab/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-fab"
,
"displayName"
:
"uni-fab 悬浮按钮"
,
"version"
:
"1.2.
2
"
,
"version"
:
"1.2.
4
"
,
"description"
:
"悬浮按钮 fab button ,点击可展开一个图标按钮菜单。"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -17,11 +17,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -38,7 +34,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
"uni-scss"
,
"uni-icons"
],
...
...
uni_modules/uni-feedback/changelog.md
浏览文件 @
b7fb0671
## 1.1.0(2022-07-13)
新增,应用
[
pages_init
](
https://uniapp.dcloud.io/plugin/publish.html#pages-init
)
当导入插件到项目工程时,自动合并本插件的页面路由到项目的pages.json
## 1.0.5(2022-07-13)
新增,应用
[
pages_init
](
https://uniapp.dcloud.io/plugin/publish.html#pages-init
)
当导入插件到项目工程时,自动合并本插件的页面路由到项目的pages.json
## 1.0.4(2021-09-26)
为了数据安全,
`opendb-feedback`
表的
`permission`
中
`delete`
,
`update`
的值默认为
`false`
## 1.0.3(2021-08-26)
...
...
uni_modules/uni-feedback/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-feedback"
,
"displayName"
:
"问题反馈页面模板"
,
"version"
:
"1.
0.4
"
,
"version"
:
"1.
1.0
"
,
"description"
:
"问题反馈页面模板,方便开发者快速搭建问题反馈界面"
,
"keywords"
:
[
"问题反馈页面模板"
...
...
@@ -72,7 +72,11 @@
"阿里"
:
"y"
,
"百度"
:
"y"
,
"字节跳动"
:
"y"
,
"QQ"
:
"y"
"QQ"
:
"y"
,
"钉钉"
:
"u"
,
"快手"
:
"u"
,
"飞书"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
...
...
uni_modules/uni-feedback/pages/opendb-feedback/list.vue
浏览文件 @
b7fb0671
...
...
@@ -51,7 +51,7 @@
fabClick
()
{
// 打开新增页面
uni
.
navigateTo
({
url
:
'
./
add
'
,
url
:
'
./
opendb-feedback
'
,
events
:
{
// 监听新增数据成功后, 刷新当前页面数据
refreshData
:
()
=>
{
...
...
uni_modules/uni-file-picker/changelog.md
浏览文件 @
b7fb0671
## 1.0.2(2022-07-04)
-
修复 在uni-forms下样式不生效的bug
## 1.0.1(2021-11-23)
-
修复 参数为对象的情况下,url在某些情况显示错误的bug
## 1.0.0(2021-11-19)
...
...
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
浏览文件 @
b7fb0671
...
...
@@ -84,6 +84,9 @@
uploadImage
,
uploadFile
},
options
:
{
virtualHost
:
true
},
emits
:
[
'
select
'
,
'
success
'
,
'
fail
'
,
'
progress
'
,
'
delete
'
,
'
update:modelValue
'
,
'
input
'
],
props
:
{
// #ifdef VUE3
...
...
@@ -278,7 +281,7 @@
files
.
push
(
Object
.
assign
({},
v
))
}
})
this
.
uploadFiles
(
files
)
return
this
.
uploadFiles
(
files
)
},
async
setValue
(
newVal
,
oldVal
)
{
const
newData
=
async
(
v
)
=>
{
...
...
@@ -416,11 +419,12 @@
*/
uploadFiles
(
files
)
{
files
=
[].
concat
(
files
)
uploadCloudFiles
.
call
(
this
,
files
,
5
,
res
=>
{
return
uploadCloudFiles
.
call
(
this
,
files
,
5
,
res
=>
{
this
.
setProgress
(
res
,
res
.
index
,
true
)
})
.
then
(
result
=>
{
this
.
setSuccessAndError
(
result
)
return
result
;
})
.
catch
(
err
=>
{
console
.
log
(
err
)
...
...
@@ -606,7 +610,9 @@
/* #ifndef APP-NVUE */
box-sizing
:
border-box
;
overflow
:
hidden
;
width
:
100%
;
/* #endif */
flex
:
1
;
}
.uni-file-picker__header
{
...
...
uni_modules/uni-file-picker/components/uni-file-picker/utils.js
浏览文件 @
b7fb0671
uni_modules/uni-file-picker/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-file-picker"
,
"displayName"
:
"uni-file-picker 文件选择上传"
,
"version"
:
"1.0.
1"
,
"version"
:
"1.0.
2"
,
"description"
:
"文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间"
,
"keywords"
:
[
"uni-ui"
,
...
...
uni_modules/uni-id-pages/changelog.md
浏览文件 @
b7fb0671
## 1.0.19(2022-09-20)
-
修复 小程序端,使用将自定义节点设置成
[
虚拟节点
](
https://uniapp.dcloud.net.cn/tutorial/vue-api.html#%E5%85%B6%E4%BB%96%E9%85%8D%E7%BD%AE
)
的uni-ui组件,样式错乱的问题
## 1.0.18(2022-09-20)
-
修复 微信小程序端 WXSS 编译报错的bug
## 1.0.17(2022.09-19)
-
修复 无法退出登录的bug
## 1.0.16(2022-09-19)
-
修复 在 Edge 浏览器下 input[type="password"] 会出现浏览器自带的密码查看按钮
-
优化 退出登录重定向页面为 uniIdRouter.loginPage
-
新增 注册账号页面支持返回登录页面
## 1.0.15(2022-09-19)
-
更新表结构,解决在uni-admin中部分clientDB操作没有权限的问题
## 1.0.14(2022-09-16)
-
修改 配置项
`isAdmin`
默认值为
`false`
## 1.0.13(2022-09-16)
...
...
uni_modules/uni-id-pages/common/common.js
浏览文件 @
b7fb0671
import
config
from
'
../config
'
import
pagesJson
from
'
@/pages.json
'
const
uniIdCo
=
uniCloud
.
importObject
(
"
uni-id-co
"
)
export
default
{
async
logout
()
{
...
...
@@ -6,7 +6,7 @@ export default {
uni
.
removeStorageSync
(
'
uni_id_token
'
);
uni
.
setStorageSync
(
'
uni_id_token_expired
'
,
0
)
uni
.
redirectTo
({
url
:
config
.
isAdmin
?
'
/uni_modules/uni-id-pages/pages/login/login-withpwd
'
:
'
/uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
,
url
:
`/
${
pagesJson
.
uniIdRouter
?.
loginPage
??
'
uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
}
`
,
});
uni.$emit('uni-id-pages-logout')
},
...
...
uni_modules/uni-id-pages/common/login-page.scss
浏览文件 @
b7fb0671
// 隐藏 edge 浏览器的密码查看按钮
/* #ifdef H5 */
.
input-box
:
:
v-deep
{
.uni-input-input
[
type
=
"password"
]
{
&
::-ms-reveal
{
display
:
none
;
}
}
}
/* #endif */
.uni-content
{
padding
:
0
60rpx
;
}
...
...
@@ -68,9 +80,15 @@
margin
:
6px
0
;
}
/* #ifdef MP */
// 解决小程序端开启虚拟节点virtualHost引起的 class = input-box丢失的问题 [详情参考](https://uniapp.dcloud.net.cn/matter.html#%E5%90%84%E5%AE%B6%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6%E4%B8%8D%E5%90%8C-%E5%8F%AF%E8%83%BD%E5%AD%98%E5%9C%A8%E7%9A%84%E5%B9%B3%E5%8F%B0%E5%85%BC%E5%AE%B9%E9%97%AE%E9%A2%98)
.
uni-content
:
:
v-deep
.
uni-easyinput__content
,
/*
#endif
*/
.
input-box
{
padding
:
4px
;
background-color
:
#F8F8F8
;
background-color
:
#F8F8F8
!
important
;
border-radius
:
0
;
font-size
:
14px
;
/* #ifndef APP-NVUE */
...
...
@@ -100,4 +118,3 @@
.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd
{
height
:
auto
!
important
;
}
\ No newline at end of file
uni_modules/uni-id-pages/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-id-pages"
,
"displayName"
:
"uni-id-pages"
,
"version"
:
"1.0.1
4
"
,
"version"
:
"1.0.1
9
"
,
"description"
:
"云端一体简单、统一、可扩展的用户中心页面模版"
,
"keywords"
:
[
"用户管理"
,
...
...
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
浏览文件 @
b7fb0671
...
...
@@ -170,6 +170,10 @@
position
:
relative
;
}
/* #ifdef MP */
// 解决小程序端开启虚拟节点virtualHost引起的 class = input-box丢失的问题 [详情参考](https://uniapp.dcloud.net.cn/matter.html#%E5%90%84%E5%AE%B6%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6%E4%B8%8D%E5%90%8C-%E5%8F%AF%E8%83%BD%E5%AD%98%E5%9C%A8%E7%9A%84%E5%B9%B3%E5%8F%B0%E5%85%BC%E5%AE%B9%E9%97%AE%E9%A2%98)
.
phone-box
:
:
v-deep
.
uni-easyinput__content
,
/*
#endif
*/
.
input-box
{
/* #ifndef APP-NVUE */
box-sizing
:
border-box
;
...
...
uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue
浏览文件 @
b7fb0671
...
...
@@ -31,6 +31,7 @@
<view
class=
"link-box"
>
<text
class=
"link"
@
click=
"retrieveByPhone"
>
通过手机验证码找回密码
</text>
<view></view>
<text
class=
"link"
@
click=
"backLogin"
>
返回登录
</text>
</view>
</match-media>
</uni-forms>
...
...
@@ -182,6 +183,11 @@
uni
.
navigateTo
({
url
:
'
/uni_modules/uni-id-pages/pages/retrieve/retrieve
'
})
},
backLogin
()
{
uni
.
redirectTo
({
url
:
'
/uni_modules/uni-id-pages/pages/login/login-withpwd
'
})
}
}
}
...
...
uni_modules/uni-id-pages/pages/retrieve/retrieve.vue
浏览文件 @
b7fb0671
...
...
@@ -31,6 +31,7 @@
<view
class=
"link-box"
>
<text
class=
"link"
@
click=
"retrieveByEmail"
>
通过邮箱验证码找回密码
</text>
<view></view>
<text
class=
"link"
@
click=
"backLogin"
>
返回登录
</text>
</view>
</match-media>
</uni-forms>
...
...
@@ -206,6 +207,11 @@
uni
.
navigateTo
({
url
:
'
/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email
'
})
},
backLogin
()
{
uni
.
redirectTo
({
url
:
'
/uni_modules/uni-id-pages/pages/login/login-withpwd
'
})
}
}
}
...
...
uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
浏览文件 @
b7fb0671
...
...
@@ -31,6 +31,7 @@
<
script
>
import
mixin
from
'
@/uni_modules/uni-id-pages/common/login-page.mixin.js
'
;
import
passwordMod
from
'
@/uni_modules/uni-id-pages/common/password.js
'
const
uniIdCo
=
uniCloud
.
importObject
(
"
uni-id-co
"
,
{
customUI
:
true
})
...
...
@@ -58,36 +59,7 @@
}
]
},
newPassword
:
{
rules
:
[{
required
:
true
,
errorMessage
:
'
请输入新密码
'
,
},
{
pattern
:
/^.
{6,20}
$/
,
errorMessage
:
'
密码为6 - 20位
'
,
}
]
},
newPassword2
:
{
rules
:
[{
required
:
true
,
errorMessage
:
'
请确认密码
'
,
},
{
pattern
:
/^.
{6,20}
$/
,
errorMessage
:
'
密码为6 - 20位
'
,
},
{
validateFunction
:
function
(
rule
,
value
,
data
,
callback
)
{
if
(
value
!=
data
.
newPassword
)
{
callback
(
'
两次输入密码不一致
'
)
};
return
true
}
}
]
}
...
passwordMod
.
getPwdRules
(
'
newPassword
'
,
'
newPassword2
'
)
},
logo
:
"
/static/logo.png
"
}
...
...
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
浏览文件 @
b7fb0671
...
...
@@ -117,7 +117,7 @@
// #endif
// #ifdef MP-WEIXIN
this
.
$refs
[
'
bind-mobile
'
].
open
()
this
.
$refs
[
'
bind-mobile
-by-sms
'
].
open
()
// #endif
// #ifdef H5
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
浏览文件 @
b7fb0671
{
"name"
:
"uni-id-co"
,
"version"
:
"1.0.1
3
"
,
"version"
:
"1.0.1
9
"
,
"description"
:
""
,
"main"
:
"index.js"
,
"keywords"
:
[],
...
...
uni_modules/uni-id-pages/uniCloud/database/uni-id-log.schema.json
浏览文件 @
b7fb0671
{
"bsonType"
:
"object"
,
"required"
:
[
"user_id"
],
"permission"
:
{
"read"
:
"'READ_UNI_ID_LOG' in auth.permission"
},
"properties"
:
{
"_id"
:
{
"description"
:
"ID,系统自动生成"
...
...
@@ -44,6 +48,7 @@
},
"user_id"
:
{
"bsonType"
:
"string"
,
"foreignKey"
:
"uni-id-users._id"
,
"description"
:
"用户id,参考uni-id-users表"
},
"username"
:
{
...
...
@@ -62,6 +67,5 @@
"bsonType"
:
"string"
,
"description"
:
"客户端DCloud AppId"
}
},
"required"
:
[]
}
}
uni_modules/uni-id-pages/uniCloud/database/uni-id-permissions.schema.json
浏览文件 @
b7fb0671
{
"bsonType"
:
"object"
,
"required"
:
[
"permission_id"
,
"permission_name"
],
"permission"
:
{
"read"
:
"'READ_UNI_ID_PERMISSIONS' in auth.permission"
,
"create"
:
"'CREATE_UNI_ID_PERMISSIONS' in auth.permission"
,
"update"
:
"'UPDATE_UNI_ID_PERMISSIONS' in auth.permission"
,
"delete"
:
"'DELETE_UNI_ID_PERMISSIONS' in auth.permission"
},
"properties"
:
{
"_id"
:
{
"description"
:
"存储文档 ID,系统自动生成"
...
...
@@ -41,9 +48,5 @@
"title"
:
"权限名称"
,
"trim"
:
"both"
}
},
"required"
:
[
"permission_id"
,
"permission_name"
]
}
}
uni_modules/uni-id-pages/uniCloud/database/uni-id-roles.schema.json
浏览文件 @
b7fb0671
{
"bsonType"
:
"object"
,
"required"
:
[
"role_id"
,
"role_name"
],
"permission"
:
{
"
create"
:
false
,
"
delete"
:
false
,
"
read"
:
false
,
"
update"
:
false
"
read"
:
"'READ_UNI_ID_ROLES' in auth.permission"
,
"
create"
:
"'CREATE_UNI_ID_ROLES' in auth.permission"
,
"
update"
:
"'UPDATE_UNI_ID_ROLES' in auth.permission"
,
"
delete"
:
"'DELETE_UNI_ID_ROLES' in auth.permission"
},
"properties"
:
{
"_id"
:
{
"description"
:
"存储文档 ID,系统自动生成"
},
"comment"
:
{
"title"
:
"备注"
,
"bsonType"
:
"string"
,
"description"
:
"备注"
,
"title"
:
"备注"
,
"trim"
:
"both"
},
"create_date"
:
{
...
...
@@ -24,25 +25,26 @@
}
},
"permission"
:
{
"title"
:
"权限"
,
"bsonType"
:
"array"
,
"description"
:
"角色拥有的权限列表"
,
"foreignKey"
:
"uni-id-permissions.permission_id"
,
"title"
:
"权限"
"description"
:
"角色拥有的权限列表"
,
"enum"
:
{
"collection"
:
"uni-id-permissions"
,
"field"
:
"permission_name as text, permission_id as value"
}
},
"role_id"
:
{
"title"
:
"唯一ID"
,
"bsonType"
:
"string"
,
"description"
:
"角色唯一标识,不可修改,不允许重复"
,
"title"
:
"唯一ID"
,
"trim"
:
"both"
},
"role_name"
:
{
"title"
:
"名称"
,
"bsonType"
:
"string"
,
"description"
:
"角色名称"
,
"title"
:
"名称"
,
"trim"
:
"both"
}
},
"required"
:
[
"role_id"
]
}
}
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
浏览文件 @
b7fb0671
{
"bsonType"
:
"object"
,
"required"
:
[
"username"
,
"password"
],
"permission"
:
{
"update"
:
"doc._id == auth.uid"
,
"read"
:
true
"read"
:
true
,
"create"
:
"'CREATE_UNI_ID_USERS' in auth.permission"
,
"update"
:
"doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission"
,
"delete"
:
"'DELETE_UNI_ID_USERS' in auth.permission"
},
"properties"
:
{
"_id"
:
{
...
...
@@ -425,6 +428,5 @@
"read"
:
"doc._id == auth.uid"
}
}
},
"required"
:
[]
}
}
uni_modules/uni-id/changelog.md
浏览文件 @
b7fb0671
## 3.3.28(2022-07-27)
-
修复 app端微信登录返回的accessToken过期时间(expired)不正确的Bug
## 3.3.27(2022-07-27)
-
短信发送失败、微信登录失败等场景下输出原始错误方便排查错误
## 3.3.26(2022-07-08)
-
兼容配置放在uni-id下的逻辑,但是仍推荐使用uni-config-center
## 3.3.25(2022-06-30)
-
修复config文件不合法时未抛出具体错误的Bug
## 3.3.24(2022-06-28)
-
修复3.3.12引出的使用多应用配置时报错的Bug
## 3.3.23(2022-06-13)
-
修复上版本引出的部分依赖未找到的Bug
## 3.3.22(2022-06-13)
-
新增 preferedWebPlatform 配置用于解决HBuilderX 3.4.9版本起web端platform不一致的问题
[
详情
](
https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=prefered-web-platform
)
## 3.3.21(2022-05-24)
-
修复createInstance传入clientInfo无效的Bug
## 3.3.20(2022-05-19)
-
调整以下错误码(账号已注册[uni-id-account-exists]、账号不存在[uni-id-account-not-exists]、账号已绑定[uni-id-account-bound])
## 3.3.19(2022-05-19)
-
修复 addUser 部分情况下会创建出重复账号的Bug
## 3.3.18(2022-05-12)
-
调整绑定、解绑邮箱手机号接口,只要传递code参数就进行验证码校验即使传递的值为undefined
## 3.3.17(2022-05-09)
-
register_env内增加os_name字段用于区分注册时的客户端系统类型
## 3.3.16(2022-05-09)
...
...
uni_modules/uni-id/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-id"
,
"displayName"
:
"uni-id"
,
"version"
:
"3.3.
17
"
,
"version"
:
"3.3.
28
"
,
"description"
:
"简单、统一、可扩展的用户中心"
,
"keywords"
:
[
"uniid"
,
...
...
@@ -14,11 +14,7 @@
"engines"
:
{
"HBuilderX"
:
"^3.1.0"
},
"dcloudext"
:
{
"category"
:
[
"uniCloud"
,
"云函数模板"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -35,7 +31,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
""
"npmurl"
:
""
,
"type"
:
"unicloud-template-function"
},
"uni_modules"
:
{
"dependencies"
:
[
"uni-config-center"
],
...
...
@@ -68,7 +65,11 @@
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
"QQ"
:
"u"
,
"钉钉"
:
"u"
,
"快手"
:
"u"
,
"飞书"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
...
...
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/LICENSE.md
0 → 100644
浏览文件 @
b7fb0671
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1.
Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2.
Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3.
Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4.
Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5.
Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6.
Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7.
Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8.
Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9.
Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/index.js
0 → 100644
浏览文件 @
b7fb0671
此差异已折叠。
点击以展开。
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
0 → 100644
浏览文件 @
b7fb0671
{
"name"
:
"uni-id"
,
"version"
:
"3.3.28"
,
"description"
:
"uni-id for uniCloud"
,
"main"
:
"index.js"
,
"homepage"
:
"https://uniapp.dcloud.io/uniCloud/uni-id"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://gitee.com/dcloud/uni-id.git"
},
"author"
:
""
,
"license"
:
"Apache-2.0"
,
"dependencies"
:
{
"uni-config-center"
:
"file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
}
\ No newline at end of file
uni_modules/uni-nav-bar/changelog.md
浏览文件 @
b7fb0671
## 1.3.6(2022-06-30)
-
修复 组件示例中插槽用法无法显示内容的bug
## 1.3.5(2022-05-24)
-
新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效
## 1.3.4(2022-01-24)
-
更新 组件示例
## 1.3.3(2022-01-24)
...
...
uni_modules/uni-nav-bar/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-nav-bar"
,
"displayName"
:
"uni-nav-bar 自定义导航栏"
,
"version"
:
"1.3.
4
"
,
"version"
:
"1.3.
6
"
,
"description"
:
"自定义导航栏组件,主要用于头部导航。"
,
"keywords"
:
[
"uni-ui"
,
...
...
uni_modules/uni-notice-bar/changelog.md
浏览文件 @
b7fb0671
## 1.2.1(2022-09-05)
-
新增 属性 fontSize,可修改文字大小。
## 1.2.0(2021-11-19)
-
优化 组件UI,并提供设计资源,详见:
[
https://uniapp.dcloud.io/component/uniui/resource
](
https://uniapp.dcloud.io/component/uniui/resource
)
-
文档迁移,详见:
[
https://uniapp.dcloud.io/component/uniui/uni-notice-bar
](
https://uniapp.dcloud.io/component/uniui/uni-notice-bar
)
...
...
uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
浏览文件 @
b7fb0671
<
template
>
<view
v-if=
"show"
class=
"uni-noticebar"
:style=
"
{ backgroundColor
: backgroundColor
}" @click="onClick">
<view
v-if=
"show"
class=
"uni-noticebar"
:style=
"
{ backgroundColor }" @click="onClick">
<uni-icons
v-if=
"showIcon === true || showIcon === 'true'"
class=
"uni-noticebar-icon"
type=
"sound"
:color=
"color"
size=
"22
"
/>
:color=
"color"
:size=
"fontSize * 1.5
"
/>
<view
ref=
"textBox"
class=
"uni-noticebar__content-wrapper"
:class=
"
{'uni-noticebar__content-wrapper--scrollable':scrollable, 'uni-noticebar__content-wrapper--single':!scrollable
&&
(single || moreText)}">
:class=
"
{
'uni-noticebar__content-wrapper--scrollable': scrollable,
'uni-noticebar__content-wrapper--single': !scrollable
&&
(single || moreText)
}"
:style="{ height: scrollable ? fontSize * 1.5 + 'px' : 'auto' }"
>
<view
:id=
"elIdBox"
class=
"uni-noticebar__content"
:class=
"
{'uni-noticebar__content--scrollable':scrollable, 'uni-noticebar__content--single':!scrollable
&&
(single || moreText)}">
:class=
"
{
'uni-noticebar__content--scrollable': scrollable,
'uni-noticebar__content--single': !scrollable
&&
(single || moreText)
}"
>
<text
:id=
"elId"
ref=
"animationEle"
class=
"uni-noticebar__content-text"
:class=
"
{'uni-noticebar__content-text--scrollable':scrollable,'uni-noticebar__content-text--single':!scrollable
&&
(single || showGetMore)}"
:style="{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay}">
{{
text
}}
</text>
:class=
"
{
'uni-noticebar__content-text--scrollable': scrollable,
'uni-noticebar__content-text--single': !scrollable
&&
(single || showGetMore)
}"
:style="{
color: color,
fontSize: fontSize + 'px',
lineHeight: fontSize * 1.5 + 'px',
width: wrapWidth + 'px',
'animationDuration': animationDuration,
'-webkit-animationDuration': animationDuration,
animationPlayState: webviewHide ? 'paused' : animationPlayState,
'-webkit-animationPlayState': webviewHide ? 'paused' : animationPlayState,
animationDelay: animationDelay,
'-webkit-animationDelay': animationDelay
}"
>
{{
text
}}
</text>
</view>
</view>
<view
v-if=
"
showGetMore === true || showGetMore === 'true'
"
class=
"uni-noticebar__more uni-cursor-point"
<view
v-if=
"
isShowGetMore
"
class=
"uni-noticebar__more uni-cursor-point"
@
click=
"clickMore"
>
<text
v-if=
"moreText.length > 0"
:style=
"
{ color: moreColor
}" class="uni-noticebar__more-text
">
{{
moreText
}}
</text>
<uni-icons
v-else
type=
"right"
:color=
"moreColor"
size=
"16
"
/>
<text
v-if=
"moreText.length > 0"
:style=
"
{ color: moreColor
, fontSize: fontSize + 'px' }
">
{{
moreText
}}
</text>
<uni-icons
v-else
type=
"right"
:color=
"moreColor"
:size=
"fontSize * 1.1
"
/>
</view>
<view
class=
"uni-noticebar-close uni-cursor-point"
v-if=
"(showClose === true || showClose === 'true') && (showGetMore === false || showGetMore === 'false')"
>
<uni-icons
type=
"closeempty"
:color=
"color"
size=
"16"
@
click=
"close"
/>
<view
class=
"uni-noticebar-close uni-cursor-point"
v-if=
"isShowClose"
>
<uni-icons
type=
"closeempty"
:color=
"color"
:size=
"fontSize * 1.1"
@
click=
"close"
/>
</view>
</view>
</
template
>
...
...
@@ -74,6 +97,10 @@
type
:
String
,
default
:
'
#FF9A43
'
},
fontSize
:
{
type
:
Number
,
default
:
14
},
moreColor
:
{
type
:
String
,
default
:
'
#FF9A43
'
...
...
@@ -123,6 +150,15 @@
animationDelay
:
'
0s
'
}
},
computed
:
{
isShowGetMore
()
{
return
this
.
showGetMore
===
true
||
this
.
showGetMore
===
'
true
'
},
isShowClose
()
{
return
(
this
.
showClose
===
true
||
this
.
showClose
===
'
true
'
)
&&
(
this
.
showGetMore
===
false
||
this
.
showGetMore
===
'
false
'
)
}
},
mounted
()
{
// #ifdef APP-PLUS
var
pages
=
getCurrentPages
();
...
...
@@ -310,7 +346,6 @@
/* #ifndef APP-NVUE */
.uni-noticebar__content-wrapper--scrollable
{
position
:
relative
;
height
:
18px
;
}
/* #endif */
...
...
@@ -383,10 +418,6 @@
padding-left
:
5px
;
}
.uni-noticebar__more-text
{
font-size
:
14px
;
}
@keyframes
notice
{
100
%
{
transform
:
translate3d
(
-100%
,
0
,
0
);
...
...
uni_modules/uni-notice-bar/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-notice-bar"
,
"displayName"
:
"uni-notice-bar 通告栏"
,
"version"
:
"1.2.
0"
,
"version"
:
"1.2.
1"
,
"description"
:
"NoticeBar 通告栏组件,常用于展示公告信息,可设为滚动公告"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -17,11 +17,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -38,7 +34,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
uni_modules/uni-pagination/changelog.md
浏览文件 @
b7fb0671
## 1.2.4(2022-09-19)
-
修复,未对主题色设置默认色,导致未引入 uni-scss 变量文件报错。
-
修复,未对移动端当前页文字做主题色适配。
## 1.2.3(2022-09-15)
-
修复未使用 uni-scss 主题色的 bug。
## 1.2.2(2022-07-06)
-
修复 es 语言 i18n 错误
## 1.2.1(2021-11-22)
-
修复 vue3中某些scss变量无法找到的问题
## 1.2.0(2021-11-19)
...
...
uni_modules/uni-pagination/components/uni-pagination/i18n/en.json
浏览文件 @
b7fb0671
{
"uni-pagination.prevText"
:
"prev"
,
"uni-pagination.nextText"
:
"next"
"uni-pagination.nextText"
:
"next"
,
"uni-pagination.piecePerPage"
:
"piece/page"
}
uni_modules/uni-pagination/components/uni-pagination/i18n/es.json
浏览文件 @
b7fb0671
{
"uni-pagination.prevText"
:
"anterior"
,
"uni-pagination.nextText"
:
"próxima"
"uni-pagination.nextText"
:
"prxima"
,
"uni-pagination.piecePerPage"
:
"Art��culo/P��gina"
}
uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json
浏览文件 @
b7fb0671
{
"uni-pagination.prevText"
:
"précédente"
,
"uni-pagination.nextText"
:
"suivante"
"uni-pagination.nextText"
:
"suivante"
,
"uni-pagination.piecePerPage"
:
"Articles/Pages"
}
uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json
浏览文件 @
b7fb0671
{
"uni-pagination.prevText"
:
"上一页"
,
"uni-pagination.nextText"
:
"下一页"
"uni-pagination.nextText"
:
"下一页"
,
"uni-pagination.piecePerPage"
:
"条/页"
}
uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json
浏览文件 @
b7fb0671
{
"uni-pagination.prevText"
:
"上一頁"
,
"uni-pagination.nextText"
:
"下一頁"
"uni-pagination.nextText"
:
"下一頁"
,
"uni-pagination.piecePerPage"
:
"條/頁"
}
uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue
浏览文件 @
b7fb0671
<
template
>
<view
class=
"uni-pagination"
>
<!-- #ifndef MP -->
<picker
v-if=
"showPageSize === true || showPageSize === 'true'"
class=
"select-picker"
mode=
"selector"
:value=
"pageSizeIndex"
:range=
"pageSizeRange"
@
change=
"pickerChange"
@
cancel=
"pickerClick"
@
click.native=
"pickerClick"
>
<button
type=
"default"
size=
"mini"
:plain=
"true"
>
<text>
{{
pageSizeRange
[
pageSizeIndex
]
}}
{{
piecePerPage
}}
</text>
<uni-icons
class=
"select-picker-icon"
type=
"arrowdown"
size=
"12"
color=
"#999"
></uni-icons>
</button>
</picker>
<!-- #endif -->
<!-- #ifndef APP-NVUE -->
<view
class=
"uni-pagination__total is-phone-hide"
>
共
{{
total
}}
条
</view>
<!-- #endif -->
...
...
@@ -16,8 +26,7 @@
</view>
<view
class=
"uni-pagination__num uni-pagination__num-flex-none"
>
<view
class=
"uni-pagination__num-current"
>
<text
class=
"uni-pagination__num-current-text is-pc-hide"
style=
"color:#409EFF"
>
{{ currentIndex }}
</text>
<text
class=
"uni-pagination__num-current-text is-pc-hide current-index-text"
>
{{ currentIndex }}
</text>
<text
class=
"uni-pagination__num-current-text is-pc-hide"
>
/{{ maxPage || 0 }}
</text>
<!-- #ifndef APP-NVUE -->
<view
v-for=
"(item, index) in paper"
:key=
"index"
:class=
"{ 'page--active': item === currentIndex }"
...
...
@@ -49,11 +58,15 @@
* @tutorial https://ext.dcloud.net.cn/plugin?id=32
* @property {String} prevText 左侧按钮文字
* @property {String} nextText 右侧按钮文字
* @property {String} piecePerPageText 条/页文字
* @property {Number} current 当前页
* @property {Number} total 数据总量
* @property {Number} pageSize 每页数据量
* @property {Number} showIcon = [true|false] 是否以 icon 形式展示按钮
* @property {Boolean} showIcon = [true|false] 是否以 icon 形式展示按钮
* @property {Boolean} showPageSize = [true|false] 是否展示每页条数
* @property {Array} pageSizeRange = [20, 50, 100, 500] 每页条数选框
* @event {Function} change 点击页码按钮时触发 ,e={type,current} current为当前页,type值为:next/prev,表示点击的是上一页还是下一个
* * @event {Function} pageSizeChange 当前每页条数改变时触发 ,e={pageSize} pageSize 为当前所选的每页条数
*/
import
{
...
...
@@ -65,7 +78,7 @@
}
=
initVueI18n
(
messages
)
export
default
{
name
:
'
UniPagination
'
,
emits
:
[
'
update:modelValue
'
,
'
input
'
,
'
change
'
],
emits
:
[
'
update:modelValue
'
,
'
input
'
,
'
change
'
,
'
pageSizeChange
'
],
props
:
{
value
:
{
type
:
[
Number
,
String
],
...
...
@@ -81,6 +94,9 @@
nextText
:
{
type
:
String
,
},
piecePerPageText
:
{
type
:
String
},
current
:
{
type
:
[
Number
,
String
],
default
:
1
...
...
@@ -100,18 +116,32 @@
type
:
[
Boolean
,
String
],
default
:
false
},
showPageSize
:
{
// 是否以 icon 形式展示按钮
type
:
[
Boolean
,
String
],
default
:
false
},
pagerCount
:
{
type
:
Number
,
default
:
7
},
pageSizeRange
:
{
type
:
Array
,
default
:
()
=>
[
20
,
50
,
100
,
500
]
}
},
data
()
{
return
{
pageSizeIndex
:
0
,
currentIndex
:
1
,
paperData
:
[]
paperData
:
[],
pickerShow
:
false
}
},
computed
:
{
piecePerPage
()
{
return
this
.
piecePerPageText
||
t
(
'
uni-pagination.piecePerPage
'
)
},
prevPageText
()
{
return
this
.
prevText
||
t
(
'
uni-pagination.prevText
'
)
},
...
...
@@ -199,9 +229,31 @@
this
.
currentIndex
=
val
}
}
},
pageSizeIndex
(
val
)
{
this
.
$emit
(
'
pageSizeChange
'
,
this
.
pageSizeRange
[
val
])
}
},
methods
:
{
pickerChange
(
e
)
{
this
.
pageSizeIndex
=
e
.
detail
.
value
this
.
pickerClick
()
},
pickerClick
()
{
// #ifdef H5
const
body
=
document
.
querySelector
(
'
body
'
)
if
(
!
body
)
return
const
className
=
'
uni-pagination-picker-show
'
this
.
pickerShow
=
!
this
.
pickerShow
if
(
this
.
pickerShow
)
{
body
.
classList
.
add
(
className
)
}
else
{
setTimeout
(()
=>
body
.
classList
.
remove
(
className
),
300
)
}
// #endif
},
// 选择标签
selectPage
(
e
,
index
)
{
if
(
parseInt
(
e
))
{
...
...
@@ -257,7 +309,7 @@
</
script
>
<
style
lang=
"scss"
scoped
>
$uni-primary
:
#2979ff
;
$uni-primary
:
#2979ff
!
default
;
.uni-pagination
{
/* #ifndef APP-NVUE */
display
:
flex
;
...
...
@@ -352,6 +404,10 @@
font-size
:
15px
;
}
.current-index-text
{
color
:
$uni-primary
;
}
.uni-pagination--enabled
{
color
:
#333333
;
opacity
:
1
;
...
...
uni_modules/uni-pagination/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-pagination"
,
"displayName"
:
"uni-pagination 分页器"
,
"version"
:
"1.2.
1
"
,
"version"
:
"1.2.
4
"
,
"description"
:
"Pagination 分页器组件,用于展示页码、请求数据等。"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -16,11 +16,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -37,7 +33,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
"uni-scss"
,
"uni-icons"
],
...
...
uni_modules/uni-pagination/readme.md
浏览文件 @
b7fb0671
...
...
@@ -9,5 +9,3 @@
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-pagination)
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
uni_modules/uni-scss/manifest.json
已删除
100644 → 0
浏览文件 @
eab26cd5
{
"name"
:
""
,
"appid"
:
""
,
"description"
:
"应用描述"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"usingComponents"
:
true
,
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
},
"modules"
:
{
"OAuth"
:
{},
"Payment"
:
{},
"Push"
:
{},
"Share"
:
{},
"Speech"
:
{},
"VideoPlayer"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_MOCK_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CALL_PHONE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_TASKS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_BOOT_COMPLETED
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECORD_AUDIO
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SEND_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SYSTEM_ALERT_WINDOW
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_USER_PRESENT
\"
/>"
]
},
/*
ios打包配置
*/
"ios"
:
{
"UIBackgroundModes"
:
[
"audio"
]
},
/*
SDK配置
*/
"sdkConfigs"
:
{
"speech"
:
{
"ifly"
:
{}
}
},
"orientation"
:
[
"portrait-primary"
]
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
""
,
"setting"
:
{
"urlCheck"
:
false
},
"usingComponents"
:
true
},
"h5"
:
{
"template"
:
"template.h5.html"
,
"router"
:
{
"mode"
:
"history"
,
"base"
:
"/h5/"
}
}
}
uni_modules/uni-search-bar/readme.md
浏览文件 @
b7fb0671
...
...
@@ -6,7 +6,7 @@
> 代码块: `uSearchBar`
评分
组件
搜索栏
组件
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-search-bar)
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
...
...
uni_modules/uni-section/changelog.md
0 → 100644
浏览文件 @
b7fb0671
## 0.0.1(2022-07-22)
-
初始化
uni_modules/uni-section/components/uni-section/uni-section.vue
0 → 100644
浏览文件 @
b7fb0671
<
template
>
<view
class=
"uni-section"
>
<view
class=
"uni-section-header"
@
click=
"onClick"
>
<view
class=
"uni-section-header__decoration"
v-if=
"type"
:class=
"type"
/>
<slot
v-else
name=
"decoration"
></slot>
<view
class=
"uni-section-header__content"
>
<text
:style=
"
{'font-size':titleFontSize,'color':titleColor}" class="uni-section__content-title" :class="{'distraction':!subTitle}">
{{
title
}}
</text>
<text
v-if=
"subTitle"
:style=
"
{'font-size':subTitleFontSize,'color':subTitleColor}" class="uni-section-header__content-sub">
{{
subTitle
}}
</text>
</view>
<view
class=
"uni-section-header__slot-right"
>
<slot
name=
"right"
></slot>
</view>
</view>
<view
class=
"uni-section-content"
:style=
"
{padding: _padding}">
<slot
/>
</view>
</view>
</
template
>
<
script
>
/**
* Section 标题栏
* @description 标题栏
* @property {String} type = [line|circle|square] 标题装饰类型
* @value line 竖线
* @value circle 圆形
* @value square 正方形
* @property {String} title 主标题
* @property {String} titleFontSize 主标题字体大小
* @property {String} titleColor 主标题字体颜色
* @property {String} subTitle 副标题
* @property {String} subTitleFontSize 副标题字体大小
* @property {String} subTitleColor 副标题字体颜色
* @property {String} padding 默认插槽 padding
*/
export
default
{
name
:
'
UniSection
'
,
emits
:[
'
click
'
],
props
:
{
type
:
{
type
:
String
,
default
:
''
},
title
:
{
type
:
String
,
required
:
true
,
default
:
''
},
titleFontSize
:
{
type
:
String
,
default
:
'
14px
'
},
titleColor
:{
type
:
String
,
default
:
'
#333
'
},
subTitle
:
{
type
:
String
,
default
:
''
},
subTitleFontSize
:
{
type
:
String
,
default
:
'
12px
'
},
subTitleColor
:
{
type
:
String
,
default
:
'
#999
'
},
padding
:
{
type
:
[
Boolean
,
String
],
default
:
false
}
},
computed
:{
_padding
(){
if
(
typeof
this
.
padding
===
'
string
'
){
return
this
.
padding
}
return
this
.
padding
?
'
10px
'
:
''
}
},
watch
:
{
title
(
newVal
)
{
if
(
uni
.
report
&&
newVal
!==
''
)
{
uni
.
report
(
'
title
'
,
newVal
)
}
}
},
methods
:
{
onClick
()
{
this
.
$emit
(
'
click
'
)
}
}
}
</
script
>
<
style
lang=
"scss"
>
$uni-primary
:
#2979ff
!
default
;
.uni-section
{
background-color
:
#fff
;
.uni-section-header
{
position
:
relative
;
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
align-items
:
center
;
padding
:
12px
10px
;
font-weight
:
normal
;
&
__decoration
{
margin-right
:
6px
;
background-color
:
$uni-primary
;
&
.line
{
width
:
4px
;
height
:
12px
;
border-radius
:
10px
;
}
&
.circle
{
width
:
8px
;
height
:
8px
;
border-top-right-radius
:
50px
;
border-top-left-radius
:
50px
;
border-bottom-left-radius
:
50px
;
border-bottom-right-radius
:
50px
;
}
&
.square
{
width
:
8px
;
height
:
8px
;
}
}
&
__content
{
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
column
;
flex
:
1
;
color
:
#333
;
.distraction
{
flex-direction
:
row
;
align-items
:
center
;
}
&
-sub
{
margin-top
:
2px
;
}
}
&
__slot-right
{
font-size
:
14px
;
}
}
.uni-section-content
{
font-size
:
14px
;
}
}
</
style
>
uni_modules/uni-section/package.json
0 → 100644
浏览文件 @
b7fb0671
{
"id"
:
"uni-section"
,
"displayName"
:
"uni-section 标题栏"
,
"version"
:
"0.0.1"
,
"description"
:
"标题栏组件"
,
"keywords"
:
[
"uni-ui"
,
"uniui"
,
"标题栏"
],
"repository"
:
"https://github.com/dcloudio/uni-ui"
,
"engines"
:
{
"HBuilderX"
:
""
},
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
},
"sourcecode"
:
{
"price"
:
"0.00"
}
},
"contact"
:
{
"qq"
:
""
},
"declaration"
:
{
"ads"
:
"无"
,
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
},
"uni_modules"
:
{
"dependencies"
:
[
"uni-scss"
],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"y"
,
"aliyun"
:
"y"
},
"client"
:
{
"App"
:
{
"app-vue"
:
"y"
,
"app-nvue"
:
"y"
},
"H5-mobile"
:
{
"Safari"
:
"y"
,
"Android Browser"
:
"y"
,
"微信浏览器(Android)"
:
"y"
,
"QQ浏览器(Android)"
:
"y"
},
"H5-pc"
:
{
"Chrome"
:
"y"
,
"IE"
:
"y"
,
"Edge"
:
"y"
,
"Firefox"
:
"y"
,
"Safari"
:
"y"
},
"小程序"
:
{
"微信"
:
"y"
,
"阿里"
:
"y"
,
"百度"
:
"y"
,
"字节跳动"
:
"y"
,
"QQ"
:
"y"
},
"快应用"
:
{
"华为"
:
"u"
,
"联盟"
:
"u"
},
"Vue"
:
{
"vue2"
:
"y"
,
"vue3"
:
"y"
}
}
}
}
}
\ No newline at end of file
uni_modules/uni-section/readme.md
0 → 100644
浏览文件 @
b7fb0671
## Section 标题栏
> **组件名:uni-section**
> 代码块: `uSection`
uni-section 组件主要用于文章、列表详情等标题展示
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-section)
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
uni_modules/uni-tooltip/changelog.md
0 → 100644
浏览文件 @
b7fb0671
## 0.2.1(2022-05-09)
-
修复 content 为空时仍然弹出的bug
## 0.2.0(2022-05-07)
**注意:破坏性更新**
-
更新 text 属性变更为 content
-
更新 移除 width 属性
## 0.1.1(2022-04-27)
-
修复 组件根 text 嵌套组件 warning
## 0.1.0(2022-04-21)
-
初始化
uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip.vue
0 → 100644
浏览文件 @
b7fb0671
<
template
>
<view
class=
"uni-tooltip"
>
<slot></slot>
<view
v-if=
"content || $slots.content"
class=
"uni-tooltip-popup"
>
<slot
name=
"content"
>
{{
content
}}
</slot>
</view>
</view>
</
template
>
<
script
>
/**
* Tooltip 提示文字
* @description 常用于展示鼠标 hover 时的提示信息。
* @tutorial https://uniapp.dcloud.io/component/uniui/uni-tooltip
* @property {String} content 弹出层显示的内容
* @property {String} placement出现位置, 目前只支持 left
*/
export
default
{
name
:
"
uni-tooltip
"
,
data
()
{
return
{
};
},
props
:
{
content
:
{
type
:
String
,
default
:
''
},
placement
:
{
type
:
String
,
default
:
'
bottom
'
},
}
}
</
script
>
<
style
>
.uni-tooltip
{
position
:
relative
;
cursor
:
pointer
;
}
.uni-tooltip-popup
{
z-index
:
1
;
display
:
none
;
position
:
absolute
;
left
:
0
;
background-color
:
#333
;
border-radius
:
8px
;
color
:
#fff
;
font-size
:
12px
;
text-align
:
left
;
line-height
:
16px
;
padding
:
12px
;
}
.uni-tooltip
:hover
.uni-tooltip-popup
{
display
:
block
;
}
</
style
>
uni_modules/uni-tooltip/package.json
0 → 100644
浏览文件 @
b7fb0671
{
"id"
:
"uni-tooltip"
,
"displayName"
:
"uni-tooltip"
,
"version"
:
"0.2.1"
,
"description"
:
"Tooltip 提示文字"
,
"keywords"
:
[
"uni-tooltip"
,
"uni-ui"
,
"tooltip"
,
"tip"
,
"文字提示"
],
"repository"
:
""
,
"engines"
:
{
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
},
"sourcecode"
:
{
"price"
:
"0.00"
}
},
"contact"
:
{
"qq"
:
""
},
"declaration"
:
{
"ads"
:
"无 "
,
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
""
},
"uni_modules"
:
{
"dependencies"
:
[],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"y"
,
"aliyun"
:
"y"
},
"client"
:
{
"Vue"
:
{
"vue2"
:
"y"
,
"vue3"
:
"y"
},
"App"
:
{
"app-vue"
:
"y"
,
"app-nvue"
:
"u"
},
"H5-mobile"
:
{
"Safari"
:
"y"
,
"Android Browser"
:
"y"
,
"微信浏览器(Android)"
:
"y"
,
"QQ浏览器(Android)"
:
"y"
},
"H5-pc"
:
{
"Chrome"
:
"y"
,
"IE"
:
"y"
,
"Edge"
:
"y"
,
"Firefox"
:
"y"
,
"Safari"
:
"y"
},
"小程序"
:
{
"微信"
:
"y"
,
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
"联盟"
:
"u"
}
}
}
}
}
\ No newline at end of file
uni_modules/uni-tooltip/readme.md
0 → 100644
浏览文件 @
b7fb0671
## Badge 数字角标
> **组件名:uni-tooltip**
> 代码块: `uTooltip`
数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景,
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-tooltip)
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
uni_modules/uni-ui/changelog.md
浏览文件 @
b7fb0671
## 1.4.22(2022-09-19)
-
优化 部分组件适配 uni-scss 主题色
-
uni-badge 修复 当 text 超过 max-num 时,badge 的宽度计算是根据 text 的长度计算,更改为 css 计算实际展示宽度,详见:
[
https://ask.dcloud.net.cn/question/150473
](
https://ask.dcloud.net.cn/question/150473
)
-
uni-calendar 修复 表头年月切换,导致改变当前日期为选择月1号,且未触发change事件
-
uni-data-select 修复 微信小程序下拉框出现后选择会点击到蒙板后面的输入框
-
uni-data-select 修复 点击的位置不准确
-
uni-data-select 新增 支持 disabled 属性
-
uni-datetime-picker 修复,反向选择日期范围,日期显示异常,
[
详情
](
https://ask.dcloud.net.cn/question/153401?item_id=212892&rf=false
)
-
uni-datetime-picker 修复 close事件无效的 bug
-
uni-datetime-picker 修复 移动端 maskClick 无效的 bug,详见:
[
https://ask.dcloud.net.cn/question/140824?item_id=209458&rf=false
](
https://ask.dcloud.net.cn/question/140824?item_id=209458&rf=false
)
-
uni-fab 修复 小程序端由于 style 使用了对象导致报错,
[
详情
](
https://ask.dcloud.net.cn/question/152790?item_id=211778&rf=false
)
-
uni-fab 修复 nvue 环境下,具有 tabBar 时,fab 组件下部位置无法正常获取 --window-bottom 的bug,详见:
[
https://ask.dcloud.net.cn/question/110638?notification_id=826310
](
https://ask.dcloud.net.cn/question/110638?notification_id=826310
)
-
uni-forms 优化 根据 rules 自动添加 required 的问题
-
uni-forms 修复 item 未设置 require 属性,rules 设置 require 后,星号也显示的 bug,详见:
[
https://ask.dcloud.net.cn/question/151540
](
https://ask.dcloud.net.cn/question/151540
)
-
uni-nav-bar 修复 nvue 环境下 fixed 为 true 的情况下,无法置顶的 bug
-
uni-notice-bar 新增 属性 fontSize,可修改文字大小。
-
uni-pagination 修复,未对主题色设置默认色,导致未引入 uni-scss 变量文件报错。
-
uni-pagination 修复,未对移动端当前页文字做主题色适配。
-
uni-pagination 修复 es 语言 i18n 错误
## 1.4.21(2022-09-19)
-
修复,安装时未导入 uni-data-select 和 uni-tooltip 的问题。
## 1.4.20(2022-07-25)
-
uni-section 新增组件
-
uni-forms 修复 model 需要校验的值没有声明对应字段时,导致第一次不触发校验的bug
## 1.4.19(2022-07-07)
-
uni-data-picker 优化 pc端图标位置不正确的问题
-
uni-data-select 修复 pc端宽度异常的bug
## 1.4.18(2022-07-06)
-
uni-forms 【重要】组件逻辑重构,部分用法旧版本不兼容,请注意兼容问题
-
uni-forms 【重要】组件使用 Provide/Inject 方式注入依赖,提供了自定义表单组件调用 uni-forms 校验表单的能力
-
uni-forms 新增 更多表单示例
-
uni-forms 新增 model 属性,等同于原 value/modelValue 属性,旧属性即将废弃
-
uni-forms 新增 validateTrigger 属性的 blur 值,仅 uni-easyinput 生效
-
uni-forms 新增 onFieldChange 方法,可以对子表单进行校验,可替代binddata方法
-
uni-forms 新增 子表单的 setRules 方法,配合自定义校验函数使用
-
uni-forms 新增 uni-forms-item 的 setRules 方法,配置动态表单使用可动态更新校验规则
-
uni-forms 修复 由 1.4.0 引发的 label 插槽不生效的bug
-
uni-forms 修复 子组件找不到 setValue 报错的bug
-
uni-forms 修复 uni-data-picker 在 uni-forms-item 中报错的bug
-
uni-forms 修复 uni-data-picker 在 uni-forms-item 中宽度不正确的bug
-
uni-forms 修复 表单校验顺序无序问题
-
uni-forms 优化 子表单组件uni-datetime-picker、uni-data-select、uni-data-picker的显示样式
-
uni-forms 优化 动态表单校验方式,废弃拼接name的方式
-
uni-breadcrumb 修复 微信小程序 separator 不显示问题
-
uni-data-checkbox 优化 在 uni-forms 中的依赖注入方式
-
uni-data-picker 修复 uni-data-picker 在 uni-forms-item 中宽度不正确的bug
-
uni-data-picker 优化 显示样式
-
uni-data-select 优化 显示样式
-
uni-datetime-picker 修复 日历顶部年月及底部确认未国际化 bug
-
uni-datetime-picker 优化 组件样式,调整了组件图标大小、高度、颜色等,与uni-ui风格保持一致
-
uni-easyinput 新增 在 uni-forms 1.4.0 中使用可以在 blur 时校验内容
-
uni-easyinput 新增 clear 事件,点击右侧叉号图标触发
-
uni-easyinput 新增 change 事件 ,仅在输入框失去焦点或用户按下回车时触发
-
uni-easyinput 优化 组件样式,组件获取焦点时高亮显示,图标颜色调整等
-
uni-easyinput 优化 clearable 显示策略
-
uni-file-picker 修复 在uni-forms下样式不生效的bug
-
uni-nav-bar 修复 组件示例中插槽用法无法显示内容的bug
-
uni-swipe-action 修复 vue3 下使用组件不能正常运行的Bug
-
uni-swipe-action 修复 h5端点击click触发两次的Bug
-
uni-table 修复 微信小程序存在无使用组件的问题
## 1.4.17(2022-06-30)
-
支持 ios 安全区
## 1.4.16(2022-06-06)
-
uni-breadcrumb 新增 支持 uni.scss 修改颜色
-
uni-data-select 修复 localdata 赋值不生效的 bug
...
...
uni_modules/uni-ui/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-ui"
,
"displayName"
:
"uni-ui"
,
"version"
:
"1.4.
11
"
,
"description"
:
"uni-ui 是
一个基于uni-app全端兼容的
高性能UI框架"
,
"version"
:
"1.4.
22
"
,
"description"
:
"uni-ui 是
基于uni-app的、全端兼容的、
高性能UI框架"
,
"keywords"
:
[
"uni-ui"
,
"uniui"
,
...
...
@@ -18,10 +18,6 @@
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -38,7 +34,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
@@ -50,6 +47,7 @@
"uni-countdown"
,
"uni-data-checkbox"
,
"uni-data-picker"
,
"uni-data-select"
,
"uni-dateformat"
,
"uni-datetime-picker"
,
"uni-drawer"
,
...
...
@@ -74,6 +72,7 @@
"uni-rate"
,
"uni-row"
,
"uni-search-bar"
,
"uni-section"
,
"uni-segmented-control"
,
"uni-steps"
,
"uni-swipe-action"
,
...
...
@@ -81,6 +80,7 @@
"uni-table"
,
"uni-tag"
,
"uni-title"
,
"uni-tooltip"
,
"uni-transition"
],
"encrypt"
:
[],
...
...
@@ -112,7 +112,8 @@
"阿里"
:
"y"
,
"百度"
:
"y"
,
"字节跳动"
:
"y"
,
"QQ"
:
"y"
"QQ"
:
"y"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
...
...
uni_modules/uni-ui/readme.md
浏览文件 @
b7fb0671
...
...
@@ -58,9 +58,67 @@ ui是一种需求非常发散的产品,DCloud官方也无意用 `uni-ui` 压
我们欢迎更多优秀的ui组件出现,也欢迎更多人贡献
`uni-ui`
的主题风格,满足更多用户的需求。
# 快速开始
## 快速开始
uni-ui支持 HBuilderX直接新建项目模板、npm安装和单独导入个别组件等多种使用方式
### 在HBuilderX 新建uni-app项目的模板中,选择uni-ui模板
![
HBuilderX内创建uni-ui项目
](
https://img.cdn.aliyun.dcloud.net.cn/uni-app/doc/create-uni-ui-project.jpg
)
由于uni-app独特的
[
easycom
](
https://uniapp.dcloud.io/collocation/pages?id=easycom
)
技术,可以免引用、注册,直接使用各种符合规则的vue组件。
在代码区键入
`u`
,拉出各种内置或uni-ui的组件列表,选择其中一个,即可使用该组件。
光标放在组件名称上,按F1,可以查阅组件的文档。
![
uni-ui代码块
](
https://img.cdn.aliyun.dcloud.net.cn/uni-app/doc/uni-ui-snippet.jpg
)
### 通过 uni_modules 单独安装组件
如果你没有创建uni-ui项目模板,也可以在你的工程里,通过 uni_modules 单独安装需要的某个组件。下表为uni-ui的扩展组件清单,点击每个组件在详情页面可以导入组件到项目下,导入后直接使用即可,无需import和注册。
|组件名|组件说明|
|---|---|
|uni-badge|
[
数字角标
](
https://ext.dcloud.net.cn/plugin?name=uni-badge
)
|
|uni-calendar|
[
日历
](
https://ext.dcloud.net.cn/plugin?name=uni-calendar
)
|
|uni-card|
[
卡片
](
https://ext.dcloud.net.cn/plugin?name=uni-card
)
|
|uni-collapse|
[
折叠面板
](
https://ext.dcloud.net.cn/plugin?name=uni-collapse
)
|
|uni-combox|
[
组合框
](
https://ext.dcloud.net.cn/plugin?name=uni-combox
)
|
|uni-countdown|
[
倒计时
](
https://ext.dcloud.net.cn/plugin?name=uni-countdown
)
|
|uni-data-checkbox|
[
数据选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-data-checkbox
)
|
|uni-data-picker|
[
数据驱动的picker选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-data-picker
)
|
|uni-dateformat|
[
日期格式化
](
https://ext.dcloud.net.cn/plugin?name=uni-dateformat
)
|
|uni-datetime-picker|
[
日期选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-datetime-picker
)
|
|uni-drawer|
[
抽屉
](
https://ext.dcloud.net.cn/plugin?name=uni-drawer
)
|
|uni-easyinput|
[
增强输入框
](
https://ext.dcloud.net.cn/plugin?name=uni-easyinput
)
|
|uni-fab|
[
悬浮按钮
](
https://ext.dcloud.net.cn/plugin?name=uni-fab
)
|
|uni-fav|
[
收藏按钮
](
https://ext.dcloud.net.cn/plugin?name=uni-fav
)
|
|uni-file-picker|
[
文件选择上传
](
https://ext.dcloud.net.cn/plugin?name=uni-file-picker
)
|
|uni-forms|
[
表单
](
https://ext.dcloud.net.cn/plugin?name=uni-forms
)
|
|uni-goods-nav|
[
商品导航
](
https://ext.dcloud.net.cn/plugin?name=uni-goods-nav
)
|
|uni-grid|
[
宫格
](
https://ext.dcloud.net.cn/plugin?name=uni-grid
)
|
|uni-group|
[
分组
](
https://ext.dcloud.net.cn/plugin?name=uni-group
)
|
|uni-icons|
[
图标
](
https://ext.dcloud.net.cn/plugin?name=uni-icons
)
|
|uni-indexed-list|
[
索引列表
](
https://ext.dcloud.net.cn/plugin?name=uni-indexed-list
)
|
|uni-link|
[
超链接
](
https://ext.dcloud.net.cn/plugin?name=uni-link
)
|
|uni-list|
[
列表
](
https://ext.dcloud.net.cn/plugin?name=uni-list
)
|
|uni-load-more|
[
加载更多
](
https://ext.dcloud.net.cn/plugin?name=uni-load-more
)
|
|uni-nav-bar|
[
自定义导航栏
](
https://ext.dcloud.net.cn/plugin?name=uni-nav-bar
)
|
|uni-notice-bar|
[
通告栏
](
https://ext.dcloud.net.cn/plugin?name=uni-notice-bar
)
|
|uni-number-box|
[
数字输入框
](
https://ext.dcloud.net.cn/plugin?name=uni-number-box
)
|
|uni-pagination|
[
分页器
](
https://ext.dcloud.net.cn/plugin?name=uni-pagination
)
|
|uni-popup|
[
弹出层
](
https://ext.dcloud.net.cn/plugin?name=uni-popup
)
|
|uni-rate|
[
评分
](
https://ext.dcloud.net.cn/plugin?name=uni-rate
)
|
|uni-row|
[
布局-行
](
https://ext.dcloud.net.cn/plugin?name=uni-row
)
|
|uni-search-bar|
[
搜索栏
](
https://ext.dcloud.net.cn/plugin?name=uni-search-bar
)
|
|uni-segmented-control|
[
分段器
](
https://ext.dcloud.net.cn/plugin?name=uni-segmented-control
)
|
|uni-steps|
[
步骤条
](
https://ext.dcloud.net.cn/plugin?name=uni-steps
)
|
|uni-swipe-action|
[
滑动操作
](
https://ext.dcloud.net.cn/plugin?name=uni-swipe-action
)
|
|uni-swiper-dot|
[
轮播图指示点
](
https://ext.dcloud.net.cn/plugin?name=uni-swiper-dot
)
|
|uni-table|
[
表格
](
https://ext.dcloud.net.cn/plugin?name=uni-table
)
|
|uni-tag|
[
标签
](
https://ext.dcloud.net.cn/plugin?name=uni-tag
)
|
|uni-title|
[
章节标题
](
https://ext.dcloud.net.cn/plugin?name=uni-title
)
|
|uni-transition|
[
过渡动画
](
https://ext.dcloud.net.cn/plugin?name=uni-transition
)
|
## 方式一:使用 uni_modules 安装(推荐)
使用
`uni_modules`
方式安装组件库,可以直接通过插件市场导入,通过右键菜单快速更新组件,不需要引用、注册,直接在页面中使用
`uni-ui`
组件。
[
点击安装 uni-ui 组件库
](
https://ext.dcloud.net.cn/plugin?id=55
)
...
...
@@ -70,8 +128,10 @@ ui是一种需求非常发散的产品,DCloud官方也无意用 `uni-ui` 压
例如需更新
`uni-list`
和
`uni-badge`
,将
`uni_modules>uni-list>components`
和
`uni_modules>uni-badege>components`
下所有目录拷贝到如下目录即可:
**目录示例**
```
json {2,3,4,5,6,7}
```
json
┌─components
组件目录
│
├─uni-list
list
列表目录
│
│
└─uni-list.vue
list
组件文件
...
...
@@ -90,10 +150,15 @@ ui是一种需求非常发散的产品,DCloud官方也无意用 `uni-ui` 压
```
### 通过 `uni_modules` 导入全部组件
如果想一次把所有uni-ui组件导入到项目中,只需要导入一个
`uni-ui`
组件即可
[
点击去导入
](
https://ext.dcloud.net.cn/plugin?id=55
)
。
如果没有自动导入其他组件,可以在 uni-ui 组件目录上右键选择
`安装三方插件依赖`
即可。
## 方式二:使用 npm 安装
在
`vue-cli`
项目中可以使用
`npm`
安装
`uni-ui`
库 ,或者直接在
`HBuilderX`
项目中使用
`npm`
。(不推荐后一种方式)
### npm安装
在
`vue-cli`
项目中可以使用
`npm`
安装
`uni-ui`
库 ,或者直接在
`HBuilderX`
项目中使用
`npm`
。
> **注意**
> cli 项目默认是不编译 `node_modules` 下的组件的,导致条件编译等功能失效 ,导致组件异常
...
...
@@ -121,8 +186,8 @@ ui是一种需求非常发散的产品,DCloud官方也无意用 `uni-ui` 压
npm i sass-loader@10.1.1 -D 或 yarn add sass-loader@10.1.1 -D
```
> sass-loader 请使用低于 @11.0.0 的版本,[sass-loader@11.0.0 不支持 vue@2.6.12 ](https://stackoverflow.com/questions/66082397/typeerror-this-getoptions-is-not-a-function)
>
如果 `node` 版本小于 16 ,
sass-loader 请使用低于 @11.0.0 的版本,[sass-loader@11.0.0 不支持 vue@2.6.12 ](https://stackoverflow.com/questions/66082397/typeerror-this-getoptions-is-not-a-function)
> 如果 `node` 版本大于 16 , `sass-loader` 建议使用 `v8.x` 版本
**安装 uni-ui**
...
...
@@ -132,44 +197,14 @@ npm i @dcloudio/uni-ui 或 yarn add @dcloudio/uni-ui
在
``script``
中引用组件:
```
javascript
import
{
uniBadge
}
from
'
@dcloudio/uni-ui
'
//import uniBadge from '@dcloudio/uni-ui/lib/uni-badge/uni-badge.vue' //也可使用此方式引入组件
export
default
{
components
:
{
uniBadge
}
}
```
在
``template``
中使用组件:
```
html
<uni-badge
text=
"1"
></uni-badge>
<uni-badge
text=
"2"
type=
"success"
@
click=
"bindClick"
></uni-badge>
<uni-badge
text=
"3"
type=
"primary"
:inverted=
"true"
></uni-badge>
```
> **注意**
> - `CLI` 引用方式, `H5` 端不支持在 `main.js` 中全局注册组件,如有需求请使用([easyCom](https://uniapp.dcloud.io/collocation/pages?id=easycom)) 的方式引用组件
> - 使用 npm 安装的组件,默认情况下 babel-loader 会忽略所有 node_modules 中的文件 ,导致条件编译失效,需要通过配置 `vue.config.js` 解决:
> ```javascript
> // 在根目录创建 vue.config.js 文件,并配置如下
> module.exports = {
> transpileDependencies: ['@dcloudio/uni-ui']
> }
> ```
## 使用 npm + easycom
**配置easycom**
使用
`npm`
安装好
`uni-ui`
之后,需要配置
`easycom`
规则,让
`npm`
安装的组件支持
`easycom`
打开项目根目录下的
`pages.json`
并添加
`easycom`
节点:
```
javascript
{8}
```
javascript
// pages.json
{
"
easycom
"
:
{
"
autoscan
"
:
true
,
...
...
@@ -187,61 +222,25 @@ export default {
```
### uni-ui 已支持的组件列表
|组件名|组件说明|
|---|---|
|uni-badge|
[
数字角标
](
https://ext.dcloud.net.cn/plugin?name=uni-badge
)
|
|uni-calendar|
[
日历
](
https://ext.dcloud.net.cn/plugin?name=uni-calendar
)
|
|uni-card|
[
卡片
](
https://ext.dcloud.net.cn/plugin?name=uni-card
)
|
|uni-collapse|
[
折叠面板
](
https://ext.dcloud.net.cn/plugin?name=uni-collapse
)
|
|uni-combox|
[
组合框
](
https://ext.dcloud.net.cn/plugin?name=uni-combox
)
|
|uni-countdown|
[
倒计时
](
https://ext.dcloud.net.cn/plugin?name=uni-countdown
)
|
|uni-data-checkbox|
[
数据选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-data-checkbox
)
|
|uni-data-picker|
[
数据驱动的picker选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-data-picker
)
|
|uni-dateformat|
[
日期格式化
](
https://ext.dcloud.net.cn/plugin?name=uni-dateformat
)
|
|uni-datetime-picker|
[
日期选择器
](
https://ext.dcloud.net.cn/plugin?name=uni-datetime-picker
)
|
|uni-drawer|
[
抽屉
](
https://ext.dcloud.net.cn/plugin?name=uni-drawer
)
|
|uni-easyinput|
[
增强输入框
](
https://ext.dcloud.net.cn/plugin?name=uni-easyinput
)
|
|uni-fab|
[
悬浮按钮
](
https://ext.dcloud.net.cn/plugin?name=uni-fab
)
|
|uni-fav|
[
收藏按钮
](
https://ext.dcloud.net.cn/plugin?name=uni-fav
)
|
|uni-file-picker|
[
文件选择上传
](
https://ext.dcloud.net.cn/plugin?name=uni-file-picker
)
|
|uni-forms|
[
表单
](
https://ext.dcloud.net.cn/plugin?name=uni-forms
)
|
|uni-goods-nav|
[
商品导航
](
https://ext.dcloud.net.cn/plugin?name=uni-goods-nav
)
|
|uni-grid|
[
宫格
](
https://ext.dcloud.net.cn/plugin?name=uni-grid
)
|
|uni-group|
[
分组
](
https://ext.dcloud.net.cn/plugin?name=uni-group
)
|
|uni-icons|
[
图标
](
https://ext.dcloud.net.cn/plugin?name=uni-icons
)
|
|uni-indexed-list|
[
索引列表
](
https://ext.dcloud.net.cn/plugin?name=uni-indexed-list
)
|
|uni-link|
[
超链接
](
https://ext.dcloud.net.cn/plugin?name=uni-link
)
|
|uni-list|
[
列表
](
https://ext.dcloud.net.cn/plugin?name=uni-list
)
|
|uni-load-more|
[
加载更多
](
https://ext.dcloud.net.cn/plugin?name=uni-load-more
)
|
|uni-nav-bar|
[
自定义导航栏
](
https://ext.dcloud.net.cn/plugin?name=uni-nav-bar
)
|
|uni-notice-bar|
[
通告栏
](
https://ext.dcloud.net.cn/plugin?name=uni-notice-bar
)
|
|uni-number-box|
[
数字输入框
](
https://ext.dcloud.net.cn/plugin?name=uni-number-box
)
|
|uni-pagination|
[
分页器
](
https://ext.dcloud.net.cn/plugin?name=uni-pagination
)
|
|uni-popup|
[
弹出层
](
https://ext.dcloud.net.cn/plugin?name=uni-popup
)
|
|uni-rate|
[
评分
](
https://ext.dcloud.net.cn/plugin?name=uni-rate
)
|
|uni-row|
[
布局-行
](
https://ext.dcloud.net.cn/plugin?name=uni-row
)
|
|uni-search-bar|
[
搜索栏
](
https://ext.dcloud.net.cn/plugin?name=uni-search-bar
)
|
|Section|
[
标题栏
](
https://ext.dcloud.net.cn/plugin?name=uni-section
)
|
|uni-segmented-control|
[
分段器
](
https://ext.dcloud.net.cn/plugin?name=uni-segmented-control
)
|
|uni-steps|
[
步骤条
](
https://ext.dcloud.net.cn/plugin?name=uni-steps
)
|
|uni-swipe-action|
[
滑动操作
](
https://ext.dcloud.net.cn/plugin?name=uni-swipe-action
)
|
|uni-swiper-dot|
[
轮播图指示点
](
https://ext.dcloud.net.cn/plugin?name=uni-swiper-dot
)
|
|uni-table|
[
表格
](
https://ext.dcloud.net.cn/plugin?name=uni-table
)
|
|uni-tag|
[
标签
](
https://ext.dcloud.net.cn/plugin?name=uni-tag
)
|
|uni-title|
[
章节标题
](
https://ext.dcloud.net.cn/plugin?name=uni-title
)
|
|uni-transition|
[
过渡动画
](
https://ext.dcloud.net.cn/plugin?name=uni-transition
)
|
### 其他
-
uni-ui 是全端兼容的基于flex布局的、无dom的ui库
-
uni-ui 是uni-app内置组件的扩展。注意与web开发不同,uni-ui不包括基础组件,它是基础组件的补充。web开发中有的开发者习惯用一个ui库完成所有开发,但在uni-app体系中,推荐开发者首先使用性能更高的基础组件,然后按需引入必要的扩展组件。
在
``template``
中使用组件:
> **注意**
> - `uni-ui` 不支持使用 `Vue.use()` 的方式安装
```
html
<uni-badge
text=
"1"
></uni-badge>
<uni-badge
text=
"2"
type=
"success"
@
click=
"bindClick"
></uni-badge>
<uni-badge
text=
"3"
type=
"primary"
:inverted=
"true"
></uni-badge>
```
**注意**
-
uni-ui 现在只推荐使用
`easycom`
,如自己引用组件,可能会出现组件找不到的问题
-
使用 npm 安装的组件,默认情况下 babel-loader 会忽略所有 node_modules 中的文件 ,导致条件编译失效,需要通过配置
`vue.config.js`
解决:
```
javascript
// 在根目录创建 vue.config.js 文件,并配置如下
module
.
exports
=
{
transpileDependencies
:
[
'
@dcloudio/uni-ui
'
]
}
```
-
uni-ui 是uni-app内置组件的扩展。注意与web开发不同,uni-ui不包括基础组件,它是基础组件的补充。web开发中有的开发者习惯用一个ui库完成所有开发,但在uni-app体系中,推荐开发者首先使用性能更高的基础组件,然后按需引入必要的扩展组件。
-
`uni-ui`
不支持使用
`Vue.use()`
的方式安装
### 贡献代码
...
...
uni_modules/uni-upgrade-center-app/changelog.md
浏览文件 @
b7fb0671
## 0.4.2(2022-06-02)
-
修复 wgt 包更新时错误处理的 bug
## 0.6.1(2022-08-17)
-
修复 后台添加应用市场,但都没有启用的情况下报错的Bug (需要 uni-admin 1.9.3+)
## 0.6.0(2022-07-19)
-
新增 支持多应用商店配置(需要 uni-admin 1.9.3+)
## 0.4.1(2022-05-27)
-
修复 上版引出的报错问题
## 0.4.0(2022-05-27)
...
...
uni_modules/uni-upgrade-center-app/package.json
浏览文件 @
b7fb0671
{
"id"
:
"uni-upgrade-center-app"
,
"displayName"
:
"升级中心 uni-upgrade-center - App"
,
"version"
:
"0.
4.2
"
,
"version"
:
"0.
6.1
"
,
"description"
:
"uni升级中心 - 客户端检查更新"
,
"keywords"
:
[
"uniCloud"
,
...
...
@@ -13,11 +13,7 @@
"engines"
:
{
"HBuilderX"
:
"^3.1.0"
},
"dcloudext"
:
{
"category"
:
[
"uniCloud"
,
"云端一体页面模板"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -34,7 +30,8 @@
"data"
:
"插件不采集任何数据"
,
"permissions"
:
"无"
},
"npmurl"
:
""
"npmurl"
:
""
,
"type"
:
"unicloud-template-page"
},
"uni_modules"
:
{
"dependencies"
:
[],
...
...
@@ -67,7 +64,8 @@
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
"QQ"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
...
...
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
浏览文件 @
b7fb0671
...
...
@@ -37,7 +37,7 @@
</view>
<button
v-else
class=
"content-button"
style=
"border: none;color: #fff;"
plain
@
click=
"
downloadPackage
"
>
@
click=
"
updateApp
"
>
{{
downLoadBtnText
}}
</button>
</
template
>
...
...
@@ -62,9 +62,10 @@
</template>
<
script
>
const
localFilePathKey
=
'
__localFilePath__
'
const
localFilePathKey
=
'
UNI_ADMIN_UPGRADE_CENTER_LOCAL_FILE_PATH
'
const
platform_iOS
=
'
iOS
'
;
let
downloadTask
=
null
;
let
openSchemePromise
/**
* 对比版本号,如需要,请自行修改判断规则
...
...
@@ -177,6 +178,9 @@
downloadTask
&&
downloadTask
.
abort
()
},
onHide
()
{
openSchemePromise
=
null
},
computed
:
{
isWGT
()
{
return
this
.
type
===
'
wgt
'
...
...
@@ -242,6 +246,33 @@
uni
.
navigateBack
()
},
updateApp
()
{
this
.
checkStoreScheme
().
catch
(()
=>
{
this
.
downloadPackage
()
})
},
// 跳转应用商店
checkStoreScheme
()
{
const
storeList
=
(
this
.
store_list
||
[]).
filter
(
item
=>
item
.
enable
)
if
(
storeList
&&
storeList
.
length
)
{
storeList
.
sort
((
cur
,
next
)
=>
next
.
priority
-
cur
.
priority
)
.
map
(
item
=>
item
.
scheme
)
.
reduce
((
promise
,
cur
,
curIndex
)
=>
{
openSchemePromise
=
(
promise
||
(
promise
=
Promise
.
reject
())).
catch
(()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
plus
.
runtime
.
openURL
(
cur
,
(
err
)
=>
{
reject
(
err
)
})
})
})
return
openSchemePromise
},
openSchemePromise
)
return
openSchemePromise
}
return
Promise
.
reject
()
},
downloadPackage
()
{
this
.
downloading
=
true
;
...
...
@@ -282,7 +313,6 @@
if
(
this
.
isWGT
)
{
this
.
installing
=
true
;
}
plus
.
runtime
.
install
(
this
.
tempFilePath
,
{
force
:
false
},
async
res
=>
{
...
...
@@ -322,14 +352,14 @@
this
.
installed
=
false
;
uni
.
showModal
({
title
:
`更新失败
${
this
.
isWGT
?
''
:
'
,APK文件不存在
'
}
,请重新下载`
,
title
:
'
更新失败,请重新下载
'
,
content
:
err
.
message
,
showCancel
:
false
});
});
// 非wgt包,安装跳出覆盖安装,此处直接返回上一页
if
(
!
this
.
isWGT
)
{
if
(
!
this
.
isWGT
&&
!
this
.
is_mandatory
)
{
uni
.
navigateBack
()
}
// #endif
...
...
@@ -341,16 +371,22 @@
plus
.
runtime
.
restart
();
// #endif
},
async
saveFile
(
tempFilePath
,
version
)
{
const
[
err
,
res
]
=
await
uni
.
saveFile
(
{
tempFilePath
})
if
(
err
)
{
return
;
}
saveFile
(
tempFilePath
,
version
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
saveFile
({
tempFilePath
,
success
(
{
savedFilePath
})
{
uni
.
setStorageSync
(
localFilePathKey
,
{
version
,
savedFilePath
:
res
.
savedFilePath
savedFilePath
})
},
complete
()
{
resolve
()
}
})
})
},
deleteSavedFile
(
filePath
)
{
...
...
uni_modules/uni-upgrade-center-app/readme.md
浏览文件 @
b7fb0671
## 升级中心 - app插件与 `uni-admin` 版本关系
### `uni-admin >= 1.9.3`:云函数 `checkVersion` 废弃,使用 uni-admin 自带的 `uni-upgrade-center` 云函数。
# uni-upgrade-center - App
### 概述
...
...
@@ -18,9 +22,9 @@
3.
在插件市场打开本插件页面,在右侧点击
`使用 HBuilderX 导入插件`
,选择要导入的项目点击确定
4.
绑定一个服务空间
4.
绑定一个服务空间
。自
`0.6.0`
起,依赖
`uni-admin 1.9.3+`
的
`uni-upgrade-center 云函数`
,请和 uni-admin 项目关联同一个服务空间
5.
找到
`/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version`
,右键上传部署
5.
找到
`/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version`
,右键上传部署
。自
`0.6.0`
起,依赖
`uni-admin 1.9.3+`
的
`uni-upgrade-center 云函数`
,插件不再单独提供云函数,这样可以省下一个云函数名额。
6.
在
`pages.json`
中添加页面路径。
**注:请不要设置为pages.json中第一项**
```
json
...
...
uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/temp.png
0 → 100644
浏览文件 @
b7fb0671
7.5 KB
uni_modules/uni-upgrade-center-app/utils/call-check-version.js
浏览文件 @
b7fb0671
...
...
@@ -6,16 +6,23 @@ export default function() {
// #ifdef APP-PLUS
return
new
Promise
((
resolve
,
reject
)
=>
{
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
widgetInfo
)
{
checkVersion
({
const
data
=
{
action
:
'
checkVersion
'
,
appid
:
plus
.
runtime
.
appid
,
appVersion
:
plus
.
runtime
.
version
,
wgtVersion
:
widgetInfo
.
version
}).
then
(
result
=>
{
resolve
({
result
})
}).
catch
(
err
=>
{
reject
(
err
)
}
console
.
log
(
"
data:
"
,
data
);
uniCloud
.
callFunction
({
name
:
'
uni-upgrade-center
'
,
data
,
success
:
(
e
)
=>
{
console
.
log
(
"
e:
"
,
e
);
resolve
(
e
)
},
fail
:
(
error
)
=>
{
reject
(
error
)
}
})
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录