diff --git a/App.vue b/App.vue index a249e778234c16eec4a0160d7ee090827ff318d8..50d83e88dfadd86f001984f4cfac4c6ea1827412 100644 --- a/App.vue +++ b/App.vue @@ -1,23 +1,42 @@ - diff --git a/common/uni-uvue.css b/common/uni-uvue.css new file mode 100644 index 0000000000000000000000000000000000000000..50d7ea682e01e4913a17adc6e2df3ad5c699f365 --- /dev/null +++ b/common/uni-uvue.css @@ -0,0 +1,136 @@ +/* #ifndef APP-PLUS-NVUE */ +/* page { + min-height: 100%; + height: auto; +} */ +/* #endif */ + +/* 解决头条小程序字体图标不显示问题,因为头条运行时自动插入了span标签,且有全局字体 */ +/* #ifdef MP-TOUTIAO */ +/* text :not(view) { + font-family: uniicons; +} */ +/* #endif */ + +.uni-icon { + /* font-family: uniicons; + font-weight: normal; */ + width: 14px; + height: 14px; +} + +.uni-container { + padding: 0 15px 15px; + background-color: #f8f8f8; +} + +.uni-header-logo { + /* #ifdef H5 */ + display: flex; + /* #endif */ + padding: 15px 15px; + flex-direction: column; + justify-content: center; + align-items: center; + margin-top: 10rpx; +} + +.uni-header-image { + width: 80px; + height: 80px; +} + +.uni-hello-text { + margin-bottom: 20px; + color: #7A7E83; +} + +.hello-text { + color: #7A7E83; + font-size: 14px; + line-height: 20px; +} + +.hello-link { + color: #7A7E83; + font-size: 14px; + line-height: 20px; +} + +.uni-panel { + margin-bottom: 12px; +} + +.text-disabled { + color: #a0a0a0; +} + +.uni-panel-h { + display: flex; + background-color: #ffffff; + flex-direction: row !important; + justify-content: space-between !important; + align-items: center !important; + padding: 12px; +} + +/* +.uni-panel-h:active { + background-color: #f8f8f8; +} + */ +.uni-panel-h-on { + background-color: #f0f0f0; +} + +.uni-panel-text { + color: #000000; + font-size: 14px; + font-weight: normal; +} + +.uni-panel-icon { + margin-left: 15px; + color: #999999; + font-size: 14px; + font-weight: normal; + transform: rotate(0deg); + transition-duration: 0s; + transition-property: transform; +} + +.uni-panel-icon-on { + transform: rotate(180deg); +} + +.uni-navigate-item { + display: flex; + flex-direction: row; + align-items: center; + background-color: #FFFFFF; + border-top-style: solid; + border-top-color: #f0f0f0; + border-top-width: 1px; + padding: 12px; + justify-content: space-between; + /* #ifdef H5 */ + /* cursor: pointer; */ + /* #endif */ +} + +.uni-navigate-item-active { + background-color: #f8f8f8; +} + +.uni-navigate-text { + color: #000000; + font-size: 14px; + font-weight: normal; +} + +.uni-navigate-icon { + margin-left: 15px; + color: #999999; + font-size: 14px; + font-weight: normal; +} \ No newline at end of file diff --git a/common/uni.css b/common/uni.css index 4414e9b045dc53b9845ede21cbabfc2264971f1a..aff6d4571ca3c9fd2092b8fd686bf7a15cb24671 100644 --- a/common/uni.css +++ b/common/uni.css @@ -1,1458 +1,159 @@ -@font-face { - font-family: uniicons; - font-weight: normal; - font-style: normal; - src: url('~@/static/uni.ttf') format('truetype'); -} - -/* #ifdef H5 */ -.fix-left-window { - padding-left: var(--window-left); -} -.pc-hide { - display: none !important; -} -/* #endif */ - -/*通用 */ - -/* view{ - font-size:28rpx; - line-height:1.8; -} */ -progress, checkbox-group{ - width: 100%; -} -form { - width: 100%; -} -.uni-flex { - display: flex; - flex-direction: row; -} -.uni-flex-item { - flex: 1; -} -.uni-row { - flex-direction: row; -} -.uni-column { - flex-direction: column; -} -.uni-link{ - color:#576B95; - font-size:26rpx; -} -.uni-center{ - text-align:center; -} -.uni-inline-item{ - display: flex; - flex-direction: row; - align-items:center; -} -.uni-inline-item text{ - margin-right: 20rpx; -} -.uni-inline-item text:last-child{ - margin-right: 0rpx; - margin-left: 20rpx; -} - -/* page */ -.common-page-head{ - padding:35rpx; - text-align: center; -} -.common-page-head-title { - display: inline-block; - padding: 0 40rpx; - font-size: 30rpx; - height: 88rpx; - line-height: 88rpx; - color: #BEBEBE; - box-sizing: border-box; - border-bottom: 2rpx solid #D8D8D8; -} - -.uni-padding-wrap{ - /* width:690rpx; */ - padding:0 30rpx; -} -.uni-word { - text-align: center; - padding:200rpx 100rpx; -} -.uni-title { - font-size:30rpx; - font-weight:500; - padding:20rpx 0; - line-height:1.5; -} -.uni-text{ - font-size:28rpx; -} -.uni-title text{ - font-size:24rpx; - color:#888; -} - -.uni-text-gray{ - color: #ccc; -} -.uni-text-small { - font-size:24rpx; -} -.uni-common-mb{ - margin-bottom:30rpx; -} -.uni-common-pb{ - padding-bottom:30rpx; -} -.uni-common-pl{ - padding-left:30rpx; -} -.uni-common-mt{ - margin-top:30rpx; -} -/* 背景色 */ -.uni-bg-red{ - background:#F76260; color:#FFF; -} -.uni-bg-green{ - background:#09BB07; color:#FFF; -} -.uni-bg-blue{ - background:#007AFF; color:#FFF; -} -/* 标题 */ -.uni-h1 {font-size: 80rpx; font-weight:700;} -.uni-h2 {font-size: 60rpx; font-weight:700;} -.uni-h3 {font-size: 48rpx; font-weight:700;} -.uni-h4 {font-size: 36rpx; font-weight:700;} -.uni-h5 {font-size: 28rpx; color: #8f8f94;} -.uni-h6 {font-size: 24rpx; color: #8f8f94;} -.uni-bold{font-weight:bold;} - -/* 文本溢出隐藏 */ -.uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;} - -/* 竖向百分百按钮 */ -.uni-btn-v{ - padding:10rpx 0; -} -.uni-btn-v button{margin:20rpx 0;} - -/* 表单 */ -.uni-form-item{ - display:flex; - width:100%; - padding:10rpx 0; -} -.uni-form-item .title{ - padding:10rpx 25rpx; -} -.uni-label { - width: 210rpx; - word-wrap: break-word; - word-break: break-all; - text-indent:20rpx; -} -.uni-input { - height: 50rpx; - padding: 15rpx 25rpx; - line-height:50rpx; - font-size:28rpx; - background:#FFF; - flex: 1; -} -radio-group, checkbox-group{ - width:100%; -} -radio-group label, checkbox-group label{ - padding-right:20rpx; -} -.uni-form-item .with-fun{ - display:flex; - flex-wrap:nowrap; - background:#FFFFFF; -} -.uni-form-item .with-fun .uni-icon{ - width:40px; - height:80rpx; - line-height:80rpx; - flex-shrink:0; -} - -/* loadmore */ -.uni-loadmore{ - height:80rpx; - line-height:80rpx; - text-align:center; - padding-bottom:30rpx; -} -/*数字角标*/ -/* .uni-badge, -.uni-badge-default { - font-family: 'Helvetica Neue', Helvetica, sans-serif; - font-size: 12px; - line-height: 1; - display: inline-block; - padding: 3px 6px; - color: #333; - border-radius: 100px; - background-color: rgba(0, 0, 0, .15); -} */ -.uni-badge.uni-badge-inverted { - padding: 0 5px 0 0; - color: #929292; - background-color: transparent -} -.uni-badge-primary { - color: #fff; - background-color: #007aff -} -.uni-badge-blue.uni-badge-inverted, -.uni-badge-primary.uni-badge-inverted { - color: #007aff; - background-color: transparent -} -.uni-badge-green, -.uni-badge-success { - color: #fff; - background-color: #4cd964; -} -.uni-badge-green.uni-badge-inverted, -.uni-badge-success.uni-badge-inverted { - color: #4cd964; - background-color: transparent -} -.uni-badge-warning, -.uni-badge-yellow { - color: #fff; - background-color: #f0ad4e -} -.uni-badge-warning.uni-badge-inverted, -.uni-badge-yellow.uni-badge-inverted { - color: #f0ad4e; - background-color: transparent -} -.uni-badge-danger, -.uni-badge-red { - color: #fff; - background-color: #dd524d -} -.uni-badge-danger.uni-badge-inverted, -.uni-badge-red.uni-badge-inverted { - color: #dd524d; - background-color: transparent -} -.uni-badge-purple, -.uni-badge-royal { - color: #fff; - background-color: #8a6de9 -} -.uni-badge-purple.uni-badge-inverted, -.uni-badge-royal.uni-badge-inverted { - color: #8a6de9; - background-color: transparent -} - -/*折叠面板 */ -.uni-collapse-content { - height: 0; - width: 100%; - overflow: hidden; -} -.uni-collapse-content.uni-active { - height: auto; -} - -/*卡片视图 */ -.uni-card { - background: #fff; - border-radius: 8rpx; - margin:20rpx 0; - position: relative; - /* box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, .3); */ -} -.uni-card-content { - font-size: 30rpx; -} -.uni-card-content.image-view{ - width: 100%; - margin: 0; -} -.uni-card-content-inner { - position: relative; - padding: 30rpx; -} -.uni-card-footer, -.uni-card-header { - position: relative; - display: flex; - min-height: 50rpx; - padding: 20rpx 30rpx; - justify-content: space-between; - align-items: center; -} -.uni-card-header { - font-size: 36rpx; -} -.uni-card-footer { - color: #6d6d72; -} -.uni-card-footer:before, -.uni-card-header:after { - position: absolute; - top: 0; - right: 0; - left: 0; - height: 2rpx; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} -.uni-card-header:after { - top: auto; - bottom: 0; -} -.uni-card-media { - justify-content: flex-start; -} -.uni-card-media-logo { - height: 84rpx; - width: 84rpx; - margin-right: 20rpx; -} -.uni-card-media-body { - height: 84rpx; - display: flex; - flex-direction: column; - justify-content: space-between; - align-items: flex-start; -} -.uni-card-media-text-top { - line-height: 36rpx; - font-size: 34rpx; -} -.uni-card-media-text-bottom { - line-height: 30rpx; - font-size: 28rpx; - color: #8f8f94; -} -.uni-card-link { - color: #007AFF; -} - -/* 列表 */ -.uni-list { - background-color: #FFFFFF; - position: relative; - width: 100%; - display: flex; - flex-direction: column; -} -.uni-list:after { - position: absolute; - z-index: 10; - right: 0; - bottom: 0; - left: 0; - height: 1px; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} -/* .uni-list::before { - position: absolute; - z-index: 10; - right: 0; - top: 0; - left: 0; - height: 1px; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} */ -.uni-list-cell { - position: relative; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; -} -.uni-list-cell-hover { - background-color: #eee; -} -.uni-list-cell-pd { - padding: 22rpx 30rpx; -} -.uni-list-cell-left { - white-space: nowrap; - font-size:28rpx; - padding: 0 30rpx; -} -.uni-list-cell-db, -.uni-list-cell-right { - flex: 1; -} -.uni-list-cell::after { - position: absolute; - z-index: 3; - right: 0; - bottom: 0; - left: 30rpx; - height: 1px; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} -.uni-list .uni-list-cell:last-child::after { - height: 0rpx; -} -.uni-list-cell-last.uni-list-cell::after { - height: 0rpx; -} -.uni-list-cell-divider { - position: relative; - display: flex; - color: #999; - background-color: #f7f7f7; - padding:15rpx 20rpx; -} -.uni-list-cell-divider::before { - position: absolute; - right: 0; - top: 0; - left: 0; - height: 1px; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} -.uni-list-cell-divider::after { - position: absolute; - right: 0; - bottom: 0; - left: 0rpx; - height: 1px; - content: ''; - -webkit-transform: scaleY(.5); - transform: scaleY(.5); - background-color: #c8c7cc; -} -.uni-list-cell-navigate { - font-size:30rpx; - padding: 22rpx 30rpx; - line-height: 48rpx; - position: relative; - display: flex; - box-sizing: border-box; - width: 100%; - flex: 1; - justify-content: space-between; - align-items: center; -} -.uni-list-cell-navigate { - padding-right: 36rpx; -} -.uni-navigate-badge { - padding-right: 50rpx; -} -.uni-list-cell-navigate.uni-navigate-right:after { - font-family: uniicons; - content: '\e583'; - position: absolute; - right: 24rpx; - top: 50%; - color: #bbb; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} -.uni-list-cell-navigate.uni-navigate-bottom:after { - font-family: uniicons; - content: '\e581'; - position: absolute; - right: 24rpx; - top: 50%; - color: #bbb; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} -.uni-list-cell-navigate.uni-navigate-bottom.uni-active::after { - font-family: uniicons; - content: '\e580'; - position: absolute; - right: 24rpx; - top: 50%; - color: #bbb; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} -.uni-collapse.uni-list-cell { - flex-direction: column; -} -.uni-list-cell-navigate.uni-active { - background: #eee; -} -.uni-list.uni-collapse { - box-sizing: border-box; - height: 0; - overflow: hidden; -} -.uni-collapse .uni-list-cell { - padding-left: 20rpx; -} -.uni-collapse .uni-list-cell::after { - left: 52rpx; -} -.uni-list.uni-active { - height: auto; -} - -/* 三行列表 */ -.uni-triplex-row { - display: flex; - flex: 1; - width: 100%; - box-sizing: border-box; - flex-direction: row; - padding: 22rpx 30rpx; -} -.uni-triplex-right, -.uni-triplex-left { - display: flex; - flex-direction: column; -} -.uni-triplex-left { - width: 84%; -} -.uni-triplex-left .uni-title{ - padding:8rpx 0; -} -.uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;} -.uni-triplex-right { - width: 16%; - text-align: right; -} - -/* 图文列表 */ -.uni-media-list { - padding: 22rpx 30rpx; - box-sizing: border-box; - display: flex; - width: 100%; - flex-direction: row; -} -.uni-navigate-right.uni-media-list { - padding-right: 74rpx; -} -.uni-pull-right { - flex-direction: row-reverse; -} -.uni-pull-right>.uni-media-list-logo { - margin-right: 0rpx; - margin-left: 20rpx; -} -.uni-media-list-logo { - height: 84rpx; - width: 84rpx; - margin-right: 20rpx; -} -.uni-media-list-logo image { - height: 100%; - width: 100%; -} -.uni-media-list-body { - height: 84rpx; - display: flex; - flex: 1; - flex-direction: column; - justify-content: space-between; - align-items: flex-start; - overflow: hidden; -} -.uni-media-list-text-top { - width: 100%; - line-height: 36rpx; - font-size: 30rpx; -} -.uni-media-list-text-bottom { - width: 100%; - line-height: 30rpx; - font-size: 26rpx; - color: #8f8f94; -} - -/* 九宫格 */ -.uni-grid-9 { - background: #f2f2f2; - width: 750rpx; - display: flex; - flex-direction: row; - flex-wrap: wrap; - border-top: 2rpx solid #eee; -} -.uni-grid-9-item { - width: 250rpx; - height: 200rpx; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - border-bottom: 2rpx solid; - border-right: 2rpx solid; - border-color: #eee; - box-sizing: border-box; -} -.no-border-right { - border-right: none; -} -.uni-grid-9-image { - width: 100rpx; - height: 100rpx; -} -.uni-grid-9-text { - width: 250rpx; - line-height: 4rpx; - height: 40rpx; - text-align: center; - font-size: 30rpx; -} -.uni-grid-9-item-hover { - background: rgba(0, 0, 0, 0.1); -} - -/* 上传 */ -.uni-uploader { - flex: 1; - flex-direction: column; -} -.uni-uploader-head { - display: flex; - flex-direction: row; - justify-content: space-between; -} -.uni-uploader-info { - color: #B2B2B2; -} -.uni-uploader-body { - margin-top: 16rpx; -} -.uni-uploader__files { - display: flex; - flex-direction: row; - flex-wrap: wrap; -} -.uni-uploader__file { - margin: 10rpx; - width: 210rpx; - height: 210rpx; -} -.uni-uploader__img { - display: block; - width: 210rpx; - height: 210rpx; -} -.uni-uploader__input-box { - position: relative; - margin:10rpx; - width: 208rpx; - height: 208rpx; - border: 2rpx solid #D9D9D9; -} -.uni-uploader__input-box:before, -.uni-uploader__input-box:after { - content: " "; - position: absolute; - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - background-color: #D9D9D9; -} -.uni-uploader__input-box:before { - width: 4rpx; - height: 79rpx; -} -.uni-uploader__input-box:after { - width: 79rpx; - height: 4rpx; -} -.uni-uploader__input-box:active { - border-color: #999999; -} -.uni-uploader__input-box:active:before, -.uni-uploader__input-box:active:after { - background-color: #999999; -} -.uni-uploader__input { - position: absolute; - z-index: 1; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0; -} - -/*问题反馈*/ -.feedback-title { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 20rpx; - color: #8f8f94; - font-size: 28rpx; -} -.feedback-star-view.feedback-title { - justify-content: flex-start; - margin: 0; -} -.feedback-quick { - position: relative; - padding-right: 40rpx; -} -.feedback-quick:after { - font-family: uniicons; - font-size: 40rpx; - content: '\e581'; - position: absolute; - right: 0; - top: 50%; - color: #bbb; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} -.feedback-body { - background: #fff; -} -.feedback-textare { - height: 200rpx; - font-size: 34rpx; - line-height: 50rpx; - width: 100%; - box-sizing: border-box; - padding: 20rpx 30rpx 0; -} -.feedback-input { - font-size: 34rpx; - height: 50rpx; - min-height: 50rpx; - padding: 15rpx 20rpx; - line-height: 50rpx; -} -.feedback-uploader { - padding: 22rpx 20rpx; -} -.feedback-star { - font-family: uniicons; - font-size: 40rpx; - margin-left: 6rpx; -} -.feedback-star-view { - margin-left: 20rpx; -} -.feedback-star:after { - content: '\e408'; -} -.feedback-star.active { - color: #FFB400; -} -.feedback-star.active:after { - content: '\e438'; -} -.feedback-submit { - background: #007AFF; - color: #FFFFFF; - margin: 20rpx; -} - -/* input group */ -.uni-input-group { - position: relative; - padding: 0; - border: 0; - background-color: #fff; -} - -.uni-input-group:before { - position: absolute; - top: 0; - right: 0; - left: 0; - height: 2rpx; - content: ''; - transform: scaleY(.5); - background-color: #c8c7cc; -} - -.uni-input-group:after { - position: absolute; - right: 0; - bottom: 0; - left: 0; - height: 2rpx; - content: ''; - transform: scaleY(.5); - background-color: #c8c7cc; -} - -.uni-input-row { - position: relative; - display: flex; - flex-direction: row; - font-size:28rpx; - padding: 22rpx 30rpx; - justify-content: space-between; -} - -.uni-input-group .uni-input-row:after { - position: absolute; - right: 0; - bottom: 0; - left: 30rpx; - height: 2rpx; - content: ''; - transform: scaleY(.5); - background-color: #c8c7cc; -} - -.uni-input-row label { - line-height: 70rpx; -} - -/* textarea */ -.uni-textarea{ - width:100%; - background:#FFF; -} -.uni-textarea textarea{ - width:96%; - padding:18rpx 2%; - line-height:1.6; - font-size:28rpx; - height:150rpx; -} - -/* tab bar */ -.uni-tab-bar { - display: flex; - flex: 1; - flex-direction: column; - overflow: hidden; - height: 100%; -} - -.uni-tab-bar .list { - width: 750rpx; - height: 100%; -} - -.uni-swiper-tab { - width: 100%; - white-space: nowrap; - line-height: 100rpx; - height: 100rpx; - border-bottom: 1px solid #c8c7cc; -} - -.swiper-tab-list { - font-size: 30rpx; - width: 150rpx; - display: inline-block; - text-align: center; - color: #555; -} - -.uni-tab-bar .active { - color: #007AFF; -} - -.uni-tab-bar .swiper-box { - flex: 1; - width: 100%; - height: calc(100% - 100rpx); -} - -.uni-tab-bar-loading{ - padding:20rpx 0; -} - -/* comment */ -.uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;} -.uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;} -.uni-comment-face{width:70rpx; height:70rpx; border-radius:100%; margin-right:20rpx; flex-shrink:0; overflow:hidden;} -.uni-comment-face image{width:100%; border-radius:100%;} -.uni-comment-body{width:100%;} -.uni-comment-top{line-height:1.5em; justify-content:space-between;} -.uni-comment-top text{color:#0A98D5; font-size:24rpx;} -.uni-comment-date{line-height:38rpx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;} -.uni-comment-date view{color:#666666; font-size:24rpx; line-height:38rpx;} -.uni-comment-content{line-height:1.6em; font-size:28rpx; padding:8rpx 0;} -.uni-comment-replay-btn{background:#FFF; font-size:24rpx; line-height:28rpx; padding:5rpx 20rpx; border-radius:30rpx; color:#333 !important; margin:0 10rpx;} - -/* swiper msg */ -.uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;} -.uni-swiper-msg-icon{width:50rpx; margin-right:20rpx;} -.uni-swiper-msg-icon image{width:100%; flex-shrink:0;} -.uni-swiper-msg swiper{width:100%; height:50rpx;} -.uni-swiper-msg swiper-item{line-height:50rpx;} - -/* product */ -.uni-product-list { - display: flex; - width: 100%; - flex-wrap: wrap; - flex-direction: row; -} - -.uni-product { - padding: 20rpx; - display: flex; - flex-direction: column; -} - -.image-view { - height: 330rpx; - width: 330rpx; - margin:12rpx 0; -} - -.uni-product-image { - height: 330rpx; - width: 330rpx; -} - -.uni-product-title { - width: 300rpx; - word-break: break-all; - display: -webkit-box; - overflow: hidden; - line-height:1.5; - text-overflow: ellipsis; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; -} - -.uni-product-price { - margin-top:10rpx; - font-size: 28rpx; - line-height:1.5; - position: relative; -} - -.uni-product-price-original { - color: #e80080; -} - -.uni-product-price-favour { - color: #888888; - text-decoration: line-through; - margin-left: 10rpx; -} - -.uni-product-tip { - position: absolute; - right: 10rpx; - background-color: #ff3333; - color: #ffffff; - padding: 0 10rpx; - border-radius: 5rpx; -} - -/* timeline */ -.uni-timeline { - margin: 35rpx 0; - display: flex; - flex-direction: column; - position: relative; - } - - - .uni-timeline-item { - display: flex; - flex-direction: row; - position: relative; - padding-bottom: 20rpx; - box-sizing: border-box; - overflow: hidden; - - } - - .uni-timeline-item .uni-timeline-item-keynode { - width: 160rpx; - flex-shrink: 0; - box-sizing: border-box; - padding-right: 20rpx; - text-align: right; - line-height: 65rpx; - } - - .uni-timeline-item .uni-timeline-item-divider { - flex-shrink: 0; - position: relative; - width: 30rpx; - height: 30rpx; - top: 15rpx; - border-radius: 50%; - background-color: #bbb; - } - - - - .uni-timeline-item-divider::before, - .uni-timeline-item-divider::after { - position: absolute; - left: 15rpx; - width: 1rpx; - height: 100vh; - content: ''; - background: inherit; - } - - .uni-timeline-item-divider::before { - bottom: 100%; - } - - .uni-timeline-item-divider::after { - top: 100%; - } - - - .uni-timeline-last-item .uni-timeline-item-divider:after { - display: none; - } - - .uni-timeline-first-item .uni-timeline-item-divider:before { - display: none; - } - - .uni-timeline-item .uni-timeline-item-content { - padding-left: 20rpx; - } - - .uni-timeline-last-item .bottom-border::after{ - display: none; - } - - .uni-timeline-item-content .datetime{ - color: #CCCCCC; - } - - /* 自定义节点颜色 */ - .uni-timeline-last-item .uni-timeline-item-divider{ - background-color: #1AAD19; - } - - -/* uni-icon */ - -.uni-icon { - font-family: uniicons; - font-size: 24px; - font-weight: normal; - font-style: normal; - line-height: 1; - display: inline-block; - text-decoration: none; - -webkit-font-smoothing: antialiased; -} - -.uni-icon.uni-active { - color: #007aff; -} - -.uni-icon-contact:before { - content: '\e100'; -} - -.uni-icon-person:before { - content: '\e101'; -} - -.uni-icon-personadd:before { - content: '\e102'; -} - -.uni-icon-contact-filled:before { - content: '\e130'; -} - -.uni-icon-person-filled:before { - content: '\e131'; -} - -.uni-icon-personadd-filled:before { - content: '\e132'; -} - -.uni-icon-phone:before { - content: '\e200'; -} - -.uni-icon-email:before { - content: '\e201'; -} - -.uni-icon-chatbubble:before { - content: '\e202'; -} - -.uni-icon-chatboxes:before { - content: '\e203'; -} - -.uni-icon-phone-filled:before { - content: '\e230'; -} - -.uni-icon-email-filled:before { - content: '\e231'; -} - -.uni-icon-chatbubble-filled:before { - content: '\e232'; -} - -.uni-icon-chatboxes-filled:before { - content: '\e233'; -} - -.uni-icon-weibo:before { - content: '\e260'; -} - -.uni-icon-weixin:before { - content: '\e261'; -} - -.uni-icon-pengyouquan:before { - content: '\e262'; -} - -.uni-icon-chat:before { - content: '\e263'; -} - -.uni-icon-qq:before { - content: '\e264'; -} - -.uni-icon-videocam:before { - content: '\e300'; -} - -.uni-icon-camera:before { - content: '\e301'; -} - -.uni-icon-mic:before { - content: '\e302'; -} - -.uni-icon-location:before { - content: '\e303'; -} - -.uni-icon-mic-filled:before, -.uni-icon-speech:before { - content: '\e332'; -} - -.uni-icon-location-filled:before { - content: '\e333'; -} - -.uni-icon-micoff:before { - content: '\e360'; -} - -.uni-icon-image:before { - content: '\e363'; -} - -.uni-icon-map:before { - content: '\e364'; -} - -.uni-icon-compose:before { - content: '\e400'; -} - -.uni-icon-trash:before { - content: '\e401'; -} - -.uni-icon-upload:before { - content: '\e402'; -} - -.uni-icon-download:before { - content: '\e403'; -} - -.uni-icon-close:before { - content: '\e404'; -} - -.uni-icon-redo:before { - content: '\e405'; -} - -.uni-icon-undo:before { - content: '\e406'; -} - -.uni-icon-refresh:before { - content: '\e407'; -} - -.uni-icon-star:before { - content: '\e408'; -} - -.uni-icon-plus:before { - content: '\e409'; -} - -.uni-icon-minus:before { - content: '\e410'; -} - -.uni-icon-circle:before, -.uni-icon-checkbox:before { - content: '\e411'; -} - -.uni-icon-close-filled:before, -.uni-icon-clear:before { - content: '\e434'; -} - -.uni-icon-refresh-filled:before { - content: '\e437'; -} - -.uni-icon-star-filled:before { - content: '\e438'; -} - -.uni-icon-plus-filled:before { - content: '\e439'; -} - -.uni-icon-minus-filled:before { - content: '\e440'; -} - -.uni-icon-circle-filled:before { - content: '\e441'; -} - -.uni-icon-checkbox-filled:before { - content: '\e442'; -} - -.uni-icon-closeempty:before { - content: '\e460'; -} - -.uni-icon-refreshempty:before { - content: '\e461'; -} - -.uni-icon-reload:before { - content: '\e462'; -} - -.uni-icon-starhalf:before { - content: '\e463'; -} - -.uni-icon-spinner:before { - content: '\e464'; -} - -.uni-icon-spinner-cycle:before { - content: '\e465'; -} - -.uni-icon-search:before { - content: '\e466'; -} - -.uni-icon-plusempty:before { - content: '\e468'; -} - -.uni-icon-forward:before { - content: '\e470'; -} - -.uni-icon-back:before, -.uni-icon-left-nav:before { - content: '\e471'; -} - -.uni-icon-checkmarkempty:before { - content: '\e472'; -} - -.uni-icon-home:before { - content: '\e500'; -} - -.uni-icon-navigate:before { - content: '\e501'; -} - -.uni-icon-gear:before { - content: '\e502'; -} - -.uni-icon-paperplane:before { - content: '\e503'; -} - -.uni-icon-info:before { - content: '\e504'; -} - -.uni-icon-help:before { - content: '\e505'; -} - -.uni-icon-locked:before { - content: '\e506'; -} - -.uni-icon-more:before { - content: '\e507'; -} - -.uni-icon-flag:before { - content: '\e508'; -} - -.uni-icon-home-filled:before { - content: '\e530'; -} - -.uni-icon-gear-filled:before { - content: '\e532'; -} - -.uni-icon-info-filled:before { - content: '\e534'; -} - -.uni-icon-help-filled:before { - content: '\e535'; -} - -.uni-icon-more-filled:before { - content: '\e537'; -} - -.uni-icon-settings:before { - content: '\e560'; -} - -.uni-icon-list:before { - content: '\e562'; -} - -.uni-icon-bars:before { - content: '\e563'; -} - -.uni-icon-loop:before { - content: '\e565'; -} - -.uni-icon-paperclip:before { - content: '\e567'; -} - -.uni-icon-eye:before { - content: '\e568'; -} - -.uni-icon-arrowup:before { - content: '\e580'; -} - -.uni-icon-arrowdown:before { - content: '\e581'; -} - -.uni-icon-arrowleft:before { - content: '\e582'; -} - -.uni-icon-arrowright:before { - content: '\e583'; -} - -.uni-icon-arrowthinup:before { - content: '\e584'; -} - -.uni-icon-arrowthindown:before { - content: '\e585'; -} - -.uni-icon-arrowthinleft:before { - content: '\e586'; -} - -.uni-icon-arrowthinright:before { - content: '\e587'; -} - -.uni-icon-pulldown:before { - content: '\e588'; -} - -.uni-icon-scan:before { - content: "\e612"; -} - -/* 分界线 */ -.uni-divider{ - height: 110rpx; - display: flex; - align-items:center; - justify-content: center; - position: relative; -} -.uni-divider__content{ - font-size: 28rpx; - color: #999; - padding: 0 20rpx; - position: relative; - z-index: 101; - background: #F4F5F6; -} -.uni-divider__line{ - background-color: #CCCCCC; - height: 1px; - width: 100%; - position: absolute; - z-index: 100; - top: 50%; - left: 0; - transform: translateY(50%); -} - -.left-win-active text{ - color: #007AFF !important; -} +.uni-padding-wrap { + padding: 0 30rpx; +} + +.uni-title { + padding: 20rpx 0; +} + +.uni-title-text { + font-size: 30rpx; + font-weight: bold; +} + +.uni-subtitle-text { + margin-top: 10rpx; + font-size: 24rpx; + color: #888; + font-weight: bold; +} + +.uni-common-mb { + margin-bottom: 30rpx; +} + +.uni-common-pb { + padding-bottom: 30rpx; +} + +.uni-common-pl { + padding-left: 30rpx; +} + +.uni-common-mt { + margin-top: 30rpx; +} + +.uni-hello-text { + color: #7A7E83; + line-height: 22px; +} + +.uni-list { + background-color: #FFFFFF; + position: relative; + display: flex; + flex-direction: column; + border-bottom: 1px solid #c8c7cc; +} + +.uni-list-cell { + position: relative; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} + +.uni-list-cell-line { + border-bottom: 1px solid #c8c7cc; +} + +.uni-list-cell-hover { + background-color: #eee; +} + +.uni-list-cell-pd { + padding: 22rpx 30rpx 22rpx 0; +} + +.uni-list-cell-left { + padding: 0 30rpx 0 20rpx; +} + +.uni-list-cell-db, +.uni-list-cell-right { + flex: 1; +} + +.uni-label { + width: 210rpx; + font-size: 28rpx; + /* word-wrap: break-word; + word-break: break-all; + text-indent:20rpx; */ +} + +.uni-input { + height: 50rpx; + padding: 15rpx 25rpx; + line-height: 50rpx; + font-size: 28rpx; + background: #FFF; + flex: 1; + box-sizing: content-box; +} + +.uni-flex { + /* #ifdef H5 */ + display: flex; + /* #endif */ + flex-direction: row; +} + +.uni-flex-item { + flex: 1; +} + +.uni-row { + flex-direction: row; +} + +.uni-column { + flex-direction: column; +} + +/* 背景色 */ +.uni-bg-red { + background: #F76260; + color: #FFF; +} + +.uni-bg-green { + background: #09BB07; + color: #FFF; +} + +.uni-bg-blue { + background: #007AFF; + color: #FFF; +} + +.uni-btn-v { + padding: 10rpx 0; +} + +.uni-btn { + margin-top: 20rpx; +} + +.uni-link { + color: #576B95; + font-size: 26rpx; +} + +.uni-center { + flex-direction: row; + justify-content: center; +} + +/* textarea */ +.uni-textarea-box { + background: #ffffff; +} + +.uni-textarea { + padding: 18rpx; + line-height: 1.6; + font-size: 28rpx; +} \ No newline at end of file diff --git a/components/page-head/page-head.vue b/components/page-head/page-head.vue index 07ed46dd61ece8b1c64cf3b11116015a4fd1c6ef..dd07a118c4587badbe7967871e6b86c43707571f 100644 --- a/components/page-head/page-head.vue +++ b/components/page-head/page-head.vue @@ -1,16 +1,38 @@ - - + + + \ No newline at end of file diff --git a/env.js b/env.js new file mode 100644 index 0000000000000000000000000000000000000000..dc8400011f87470e20b11317feda1463eabdec85 --- /dev/null +++ b/env.js @@ -0,0 +1,31 @@ +module.exports = { + "is-custom-runtime": false, + "compile": true, + "h5": { + "options": { + "headless": true + }, + "executablePath": "" + }, + "mp-weixin": { + "port": 9420, + "account": "", + "args": "", + "cwd": "", + "launch": true, + "teardown": "disconnect", + "remote": false, + "executablePath": "" + }, + "app-plus": { + "android": { + "id": "emulator-5554", + "executablePath": "/Users/yuanrenjie/Desktop/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk" + }, + "version": "/Users/yuanrenjie/Desktop/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/launcher/base/version.txt", + "ios": { + "id": "", + "executablePath": "" + } + } +} \ No newline at end of file diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000000000000000000000000000000000000..4c02a56c2f0a0edcc39ef2ca8a77527d11580e91 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,54 @@ +const { + readFileSync, + readdirSync +} = require('fs') +const { + extname, + resolve +} = require('path') + +const describeRE = /describe\(["|'](.*)["|']/ +const testsRE = /test\(["|'](.*)["|']/g + +function parse(content) { + const describes = content.match(describeRE) + if (!describes) { + return + } + const describe = describes[1] + const tests = [] + let test + while (test = testsRE.exec(content)) { + tests.push(test[1]) + } + return { + describe, + tests + } +} + +function parseDescribes() { + const dir = resolve(__dirname, 'uni_modules/uts-tests/utssdk') + const describes = [] + readdirSync(dir).forEach(file => { + if (extname(file) === '.uts') { + describes.push(parse(readFileSync(resolve(dir, file), 'utf8'))) + } + }) + return describes +}; + +module.exports = { + testTimeout: 10000, + reporters: [ + 'default' + ], + globals: { + describes: parseDescribes() + }, + watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], + moduleFileExtensions: ['js', 'json'], + rootDir: __dirname, + testMatch: ["/pages/**/*test.[jt]s?(x)"], + testPathIgnorePatterns: ['/node_modules/'] +} diff --git a/main.js b/main.js index afc6b0895d6b690f6d5157a993b83837f519503b..f0074dad9eea4b5c5c77983f2edc82d904b21eb7 100644 --- a/main.js +++ b/main.js @@ -1,21 +1,10 @@ import App from './App' -// #ifndef VUE3 -import Vue from 'vue' -Vue.config.productionTip = false -App.mpType = 'app' -const app = new Vue({ - ...App -}) -app.$mount() -// #endif - -// #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) + return { app } -} -// #endif \ No newline at end of file +} \ No newline at end of file diff --git a/main.uts b/main.uts new file mode 100644 index 0000000000000000000000000000000000000000..f0074dad9eea4b5c5c77983f2edc82d904b21eb7 --- /dev/null +++ b/main.uts @@ -0,0 +1,10 @@ +import App from './App' + +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + + return { + app + } +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 5511eaec45f3c6a8f2d2835c77281c3a03bcd878..3ca6c1402d91805fdb93a9f3547afb9a60901384 100644 --- a/manifest.json +++ b/manifest.json @@ -1,78 +1,78 @@ { - "name" : "HelloUTS", - "appid" : "__UNI__70BE9D0", - "description" : "", - "versionName" : "1.0.9", - "versionCode" : "109", - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : {}, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "minSdkVersion" : 21, - "abiFilters" : [ "armeabi-v7a" ] - }, - /* ios打包配置 */ - "ios" : { - "dSYMs" : false - }, - /* SDK配置 */ - "sdkConfigs" : { - "ad" : {} - } - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3" -} + "name": "HelloUTS", + "appid": "__UNI__70BE9D0", + "description": "", + "versionName": "1.0.9", + "versionCode": "109", + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": {}, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "minSdkVersion": 21, + "abiFilters": ["armeabi-v7a"] + }, + /* ios打包配置 */ + "ios": { + "dSYMs": false + }, + /* SDK配置 */ + "sdkConfigs": { + "ad": {} + } + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3" +} \ No newline at end of file diff --git a/pages.json b/pages.json index 18e3486ed066fa84752e07b6dd4be2ea0e6faa6e..0a211d1fa2cb222003bf6e699220e4f813e67765 100644 --- a/pages.json +++ b/pages.json @@ -1,150 +1,185 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - - { - "path" : "pages/index/index", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - }, - - { - "path" : "pages/advance/advance", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - }, - { - "path" : "pages/SystemAPI/SystemAPI", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/SystemAPI/Alert/alert", - "style" : - { - "navigationBarTitleText": "" - } - - }, - { - "path" : "pages/component/helloView", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - }, - { - "path" : "pages/SDKIntegration/SDKIntegration", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/SDKIntegration/TencentLocation/TencentLocation", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/SDKIntegration/Lottie/index", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/SDKIntegration/Toast/Toast", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/lifecycle/lifecycle", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/resource/resource", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/advance/android/decorview", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/advance/iOS/getResourcePath", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/advance/android/assetaudio", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, - { - "path" : "pages/SystemAPI/ScreenListen/screenlisten", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - + + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/index/basicTest", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/advance/advance", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/SystemAPI/SystemAPI", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SystemAPI/Alert/alert", + "style": { + "navigationBarTitleText": "" + } + + }, + { + "path": "pages/component/helloView", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/SDKIntegration/SDKIntegration", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SDKIntegration/TencentLocation/TencentLocation", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SDKIntegration/Lottie/index", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SDKIntegration/Toast/Toast", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/lifecycle/lifecycle", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/resource/resource", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/resource/fileRead", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/advance/android/decorview", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/advance/iOS/getResourcePath", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/advance/android/assetaudio", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SystemAPI/ScreenListen/screenlisten", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SyntaxCase/index", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/SyntaxCase/paramTest", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SyntaxCase/consoleTest", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, { - "path" : "pages/SyntaxCase/index", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - + "path": "pages/SyntaxCase/instanceTest", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SyntaxCase/utsAndroid", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/SyntaxCase/utsiOS", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + } - - ], + + ], "tabBar": { "color": "#7A7E83", "selectedColor": "#007AFF", @@ -158,7 +193,7 @@ "pagePath": "pages/advance/advance", "text": "进阶" }, { - "pagePath":"pages/SystemAPI/SystemAPI", + "pagePath": "pages/SystemAPI/SystemAPI", "text": "系统API" }, { "pagePath": "pages/SDKIntegration/SDKIntegration", @@ -173,4 +208,4 @@ "backgroundColor": "#F8F8F8" }, "uniIdRouter": {} -} +} \ No newline at end of file diff --git a/pages/SDKIntegration/Lottie/index.nvue b/pages/SDKIntegration/Lottie/index.nvue index 01527142392ebbb64c18ef834884e6520d14d478..8874c50acd074a9cde1723dc4ccf465a37670d76 100644 --- a/pages/SDKIntegration/Lottie/index.nvue +++ b/pages/SDKIntegration/Lottie/index.nvue @@ -8,7 +8,7 @@ - diff --git a/pages/SDKIntegration/Lottie/index.uvue b/pages/SDKIntegration/Lottie/index.uvue new file mode 100644 index 0000000000000000000000000000000000000000..e2c958ff55b4e2884381284bc06ce1b352e06334 --- /dev/null +++ b/pages/SDKIntegration/Lottie/index.uvue @@ -0,0 +1,79 @@ + + + diff --git a/pages/SDKIntegration/SDKIntegration.uvue b/pages/SDKIntegration/SDKIntegration.uvue new file mode 100644 index 0000000000000000000000000000000000000000..480f5b2317de29228c32d442e23a1c1d9ba3a1f6 --- /dev/null +++ b/pages/SDKIntegration/SDKIntegration.uvue @@ -0,0 +1,90 @@ + + + + \ No newline at end of file diff --git a/pages/SDKIntegration/SDKIntegration.vue b/pages/SDKIntegration/SDKIntegration.vue index bdd2ed85b18d1f042dd736ef308d5a979e7b3c43..4b55e1cf7b38fa873c2f85421ec2c98631808fc4 100644 --- a/pages/SDKIntegration/SDKIntegration.vue +++ b/pages/SDKIntegration/SDKIntegration.vue @@ -1,74 +1,95 @@ - - - - - + + + + \ No newline at end of file diff --git a/pages/SDKIntegration/TencentLocation/TencentLocation.uvue b/pages/SDKIntegration/TencentLocation/TencentLocation.uvue new file mode 100644 index 0000000000000000000000000000000000000000..1f8b4500e0bc292d3e0631d00d25af1e402f8ce0 --- /dev/null +++ b/pages/SDKIntegration/TencentLocation/TencentLocation.uvue @@ -0,0 +1,100 @@ + + + + + diff --git a/pages/SDKIntegration/Toast/Toast.uvue b/pages/SDKIntegration/Toast/Toast.uvue new file mode 100644 index 0000000000000000000000000000000000000000..5da4a535dfa668fe9d7738426e7e9deaff3cd6c5 --- /dev/null +++ b/pages/SDKIntegration/Toast/Toast.uvue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/consoleTest.uvue b/pages/SyntaxCase/consoleTest.uvue new file mode 100644 index 0000000000000000000000000000000000000000..97d443667f6725ab8a9354a1233b78119a725111 --- /dev/null +++ b/pages/SyntaxCase/consoleTest.uvue @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/consoleTest.vue b/pages/SyntaxCase/consoleTest.vue new file mode 100644 index 0000000000000000000000000000000000000000..54d896a8b6629e710e0de1c333f2934c901319d8 --- /dev/null +++ b/pages/SyntaxCase/consoleTest.vue @@ -0,0 +1,63 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/index.uvue b/pages/SyntaxCase/index.uvue new file mode 100644 index 0000000000000000000000000000000000000000..724fcf688c80d6e6e0801640c53a0fa74a9b8422 --- /dev/null +++ b/pages/SyntaxCase/index.uvue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/pages/SyntaxCase/index.vue b/pages/SyntaxCase/index.vue index 0acfca6aab49fd3c3a391defbabe186c8a32aa33..2a8689c5391d100152900eee38509ccea72982ed 100644 --- a/pages/SyntaxCase/index.vue +++ b/pages/SyntaxCase/index.vue @@ -1,322 +1,373 @@ + \ No newline at end of file diff --git a/pages/SyntaxCase/instanceTest.uvue b/pages/SyntaxCase/instanceTest.uvue new file mode 100644 index 0000000000000000000000000000000000000000..4c15b716fcacf1bb3dd419681334195d2455152c --- /dev/null +++ b/pages/SyntaxCase/instanceTest.uvue @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/instanceTest.vue b/pages/SyntaxCase/instanceTest.vue new file mode 100644 index 0000000000000000000000000000000000000000..4c15b716fcacf1bb3dd419681334195d2455152c --- /dev/null +++ b/pages/SyntaxCase/instanceTest.vue @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/paramTest.uvue b/pages/SyntaxCase/paramTest.uvue new file mode 100644 index 0000000000000000000000000000000000000000..d214022cc7a90294e634ef27541972b17b68cb7b --- /dev/null +++ b/pages/SyntaxCase/paramTest.uvue @@ -0,0 +1,92 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/paramTest.vue b/pages/SyntaxCase/paramTest.vue new file mode 100644 index 0000000000000000000000000000000000000000..5c33c26131f7f8d64cf0f349df19906309697a3e --- /dev/null +++ b/pages/SyntaxCase/paramTest.vue @@ -0,0 +1,92 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/utsAndroid.uvue b/pages/SyntaxCase/utsAndroid.uvue new file mode 100644 index 0000000000000000000000000000000000000000..2eb8636fb4ccfc5fcc0eee987f9aba0a2cce9b0e --- /dev/null +++ b/pages/SyntaxCase/utsAndroid.uvue @@ -0,0 +1,240 @@ + + + + + diff --git a/pages/SyntaxCase/utsAndroid.vue b/pages/SyntaxCase/utsAndroid.vue new file mode 100644 index 0000000000000000000000000000000000000000..7ba1af6f8584e28c1edebb0c125fb532a46e4d6f --- /dev/null +++ b/pages/SyntaxCase/utsAndroid.vue @@ -0,0 +1,236 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/utsiOS.uvue b/pages/SyntaxCase/utsiOS.uvue new file mode 100644 index 0000000000000000000000000000000000000000..02409e35d24cc6426e4ce2e7d6beeb9fcc68e162 --- /dev/null +++ b/pages/SyntaxCase/utsiOS.uvue @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/pages/SyntaxCase/utsiOS.vue b/pages/SyntaxCase/utsiOS.vue new file mode 100644 index 0000000000000000000000000000000000000000..f517f6dfb8dd6dc29aece4daf37c55a89bd3115c --- /dev/null +++ b/pages/SyntaxCase/utsiOS.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/pages/SystemAPI/Alert/alert.uvue b/pages/SystemAPI/Alert/alert.uvue new file mode 100644 index 0000000000000000000000000000000000000000..c89d62d4ebf84c3f5a35dc19df29e1dd4fa0b1a1 --- /dev/null +++ b/pages/SystemAPI/Alert/alert.uvue @@ -0,0 +1,53 @@ + + + + + \ No newline at end of file diff --git a/pages/SystemAPI/ScreenListen/screenlisten.uvue b/pages/SystemAPI/ScreenListen/screenlisten.uvue new file mode 100644 index 0000000000000000000000000000000000000000..cb8e54c6adf54df85b28a6c9ada14982ad6254d8 --- /dev/null +++ b/pages/SystemAPI/ScreenListen/screenlisten.uvue @@ -0,0 +1,89 @@ + + + + + \ No newline at end of file diff --git a/pages/SystemAPI/ScreenListen/screenlisten.vue b/pages/SystemAPI/ScreenListen/screenlisten.vue index 0a734529c7bf4b8956dddf79b7394aad10be2808..a3312fc3e6c8962aa41e49633512c4cb66ef96e0 100644 --- a/pages/SystemAPI/ScreenListen/screenlisten.vue +++ b/pages/SystemAPI/ScreenListen/screenlisten.vue @@ -2,10 +2,8 @@ - - - - + + diff --git a/pages/SystemAPI/SystemAPI.uvue b/pages/SystemAPI/SystemAPI.uvue new file mode 100644 index 0000000000000000000000000000000000000000..b9e2f218c7b0ba466acb8c161acd36574847bd72 --- /dev/null +++ b/pages/SystemAPI/SystemAPI.uvue @@ -0,0 +1,131 @@ + + + + \ No newline at end of file diff --git a/pages/SystemAPI/SystemAPI.vue b/pages/SystemAPI/SystemAPI.vue index b1df09c5a2813cebba8fdee265a2ccad19051564..04912324f505b5e9fd5c39edfa6778d4f4be4cd8 100644 --- a/pages/SystemAPI/SystemAPI.vue +++ b/pages/SystemAPI/SystemAPI.vue @@ -1,94 +1,117 @@ - - - - +· + + + \ No newline at end of file diff --git a/pages/advance/advance.uvue b/pages/advance/advance.uvue new file mode 100644 index 0000000000000000000000000000000000000000..42bcc281651563a5a9b414f9534342385ddbe91c --- /dev/null +++ b/pages/advance/advance.uvue @@ -0,0 +1,214 @@ + + + + \ No newline at end of file diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue index cf72516efa5794fef406e0513f411567bc9daba1..3f37c4e97369db72ec0ae844f824e6d9fd58a389 100644 --- a/pages/advance/advance.vue +++ b/pages/advance/advance.vue @@ -1,195 +1,247 @@ + @import '@/common/uni-uvue.css'; + + .uni-container { + min-height: 100%; + } + \ No newline at end of file diff --git a/pages/advance/android/assetaudio.uvue b/pages/advance/android/assetaudio.uvue new file mode 100644 index 0000000000000000000000000000000000000000..434bb9177cf6acedca411d021c938ad46ce78ad9 --- /dev/null +++ b/pages/advance/android/assetaudio.uvue @@ -0,0 +1,44 @@ + + + + + \ No newline at end of file diff --git a/pages/advance/android/assetaudio.vue b/pages/advance/android/assetaudio.vue index 9b71746608d2a38bdfb4b94436f6417fa3c5809b..73ce991dbeb3919f97ed8ecda5ea8bc525cd2fc0 100644 --- a/pages/advance/android/assetaudio.vue +++ b/pages/advance/android/assetaudio.vue @@ -2,10 +2,8 @@ - - - - + + diff --git a/pages/advance/android/decorview.uvue b/pages/advance/android/decorview.uvue new file mode 100644 index 0000000000000000000000000000000000000000..0bffbb0553fb31dd99d040c8d64226107bf38cad --- /dev/null +++ b/pages/advance/android/decorview.uvue @@ -0,0 +1,45 @@ + + + + + \ No newline at end of file diff --git a/pages/advance/android/decorview.vue b/pages/advance/android/decorview.vue index 20547b84eca152bd8cbbb4d78e48b3d133a0499a..e4bfd682d273b0a1a6aafabe17f5a324758fd8a5 100644 --- a/pages/advance/android/decorview.vue +++ b/pages/advance/android/decorview.vue @@ -2,10 +2,8 @@ - - - - + + diff --git a/pages/advance/iOS/getResourcePath.uvue b/pages/advance/iOS/getResourcePath.uvue new file mode 100644 index 0000000000000000000000000000000000000000..370715e1fc876b61b42eec74ba763d55c0a423d5 --- /dev/null +++ b/pages/advance/iOS/getResourcePath.uvue @@ -0,0 +1,37 @@ + + + + diff --git a/pages/component/helloView.uvue b/pages/component/helloView.uvue new file mode 100644 index 0000000000000000000000000000000000000000..f69983ddd4b996a94f1a66f03708c971891ed2bc --- /dev/null +++ b/pages/component/helloView.uvue @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/pages/index/basicTest.test.js b/pages/index/basicTest.test.js new file mode 100644 index 0000000000000000000000000000000000000000..35a3c6782ec547403350f5cc6cdf695b6b79769e --- /dev/null +++ b/pages/index/basicTest.test.js @@ -0,0 +1,37 @@ +const ERR_RE = /expected:<(.*)> but was:<(.*)>/ + +let result; + +beforeAll(async () => { + await program.reLaunch('/pages/index/basicTest') + page = await program.currentPage() + await page.waitFor(3000); + const data = await page.data(); + result = data['result'] +}) + +function getApiFailed(describe, api) { + const failed = result[describe]?.failed?.find(item => { + return item.split(':')[0] === api + }) + return failed +} + +describes.forEach(d => { + d?.describe && describe(d.describe, () => { + d?.tests && d.tests.forEach(api => { + it(api, ()=>{ + const failed = getApiFailed(d.describe, api) + if (failed) { + const parts = failed.split('\n') + const matches = parts[1].match(ERR_RE) + if (matches?.length) { + expect(matches[2]).toEqual(matches[1]) + } else { + expect(parts[1]).toEqual('') + } + } + }) + }) + }) +}) diff --git a/pages/index/basicTest.uvue b/pages/index/basicTest.uvue new file mode 100644 index 0000000000000000000000000000000000000000..8dc97bfee7a8e76edbe95aa0fe7c21f4df89e0c9 --- /dev/null +++ b/pages/index/basicTest.uvue @@ -0,0 +1,66 @@ + + + diff --git a/pages/index/basicTest.vue b/pages/index/basicTest.vue new file mode 100644 index 0000000000000000000000000000000000000000..0381a3969d66f34146ee8532df5c41075eb49ec7 --- /dev/null +++ b/pages/index/basicTest.vue @@ -0,0 +1,59 @@ + + + diff --git a/pages/index/index.uvue b/pages/index/index.uvue new file mode 100644 index 0000000000000000000000000000000000000000..e87480719f811c041fcd099272902f8feb7bbfd9 --- /dev/null +++ b/pages/index/index.uvue @@ -0,0 +1,91 @@ + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 4c5ea3458cb22c1aad4bb18f91ce6a467772a2b5..e5fbc488a35a8d274a124ba0e28c8702dbcef903 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -6,11 +6,12 @@ + + + diff --git a/pages/resource/fileRead.uvue b/pages/resource/fileRead.uvue new file mode 100644 index 0000000000000000000000000000000000000000..18c4fcf26631ca6780b8569fb121d377e0228f9d --- /dev/null +++ b/pages/resource/fileRead.uvue @@ -0,0 +1,27 @@ + + + + diff --git a/pages/resource/fileRead.vue b/pages/resource/fileRead.vue new file mode 100644 index 0000000000000000000000000000000000000000..b5b876973b037d3bab14b2a480257f3db134378b --- /dev/null +++ b/pages/resource/fileRead.vue @@ -0,0 +1,79 @@ + + + + diff --git a/pages/resource/resource.uvue b/pages/resource/resource.uvue new file mode 100644 index 0000000000000000000000000000000000000000..e4a8ec47ae9edfd419e359319d3ad3eef1c5a252 --- /dev/null +++ b/pages/resource/resource.uvue @@ -0,0 +1,31 @@ + + + + diff --git a/static/icons/arrow-down.png b/static/icons/arrow-down.png new file mode 100644 index 0000000000000000000000000000000000000000..b418a7034e05e96adb68408dc0325b35e1f683a2 Binary files /dev/null and b/static/icons/arrow-down.png differ diff --git a/static/icons/arrow-right.png b/static/icons/arrow-right.png new file mode 100644 index 0000000000000000000000000000000000000000..dae80bad9a2b4f00702e31bc2c46a25c0f235b91 Binary files /dev/null and b/static/icons/arrow-right.png differ diff --git a/static/icons/arrow-up.png b/static/icons/arrow-up.png new file mode 100644 index 0000000000000000000000000000000000000000..da25e9cd69395ec858436fdb836778d7a63a14b1 Binary files /dev/null and b/static/icons/arrow-up.png differ diff --git a/uni_modules/uni-badge/changelog.md b/uni_modules/uni-badge/changelog.md deleted file mode 100644 index 56581c4eee26d01227b094831bf8c03aaecf5ebc..0000000000000000000000000000000000000000 --- a/uni_modules/uni-badge/changelog.md +++ /dev/null @@ -1,31 +0,0 @@ -## 1.2.1(2022-09-05) -- 修复 当 text 超过 max-num 时,badge 的宽度计算是根据 text 的长度计算,更改为 css 计算实际展示宽度,详见:[https://ask.dcloud.net.cn/question/150473](https://ask.dcloud.net.cn/question/150473) -## 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-badge](https://uniapp.dcloud.io/component/uniui/uni-badge) -## 1.1.7(2021-11-08) -- 优化 升级ui -- 修改 size 属性默认值调整为 small -- 修改 type 属性,默认值调整为 error,info 替换 default -## 1.1.6(2021-09-22) -- 修复 在字节小程序上样式不生效的 bug -## 1.1.5(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.4(2021-07-29) -- 修复 去掉 nvue 不支持css 的 align-self 属性,nvue 下不暂支持 absolute 属性 -## 1.1.3(2021-06-24) -- 优化 示例项目 -## 1.1.1(2021-05-12) -- 新增 组件示例地址 -## 1.1.0(2021-05-12) -- 新增 uni-badge 的 absolute 属性,支持定位 -- 新增 uni-badge 的 offset 属性,支持定位偏移 -- 新增 uni-badge 的 is-dot 属性,支持仅显示有一个小点 -- 新增 uni-badge 的 max-num 属性,支持自定义封顶的数字值,超过 99 显示99+ -- 优化 uni-badge 属性 custom-style, 支持以对象形式自定义样式 -## 1.0.7(2021-05-07) -- 修复 uni-badge 在 App 端,数字小于10时不是圆形的bug -- 修复 uni-badge 在父元素不是 flex 布局时,宽度缩小的bug -- 新增 uni-badge 属性 custom-style, 支持自定义样式 -## 1.0.6(2021-02-04) -- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue b/uni_modules/uni-badge/components/uni-badge/uni-badge.vue deleted file mode 100644 index 498bb1c09b0abf8f3e5c1cf0dbc7a6a8973c8492..0000000000000000000000000000000000000000 --- a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue +++ /dev/null @@ -1,268 +0,0 @@ - - - - - diff --git a/uni_modules/uni-badge/package.json b/uni_modules/uni-badge/package.json deleted file mode 100644 index 7a34d9c3e1a0c3604f2dea26843e10e77eb616f2..0000000000000000000000000000000000000000 --- a/uni_modules/uni-badge/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "id": "uni-badge", - "displayName": "uni-badge 数字角标", - "version": "1.2.1", - "description": "数字角标(徽章)组件,在元素周围展示消息提醒,一般用于列表、九宫格、按钮等地方。", - "keywords": [ - "", - "badge", - "uni-ui", - "uniui", - "数字角标", - "徽章" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "" - }, - "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-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" - }, - "快应用": { - "华为": "y", - "联盟": "y" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uni-badge/readme.md b/uni_modules/uni-badge/readme.md deleted file mode 100644 index bdf175da9f759cafe6a4bc910c0e8ac0d20fcff7..0000000000000000000000000000000000000000 --- a/uni_modules/uni-badge/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -## Badge 数字角标 -> **组件名:uni-badge** -> 代码块: `uBadge` - -数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景, - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-badge) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - diff --git a/uni_modules/uni-collapse/changelog.md b/uni_modules/uni-collapse/changelog.md deleted file mode 100644 index 292e4c79f34d8291119fc98bedf97c40b12dd015..0000000000000000000000000000000000000000 --- a/uni_modules/uni-collapse/changelog.md +++ /dev/null @@ -1,36 +0,0 @@ -## 1.4.3(2022-01-25) -- 修复 初始化的时候 ,open 属性失效的bug -## 1.4.2(2022-01-21) -- 修复 微信小程序resize后组件收起的bug -## 1.4.1(2021-11-22) -- 修复 vue3中个别scss变量无法找到的问题 -## 1.4.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-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse) -## 1.3.3(2021-08-17) -- 优化 show-arrow 属性默认为true -## 1.3.2(2021-08-17) -- 新增 show-arrow 属性,控制是否显示右侧箭头 -## 1.3.1(2021-07-30) -- 优化 vue3下小程序事件警告的问题 -## 1.3.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.2.2(2021-07-21) -- 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug -## 1.2.1(2021-07-21) -- 优化 组件示例 -## 1.2.0(2021-07-21) -- 新增 组件折叠动画 -- 新增 value\v-model 属性 ,动态修改面板折叠状态 -- 新增 title 插槽 ,可定义面板标题 -- 新增 border 属性 ,显示隐藏面板内容分隔线 -- 新增 title-border 属性 ,显示隐藏面板标题分隔线 -- 修复 resize 方法失效的Bug -- 修复 change 事件返回参数不正确的Bug -- 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法 -## 1.1.7(2021-05-12) -- 新增 组件示例地址 -## 1.1.6(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.1.5(2021-02-05) -- 调整为uni_modules目录规范 \ No newline at end of file diff --git a/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue b/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue deleted file mode 100644 index d62a6a713728812444b55b6947b7da31f301f916..0000000000000000000000000000000000000000 --- a/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue +++ /dev/null @@ -1,402 +0,0 @@ - - - - - diff --git a/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue b/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue deleted file mode 100644 index 384c39a9c971cf074751a9fa2d60507b480ac04f..0000000000000000000000000000000000000000 --- a/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - diff --git a/uni_modules/uni-collapse/package.json b/uni_modules/uni-collapse/package.json deleted file mode 100644 index 65349cf9f7056e882abba6128c0dfc66fc244a91..0000000000000000000000000000000000000000 --- a/uni_modules/uni-collapse/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uni-collapse", - "displayName": "uni-collapse 折叠面板", - "version": "1.4.3", - "description": "Collapse 组件,可以折叠 / 展开的内容区域。", - "keywords": [ - "uni-ui", - "折叠", - "折叠面板", - "手风琴" -], - "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", - "uni-icons" - ], - "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" - } - } - } - } -} diff --git a/uni_modules/uni-collapse/readme.md b/uni_modules/uni-collapse/readme.md deleted file mode 100644 index bc758ebc4f3eee187ee494de5745fe33b69bd3e0..0000000000000000000000000000000000000000 --- a/uni_modules/uni-collapse/readme.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Collapse 折叠面板 -> **组件名:uni-collapse** -> 代码块: `uCollapse` -> 关联组件:`uni-collapse-item`、`uni-icons`。 - - -折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-collapse) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-icons/changelog.md b/uni_modules/uni-icons/changelog.md deleted file mode 100644 index 64498853cdd91577d9cb5646bf50b307a83d58fe..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/changelog.md +++ /dev/null @@ -1,22 +0,0 @@ -## 1.3.5(2022-01-24) -- 优化 size 属性可以传入不带单位的字符串数值 -## 1.3.4(2022-01-24) -- 优化 size 支持其他单位 -## 1.3.3(2022-01-17) -- 修复 nvue 有些图标不显示的bug,兼容老版本图标 -## 1.3.2(2021-12-01) -- 优化 示例可复制图标名称 -## 1.3.1(2021-11-23) -- 优化 兼容旧组件 type 值 -## 1.3.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-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) -## 1.1.7(2021-11-08) -## 1.2.0(2021-07-30) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.1.5(2021-05-12) -- 新增 组件示例地址 -## 1.1.4(2021-02-05) -- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-icons/components/uni-icons/icons.js b/uni_modules/uni-icons/components/uni-icons/icons.js deleted file mode 100644 index 78899364ed8043d4ac7051a5b6c3821bfd1e802a..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/components/uni-icons/icons.js +++ /dev/null @@ -1,1169 +0,0 @@ -export default { - "id": "2852637", - "name": "uniui图标库", - "font_family": "uniicons", - "css_prefix_text": "uniui-", - "description": "", - "glyphs": [ - { - "icon_id": "25027049", - "name": "yanse", - "font_class": "color", - "unicode": "e6cf", - "unicode_decimal": 59087 - }, - { - "icon_id": "25027048", - "name": "wallet", - "font_class": "wallet", - "unicode": "e6b1", - "unicode_decimal": 59057 - }, - { - "icon_id": "25015720", - "name": "settings-filled", - "font_class": "settings-filled", - "unicode": "e6ce", - "unicode_decimal": 59086 - }, - { - "icon_id": "25015434", - "name": "shimingrenzheng-filled", - "font_class": "auth-filled", - "unicode": "e6cc", - "unicode_decimal": 59084 - }, - { - "icon_id": "24934246", - "name": "shop-filled", - "font_class": "shop-filled", - "unicode": "e6cd", - "unicode_decimal": 59085 - }, - { - "icon_id": "24934159", - "name": "staff-filled-01", - "font_class": "staff-filled", - "unicode": "e6cb", - "unicode_decimal": 59083 - }, - { - "icon_id": "24932461", - "name": "VIP-filled", - "font_class": "vip-filled", - "unicode": "e6c6", - "unicode_decimal": 59078 - }, - { - "icon_id": "24932462", - "name": "plus_circle_fill", - "font_class": "plus-filled", - "unicode": "e6c7", - "unicode_decimal": 59079 - }, - { - "icon_id": "24932463", - "name": "folder_add-filled", - "font_class": "folder-add-filled", - "unicode": "e6c8", - "unicode_decimal": 59080 - }, - { - "icon_id": "24932464", - "name": "yanse-filled", - "font_class": "color-filled", - "unicode": "e6c9", - "unicode_decimal": 59081 - }, - { - "icon_id": "24932465", - "name": "tune-filled", - "font_class": "tune-filled", - "unicode": "e6ca", - "unicode_decimal": 59082 - }, - { - "icon_id": "24932455", - "name": "a-rilidaka-filled", - "font_class": "calendar-filled", - "unicode": "e6c0", - "unicode_decimal": 59072 - }, - { - "icon_id": "24932456", - "name": "notification-filled", - "font_class": "notification-filled", - "unicode": "e6c1", - "unicode_decimal": 59073 - }, - { - "icon_id": "24932457", - "name": "wallet-filled", - "font_class": "wallet-filled", - "unicode": "e6c2", - "unicode_decimal": 59074 - }, - { - "icon_id": "24932458", - "name": "paihangbang-filled", - "font_class": "medal-filled", - "unicode": "e6c3", - "unicode_decimal": 59075 - }, - { - "icon_id": "24932459", - "name": "gift-filled", - "font_class": "gift-filled", - "unicode": "e6c4", - "unicode_decimal": 59076 - }, - { - "icon_id": "24932460", - "name": "fire-filled", - "font_class": "fire-filled", - "unicode": "e6c5", - "unicode_decimal": 59077 - }, - { - "icon_id": "24928001", - "name": "refreshempty", - "font_class": "refreshempty", - "unicode": "e6bf", - "unicode_decimal": 59071 - }, - { - "icon_id": "24926853", - "name": "location-ellipse", - "font_class": "location-filled", - "unicode": "e6af", - "unicode_decimal": 59055 - }, - { - "icon_id": "24926735", - "name": "person-filled", - "font_class": "person-filled", - "unicode": "e69d", - "unicode_decimal": 59037 - }, - { - "icon_id": "24926703", - "name": "personadd-filled", - "font_class": "personadd-filled", - "unicode": "e698", - "unicode_decimal": 59032 - }, - { - "icon_id": "24923351", - "name": "back", - "font_class": "back", - "unicode": "e6b9", - "unicode_decimal": 59065 - }, - { - "icon_id": "24923352", - "name": "forward", - "font_class": "forward", - "unicode": "e6ba", - "unicode_decimal": 59066 - }, - { - "icon_id": "24923353", - "name": "arrowthinright", - "font_class": "arrow-right", - "unicode": "e6bb", - "unicode_decimal": 59067 - }, - { - "icon_id": "24923353", - "name": "arrowthinright", - "font_class": "arrowthinright", - "unicode": "e6bb", - "unicode_decimal": 59067 - }, - { - "icon_id": "24923354", - "name": "arrowthinleft", - "font_class": "arrow-left", - "unicode": "e6bc", - "unicode_decimal": 59068 - }, - { - "icon_id": "24923354", - "name": "arrowthinleft", - "font_class": "arrowthinleft", - "unicode": "e6bc", - "unicode_decimal": 59068 - }, - { - "icon_id": "24923355", - "name": "arrowthinup", - "font_class": "arrow-up", - "unicode": "e6bd", - "unicode_decimal": 59069 - }, - { - "icon_id": "24923355", - "name": "arrowthinup", - "font_class": "arrowthinup", - "unicode": "e6bd", - "unicode_decimal": 59069 - }, - { - "icon_id": "24923356", - "name": "arrowthindown", - "font_class": "arrow-down", - "unicode": "e6be", - "unicode_decimal": 59070 - },{ - "icon_id": "24923356", - "name": "arrowthindown", - "font_class": "arrowthindown", - "unicode": "e6be", - "unicode_decimal": 59070 - }, - { - "icon_id": "24923349", - "name": "arrowdown", - "font_class": "bottom", - "unicode": "e6b8", - "unicode_decimal": 59064 - },{ - "icon_id": "24923349", - "name": "arrowdown", - "font_class": "arrowdown", - "unicode": "e6b8", - "unicode_decimal": 59064 - }, - { - "icon_id": "24923346", - "name": "arrowright", - "font_class": "right", - "unicode": "e6b5", - "unicode_decimal": 59061 - }, - { - "icon_id": "24923346", - "name": "arrowright", - "font_class": "arrowright", - "unicode": "e6b5", - "unicode_decimal": 59061 - }, - { - "icon_id": "24923347", - "name": "arrowup", - "font_class": "top", - "unicode": "e6b6", - "unicode_decimal": 59062 - }, - { - "icon_id": "24923347", - "name": "arrowup", - "font_class": "arrowup", - "unicode": "e6b6", - "unicode_decimal": 59062 - }, - { - "icon_id": "24923348", - "name": "arrowleft", - "font_class": "left", - "unicode": "e6b7", - "unicode_decimal": 59063 - }, - { - "icon_id": "24923348", - "name": "arrowleft", - "font_class": "arrowleft", - "unicode": "e6b7", - "unicode_decimal": 59063 - }, - { - "icon_id": "24923334", - "name": "eye", - "font_class": "eye", - "unicode": "e651", - "unicode_decimal": 58961 - }, - { - "icon_id": "24923335", - "name": "eye-filled", - "font_class": "eye-filled", - "unicode": "e66a", - "unicode_decimal": 58986 - }, - { - "icon_id": "24923336", - "name": "eye-slash", - "font_class": "eye-slash", - "unicode": "e6b3", - "unicode_decimal": 59059 - }, - { - "icon_id": "24923337", - "name": "eye-slash-filled", - "font_class": "eye-slash-filled", - "unicode": "e6b4", - "unicode_decimal": 59060 - }, - { - "icon_id": "24923305", - "name": "info-filled", - "font_class": "info-filled", - "unicode": "e649", - "unicode_decimal": 58953 - }, - { - "icon_id": "24923299", - "name": "reload-01", - "font_class": "reload", - "unicode": "e6b2", - "unicode_decimal": 59058 - }, - { - "icon_id": "24923195", - "name": "mic_slash_fill", - "font_class": "micoff-filled", - "unicode": "e6b0", - "unicode_decimal": 59056 - }, - { - "icon_id": "24923165", - "name": "map-pin-ellipse", - "font_class": "map-pin-ellipse", - "unicode": "e6ac", - "unicode_decimal": 59052 - }, - { - "icon_id": "24923166", - "name": "map-pin", - "font_class": "map-pin", - "unicode": "e6ad", - "unicode_decimal": 59053 - }, - { - "icon_id": "24923167", - "name": "location", - "font_class": "location", - "unicode": "e6ae", - "unicode_decimal": 59054 - }, - { - "icon_id": "24923064", - "name": "starhalf", - "font_class": "starhalf", - "unicode": "e683", - "unicode_decimal": 59011 - }, - { - "icon_id": "24923065", - "name": "star", - "font_class": "star", - "unicode": "e688", - "unicode_decimal": 59016 - }, - { - "icon_id": "24923066", - "name": "star-filled", - "font_class": "star-filled", - "unicode": "e68f", - "unicode_decimal": 59023 - }, - { - "icon_id": "24899646", - "name": "a-rilidaka", - "font_class": "calendar", - "unicode": "e6a0", - "unicode_decimal": 59040 - }, - { - "icon_id": "24899647", - "name": "fire", - "font_class": "fire", - "unicode": "e6a1", - "unicode_decimal": 59041 - }, - { - "icon_id": "24899648", - "name": "paihangbang", - "font_class": "medal", - "unicode": "e6a2", - "unicode_decimal": 59042 - }, - { - "icon_id": "24899649", - "name": "font", - "font_class": "font", - "unicode": "e6a3", - "unicode_decimal": 59043 - }, - { - "icon_id": "24899650", - "name": "gift", - "font_class": "gift", - "unicode": "e6a4", - "unicode_decimal": 59044 - }, - { - "icon_id": "24899651", - "name": "link", - "font_class": "link", - "unicode": "e6a5", - "unicode_decimal": 59045 - }, - { - "icon_id": "24899652", - "name": "notification", - "font_class": "notification", - "unicode": "e6a6", - "unicode_decimal": 59046 - }, - { - "icon_id": "24899653", - "name": "staff", - "font_class": "staff", - "unicode": "e6a7", - "unicode_decimal": 59047 - }, - { - "icon_id": "24899654", - "name": "VIP", - "font_class": "vip", - "unicode": "e6a8", - "unicode_decimal": 59048 - }, - { - "icon_id": "24899655", - "name": "folder_add", - "font_class": "folder-add", - "unicode": "e6a9", - "unicode_decimal": 59049 - }, - { - "icon_id": "24899656", - "name": "tune", - "font_class": "tune", - "unicode": "e6aa", - "unicode_decimal": 59050 - }, - { - "icon_id": "24899657", - "name": "shimingrenzheng", - "font_class": "auth", - "unicode": "e6ab", - "unicode_decimal": 59051 - }, - { - "icon_id": "24899565", - "name": "person", - "font_class": "person", - "unicode": "e699", - "unicode_decimal": 59033 - }, - { - "icon_id": "24899566", - "name": "email-filled", - "font_class": "email-filled", - "unicode": "e69a", - "unicode_decimal": 59034 - }, - { - "icon_id": "24899567", - "name": "phone-filled", - "font_class": "phone-filled", - "unicode": "e69b", - "unicode_decimal": 59035 - }, - { - "icon_id": "24899568", - "name": "phone", - "font_class": "phone", - "unicode": "e69c", - "unicode_decimal": 59036 - }, - { - "icon_id": "24899570", - "name": "email", - "font_class": "email", - "unicode": "e69e", - "unicode_decimal": 59038 - }, - { - "icon_id": "24899571", - "name": "personadd", - "font_class": "personadd", - "unicode": "e69f", - "unicode_decimal": 59039 - }, - { - "icon_id": "24899558", - "name": "chatboxes-filled", - "font_class": "chatboxes-filled", - "unicode": "e692", - "unicode_decimal": 59026 - }, - { - "icon_id": "24899559", - "name": "contact", - "font_class": "contact", - "unicode": "e693", - "unicode_decimal": 59027 - }, - { - "icon_id": "24899560", - "name": "chatbubble-filled", - "font_class": "chatbubble-filled", - "unicode": "e694", - "unicode_decimal": 59028 - }, - { - "icon_id": "24899561", - "name": "contact-filled", - "font_class": "contact-filled", - "unicode": "e695", - "unicode_decimal": 59029 - }, - { - "icon_id": "24899562", - "name": "chatboxes", - "font_class": "chatboxes", - "unicode": "e696", - "unicode_decimal": 59030 - }, - { - "icon_id": "24899563", - "name": "chatbubble", - "font_class": "chatbubble", - "unicode": "e697", - "unicode_decimal": 59031 - }, - { - "icon_id": "24881290", - "name": "upload-filled", - "font_class": "upload-filled", - "unicode": "e68e", - "unicode_decimal": 59022 - }, - { - "icon_id": "24881292", - "name": "upload", - "font_class": "upload", - "unicode": "e690", - "unicode_decimal": 59024 - }, - { - "icon_id": "24881293", - "name": "weixin", - "font_class": "weixin", - "unicode": "e691", - "unicode_decimal": 59025 - }, - { - "icon_id": "24881274", - "name": "compose", - "font_class": "compose", - "unicode": "e67f", - "unicode_decimal": 59007 - }, - { - "icon_id": "24881275", - "name": "qq", - "font_class": "qq", - "unicode": "e680", - "unicode_decimal": 59008 - }, - { - "icon_id": "24881276", - "name": "download-filled", - "font_class": "download-filled", - "unicode": "e681", - "unicode_decimal": 59009 - }, - { - "icon_id": "24881277", - "name": "pengyouquan", - "font_class": "pyq", - "unicode": "e682", - "unicode_decimal": 59010 - }, - { - "icon_id": "24881279", - "name": "sound", - "font_class": "sound", - "unicode": "e684", - "unicode_decimal": 59012 - }, - { - "icon_id": "24881280", - "name": "trash-filled", - "font_class": "trash-filled", - "unicode": "e685", - "unicode_decimal": 59013 - }, - { - "icon_id": "24881281", - "name": "sound-filled", - "font_class": "sound-filled", - "unicode": "e686", - "unicode_decimal": 59014 - }, - { - "icon_id": "24881282", - "name": "trash", - "font_class": "trash", - "unicode": "e687", - "unicode_decimal": 59015 - }, - { - "icon_id": "24881284", - "name": "videocam-filled", - "font_class": "videocam-filled", - "unicode": "e689", - "unicode_decimal": 59017 - }, - { - "icon_id": "24881285", - "name": "spinner-cycle", - "font_class": "spinner-cycle", - "unicode": "e68a", - "unicode_decimal": 59018 - }, - { - "icon_id": "24881286", - "name": "weibo", - "font_class": "weibo", - "unicode": "e68b", - "unicode_decimal": 59019 - }, - { - "icon_id": "24881288", - "name": "videocam", - "font_class": "videocam", - "unicode": "e68c", - "unicode_decimal": 59020 - }, - { - "icon_id": "24881289", - "name": "download", - "font_class": "download", - "unicode": "e68d", - "unicode_decimal": 59021 - }, - { - "icon_id": "24879601", - "name": "help", - "font_class": "help", - "unicode": "e679", - "unicode_decimal": 59001 - }, - { - "icon_id": "24879602", - "name": "navigate-filled", - "font_class": "navigate-filled", - "unicode": "e67a", - "unicode_decimal": 59002 - }, - { - "icon_id": "24879603", - "name": "plusempty", - "font_class": "plusempty", - "unicode": "e67b", - "unicode_decimal": 59003 - }, - { - "icon_id": "24879604", - "name": "smallcircle", - "font_class": "smallcircle", - "unicode": "e67c", - "unicode_decimal": 59004 - }, - { - "icon_id": "24879605", - "name": "minus-filled", - "font_class": "minus-filled", - "unicode": "e67d", - "unicode_decimal": 59005 - }, - { - "icon_id": "24879606", - "name": "micoff", - "font_class": "micoff", - "unicode": "e67e", - "unicode_decimal": 59006 - }, - { - "icon_id": "24879588", - "name": "closeempty", - "font_class": "closeempty", - "unicode": "e66c", - "unicode_decimal": 58988 - }, - { - "icon_id": "24879589", - "name": "clear", - "font_class": "clear", - "unicode": "e66d", - "unicode_decimal": 58989 - }, - { - "icon_id": "24879590", - "name": "navigate", - "font_class": "navigate", - "unicode": "e66e", - "unicode_decimal": 58990 - }, - { - "icon_id": "24879591", - "name": "minus", - "font_class": "minus", - "unicode": "e66f", - "unicode_decimal": 58991 - }, - { - "icon_id": "24879592", - "name": "image", - "font_class": "image", - "unicode": "e670", - "unicode_decimal": 58992 - }, - { - "icon_id": "24879593", - "name": "mic", - "font_class": "mic", - "unicode": "e671", - "unicode_decimal": 58993 - }, - { - "icon_id": "24879594", - "name": "paperplane", - "font_class": "paperplane", - "unicode": "e672", - "unicode_decimal": 58994 - }, - { - "icon_id": "24879595", - "name": "close", - "font_class": "close", - "unicode": "e673", - "unicode_decimal": 58995 - }, - { - "icon_id": "24879596", - "name": "help-filled", - "font_class": "help-filled", - "unicode": "e674", - "unicode_decimal": 58996 - }, - { - "icon_id": "24879597", - "name": "plus-filled", - "font_class": "paperplane-filled", - "unicode": "e675", - "unicode_decimal": 58997 - }, - { - "icon_id": "24879598", - "name": "plus", - "font_class": "plus", - "unicode": "e676", - "unicode_decimal": 58998 - }, - { - "icon_id": "24879599", - "name": "mic-filled", - "font_class": "mic-filled", - "unicode": "e677", - "unicode_decimal": 58999 - }, - { - "icon_id": "24879600", - "name": "image-filled", - "font_class": "image-filled", - "unicode": "e678", - "unicode_decimal": 59000 - }, - { - "icon_id": "24855900", - "name": "locked-filled", - "font_class": "locked-filled", - "unicode": "e668", - "unicode_decimal": 58984 - }, - { - "icon_id": "24855901", - "name": "info", - "font_class": "info", - "unicode": "e669", - "unicode_decimal": 58985 - }, - { - "icon_id": "24855903", - "name": "locked", - "font_class": "locked", - "unicode": "e66b", - "unicode_decimal": 58987 - }, - { - "icon_id": "24855884", - "name": "camera-filled", - "font_class": "camera-filled", - "unicode": "e658", - "unicode_decimal": 58968 - }, - { - "icon_id": "24855885", - "name": "chat-filled", - "font_class": "chat-filled", - "unicode": "e659", - "unicode_decimal": 58969 - }, - { - "icon_id": "24855886", - "name": "camera", - "font_class": "camera", - "unicode": "e65a", - "unicode_decimal": 58970 - }, - { - "icon_id": "24855887", - "name": "circle", - "font_class": "circle", - "unicode": "e65b", - "unicode_decimal": 58971 - }, - { - "icon_id": "24855888", - "name": "checkmarkempty", - "font_class": "checkmarkempty", - "unicode": "e65c", - "unicode_decimal": 58972 - }, - { - "icon_id": "24855889", - "name": "chat", - "font_class": "chat", - "unicode": "e65d", - "unicode_decimal": 58973 - }, - { - "icon_id": "24855890", - "name": "circle-filled", - "font_class": "circle-filled", - "unicode": "e65e", - "unicode_decimal": 58974 - }, - { - "icon_id": "24855891", - "name": "flag", - "font_class": "flag", - "unicode": "e65f", - "unicode_decimal": 58975 - }, - { - "icon_id": "24855892", - "name": "flag-filled", - "font_class": "flag-filled", - "unicode": "e660", - "unicode_decimal": 58976 - }, - { - "icon_id": "24855893", - "name": "gear-filled", - "font_class": "gear-filled", - "unicode": "e661", - "unicode_decimal": 58977 - }, - { - "icon_id": "24855894", - "name": "home", - "font_class": "home", - "unicode": "e662", - "unicode_decimal": 58978 - }, - { - "icon_id": "24855895", - "name": "home-filled", - "font_class": "home-filled", - "unicode": "e663", - "unicode_decimal": 58979 - }, - { - "icon_id": "24855896", - "name": "gear", - "font_class": "gear", - "unicode": "e664", - "unicode_decimal": 58980 - }, - { - "icon_id": "24855897", - "name": "smallcircle-filled", - "font_class": "smallcircle-filled", - "unicode": "e665", - "unicode_decimal": 58981 - }, - { - "icon_id": "24855898", - "name": "map-filled", - "font_class": "map-filled", - "unicode": "e666", - "unicode_decimal": 58982 - }, - { - "icon_id": "24855899", - "name": "map", - "font_class": "map", - "unicode": "e667", - "unicode_decimal": 58983 - }, - { - "icon_id": "24855825", - "name": "refresh-filled", - "font_class": "refresh-filled", - "unicode": "e656", - "unicode_decimal": 58966 - }, - { - "icon_id": "24855826", - "name": "refresh", - "font_class": "refresh", - "unicode": "e657", - "unicode_decimal": 58967 - }, - { - "icon_id": "24855808", - "name": "cloud-upload", - "font_class": "cloud-upload", - "unicode": "e645", - "unicode_decimal": 58949 - }, - { - "icon_id": "24855809", - "name": "cloud-download-filled", - "font_class": "cloud-download-filled", - "unicode": "e646", - "unicode_decimal": 58950 - }, - { - "icon_id": "24855810", - "name": "cloud-download", - "font_class": "cloud-download", - "unicode": "e647", - "unicode_decimal": 58951 - }, - { - "icon_id": "24855811", - "name": "cloud-upload-filled", - "font_class": "cloud-upload-filled", - "unicode": "e648", - "unicode_decimal": 58952 - }, - { - "icon_id": "24855813", - "name": "redo", - "font_class": "redo", - "unicode": "e64a", - "unicode_decimal": 58954 - }, - { - "icon_id": "24855814", - "name": "images-filled", - "font_class": "images-filled", - "unicode": "e64b", - "unicode_decimal": 58955 - }, - { - "icon_id": "24855815", - "name": "undo-filled", - "font_class": "undo-filled", - "unicode": "e64c", - "unicode_decimal": 58956 - }, - { - "icon_id": "24855816", - "name": "more", - "font_class": "more", - "unicode": "e64d", - "unicode_decimal": 58957 - }, - { - "icon_id": "24855817", - "name": "more-filled", - "font_class": "more-filled", - "unicode": "e64e", - "unicode_decimal": 58958 - }, - { - "icon_id": "24855818", - "name": "undo", - "font_class": "undo", - "unicode": "e64f", - "unicode_decimal": 58959 - }, - { - "icon_id": "24855819", - "name": "images", - "font_class": "images", - "unicode": "e650", - "unicode_decimal": 58960 - }, - { - "icon_id": "24855821", - "name": "paperclip", - "font_class": "paperclip", - "unicode": "e652", - "unicode_decimal": 58962 - }, - { - "icon_id": "24855822", - "name": "settings", - "font_class": "settings", - "unicode": "e653", - "unicode_decimal": 58963 - }, - { - "icon_id": "24855823", - "name": "search", - "font_class": "search", - "unicode": "e654", - "unicode_decimal": 58964 - }, - { - "icon_id": "24855824", - "name": "redo-filled", - "font_class": "redo-filled", - "unicode": "e655", - "unicode_decimal": 58965 - }, - { - "icon_id": "24841702", - "name": "list", - "font_class": "list", - "unicode": "e644", - "unicode_decimal": 58948 - }, - { - "icon_id": "24841489", - "name": "mail-open-filled", - "font_class": "mail-open-filled", - "unicode": "e63a", - "unicode_decimal": 58938 - }, - { - "icon_id": "24841491", - "name": "hand-thumbsdown-filled", - "font_class": "hand-down-filled", - "unicode": "e63c", - "unicode_decimal": 58940 - }, - { - "icon_id": "24841492", - "name": "hand-thumbsdown", - "font_class": "hand-down", - "unicode": "e63d", - "unicode_decimal": 58941 - }, - { - "icon_id": "24841493", - "name": "hand-thumbsup-filled", - "font_class": "hand-up-filled", - "unicode": "e63e", - "unicode_decimal": 58942 - }, - { - "icon_id": "24841494", - "name": "hand-thumbsup", - "font_class": "hand-up", - "unicode": "e63f", - "unicode_decimal": 58943 - }, - { - "icon_id": "24841496", - "name": "heart-filled", - "font_class": "heart-filled", - "unicode": "e641", - "unicode_decimal": 58945 - }, - { - "icon_id": "24841498", - "name": "mail-open", - "font_class": "mail-open", - "unicode": "e643", - "unicode_decimal": 58947 - }, - { - "icon_id": "24841488", - "name": "heart", - "font_class": "heart", - "unicode": "e639", - "unicode_decimal": 58937 - }, - { - "icon_id": "24839963", - "name": "loop", - "font_class": "loop", - "unicode": "e633", - "unicode_decimal": 58931 - }, - { - "icon_id": "24839866", - "name": "pulldown", - "font_class": "pulldown", - "unicode": "e632", - "unicode_decimal": 58930 - }, - { - "icon_id": "24813798", - "name": "scan", - "font_class": "scan", - "unicode": "e62a", - "unicode_decimal": 58922 - }, - { - "icon_id": "24813786", - "name": "bars", - "font_class": "bars", - "unicode": "e627", - "unicode_decimal": 58919 - }, - { - "icon_id": "24813788", - "name": "cart-filled", - "font_class": "cart-filled", - "unicode": "e629", - "unicode_decimal": 58921 - }, - { - "icon_id": "24813790", - "name": "checkbox", - "font_class": "checkbox", - "unicode": "e62b", - "unicode_decimal": 58923 - }, - { - "icon_id": "24813791", - "name": "checkbox-filled", - "font_class": "checkbox-filled", - "unicode": "e62c", - "unicode_decimal": 58924 - }, - { - "icon_id": "24813794", - "name": "shop", - "font_class": "shop", - "unicode": "e62f", - "unicode_decimal": 58927 - }, - { - "icon_id": "24813795", - "name": "headphones", - "font_class": "headphones", - "unicode": "e630", - "unicode_decimal": 58928 - }, - { - "icon_id": "24813796", - "name": "cart", - "font_class": "cart", - "unicode": "e631", - "unicode_decimal": 58929 - } - ] -} diff --git a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue deleted file mode 100644 index 86e744452dab89ce322e1815cd71db6580f8dab3..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.css b/uni_modules/uni-icons/components/uni-icons/uniicons.css deleted file mode 100644 index 2f56eabde99bc0e9e6407f04d334cce06c059c78..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/components/uni-icons/uniicons.css +++ /dev/null @@ -1,663 +0,0 @@ -.uniui-color:before { - content: "\e6cf"; -} - -.uniui-wallet:before { - content: "\e6b1"; -} - -.uniui-settings-filled:before { - content: "\e6ce"; -} - -.uniui-auth-filled:before { - content: "\e6cc"; -} - -.uniui-shop-filled:before { - content: "\e6cd"; -} - -.uniui-staff-filled:before { - content: "\e6cb"; -} - -.uniui-vip-filled:before { - content: "\e6c6"; -} - -.uniui-plus-filled:before { - content: "\e6c7"; -} - -.uniui-folder-add-filled:before { - content: "\e6c8"; -} - -.uniui-color-filled:before { - content: "\e6c9"; -} - -.uniui-tune-filled:before { - content: "\e6ca"; -} - -.uniui-calendar-filled:before { - content: "\e6c0"; -} - -.uniui-notification-filled:before { - content: "\e6c1"; -} - -.uniui-wallet-filled:before { - content: "\e6c2"; -} - -.uniui-medal-filled:before { - content: "\e6c3"; -} - -.uniui-gift-filled:before { - content: "\e6c4"; -} - -.uniui-fire-filled:before { - content: "\e6c5"; -} - -.uniui-refreshempty:before { - content: "\e6bf"; -} - -.uniui-location-filled:before { - content: "\e6af"; -} - -.uniui-person-filled:before { - content: "\e69d"; -} - -.uniui-personadd-filled:before { - content: "\e698"; -} - -.uniui-back:before { - content: "\e6b9"; -} - -.uniui-forward:before { - content: "\e6ba"; -} - -.uniui-arrow-right:before { - content: "\e6bb"; -} - -.uniui-arrowthinright:before { - content: "\e6bb"; -} - -.uniui-arrow-left:before { - content: "\e6bc"; -} - -.uniui-arrowthinleft:before { - content: "\e6bc"; -} - -.uniui-arrow-up:before { - content: "\e6bd"; -} - -.uniui-arrowthinup:before { - content: "\e6bd"; -} - -.uniui-arrow-down:before { - content: "\e6be"; -} - -.uniui-arrowthindown:before { - content: "\e6be"; -} - -.uniui-bottom:before { - content: "\e6b8"; -} - -.uniui-arrowdown:before { - content: "\e6b8"; -} - -.uniui-right:before { - content: "\e6b5"; -} - -.uniui-arrowright:before { - content: "\e6b5"; -} - -.uniui-top:before { - content: "\e6b6"; -} - -.uniui-arrowup:before { - content: "\e6b6"; -} - -.uniui-left:before { - content: "\e6b7"; -} - -.uniui-arrowleft:before { - content: "\e6b7"; -} - -.uniui-eye:before { - content: "\e651"; -} - -.uniui-eye-filled:before { - content: "\e66a"; -} - -.uniui-eye-slash:before { - content: "\e6b3"; -} - -.uniui-eye-slash-filled:before { - content: "\e6b4"; -} - -.uniui-info-filled:before { - content: "\e649"; -} - -.uniui-reload:before { - content: "\e6b2"; -} - -.uniui-micoff-filled:before { - content: "\e6b0"; -} - -.uniui-map-pin-ellipse:before { - content: "\e6ac"; -} - -.uniui-map-pin:before { - content: "\e6ad"; -} - -.uniui-location:before { - content: "\e6ae"; -} - -.uniui-starhalf:before { - content: "\e683"; -} - -.uniui-star:before { - content: "\e688"; -} - -.uniui-star-filled:before { - content: "\e68f"; -} - -.uniui-calendar:before { - content: "\e6a0"; -} - -.uniui-fire:before { - content: "\e6a1"; -} - -.uniui-medal:before { - content: "\e6a2"; -} - -.uniui-font:before { - content: "\e6a3"; -} - -.uniui-gift:before { - content: "\e6a4"; -} - -.uniui-link:before { - content: "\e6a5"; -} - -.uniui-notification:before { - content: "\e6a6"; -} - -.uniui-staff:before { - content: "\e6a7"; -} - -.uniui-vip:before { - content: "\e6a8"; -} - -.uniui-folder-add:before { - content: "\e6a9"; -} - -.uniui-tune:before { - content: "\e6aa"; -} - -.uniui-auth:before { - content: "\e6ab"; -} - -.uniui-person:before { - content: "\e699"; -} - -.uniui-email-filled:before { - content: "\e69a"; -} - -.uniui-phone-filled:before { - content: "\e69b"; -} - -.uniui-phone:before { - content: "\e69c"; -} - -.uniui-email:before { - content: "\e69e"; -} - -.uniui-personadd:before { - content: "\e69f"; -} - -.uniui-chatboxes-filled:before { - content: "\e692"; -} - -.uniui-contact:before { - content: "\e693"; -} - -.uniui-chatbubble-filled:before { - content: "\e694"; -} - -.uniui-contact-filled:before { - content: "\e695"; -} - -.uniui-chatboxes:before { - content: "\e696"; -} - -.uniui-chatbubble:before { - content: "\e697"; -} - -.uniui-upload-filled:before { - content: "\e68e"; -} - -.uniui-upload:before { - content: "\e690"; -} - -.uniui-weixin:before { - content: "\e691"; -} - -.uniui-compose:before { - content: "\e67f"; -} - -.uniui-qq:before { - content: "\e680"; -} - -.uniui-download-filled:before { - content: "\e681"; -} - -.uniui-pyq:before { - content: "\e682"; -} - -.uniui-sound:before { - content: "\e684"; -} - -.uniui-trash-filled:before { - content: "\e685"; -} - -.uniui-sound-filled:before { - content: "\e686"; -} - -.uniui-trash:before { - content: "\e687"; -} - -.uniui-videocam-filled:before { - content: "\e689"; -} - -.uniui-spinner-cycle:before { - content: "\e68a"; -} - -.uniui-weibo:before { - content: "\e68b"; -} - -.uniui-videocam:before { - content: "\e68c"; -} - -.uniui-download:before { - content: "\e68d"; -} - -.uniui-help:before { - content: "\e679"; -} - -.uniui-navigate-filled:before { - content: "\e67a"; -} - -.uniui-plusempty:before { - content: "\e67b"; -} - -.uniui-smallcircle:before { - content: "\e67c"; -} - -.uniui-minus-filled:before { - content: "\e67d"; -} - -.uniui-micoff:before { - content: "\e67e"; -} - -.uniui-closeempty:before { - content: "\e66c"; -} - -.uniui-clear:before { - content: "\e66d"; -} - -.uniui-navigate:before { - content: "\e66e"; -} - -.uniui-minus:before { - content: "\e66f"; -} - -.uniui-image:before { - content: "\e670"; -} - -.uniui-mic:before { - content: "\e671"; -} - -.uniui-paperplane:before { - content: "\e672"; -} - -.uniui-close:before { - content: "\e673"; -} - -.uniui-help-filled:before { - content: "\e674"; -} - -.uniui-paperplane-filled:before { - content: "\e675"; -} - -.uniui-plus:before { - content: "\e676"; -} - -.uniui-mic-filled:before { - content: "\e677"; -} - -.uniui-image-filled:before { - content: "\e678"; -} - -.uniui-locked-filled:before { - content: "\e668"; -} - -.uniui-info:before { - content: "\e669"; -} - -.uniui-locked:before { - content: "\e66b"; -} - -.uniui-camera-filled:before { - content: "\e658"; -} - -.uniui-chat-filled:before { - content: "\e659"; -} - -.uniui-camera:before { - content: "\e65a"; -} - -.uniui-circle:before { - content: "\e65b"; -} - -.uniui-checkmarkempty:before { - content: "\e65c"; -} - -.uniui-chat:before { - content: "\e65d"; -} - -.uniui-circle-filled:before { - content: "\e65e"; -} - -.uniui-flag:before { - content: "\e65f"; -} - -.uniui-flag-filled:before { - content: "\e660"; -} - -.uniui-gear-filled:before { - content: "\e661"; -} - -.uniui-home:before { - content: "\e662"; -} - -.uniui-home-filled:before { - content: "\e663"; -} - -.uniui-gear:before { - content: "\e664"; -} - -.uniui-smallcircle-filled:before { - content: "\e665"; -} - -.uniui-map-filled:before { - content: "\e666"; -} - -.uniui-map:before { - content: "\e667"; -} - -.uniui-refresh-filled:before { - content: "\e656"; -} - -.uniui-refresh:before { - content: "\e657"; -} - -.uniui-cloud-upload:before { - content: "\e645"; -} - -.uniui-cloud-download-filled:before { - content: "\e646"; -} - -.uniui-cloud-download:before { - content: "\e647"; -} - -.uniui-cloud-upload-filled:before { - content: "\e648"; -} - -.uniui-redo:before { - content: "\e64a"; -} - -.uniui-images-filled:before { - content: "\e64b"; -} - -.uniui-undo-filled:before { - content: "\e64c"; -} - -.uniui-more:before { - content: "\e64d"; -} - -.uniui-more-filled:before { - content: "\e64e"; -} - -.uniui-undo:before { - content: "\e64f"; -} - -.uniui-images:before { - content: "\e650"; -} - -.uniui-paperclip:before { - content: "\e652"; -} - -.uniui-settings:before { - content: "\e653"; -} - -.uniui-search:before { - content: "\e654"; -} - -.uniui-redo-filled:before { - content: "\e655"; -} - -.uniui-list:before { - content: "\e644"; -} - -.uniui-mail-open-filled:before { - content: "\e63a"; -} - -.uniui-hand-down-filled:before { - content: "\e63c"; -} - -.uniui-hand-down:before { - content: "\e63d"; -} - -.uniui-hand-up-filled:before { - content: "\e63e"; -} - -.uniui-hand-up:before { - content: "\e63f"; -} - -.uniui-heart-filled:before { - content: "\e641"; -} - -.uniui-mail-open:before { - content: "\e643"; -} - -.uniui-heart:before { - content: "\e639"; -} - -.uniui-loop:before { - content: "\e633"; -} - -.uniui-pulldown:before { - content: "\e632"; -} - -.uniui-scan:before { - content: "\e62a"; -} - -.uniui-bars:before { - content: "\e627"; -} - -.uniui-cart-filled:before { - content: "\e629"; -} - -.uniui-checkbox:before { - content: "\e62b"; -} - -.uniui-checkbox-filled:before { - content: "\e62c"; -} - -.uniui-shop:before { - content: "\e62f"; -} - -.uniui-headphones:before { - content: "\e630"; -} - -.uniui-cart:before { - content: "\e631"; -} diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.ttf b/uni_modules/uni-icons/components/uni-icons/uniicons.ttf deleted file mode 100644 index 835f33bc9411461b8b9046b3fec742e921d6ce3a..0000000000000000000000000000000000000000 Binary files a/uni_modules/uni-icons/components/uni-icons/uniicons.ttf and /dev/null differ diff --git a/uni_modules/uni-icons/package.json b/uni_modules/uni-icons/package.json deleted file mode 100644 index d1c4e77d4fb10536a1938ec1d31db1b54c815df0..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-icons", - "displayName": "uni-icons 图标", - "version": "1.3.5", - "description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。", - "keywords": [ - "uni-ui", - "uniui", - "icon", - "图标" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.2.14" - }, - "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 diff --git a/uni_modules/uni-icons/readme.md b/uni_modules/uni-icons/readme.md deleted file mode 100644 index 86234ba1ce8b8fbfa52c3f08ba6c5847f1934807..0000000000000000000000000000000000000000 --- a/uni_modules/uni-icons/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -## Icons 图标 -> **组件名:uni-icons** -> 代码块: `uIcons` - -用于展示 icons 图标 。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/uni_modules/uni-list/changelog.md b/uni_modules/uni-list/changelog.md deleted file mode 100644 index 6aa6e4e0028e0a51f0b0ca9c29912fa70a8a1315..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/changelog.md +++ /dev/null @@ -1,20 +0,0 @@ -## 1.2.1(2022-03-30) -- 删除无用文件 -## 1.2.0(2021-11-23) -- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) -- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-list](https://uniapp.dcloud.io/component/uniui/uni-list) -## 1.1.3(2021-08-30) -- 修复 在vue3中to属性在发行应用的时候报错的bug -## 1.1.2(2021-07-30) -- 优化 vue3下事件警告的问题 -## 1.1.1(2021-07-21) -- 修复 与其他组件嵌套使用时,点击失效的Bug -## 1.1.0(2021-07-13) -- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) -## 1.0.17(2021-05-12) -- 新增 组件示例地址 -## 1.0.16(2021-02-05) -- 优化 组件引用关系,通过uni_modules引用组件 -## 1.0.15(2021-02-05) -- 调整为uni_modules目录规范 -- 修复 uni-list-chat 角标显示不正常的问题 diff --git a/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue b/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue deleted file mode 100644 index b9349c29a8cbfc07d5b85ad2cfec1fded6f69f34..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - diff --git a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss b/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss deleted file mode 100644 index 311f8d9faf070f43c719519076af6a8b29424383..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 这里是 uni-list 组件内置的常用样式变量 - * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 - * - */ - -// 背景色 -$background-color : #fff; -// 分割线颜色 -$divide-line-color : #e5e5e5; - -// 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 -// nvue 页面不支持修改头像大小 -$avatar-width : 45px ; - -// 头像边框 -$avatar-border-radius: 5px; -$avatar-border-color: #eee; -$avatar-border-width: 1px; - -// 标题文字样式 -$title-size : 16px; -$title-color : #3b4144; -$title-weight : normal; - -// 描述文字样式 -$note-size : 12px; -$note-color : #999; -$note-weight : normal; - -// 右侧额外内容默认样式 -$right-text-size : 12px; -$right-text-color : #999; -$right-text-weight : normal; - -// 角标样式 -// nvue 页面不支持修改圆点位置以及大小 -// 角标在左侧时,角标的位置,默认为 0 ,负数左/下移动,正数右/上移动 -$badge-left: 0px; -$badge-top: 0px; - -// 显示圆点时,圆点大小 -$dot-width: 10px; -$dot-height: 10px; - -// 显示角标时,角标大小和字体大小 -$badge-size : 18px; -$badge-font : 12px; -// 显示角标时,角标前景色 -$badge-color : #fff; -// 显示角标时,角标背景色 -$badge-background-color : #ff5a5f; -// 显示角标时,角标左右间距 -$badge-space : 6px; - -// 状态样式 -// 选中颜色 -$hover : #f5f5f5; diff --git a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue b/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue deleted file mode 100644 index 2b310085979104c163185aa6db5e61f1cc0078be..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue +++ /dev/null @@ -1,538 +0,0 @@ - - - - - diff --git a/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue b/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue deleted file mode 100644 index 2c7d9ea7cec731113cce0f3e76301e6f5e37b181..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue +++ /dev/null @@ -1,454 +0,0 @@ - - - - - diff --git a/uni_modules/uni-list/components/uni-list/uni-list.vue b/uni_modules/uni-list/components/uni-list/uni-list.vue deleted file mode 100644 index ecda6765314810d0fbadc4198dd825530d199915..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list/uni-list.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - diff --git a/uni_modules/uni-list/components/uni-list/uni-refresh.vue b/uni_modules/uni-list/components/uni-list/uni-refresh.vue deleted file mode 100644 index 3b4c5a230061935d31d8332663b8a511b5143759..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list/uni-refresh.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/uni_modules/uni-list/components/uni-list/uni-refresh.wxs b/uni_modules/uni-list/components/uni-list/uni-refresh.wxs deleted file mode 100644 index 818a6b721b1172073d91c1f6a456d2b54d772f77..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/components/uni-list/uni-refresh.wxs +++ /dev/null @@ -1,87 +0,0 @@ -var pullDown = { - threshold: 95, - maxHeight: 200, - callRefresh: 'onrefresh', - callPullingDown: 'onpullingdown', - refreshSelector: '.uni-refresh' -}; - -function ready(newValue, oldValue, ownerInstance, instance) { - var state = instance.getState() - state.canPullDown = newValue; - // console.log(newValue); -} - -function touchStart(e, instance) { - var state = instance.getState(); - state.refreshInstance = instance.selectComponent(pullDown.refreshSelector); - state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined); - if (!state.canPullDown) { - return - } - - // console.log("touchStart"); - - state.height = 0; - state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY; - state.refreshInstance.setStyle({ - 'height': 0 - }); - state.refreshInstance.callMethod("onchange", true); -} - -function touchMove(e, ownerInstance) { - var instance = e.instance; - var state = instance.getState(); - if (!state.canPullDown) { - return - } - - var oldHeight = state.height; - var endY = e.touches[0].pageY || e.changedTouches[0].pageY; - var height = endY - state.touchStartY; - if (height > pullDown.maxHeight) { - return; - } - - var refreshInstance = state.refreshInstance; - refreshInstance.setStyle({ - 'height': height + 'px' - }); - - height = height < pullDown.maxHeight ? height : pullDown.maxHeight; - state.height = height; - refreshInstance.callMethod(pullDown.callPullingDown, { - height: height - }); -} - -function touchEnd(e, ownerInstance) { - var state = e.instance.getState(); - if (!state.canPullDown) { - return - } - - state.refreshInstance.callMethod("onchange", false); - - var refreshInstance = state.refreshInstance; - if (state.height > pullDown.threshold) { - refreshInstance.callMethod(pullDown.callRefresh); - return; - } - - refreshInstance.setStyle({ - 'height': 0 - }); -} - -function propObserver(newValue, oldValue, instance) { - pullDown = newValue; -} - -module.exports = { - touchmove: touchMove, - touchstart: touchStart, - touchend: touchEnd, - propObserver: propObserver -} diff --git a/uni_modules/uni-list/package.json b/uni_modules/uni-list/package.json deleted file mode 100644 index 66e8bef0c687903d3d0ca857ac97450f34a07565..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "id": "uni-list", - "displayName": "uni-list 列表", - "version": "1.2.1", - "description": "List 组件 ,帮助使用者快速构建列表。", - "keywords": [ - "", - "uni-ui", - "uniui", - "列表", - "", - "list" -], - "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-badge", - "uni-icons" - ], - "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 diff --git a/uni_modules/uni-list/readme.md b/uni_modules/uni-list/readme.md deleted file mode 100644 index 32c28654eb9654bfa833a5de6012f44c4fe854db..0000000000000000000000000000000000000000 --- a/uni_modules/uni-list/readme.md +++ /dev/null @@ -1,346 +0,0 @@ -## List 列表 -> **组件名:uni-list** -> 代码块: `uList`、`uListItem` -> 关联组件:`uni-list-item`、`uni-badge`、`uni-icons`、`uni-list-chat`、`uni-list-ad` - - -List 列表组件,包含基本列表样式、可扩展插槽机制、长列表性能优化、多端兼容。 - -在vue页面里,它默认使用页面级滚动。在app-nvue页面里,它默认使用原生list组件滚动。这样的长列表,在滚动出屏幕外后,系统会回收不可见区域的渲染内存资源,不会造成滚动越长手机越卡的问题。 - -uni-list组件是父容器,里面的核心是uni-list-item子组件,它代表列表中的一个可重复行,子组件可以无限循环。 - -uni-list-item有很多风格,uni-list-item组件通过内置的属性,满足一些常用的场景。当内置属性不满足需求时,可以通过扩展插槽来自定义列表内容。 - -内置属性可以覆盖的场景包括:导航列表、设置列表、小图标列表、通信录列表、聊天记录列表。 - -涉及很多大图或丰富内容的列表,比如类今日头条的新闻列表、类淘宝的电商列表,需要通过扩展插槽实现。 - -下文均有样例给出。 - -uni-list不包含下拉刷新和上拉翻页。上拉翻页另见组件:[uni-load-more](https://ext.dcloud.net.cn/plugin?id=29) - - -### 安装方式 - -本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。 - -如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55) - -> **注意事项** -> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。 -> - 组件需要依赖 `sass` 插件 ,请自行手动安装 -> - 组件内部依赖 `'uni-icons'` 、`uni-badge` 组件 -> - `uni-list` 和 `uni-list-item` 需要配套使用,暂不支持单独使用 `uni-list-item` -> - 只有开启点击反馈后,会有点击选中效果 -> - 使用插槽时,可以完全自定义内容 -> - note 、rightText 属性暂时没做限制,不支持文字溢出隐藏,使用时应该控制长度显示或通过默认插槽自行扩展 -> - 支付宝小程序平台需要在支付宝小程序开发者工具里开启 component2 编译模式,开启方式: 详情 --> 项目配置 --> 启用 component2 编译 -> - 如果需要修改 `switch`、`badge` 样式,请使用插槽自定义 -> - 在 `HBuilderX` 低版本中,可能会出现组件显示 `undefined` 的问题,请升级最新的 `HBuilderX` 或者 `cli` -> - 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 - - -### 基本用法 - -- 设置 `title` 属性,可以显示列表标题 -- 设置 `disabled` 属性,可以禁用当前项 - -```html - - - - - -``` - -### 多行内容显示 - -- 设置 `note` 属性 ,可以在第二行显示描述文本信息 - -```html - - - - - -``` - -### 右侧显示角标、switch - -- 设置 `show-badge` 属性 ,可以显示角标内容 -- 设置 `show-switch` 属性,可以显示 switch 开关 - -```html - - - - - -``` - -### 左侧显示略缩图、图标 - -- 设置 `thumb` 属性 ,可以在列表左侧显示略缩图 -- 设置 `show-extra-icon` 属性,并指定 `extra-icon` 可以在左侧显示图标 - -```html - - - - -``` - -### 开启点击反馈和右侧箭头 -- 设置 `clickable` 为 `true` ,则表示这是一个可点击的列表,会默认给一个点击效果,并可以监听 `click` 事件 -- 设置 `link` 属性,会自动开启点击反馈,并给列表右侧添加一个箭头 -- 设置 `to` 属性,可以跳转页面,`link` 的值表示跳转方式,如果不指定,默认为 `navigateTo` - -```html - - - - - - - -``` - - -### 聊天列表示例 -- 设置 `clickable` 为 `true` ,则表示这是一个可点击的列表,会默认给一个点击效果,并可以监听 `click` 事件 -- 设置 `link` 属性,会自动开启点击反馈,`link` 的值表示跳转方式,如果不指定,默认为 `navigateTo` -- 设置 `to` 属性,可以跳转页面 -- `time` 属性,通常会设置成时间显示,但是这个属性不仅仅可以设置时间,你可以传入任何文本,注意文本长度可能会影响显示 -- `avatar` 和 `avatarList` 属性同时只会有一个生效,同时设置的话,`avatarList` 属性的长度大于1 ,`avatar` 属性将失效 -- 可以通过默认插槽自定义列表右侧内容 - -```html - - - - - - - - - - - - - - - - - 刚刚 - - - - - - - -``` - -```javascript - -export default { - components: {}, - data() { - return { - avatarList: [{ - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }, { - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }, { - url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png' - }] - } - } -} - -``` - - -```css - -.chat-custom-right { - flex: 1; - /* #ifndef APP-NVUE */ - display: flex; - /* #endif */ - flex-direction: column; - justify-content: space-between; - align-items: flex-end; -} - -.chat-custom-text { - font-size: 12px; - color: #999; -} - -``` - -## API - -### List Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -border |Boolean |true | 是否显示边框 - - -### ListItem Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -title |String |- | 标题 -note |String |- | 描述 -ellipsis |Number |0 | title 是否溢出隐藏,可选值,0:默认; 1:显示一行; 2:显示两行;【nvue 暂不支持】 -thumb |String |- | 左侧缩略图,若thumb有值,则不会显示扩展图标 -thumbSize |String |medium | 略缩图尺寸,可选值,lg:大图; medium:一般; sm:小图; -showBadge |Boolean |false | 是否显示数字角标 -badgeText |String |- | 数字角标内容 -badgeType |String |- | 数字角标类型,参考[uni-icons](https://ext.dcloud.net.cn/plugin?id=21) -badgeStyle |Object |- | 数字角标样式,使用uni-badge的custom-style参数 -rightText |String |- | 右侧文字内容 -disabled |Boolean |false | 是否禁用 -showArrow |Boolean |true | 是否显示箭头图标 -link |String |navigateTo | 新页面跳转方式,可选值见下表 -to |String |- | 新页面跳转地址,如填写此属性,click 会返回页面是否跳转成功 -clickable |Boolean |false | 是否开启点击反馈 -showSwitch |Boolean |false | 是否显示Switch -switchChecked |Boolean |false | Switch是否被选中 -showExtraIcon |Boolean |false | 左侧是否显示扩展图标 -extraIcon |Object |- | 扩展图标参数,格式为 ``{color: '#4cd964',size: '22',type: 'spinner'}``,参考 [uni-icons](https://ext.dcloud.net.cn/plugin?id=28) -direction | String |row | 排版方向,可选值,row:水平排列; column:垂直排列; 3个插槽是水平排还是垂直排,也受此属性控制 - - -#### Link Options - -属性名 | 说明 -:-: | :-: -navigateTo | 同 uni.navigateTo() -redirectTo | 同 uni.reLaunch() -reLaunch | 同 uni.reLaunch() -switchTab | 同 uni.switchTab() - -### ListItem Events - -事件称名 |说明 |返回参数 -:-: |:-: |:-: -click |点击 uniListItem 触发事件,需开启点击反馈 |- -switchChange |点击切换 Switch 时触发,需显示 switch |e={value:checked} - - - -### ListItem Slots - -名称 | 说明 -:-: | :-: -header | 左/上内容插槽,可完全自定义默认显示 -body | 中间内容插槽,可完全自定义中间内容 -footer | 右/下内容插槽,可完全自定义右侧内容 - - -> **通过插槽扩展** -> 需要注意的是当使用插槽时,内置样式将会失效,只保留排版样式,此时的样式需要开发者自己实现 -> 如果 `uni-list-item` 组件内置属性样式无法满足需求,可以使用插槽来自定义uni-list-item里的内容。 -> uni-list-item提供了3个可扩展的插槽:`header`、`body`、`footer` -> - 当 `direction` 属性为 `row` 时表示水平排列,此时 `header` 表示列表的左边部分,`body` 表示列表的中间部分,`footer` 表示列表的右边部分 -> - 当 `direction` 属性为 `column` 时表示垂直排列,此时 `header` 表示列表的上边部分,`body` 表示列表的中间部分,`footer` 表示列表的下边部分 -> 开发者可以只用1个插槽,也可以3个一起使用。在插槽中可自主编写view标签,实现自己所需的效果。 - - -**示例** - -```html - - - - - - - - - 自定义插槽 - - - - -``` - - - - - -### ListItemChat Props - -属性名 |类型 |默认值 | 说明 -:-: |:-: |:-: | :-: -title |String |- | 标题 -note |String |- | 描述 -clickable |Boolean |false | 是否开启点击反馈 -badgeText |String |- | 数字角标内容,设置为 `dot` 将显示圆点 -badgePositon |String |right | 角标位置 -link |String |navigateTo | 是否展示右侧箭头并开启点击反馈,可选值见下表 -clickable |Boolean |false | 是否开启点击反馈 -to |String |- | 跳转页面地址,如填写此属性,click 会返回页面是否跳转成功 -time |String |- | 右侧时间显示 -avatarCircle |Boolean |false | 是否显示圆形头像 -avatar |String |- | 头像地址,avatarCircle 不填时生效 -avatarList |Array |- | 头像组,格式为 [{url:''}] - -#### Link Options - -属性名 | 说明 -:-: | :-: -navigateTo | 同 uni.navigateTo() -redirectTo | 同 uni.reLaunch() -reLaunch | 同 uni.reLaunch() -switchTab | 同 uni.switchTab() - -### ListItemChat Slots - -名称 | 说明 -:- | :- -default | 自定义列表右侧内容(包括时间和角标显示) - -### ListItemChat Events -事件称名 | 说明 | 返回参数 -:-: | :-: | :-: -@click | 点击 uniListChat 触发事件 | {data:{}} ,如有 to 属性,会返回页面跳转信息 - - - - - - -## 基于uni-list扩展的页面模板 - -通过扩展插槽,可实现多种常见样式的列表 - -**新闻列表类** - -1. 云端一体混合布局:[https://ext.dcloud.net.cn/plugin?id=2546](https://ext.dcloud.net.cn/plugin?id=2546) -2. 云端一体垂直布局,大图模式:[https://ext.dcloud.net.cn/plugin?id=2583](https://ext.dcloud.net.cn/plugin?id=2583) -3. 云端一体垂直布局,多行图文混排:[https://ext.dcloud.net.cn/plugin?id=2584](https://ext.dcloud.net.cn/plugin?id=2584) -4. 云端一体垂直布局,多图模式:[https://ext.dcloud.net.cn/plugin?id=2585](https://ext.dcloud.net.cn/plugin?id=2585) -5. 云端一体水平布局,左图右文:[https://ext.dcloud.net.cn/plugin?id=2586](https://ext.dcloud.net.cn/plugin?id=2586) -6. 云端一体水平布局,左文右图:[https://ext.dcloud.net.cn/plugin?id=2587](https://ext.dcloud.net.cn/plugin?id=2587) -7. 云端一体垂直布局,无图模式,主标题+副标题:[https://ext.dcloud.net.cn/plugin?id=2588](https://ext.dcloud.net.cn/plugin?id=2588) - -**商品列表类** - -1. 云端一体列表/宫格视图互切:[https://ext.dcloud.net.cn/plugin?id=2651](https://ext.dcloud.net.cn/plugin?id=2651) -2. 云端一体列表(宫格模式):[https://ext.dcloud.net.cn/plugin?id=2671](https://ext.dcloud.net.cn/plugin?id=2671) -3. 云端一体列表(列表模式):[https://ext.dcloud.net.cn/plugin?id=2672](https://ext.dcloud.net.cn/plugin?id=2672) - -## 组件示例 - -点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/list/list](https://hellouniapp.dcloud.net.cn/pages/extUI/list/list) \ No newline at end of file diff --git a/uni_modules/uni-scss/changelog.md b/uni_modules/uni-scss/changelog.md deleted file mode 100644 index b863bb0f5b0fb7b6cc18c498471f8cfd55538d07..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/changelog.md +++ /dev/null @@ -1,8 +0,0 @@ -## 1.0.3(2022-01-21) -- 优化 组件示例 -## 1.0.2(2021-11-22) -- 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 -## 1.0.1(2021-11-22) -- 修复 vue3中scss语法兼容问题 -## 1.0.0(2021-11-18) -- init diff --git a/uni_modules/uni-scss/index.scss b/uni_modules/uni-scss/index.scss deleted file mode 100644 index 1744a5f9845f6e3399263d7136e7e195e1e44957..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/index.scss +++ /dev/null @@ -1 +0,0 @@ -@import './styles/index.scss'; diff --git a/uni_modules/uni-scss/package.json b/uni_modules/uni-scss/package.json deleted file mode 100644 index 7cc0ccb73f8f1b87cb9f1719551b94a05896e335..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "id": "uni-scss", - "displayName": "uni-scss 辅助样式", - "version": "1.0.3", - "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", - "keywords": [ - "uni-scss", - "uni-ui", - "辅助样式" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "category": [ - "JS SDK", - "通用 SDK" - ], - "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": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "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", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "n", - "联盟": "n" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/uni_modules/uni-scss/readme.md b/uni_modules/uni-scss/readme.md deleted file mode 100644 index b7d1c25f3df7789fd3347cd1f8f00e3df05718e4..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -`uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/index.scss b/uni_modules/uni-scss/styles/index.scss deleted file mode 100644 index ffac4fecdf294152885eb82aac1e9d69e13ace8b..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/index.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import './setting/_variables.scss'; -@import './setting/_border.scss'; -@import './setting/_color.scss'; -@import './setting/_space.scss'; -@import './setting/_radius.scss'; -@import './setting/_text.scss'; -@import './setting/_styles.scss'; diff --git a/uni_modules/uni-scss/styles/setting/_border.scss b/uni_modules/uni-scss/styles/setting/_border.scss deleted file mode 100644 index 12a11c3227c180d36c7ae8b19da0395c8a37edf2..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_border.scss +++ /dev/null @@ -1,3 +0,0 @@ -.uni-border { - border: 1px $uni-border-1 solid; -} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_color.scss b/uni_modules/uni-scss/styles/setting/_color.scss deleted file mode 100644 index 1ededd94d929eb8043c0f0f50e4b6eaef19d5056..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_color.scss +++ /dev/null @@ -1,66 +0,0 @@ - -// TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 -// @mixin get-styles($k,$c) { -// @if $k == size or $k == weight{ -// font-#{$k}:#{$c} -// }@else{ -// #{$k}:#{$c} -// } -// } -$uni-ui-color:( - // 主色 - primary: $uni-primary, - primary-disable: $uni-primary-disable, - primary-light: $uni-primary-light, - // 辅助色 - success: $uni-success, - success-disable: $uni-success-disable, - success-light: $uni-success-light, - warning: $uni-warning, - warning-disable: $uni-warning-disable, - warning-light: $uni-warning-light, - error: $uni-error, - error-disable: $uni-error-disable, - error-light: $uni-error-light, - info: $uni-info, - info-disable: $uni-info-disable, - info-light: $uni-info-light, - // 中性色 - main-color: $uni-main-color, - base-color: $uni-base-color, - secondary-color: $uni-secondary-color, - extra-color: $uni-extra-color, - // 背景色 - bg-color: $uni-bg-color, - // 边框颜色 - border-1: $uni-border-1, - border-2: $uni-border-2, - border-3: $uni-border-3, - border-4: $uni-border-4, - // 黑色 - black:$uni-black, - // 白色 - white:$uni-white, - // 透明 - transparent:$uni-transparent -) !default; -@each $key, $child in $uni-ui-color { - .uni-#{"" + $key} { - color: $child; - } - .uni-#{"" + $key}-bg { - background-color: $child; - } -} -.uni-shadow-sm { - box-shadow: $uni-shadow-sm; -} -.uni-shadow-base { - box-shadow: $uni-shadow-base; -} -.uni-shadow-lg { - box-shadow: $uni-shadow-lg; -} -.uni-mask { - background-color:$uni-mask; -} diff --git a/uni_modules/uni-scss/styles/setting/_radius.scss b/uni_modules/uni-scss/styles/setting/_radius.scss deleted file mode 100644 index 9a0428bb87c90b48771945ac6dd1e96d0004b159..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_radius.scss +++ /dev/null @@ -1,55 +0,0 @@ -@mixin radius($r,$d:null ,$important: false){ - $radius-value:map-get($uni-radius, $r) if($important, !important, null); - // Key exists within the $uni-radius variable - @if (map-has-key($uni-radius, $r) and $d){ - @if $d == t { - border-top-left-radius:$radius-value; - border-top-right-radius:$radius-value; - }@else if $d == r { - border-top-right-radius:$radius-value; - border-bottom-right-radius:$radius-value; - }@else if $d == b { - border-bottom-left-radius:$radius-value; - border-bottom-right-radius:$radius-value; - }@else if $d == l { - border-top-left-radius:$radius-value; - border-bottom-left-radius:$radius-value; - }@else if $d == tl { - border-top-left-radius:$radius-value; - }@else if $d == tr { - border-top-right-radius:$radius-value; - }@else if $d == br { - border-bottom-right-radius:$radius-value; - }@else if $d == bl { - border-bottom-left-radius:$radius-value; - } - }@else{ - border-radius:$radius-value; - } -} - -@each $key, $child in $uni-radius { - @if($key){ - .uni-radius-#{"" + $key} { - @include radius($key) - } - }@else{ - .uni-radius { - @include radius($key) - } - } -} - -@each $direction in t, r, b, l,tl, tr, br, bl { - @each $key, $child in $uni-radius { - @if($key){ - .uni-radius-#{"" + $direction}-#{"" + $key} { - @include radius($key,$direction,false) - } - }@else{ - .uni-radius-#{$direction} { - @include radius($key,$direction,false) - } - } - } -} diff --git a/uni_modules/uni-scss/styles/setting/_space.scss b/uni_modules/uni-scss/styles/setting/_space.scss deleted file mode 100644 index 3c895289782aec33e3b8cc7f7f302bdc86131174..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_space.scss +++ /dev/null @@ -1,56 +0,0 @@ - -@mixin fn($space,$direction,$size,$n) { - @if $n { - #{$space}-#{$direction}: #{$size*$uni-space-root}px - } @else { - #{$space}-#{$direction}: #{-$size*$uni-space-root}px - } -} -@mixin get-styles($direction,$i,$space,$n){ - @if $direction == t { - @include fn($space, top,$i,$n); - } - @if $direction == r { - @include fn($space, right,$i,$n); - } - @if $direction == b { - @include fn($space, bottom,$i,$n); - } - @if $direction == l { - @include fn($space, left,$i,$n); - } - @if $direction == x { - @include fn($space, left,$i,$n); - @include fn($space, right,$i,$n); - } - @if $direction == y { - @include fn($space, top,$i,$n); - @include fn($space, bottom,$i,$n); - } - @if $direction == a { - @if $n { - #{$space}:#{$i*$uni-space-root}px; - } @else { - #{$space}:#{-$i*$uni-space-root}px; - } - } -} - -@each $orientation in m,p { - $space: margin; - @if $orientation == m { - $space: margin; - } @else { - $space: padding; - } - @for $i from 0 through 16 { - @each $direction in t, r, b, l, x, y, a { - .uni-#{$orientation}#{$direction}-#{$i} { - @include get-styles($direction,$i,$space,true); - } - .uni-#{$orientation}#{$direction}-n#{$i} { - @include get-styles($direction,$i,$space,false); - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_styles.scss b/uni_modules/uni-scss/styles/setting/_styles.scss deleted file mode 100644 index 689afec661c6e7212b41437ad3f1fdf26659606c..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_styles.scss +++ /dev/null @@ -1,167 +0,0 @@ -/* #ifndef APP-NVUE */ - -$-color-white:#fff; -$-color-black:#000; -@mixin base-style($color) { - color: #fff; - background-color: $color; - border-color: mix($-color-black, $color, 8%); - &:not([hover-class]):active { - background: mix($-color-black, $color, 10%); - border-color: mix($-color-black, $color, 20%); - color: $-color-white; - outline: none; - } -} -@mixin is-color($color) { - @include base-style($color); - &[loading] { - @include base-style($color); - &::before { - margin-right:5px; - } - } - &[disabled] { - &, - &[loading], - &:not([hover-class]):active { - color: $-color-white; - border-color: mix(darken($color,10%), $-color-white); - background-color: mix($color, $-color-white); - } - } - -} -@mixin base-plain-style($color) { - color:$color; - background-color: mix($-color-white, $color, 90%); - border-color: mix($-color-white, $color, 70%); - &:not([hover-class]):active { - background: mix($-color-white, $color, 80%); - color: $color; - outline: none; - border-color: mix($-color-white, $color, 50%); - } -} -@mixin is-plain($color){ - &[plain] { - @include base-plain-style($color); - &[loading] { - @include base-plain-style($color); - &::before { - margin-right:5px; - } - } - &[disabled] { - &, - &:active { - color: mix($-color-white, $color, 40%); - background-color: mix($-color-white, $color, 90%); - border-color: mix($-color-white, $color, 80%); - } - } - } -} - - -.uni-btn { - margin: 5px; - color: #393939; - border:1px solid #ccc; - font-size: 16px; - font-weight: 200; - background-color: #F9F9F9; - // TODO 暂时处理边框隐藏一边的问题 - overflow: visible; - &::after{ - border: none; - } - - &:not([type]),&[type=default] { - color: #999; - &[loading] { - background: none; - &::before { - margin-right:5px; - } - } - - - - &[disabled]{ - color: mix($-color-white, #999, 60%); - &, - &[loading], - &:active { - color: mix($-color-white, #999, 60%); - background-color: mix($-color-white,$-color-black , 98%); - border-color: mix($-color-white, #999, 85%); - } - } - - &[plain] { - color: #999; - background: none; - border-color: $uni-border-1; - &:not([hover-class]):active { - background: none; - color: mix($-color-white, $-color-black, 80%); - border-color: mix($-color-white, $-color-black, 90%); - outline: none; - } - &[disabled]{ - &, - &[loading], - &:active { - background: none; - color: mix($-color-white, #999, 60%); - border-color: mix($-color-white, #999, 85%); - } - } - } - } - - &:not([hover-class]):active { - color: mix($-color-white, $-color-black, 50%); - } - - &[size=mini] { - font-size: 16px; - font-weight: 200; - border-radius: 8px; - } - - - - &.uni-btn-small { - font-size: 14px; - } - &.uni-btn-mini { - font-size: 12px; - } - - &.uni-btn-radius { - border-radius: 999px; - } - &[type=primary] { - @include is-color($uni-primary); - @include is-plain($uni-primary) - } - &[type=success] { - @include is-color($uni-success); - @include is-plain($uni-success) - } - &[type=error] { - @include is-color($uni-error); - @include is-plain($uni-error) - } - &[type=warning] { - @include is-color($uni-warning); - @include is-plain($uni-warning) - } - &[type=info] { - @include is-color($uni-info); - @include is-plain($uni-info) - } -} -/* #endif */ diff --git a/uni_modules/uni-scss/styles/setting/_text.scss b/uni_modules/uni-scss/styles/setting/_text.scss deleted file mode 100644 index a34d08f3f70b83d36f019e6e268f8e62ba9d932d..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_text.scss +++ /dev/null @@ -1,24 +0,0 @@ -@mixin get-styles($k,$c) { - @if $k == size or $k == weight{ - font-#{$k}:#{$c} - }@else{ - #{$k}:#{$c} - } -} - -@each $key, $child in $uni-headings { - /* #ifndef APP-NVUE */ - .uni-#{$key} { - @each $k, $c in $child { - @include get-styles($k,$c) - } - } - /* #endif */ - /* #ifdef APP-NVUE */ - .container .uni-#{$key} { - @each $k, $c in $child { - @include get-styles($k,$c) - } - } - /* #endif */ -} diff --git a/uni_modules/uni-scss/styles/setting/_variables.scss b/uni_modules/uni-scss/styles/setting/_variables.scss deleted file mode 100644 index 557d3d7c9cfcf8b1d1ce94d23c75333886749841..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/setting/_variables.scss +++ /dev/null @@ -1,146 +0,0 @@ -// @use "sass:math"; -@import '../tools/functions.scss'; -// 间距基础倍数 -$uni-space-root: 2 !default; -// 边框半径默认值 -$uni-radius-root:5px !default; -$uni-radius: () !default; -// 边框半径断点 -$uni-radius: map-deep-merge( - ( - 0: 0, - // TODO 当前版本暂时不支持 sm 属性 - // 'sm': math.div($uni-radius-root, 2), - null: $uni-radius-root, - 'lg': $uni-radius-root * 2, - 'xl': $uni-radius-root * 6, - 'pill': 9999px, - 'circle': 50% - ), - $uni-radius -); -// 字体家族 -$body-font-family: 'Roboto', sans-serif !default; -// 文本 -$heading-font-family: $body-font-family !default; -$uni-headings: () !default; -$letterSpacing: -0.01562em; -$uni-headings: map-deep-merge( - ( - 'h1': ( - size: 32px, - weight: 300, - line-height: 50px, - // letter-spacing:-0.01562em - ), - 'h2': ( - size: 28px, - weight: 300, - line-height: 40px, - // letter-spacing: -0.00833em - ), - 'h3': ( - size: 24px, - weight: 400, - line-height: 32px, - // letter-spacing: normal - ), - 'h4': ( - size: 20px, - weight: 400, - line-height: 30px, - // letter-spacing: 0.00735em - ), - 'h5': ( - size: 16px, - weight: 400, - line-height: 24px, - // letter-spacing: normal - ), - 'h6': ( - size: 14px, - weight: 500, - line-height: 18px, - // letter-spacing: 0.0125em - ), - 'subtitle': ( - size: 12px, - weight: 400, - line-height: 20px, - // letter-spacing: 0.00937em - ), - 'body': ( - font-size: 14px, - font-weight: 400, - line-height: 22px, - // letter-spacing: 0.03125em - ), - 'caption': ( - 'size': 12px, - 'weight': 400, - 'line-height': 20px, - // 'letter-spacing': 0.03333em, - // 'text-transform': false - ) - ), - $uni-headings -); - - - -// 主色 -$uni-primary: #2979ff !default; -$uni-primary-disable:lighten($uni-primary,20%) !default; -$uni-primary-light: lighten($uni-primary,25%) !default; - -// 辅助色 -// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 -$uni-success: #18bc37 !default; -$uni-success-disable:lighten($uni-success,20%) !default; -$uni-success-light: lighten($uni-success,25%) !default; - -$uni-warning: #f3a73f !default; -$uni-warning-disable:lighten($uni-warning,20%) !default; -$uni-warning-light: lighten($uni-warning,25%) !default; - -$uni-error: #e43d33 !default; -$uni-error-disable:lighten($uni-error,20%) !default; -$uni-error-light: lighten($uni-error,25%) !default; - -$uni-info: #8f939c !default; -$uni-info-disable:lighten($uni-info,20%) !default; -$uni-info-light: lighten($uni-info,25%) !default; - -// 中性色 -// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 -$uni-main-color: #3a3a3a !default; // 主要文字 -$uni-base-color: #6a6a6a !default; // 常规文字 -$uni-secondary-color: #909399 !default; // 次要文字 -$uni-extra-color: #c7c7c7 !default; // 辅助说明 - -// 边框颜色 -$uni-border-1: #F0F0F0 !default; -$uni-border-2: #EDEDED !default; -$uni-border-3: #DCDCDC !default; -$uni-border-4: #B9B9B9 !default; - -// 常规色 -$uni-black: #000000 !default; -$uni-white: #ffffff !default; -$uni-transparent: rgba($color: #000000, $alpha: 0) !default; - -// 背景色 -$uni-bg-color: #f7f7f7 !default; - -/* 水平间距 */ -$uni-spacing-sm: 8px !default; -$uni-spacing-base: 15px !default; -$uni-spacing-lg: 30px !default; - -// 阴影 -$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default; -$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default; -$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default; - -// 蒙版 -$uni-mask: rgba($color: #000000, $alpha: 0.4) !default; diff --git a/uni_modules/uni-scss/styles/tools/functions.scss b/uni_modules/uni-scss/styles/tools/functions.scss deleted file mode 100644 index ac6f63e53a9342840367582982b1f6a465928e48..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/styles/tools/functions.scss +++ /dev/null @@ -1,19 +0,0 @@ -// 合并 map -@function map-deep-merge($parent-map, $child-map){ - $result: $parent-map; - @each $key, $child in $child-map { - $parent-has-key: map-has-key($result, $key); - $parent-value: map-get($result, $key); - $parent-type: type-of($parent-value); - $child-type: type-of($child); - $parent-is-map: $parent-type == map; - $child-is-map: $child-type == map; - - @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ - $result: map-merge($result, ( $key: $child )); - }@else { - $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); - } - } - @return $result; -}; diff --git a/uni_modules/uni-scss/theme.scss b/uni_modules/uni-scss/theme.scss deleted file mode 100644 index 80ee62f7d82dd550f11e643f55b66353a48b2b55..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/theme.scss +++ /dev/null @@ -1,31 +0,0 @@ -// 间距基础倍数 -$uni-space-root: 2; -// 边框半径默认值 -$uni-radius-root:5px; -// 主色 -$uni-primary: #2979ff; -// 辅助色 -$uni-success: #4cd964; -// 警告色 -$uni-warning: #f0ad4e; -// 错误色 -$uni-error: #dd524d; -// 描述色 -$uni-info: #909399; -// 中性色 -$uni-main-color: #303133; -$uni-base-color: #606266; -$uni-secondary-color: #909399; -$uni-extra-color: #C0C4CC; -// 背景色 -$uni-bg-color: #f5f5f5; -// 边框颜色 -$uni-border-1: #DCDFE6; -$uni-border-2: #E4E7ED; -$uni-border-3: #EBEEF5; -$uni-border-4: #F2F6FC; - -// 常规色 -$uni-black: #000000; -$uni-white: #ffffff; -$uni-transparent: rgba($color: #000000, $alpha: 0); diff --git a/uni_modules/uni-scss/variables.scss b/uni_modules/uni-scss/variables.scss deleted file mode 100644 index 1c062d42b29f02edc623834720ef88437b6a3277..0000000000000000000000000000000000000000 --- a/uni_modules/uni-scss/variables.scss +++ /dev/null @@ -1,62 +0,0 @@ -@import './styles/setting/_variables.scss'; -// 间距基础倍数 -$uni-space-root: 2; -// 边框半径默认值 -$uni-radius-root:5px; - -// 主色 -$uni-primary: #2979ff; -$uni-primary-disable:mix(#fff,$uni-primary,50%); -$uni-primary-light: mix(#fff,$uni-primary,80%); - -// 辅助色 -// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 -$uni-success: #18bc37; -$uni-success-disable:mix(#fff,$uni-success,50%); -$uni-success-light: mix(#fff,$uni-success,80%); - -$uni-warning: #f3a73f; -$uni-warning-disable:mix(#fff,$uni-warning,50%); -$uni-warning-light: mix(#fff,$uni-warning,80%); - -$uni-error: #e43d33; -$uni-error-disable:mix(#fff,$uni-error,50%); -$uni-error-light: mix(#fff,$uni-error,80%); - -$uni-info: #8f939c; -$uni-info-disable:mix(#fff,$uni-info,50%); -$uni-info-light: mix(#fff,$uni-info,80%); - -// 中性色 -// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 -$uni-main-color: #3a3a3a; // 主要文字 -$uni-base-color: #6a6a6a; // 常规文字 -$uni-secondary-color: #909399; // 次要文字 -$uni-extra-color: #c7c7c7; // 辅助说明 - -// 边框颜色 -$uni-border-1: #F0F0F0; -$uni-border-2: #EDEDED; -$uni-border-3: #DCDCDC; -$uni-border-4: #B9B9B9; - -// 常规色 -$uni-black: #000000; -$uni-white: #ffffff; -$uni-transparent: rgba($color: #000000, $alpha: 0); - -// 背景色 -$uni-bg-color: #f7f7f7; - -/* 水平间距 */ -$uni-spacing-sm: 8px; -$uni-spacing-base: 15px; -$uni-spacing-lg: 30px; - -// 阴影 -$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); -$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); -$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); - -// 蒙版 -$uni-mask: rgba($color: #000000, $alpha: 0.4); diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index 5aa92dba06a73984347f43faa9d0cbf2274e2721..17e7b568d0097e53a8e5cdf5657fc8cbaab319c2 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -22,61 +22,78 @@ import AlertDialog from 'android.app.AlertDialog'; import DialogInterface from 'android.content.DialogInterface'; import EditText from 'android.widget.EditText'; -import { - UTSAndroid -} from "io.dcloud.uts"; +import array from 'android.R.array'; +import File from 'java.io.File'; /** * 定时任务参数封装 */ -type TimerOptions = { +export type TimerOptions = { /** * 定时任务开始的回调 * @res 回调参数 */ - start: (res: string) => void; + start : (res : string) => void; /** * 定时任务执行的回调 * @res 回调参数 */ - work: (res: string) => void; + work : (res : string) => void; }; +export type TimerResult = { + name : string; + taskId ?: number; +}; /** * 执行延时任务 */ -export function doTimerTask(opts:TimerOptions) { +export function doTimerTask(opts : TimerOptions): TimerResult { opts.start('doTimerTask start'); - setTimeout(function() { + setTimeout(function () { opts.work("doTimerTask work"); }, 2000); - - return { name: "doTimerTask" }; + + const result: TimerResult = { + name: "doTimerTask" + } + + return result } /** * 执行周期任务 */ -export function doIntervalTask(opts:TimerOptions) { - - let taskRet = setInterval(function() { +export function doIntervalTask(opts : TimerOptions): TimerResult { + + let taskRet = setInterval(function () { opts.work("doIntervalTask work"); }, 2000); opts.start('doIntervalTask start'); - - return { name: "doIntervalTask",taskId:taskRet}; + + const result: TimerResult = { + name: "doIntervalTask", + taskId: taskRet + } + + return result } /** * 清除周期任务 */ -export function clearIntervalTask(taskId:number) { - +export function clearIntervalTask(taskId : number): TimerResult { + clearInterval(taskId); - return { name: "clearIntervalTask"}; + + const result: TimerResult = { + name: "clearIntervalTask" + } + + return result } @@ -86,25 +103,25 @@ export function clearIntervalTask(taskId:number) { */ class AddUIRunnable implements Runnable { - override run():void { - - let textView = new TextView(UTSAndroid.getUniActivity()) - textView.setText("HELLO WORLD"); - textView.textSize = 30.0.toFloat(); - textView.setBackgroundColor(Color.RED) - textView.setTag("helloText") - textView.setGravity(Gravity.CENTER) + override run() : void { + + let textView = new TextView(UTSAndroid.getUniActivity()) + textView.setText("HELLO WORLD"); + textView.textSize = 30.0.toFloat(); + textView.setBackgroundColor(Color.RED) + textView.setTag("helloText") + textView.setGravity(Gravity.CENTER) - let decorView = UTSAndroid.getUniActivity()!.window.decorView; + let decorView = UTSAndroid.getUniActivity()!.window.decorView; - let frameContent = decorView.findViewById(android.R.id.content) - let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT); - layoutParam.topMargin = 200; + let frameContent = decorView.findViewById(android.R.id.content) + let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); + layoutParam.topMargin = 200; - frameContent.addView(textView,layoutParam) + frameContent.addView(textView, layoutParam) - } + } }; /** @@ -113,15 +130,15 @@ class AddUIRunnable implements Runnable { */ class RemoveUIRunnable extends Runnable { - override run():void { + override run() : void { + + let decorView = UTSAndroid.getUniActivity()!.getWindow().getDecorView(); + let frameContent = decorView.findViewById(android.R.id.content) - let decorView = UTSAndroid.getUniActivity()!.getWindow().getDecorView(); - let frameContent = decorView.findViewById(android.R.id.content) - let targetTV = frameContent.findViewWithTag("helloText") frameContent.removeView(targetTV) - } + } }; /** @@ -129,16 +146,16 @@ class RemoveUIRunnable extends Runnable { * */ export function addViewToDecorView() { - let uiRunable = new AddUIRunnable(); - UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable) + let uiRunable = new AddUIRunnable(); + UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable) } /** * 实现从decorview上移除指定view */ export function removeViewToDecorView() { - var uiRunable = new RemoveUIRunnable(); - UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable) + var uiRunable = new RemoveUIRunnable(); + UTSAndroid.getUniActivity()!.runOnUiThread(uiRunable) } @@ -146,26 +163,26 @@ export function removeViewToDecorView() { /** * 引用资源路径 */ -export function getMetaConfig(): string { +export function getMetaConfig() : string { // let packageName = UTSAndroid.getAppContext()!.getPackageName(); - let appInfo = UTSAndroid.getAppContext()!.getPackageManager()!.getApplicationInfo(packageName,PackageManager.GET_META_DATA) - + let appInfo = UTSAndroid.getAppContext()!.getPackageManager()!.getApplicationInfo(packageName, PackageManager.GET_META_DATA) + let metaData = appInfo.metaData if (metaData == null) { - return ""; + return ""; } let adId = metaData.getString("DCLOUD_READ_PHONE_STATE") if (adId == null) { // 没有数据,说明是自定义基座,则读取自定义基座的配置 let customMetaId = metaData.getString("UTS_CUSTOM_LAUNCHER_META") - if(customMetaId == null){ + if (customMetaId == null) { return "" } return "自定义基座[UTS_CUSTOM_LAUNCHER_META]:" + customMetaId; } // 标准基座 - return "标准基座[DCLOUD_READ_PHONE_STATE]:" + adId; + return "标准基座[DCLOUD_READ_PHONE_STATE]:" + adId; } @@ -173,29 +190,29 @@ export function getMetaConfig(): string { /** * 引用资源路径 */ -export function getLogoPath(): string { - return logo; +export function getLogoPath() : string { + return logo; } /** * 音频播放器对象 */ -let globalPlayer:MediaPlayer| null = null; +let globalPlayer : MediaPlayer | null = null; /** * 播放asset资源中的音频 */ export function playAssetAudio() { - + let assetManager = UTSAndroid.getAppContext()!.getAssets(); let afd = assetManager.openFd("free.mp3"); - - if(globalPlayer == null){ + + if (globalPlayer == null) { globalPlayer = new MediaPlayer(); - globalPlayer!.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); + globalPlayer!.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); globalPlayer!.prepare(); globalPlayer!.start(); } - + } @@ -203,51 +220,51 @@ export function playAssetAudio() { * 停止播放asset资源中的音频 */ export function stopAssetAudio() { - - if(globalPlayer != null){ + + if (globalPlayer != null) { globalPlayer!.stop(); globalPlayer = null; } - + } -export function goOtherActivity(imageDone: (event:string) => void):boolean { - +export function goOtherActivity(imageDone : (event : string) => void) : boolean { + // 检查相关权限是否已经具备 if (ActivityCompat.checkSelfPermission(UTSAndroid.getUniActivity()!, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) { // 不具备权限,申请权限,并且告知用户监听失败 ActivityCompat.requestPermissions(UTSAndroid.getUniActivity()!, arrayOf(Manifest.permission.CAMERA), 1002) - + return false; } - - UTSAndroid.onAppActivityResult((requestCode: Int, resultCode: Int, data?: Intent) => { - let eventName = "onAppActivityResult - requestCode:" + requestCode + " -resultCode:"+resultCode + " -data:"+JSON.stringify(data); - console.log(eventName); + + UTSAndroid.onAppActivityResult((requestCode : Int, resultCode : Int, data ?: Intent) => { + let eventName = "onAppActivityResult - requestCode:" + requestCode + " -resultCode:" + resultCode + " -data:" + JSON.stringify(data); + console.log(eventName); if ((requestCode == 1001) && (resultCode == Activity.RESULT_OK)) { - if (data != null) { - let bundle = data.getExtras(); - let mImageBitmap = bundle!.get("data") as Bitmap; - let bitmapPath = UTSAndroid.getUniActivity()!.getExternalCacheDir()!.getPath() + "/photo.png" - console.log(bitmapPath); - try{ - mImageBitmap.compress(Bitmap.CompressFormat.PNG,100,new FileOutputStream(bitmapPath)) - }catch(e){ - } - imageDone(bitmapPath); - - } - } + if (data != null) { + let bundle = data.getExtras(); + let mImageBitmap = bundle!.get("data") as Bitmap; + let bitmapPath = UTSAndroid.getUniActivity()!.getExternalCacheDir()!.getPath() + "/photo.png" + console.log(bitmapPath); + try { + mImageBitmap.compress(Bitmap.CompressFormat.PNG, 100, new FileOutputStream(bitmapPath)) + } catch (e) { + } + imageDone(bitmapPath); + + } + } }); - + let takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); //resolveActivity 返回可处理 Intent 的第一个 Activity 组件 if (takePictureIntent.resolveActivity(UTSAndroid.getUniActivity()!.getPackageManager()) != null) { UTSAndroid.getUniActivity()!.startActivityForResult(takePictureIntent, 1001); } - + return true; - + } @@ -255,68 +272,68 @@ export function goOtherActivity(imageDone: (event:string) => void):boolean { * 初始化应用生命周期监听 * */ -export function initAppLifecycle(onLifecycleChange: (event:string) => void) { +export function initAppLifecycle(onLifecycleChange : (event : string) => void) { /** * application 内存不足的回调函数 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onapptrimmemory */ - UTSAndroid.onAppTrimMemory((level:Number) => { + UTSAndroid.onAppTrimMemory((level : Number) => { let eventName = "onAppTrimMemory - " + level; onLifecycleChange(eventName); - console.log(eventName); + console.log(eventName); }); - + /** * application 状态改变的回调函数 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onAppConfigChange */ - UTSAndroid.onAppConfigChange((ret:UTSJSONObject) => { + UTSAndroid.onAppConfigChange((ret : UTSJSONObject) => { let eventName = "onAppConfigChange - " + JSON.stringify(ret); onLifecycleChange(eventName); - console.log(eventName); + console.log(eventName); }); - - + + /** * activity 销毁生命周期回调 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivitydestroy */ - UTSAndroid.onAppActivityDestroy(() => { + UTSAndroid.onAppActivityDestroy(() => { let eventName = "onAppActivityDestroy"; onLifecycleChange(eventName); - console.log(eventName); - }); - - + console.log(eventName); + }); + + /** * activity 失去焦点生命周期回调 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivitypause */ - UTSAndroid.onAppActivityPause(() => { - let eventName = "onAppActivityPause" ; + UTSAndroid.onAppActivityPause(() => { + let eventName = "onAppActivityPause"; onLifecycleChange(eventName); - console.log(eventName); - }); + console.log(eventName); + }); /** * activity 得到焦点的周期回调 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivityresume */ - UTSAndroid.onAppActivityResume(() => { + UTSAndroid.onAppActivityResume(() => { let eventName = "onAppActivityResume"; onLifecycleChange(eventName); - console.log(eventName); - }); + console.log(eventName); + }); /** * activity 回退物理按键事件回调 * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivityback */ - UTSAndroid.onAppActivityBack(() => { + UTSAndroid.onAppActivityBack(() => { let eventName = "onAppActivityBack"; onLifecycleChange(eventName); - console.log(eventName); - }); + console.log(eventName); + }); } @@ -331,29 +348,209 @@ export function unRegLifecycle() { * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onapptrimmemory */ UTSAndroid.offAppTrimMemory(); - + /** * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onAppConfigChange */ UTSAndroid.offAppConfigChange(); - + /** * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivitydestroy */ - UTSAndroid.offAppActivityDestroy(); - + UTSAndroid.offAppActivityDestroy(); + /** * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivitypause */ - UTSAndroid.offAppActivityPause(); - + UTSAndroid.offAppActivityPause(); + /** * 说明文档:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#onappactivityresume */ - UTSAndroid.offAppActivityResume(); + UTSAndroid.offAppActivityResume(); /** * activity 回退物理按键事件回调 */ - UTSAndroid.offAppActivityBack(); + UTSAndroid.offAppActivityBack(); + +} + +/** + * add since 2023-06-19 + * 新增传参测试用例 + */ +export function inputArray(input : Array) : boolean { + + let inputStr = JSON.stringify(input) + + if ('["a","b","c"]' == inputStr) { + return true + } + return false + +} + +export type ParamOptions = { + title : string, + array : Array +} + +export function inputParam(option : ParamOptions) : boolean { + let inputStr = JSON.stringify(option) + console.log(inputStr) + if ('{"array":["1","2","3"],"title":"hello"}' == inputStr) { + return true + } + return false +} + +export function returnArray() : Array { + return ['1', '2', '3'] +} + +export function returnParam() : ParamOptions { + + let ret : ParamOptions = { + title: "returnParam", + array: ['1', '2', '3'] + } + return ret + +} + +export type ParamCallback = (res : ParamOptions) => void +export type ArrayCallback = (res : Array) => void + +export function callbackArray(callback : ArrayCallback) { + callback(['8', '8', '8']) +} + + +export function callbackParam(callback : ParamCallback) { + let ret : ParamOptions = { + title: "callbackParam", + array: ['4', '5', '6'] + } + callback(ret) +} +/** + * 打印测试方法 + */ +export function logStrTest() { + console.log("logStrTest 字符串打印测试") +} + + +export function logFloatTest() { + console.log(3.1415926) +} +export function logIntTest() { + console.log(2023) + console.log(2023.0) + console.log(2023.002) +} + +export function logObjectTest(){ + let ret : ParamOptions = { + title: "logObjectTest", + array: ['1', '2', '3'] + } + console.log(ret) +} + + +export function logFunctionTest(){ + + let testFun = function(){ + console.log("testFun") + } + console.log(testFun) +} + + + +export function logFileTest(){ + console.log(new File("/sdcard/temp/1.txt")) +} + +export function logDateTest(){ + console.log(new Date()) +} + +export function logDateCombineTest(){ + console.log("现在的日期是",new Date()," 以上是日期信息") +} + + +/** + * + */ +export function quitApp(){ + UTSAndroid.exit() +} + +export class User { + + private name : string; + private age : Int; + + constructor(hostP : string, port : Int) { + this.name = hostP; + this.age = port; + } + + describeSelf():string{ + let text = "name = " + this.name + ";age = " + this.age + return text + } +} + + +export function arrayConvert():boolean{ + + // kotlin.collections.List 转换 Array + let kotlinList = mutableListOf("hello","world") + let utsArr1 = Array.fromNative(kotlinList) + + if(!(utsArr1 instanceof UTSArray)){ + return false + } + + // kotlin.Array 转换 Array + let kotlinArray = arrayOf("hello","world") + let utsArr2 = Array.fromNative(kotlinArray) + + if(!(utsArr2 instanceof UTSArray)){ + return false + } + + let b1 = byteArrayOf(-1,2,0,3,4,5) + let c1 = Array.fromNative(b1) + if(!(c1 instanceof UTSArray)){ + return false + } + + + let b2 = longArrayOf(-1,2,0,3,4,5) + let c2 = Array.fromNative(b2) + if(!(c2 instanceof UTSArray)){ + return false + } + + + let b3 = shortArrayOf(-1,2,0,3,4,5) + let c3 = Array.fromNative(b3) + if(!(c3 instanceof UTSArray)){ + return false + } + + let b4 = intArrayOf(-1,2,0,3,4,5) + let c4 = Array.fromNative(b4) + if(!(c4 instanceof UTSArray)){ + return false + } + + + return true +} -} \ No newline at end of file diff --git a/uni_modules/uts-advance/utssdk/app-ios/index.uts b/uni_modules/uts-advance/utssdk/app-ios/index.uts index 652bfb6b56fd1511d5a28b757952401c74f37a33..e33836820e20e1d353801ab63c0b803b51397e38 100644 --- a/uni_modules/uts-advance/utssdk/app-ios/index.uts +++ b/uni_modules/uts-advance/utssdk/app-ios/index.uts @@ -1,5 +1,8 @@ import { UIImageView , UIImage , UIScreen } from 'UIKit'; import { DispatchQueue } from 'Dispatch'; + +import { UTSiOS } from "DCloudUTSFoundation"; + export function addViewToDecorView() { } export function removeViewToDecorView() { } export function initAppLifecycle() { } @@ -9,7 +12,7 @@ export function playAssetAudio(){} /** * 定时任务参数封装 */ -type TimerOptions = { +export type TimerOptions = { /** * 定时任务开始的回调 * @res 回调参数 @@ -22,39 +25,57 @@ type TimerOptions = { work: (res: string) => void; }; +export type TimerResult = { + name : string; + taskId ?: number; +}; + /** * 执行延时任务 */ -export function doTimerTask(opts:TimerOptions) { +export function doTimerTask(opts:TimerOptions): TimerResult { opts.start('doTimerTask start'); setTimeout(function() { opts.work("doTimerTask work"); }, 2000); - return { name: "doTimerTask" }; + const result: TimerResult = { + name: "doTimerTask" + } + + return result } /** * 执行周期任务 */ -export function doIntervalTask(opts:TimerOptions) { +export function doIntervalTask(opts:TimerOptions): TimerResult { let taskRet = setInterval(function() { opts.work("doIntervalTask work"); }, 2000); opts.start('doIntervalTask start'); - return { name: "doIntervalTask",taskId:taskRet}; + const result: TimerResult = { + name: "doIntervalTask", + taskId: taskRet + } + + return result } /** * 清除周期任务 */ -export function clearIntervalTask(taskId:number) { +export function clearIntervalTask(taskId:number):TimerResult { clearInterval(taskId); - return { name: "clearIntervalTask"}; + const result: TimerResult = { + name: "clearIntervalTask" + } + + return result } /* @@ -83,7 +104,7 @@ export function getResourcePath(path: string) { // 添加imageView并设置frame vc.view.addSubview(imageView) - let imageSize = 80.0 + let imageSize: CGFloat = 80.0 let midx = (UIScreen.main.bounds.size.width - imageSize) / 2 let midy = (UIScreen.main.bounds.size.height - imageSize) / 2 imageView.frame = CGRect(x = midx, y = midy, width = imageSize, height = imageSize) @@ -101,4 +122,96 @@ export function removeExampleImageView() { AdvanceModuleGloabInfo.imageView = null } }) -} \ No newline at end of file +} + +/** + * add since 2023-06-19 + * 新增传参测试用例 + */ +export function inputArray(input : Array) : boolean { + + let inputStr = JSON.stringify(input) + + if ('["a","b","c"]' == inputStr) { + return true + } + return false + +} + +export type ParamOptions = { + title : string, + array : Array +} + + +export function inputParam(option : ParamOptions) : boolean { + console.log(option, "传入的参数") + let inputStr = JSON.stringify(option) + console.log(inputStr, 'stringify option') + if ('{"array":[1,2,3],"title":"hello"}' == inputStr) { + return true + } + return false +} + +export function returnArray() : Array { + return ['1', '2', '3'] +} + +export function returnParam() : ParamOptions { + + let ret : ParamOptions = { + title: "returnParam", + array: ['1', '2', '3'] + } + return ret + +} + +export type ParamCallback = (res : ParamOptions) => void +export type ArrayCallback = (res : Array) => void + +export function callbackArray(callback : ArrayCallback) { + callback(['8', '8', '8']) +} + + +export function callbackParam(callback : ParamCallback) { + let ret : ParamOptions = { + title: "callbackParam", + array: ['4', '5', '6'] + } + callback(ret) +} + +/** + * 打印测试方法 + */ +export function logStrTest() { + console.log("logStrTest 字符串打印测试") +} + +export function logFloatTest() { + console.log(3.1415926) +} +export function logIntTest() { + console.log(2023) +} + +export function logObjectTest(){ + let ret : ParamOptions = { + title: "logObjectTest", + array: ['1', '2', '3'] + } + console.log(ret) +} + + +export function logFunctionTest(){ + + let testFun = function(){ + console.log("testFun") + } + console.log(testFun) +} diff --git a/uni_modules/uts-alert/utssdk/app-android/index.uts b/uni_modules/uts-alert/utssdk/app-android/index.uts index e221cc86068505fed94255a730ad3501ecd5e339..c0b82d1c76e00ee7f42c8fe791984913a4e468a4 100644 --- a/uni_modules/uts-alert/utssdk/app-android/index.uts +++ b/uni_modules/uts-alert/utssdk/app-android/index.uts @@ -1,7 +1,4 @@ -import { - UTSAndroid -} from "io.dcloud.uts"; import Toast from 'android.widget.Toast'; import AlertDialog from 'android.app.AlertDialog'; diff --git a/uni_modules/uts-animation-view/package.json b/uni_modules/uts-animation-view/package.json index 75f987980ac1aa4dab9ddd5de616e54dee38f648..96aae113bcd2f20e2815d226b9035e84bbd3a395 100644 --- a/uni_modules/uts-animation-view/package.json +++ b/uni_modules/uts-animation-view/package.json @@ -8,7 +8,7 @@ ], "repository": "", "engines": { - "HBuilderX": "^3.6.8" + "HBuilderX": "^3.94" }, "dcloudext": { "type": "uts", diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 616042fc2430c5a7e74f023c7acb257d473c02cc..a298254b1fa8abde48f0a7edf7ed67dbf2d5f2cf 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -10,7 +10,6 @@ import LottieAnimationView from 'com.airbnb.lottie.LottieAnimationView' import LottieDrawable from 'com.airbnb.lottie.LottieDrawable' import FileInputStream from 'java.io.FileInputStream' - import { UTSAndroid } from "io.dcloud.uts"; class CustomAnimListener extends Animator.AnimatorListener { @@ -20,17 +19,17 @@ this.comp = com } - override onAnimationStart(animation: Animator | null) {} + override onAnimationStart(animation: Animator) {} - override onAnimationEnd(animation: Animator | null, isReverse: Boolean) { + override onAnimationEnd(animation: Animator, isReverse: Boolean) { this.comp.$emit("bindended") } - override onAnimationEnd(animation: Animator | null) {} + override onAnimationEnd(animation: Animator) {} - override onAnimationCancel(animation: Animator | null) {} + override onAnimationCancel(animation: Animator) {} - override onAnimationRepeat(animation: Animator | null) {} + override onAnimationRepeat(animation: Animator) {} } //原生提供以下属性或方法的实现 diff --git a/uni_modules/uts-animation-view/utssdk/app-ios/index.vue b/uni_modules/uts-animation-view/utssdk/app-ios/index.vue index da2996e84c4c71f6a4927fd3689f6ab31031ba37..5bef6c3f2e82e95dcb9523ff274250bfe15340ed 100644 --- a/uni_modules/uts-animation-view/utssdk/app-ios/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-ios/index.vue @@ -227,8 +227,9 @@ } } -