first add files
This commit is contained in:
14
ProjectLiaisonForm/.gitignore
vendored
Normal file
14
ProjectLiaisonForm/.gitignore
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Windows
|
||||
[Dd]esktop.ini
|
||||
Thumbs.db
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
|
||||
# Node.js
|
||||
node_modules/
|
||||
1
ProjectLiaisonForm/app.d.ts
vendored
Normal file
1
ProjectLiaisonForm/app.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
10
ProjectLiaisonForm/app.js
Normal file
10
ProjectLiaisonForm/app.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import gulpError from './utils/gulpError';
|
||||
App({
|
||||
onShow() {
|
||||
if (gulpError !== 'gulpErrorPlaceHolder') {
|
||||
wx.redirectTo({
|
||||
url: `/pages/gulp-error/index?gulpError=${gulpError}`,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
199
ProjectLiaisonForm/app.json
Normal file
199
ProjectLiaisonForm/app.json
Normal file
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"darkmode": true,
|
||||
"pages": [
|
||||
"pages/home/home",
|
||||
"pages/button/button",
|
||||
"pages/button/skyline/button",
|
||||
"pages/tabs/tabs",
|
||||
"pages/icon/icon",
|
||||
"pages/icon/skyline/icon",
|
||||
"pages/loading/loading",
|
||||
"pages/loading/skyline/loading",
|
||||
"pages/progress/progress",
|
||||
"pages/progress/skyline/progress",
|
||||
"pages/cascader/cascader",
|
||||
"pages/cell/cell",
|
||||
"pages/cell/skyline/cell",
|
||||
"pages/cell-group/cell-group",
|
||||
"pages/collapse/collapse",
|
||||
"pages/input/input",
|
||||
"pages/input/skyline/input",
|
||||
"pages/badge/badge",
|
||||
"pages/badge/skyline/badge",
|
||||
"pages/textarea/textarea",
|
||||
"pages/textarea/skyline/textarea",
|
||||
"pages/message/message",
|
||||
"pages/toast/toast",
|
||||
"pages/toast/skyline/toast",
|
||||
"pages/stepper/stepper",
|
||||
"pages/stepper/skyline/stepper",
|
||||
"pages/slider/slider",
|
||||
"pages/slider/skyline/slider",
|
||||
"pages/radio/radio",
|
||||
"pages/radio/skyline/radio",
|
||||
"pages/switch/switch",
|
||||
"pages/switch/skyline/switch",
|
||||
"pages/sticky/sticky",
|
||||
"pages/tag/tag",
|
||||
"pages/tag/skyline/tag",
|
||||
"pages/checkbox/checkbox",
|
||||
"pages/checkbox/skyline/checkbox",
|
||||
"pages/gulp-error/index",
|
||||
"pages/fab/fab",
|
||||
"pages/fab/skyline/fab",
|
||||
"pages/tab-bar/tab-bar",
|
||||
"pages/tab-bar/skyline/tab-bar",
|
||||
"pages/transition/transition",
|
||||
"pages/popup/popup",
|
||||
"pages/popup/skyline/popup",
|
||||
"pages/steps/steps",
|
||||
"pages/steps/skyline/steps",
|
||||
"pages/dropdown-menu/dropdown-menu",
|
||||
"pages/drawer/drawer",
|
||||
"pages/drawer/skyline/drawer",
|
||||
"pages/pull-down-refresh/pull-down-refresh",
|
||||
"pages/pull-down-refresh/skyline/pull-down-refresh",
|
||||
"pages/skeleton/skeleton",
|
||||
"pages/skeleton/skyline/skeleton",
|
||||
"pages/footer/footer",
|
||||
"pages/footer/skyline/footer",
|
||||
"pages/divider/divider",
|
||||
"pages/divider/skyline/divider",
|
||||
"pages/empty/empty",
|
||||
"pages/empty/skyline/empty",
|
||||
"pages/back-top/back-top",
|
||||
"pages/back-top/skyline/back-top",
|
||||
"pages/grid/grid",
|
||||
"pages/upload/upload",
|
||||
"pages/count-down/count-down",
|
||||
"pages/count-down/skyline/count-down",
|
||||
"pages/overlay/overlay",
|
||||
"pages/overlay/skyline/overlay",
|
||||
"pages/image/image",
|
||||
"pages/image/skyline/image",
|
||||
"pages/search/search",
|
||||
"pages/search/skyline/search",
|
||||
"pages/home/navigateFail/navigateFail",
|
||||
"pages/navbar/navbar",
|
||||
"pages/navbar/skyline/navbar",
|
||||
"pages/date-time-picker/date-time-picker",
|
||||
"pages/date-time-picker/skyline/date-time-picker",
|
||||
"pages/notice-bar/notice-bar",
|
||||
"pages/image-viewer/image-viewer",
|
||||
"pages/image-viewer/skyline/image-viewer",
|
||||
"pages/result/result",
|
||||
"pages/result/skyline/result",
|
||||
"pages/result/result-page",
|
||||
"pages/link/link",
|
||||
"pages/link/skyline/link",
|
||||
"pages/col/col",
|
||||
"pages/col/skyline/col",
|
||||
"pages/color-picker/color-picker",
|
||||
"pages/guide/guide"
|
||||
],
|
||||
"subpackages": [
|
||||
{
|
||||
"root": "pages/side-bar/",
|
||||
"pages": [
|
||||
"side-bar",
|
||||
"base/index",
|
||||
"switch/index",
|
||||
"custom/index",
|
||||
"with-icon/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/action-sheet/",
|
||||
"pages": [
|
||||
"action-sheet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/avatar/",
|
||||
"pages": [
|
||||
"avatar",
|
||||
"skyline/avatar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/calendar/",
|
||||
"pages": [
|
||||
"calendar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/dialog/",
|
||||
"pages": [
|
||||
"dialog",
|
||||
"skyline/dialog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/picker/",
|
||||
"pages": [
|
||||
"picker",
|
||||
"skyline/picker"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/rate/",
|
||||
"pages": [
|
||||
"rate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/swiper/",
|
||||
"pages": [
|
||||
"swiper",
|
||||
"skyline/swiper"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/swipe-cell/",
|
||||
"pages": [
|
||||
"swipe-cell"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/tree-select/",
|
||||
"pages": [
|
||||
"tree-select"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/indexes/",
|
||||
"pages": [
|
||||
"indexes",
|
||||
"base/index",
|
||||
"custom/index"
|
||||
]
|
||||
}
|
||||
],
|
||||
"themeLocation": "theme.json",
|
||||
"usingComponents": {
|
||||
"t-demo": "./components/demo-block/index",
|
||||
"t-demo-header": "./components/demo-header/index",
|
||||
"t-button": "tdesign-miniprogram/button/button",
|
||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||
"t-navbar": "tdesign-miniprogram/navbar/navbar"
|
||||
},
|
||||
"window": {
|
||||
"navigationBarTitleText": "TDesign",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "@navTxtStyle"
|
||||
},
|
||||
"resolveAlias": {
|
||||
"@behaviors/*": "behaviors/*"
|
||||
},
|
||||
"sitemapLocation": "sitemap.json",
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"rendererOptions": {
|
||||
"skyline": {
|
||||
"disableABTest": true,
|
||||
"defaultDisplayBlock": true,
|
||||
"defaultContentBox": true,
|
||||
"sdkVersionBegin": "3.4.3",
|
||||
"sdkVersionEnd": "15.255.255"
|
||||
}
|
||||
}
|
||||
}
|
||||
386
ProjectLiaisonForm/app.wxss
Normal file
386
ProjectLiaisonForm/app.wxss
Normal file
File diff suppressed because one or more lines are too long
BIN
ProjectLiaisonForm/assets/TDesign-logo_dark.png
Normal file
BIN
ProjectLiaisonForm/assets/TDesign-logo_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
BIN
ProjectLiaisonForm/assets/TDesign-logo_light.png
Normal file
BIN
ProjectLiaisonForm/assets/TDesign-logo_light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
10
ProjectLiaisonForm/behaviors/skyline.js
Normal file
10
ProjectLiaisonForm/behaviors/skyline.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = Behavior({
|
||||
data: {
|
||||
skylineRender: false,
|
||||
},
|
||||
lifetimes: {
|
||||
created() {
|
||||
this.setData({ skylineRender: this.renderer === 'skyline' });
|
||||
},
|
||||
},
|
||||
});
|
||||
1
ProjectLiaisonForm/components/demo-block/index.d.ts
vendored
Normal file
1
ProjectLiaisonForm/components/demo-block/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
26
ProjectLiaisonForm/components/demo-block/index.js
Normal file
26
ProjectLiaisonForm/components/demo-block/index.js
Normal file
@@ -0,0 +1,26 @@
|
||||
Component({
|
||||
options: {
|
||||
multipleSlots: true,
|
||||
},
|
||||
properties: {
|
||||
title: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
desc: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
operList: Array,
|
||||
padding: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
clickHandle(e) {
|
||||
const { type } = e.currentTarget.dataset;
|
||||
this.triggerEvent('clickoper', type);
|
||||
},
|
||||
},
|
||||
});
|
||||
4
ProjectLiaisonForm/components/demo-block/index.json
Normal file
4
ProjectLiaisonForm/components/demo-block/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared"
|
||||
}
|
||||
18
ProjectLiaisonForm/components/demo-block/index.wxml
Normal file
18
ProjectLiaisonForm/components/demo-block/index.wxml
Normal file
@@ -0,0 +1,18 @@
|
||||
<view class="demo-block {{!title && 'demo-block_notitle'}}">
|
||||
<view wx:if="{{ title || desc }}" class="demo-block__header">
|
||||
<view wx:if="{{ title }}" class="demo-block__header-title">{{ title }}</view>
|
||||
<view wx:if="{{ desc }}" class="demo-block__header-desc {{!title && 'demo-block_subtitle' }}">{{ desc }}</view>
|
||||
<!-- <slot name="title-right" /> -->
|
||||
</view>
|
||||
<view wx:for="{{ operList }}" wx:for-item="operItem" wx:key="oper" class="demo-block__oper">
|
||||
<view wx:if="{{ operItem.title }}" class="demo-block__oper-subtitle">{{ operItem.title }}</view>
|
||||
<view wx:for="{{ operItem.btns }}" wx:for-item="btnItem" wx:key="btn">
|
||||
<t-button t-class="demo-block__oper-btn" size="large" block data-type="{{ btnItem.type }}" bind:tap="clickHandle">
|
||||
{{ btnItem.text }}
|
||||
</t-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="demo-block__slot {{padding ? 'with-padding' : ''}}">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
59
ProjectLiaisonForm/components/demo-block/index.wxss
Normal file
59
ProjectLiaisonForm/components/demo-block/index.wxss
Normal file
@@ -0,0 +1,59 @@
|
||||
.hotspot-expanded.relative {
|
||||
position: relative;
|
||||
}
|
||||
.hotspot-expanded::after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
.demo-block {
|
||||
margin: var(--td-spacer-4, 64rpx) 0 0;
|
||||
}
|
||||
.demo-block__header {
|
||||
color: var(--bg-color-demo-title);
|
||||
margin: 0 var(--td-spacer-2, 32rpx);
|
||||
}
|
||||
.demo-block__header-title {
|
||||
font-weight: 700;
|
||||
font-size: 36rpx;
|
||||
line-height: 52rpx;
|
||||
}
|
||||
.demo-block__header-desc {
|
||||
margin-top: var(--td-spacer, 16rpx);
|
||||
font-size: var(--td-font-size-base, 28rpx);
|
||||
white-space: pre-line;
|
||||
color: var(--bg-color-demo-desc);
|
||||
line-height: 22px;
|
||||
}
|
||||
.demo-block__oper {
|
||||
margin-top: var(--td-spacer, 16rpx);
|
||||
}
|
||||
.demo-block__oper-subtitle {
|
||||
font-size: var(--td-font-size-s, 24rpx);
|
||||
margin-bottom: var(--td-spacer-2, 32rpx);
|
||||
opacity: 0.4;
|
||||
}
|
||||
.demo-block__oper-btn {
|
||||
margin: 0 0 var(--td-spacer-2, 32rpx) 0;
|
||||
height: 96rpx;
|
||||
}
|
||||
.demo-block__slot {
|
||||
margin-top: var(--td-spacer-2, 32rpx);
|
||||
}
|
||||
.demo-block__slot.with-padding {
|
||||
margin-top: var(--td-spacer-2, 32rpx);
|
||||
margin-left: var(--td-spacer-2, 32rpx);
|
||||
margin-right: var(--td-spacer-2, 32rpx);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.demo-block_notitle {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.demo-block_notitle .demo-block_subtitle {
|
||||
margin-top: var(--td-spacer-3, 48rpx);
|
||||
}
|
||||
1
ProjectLiaisonForm/components/demo-header/index.d.ts
vendored
Normal file
1
ProjectLiaisonForm/components/demo-header/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
16
ProjectLiaisonForm/components/demo-header/index.js
Normal file
16
ProjectLiaisonForm/components/demo-header/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Component({
|
||||
options: {
|
||||
multipleSlots: true,
|
||||
},
|
||||
properties: {
|
||||
title: {
|
||||
type: String,
|
||||
},
|
||||
desc: {
|
||||
type: String,
|
||||
},
|
||||
notice: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
});
|
||||
7
ProjectLiaisonForm/components/demo-header/index.json
Normal file
7
ProjectLiaisonForm/components/demo-header/index.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar"
|
||||
}
|
||||
}
|
||||
8
ProjectLiaisonForm/components/demo-header/index.wxml
Normal file
8
ProjectLiaisonForm/components/demo-header/index.wxml
Normal file
@@ -0,0 +1,8 @@
|
||||
<block>
|
||||
<t-notice-bar visible content="{{notice}}" />
|
||||
<view class="demo-title">{{title}}</view>
|
||||
<view class="demo-desc">
|
||||
{{desc}}
|
||||
<slot name="desc" />
|
||||
</view>
|
||||
</block>
|
||||
1
ProjectLiaisonForm/components/pull-down-list/index.d.ts
vendored
Normal file
1
ProjectLiaisonForm/components/pull-down-list/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
declare const itemHeight: number;
|
||||
41
ProjectLiaisonForm/components/pull-down-list/index.js
Normal file
41
ProjectLiaisonForm/components/pull-down-list/index.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const itemHeight = 56 * 2;
|
||||
Component({
|
||||
data: {
|
||||
childBoxHeight: 0,
|
||||
},
|
||||
externalClasses: ['t-class'],
|
||||
properties: {
|
||||
defaultOpen: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
childArr: {
|
||||
type: Array,
|
||||
value: [],
|
||||
observer(childArr) {
|
||||
this.setData({
|
||||
childBoxHeight: this.data.defaultOpen ? itemHeight * childArr.length : 0,
|
||||
});
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
switchHandle() {
|
||||
const { childArr, childBoxHeight } = this.data;
|
||||
this.setData({
|
||||
childBoxHeight: childBoxHeight > 0 ? 0 : childArr.length * itemHeight,
|
||||
});
|
||||
},
|
||||
tapChild(e) {
|
||||
this.triggerEvent('click', e.target.dataset);
|
||||
},
|
||||
},
|
||||
});
|
||||
3
ProjectLiaisonForm/components/pull-down-list/index.json
Normal file
3
ProjectLiaisonForm/components/pull-down-list/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
12
ProjectLiaisonForm/components/pull-down-list/index.wxml
Normal file
12
ProjectLiaisonForm/components/pull-down-list/index.wxml
Normal file
@@ -0,0 +1,12 @@
|
||||
<view class="pullDownList t-class {{ childBoxHeight > 0 ? 'actived' : '' }}">
|
||||
<view class="switchBox" aria-role="button" aria-expanded="{{!!childBoxHeight}}" catch:tap="switchHandle">
|
||||
<view class="name">{{ name }}</view>
|
||||
<t-icon name="{{icon}}" size="48rpx" color="#A6A6A6" t-class="icon" aria-hidden />
|
||||
</view>
|
||||
<view class="childBox" style="height: {{ childBoxHeight }}rpx" aria-hidden="{{childBoxHeight ? '' : true}}">
|
||||
<view class="child" wx:for="{{childArr}}" wx:key="name" data-item="{{item}}" aria-role="button" bind:tap="tapChild">
|
||||
{{ item.name }} {{ item.label }}
|
||||
<t-icon name="chevron-right" color="var(--td-text-color-placeholder)" aria-hidden />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
50
ProjectLiaisonForm/components/pull-down-list/index.wxss
Normal file
50
ProjectLiaisonForm/components/pull-down-list/index.wxss
Normal file
@@ -0,0 +1,50 @@
|
||||
.pullDownList {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--td-bg-color-container);
|
||||
border-radius: 8rpx;
|
||||
margin-bottom: 24rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.pullDownList .switchBox {
|
||||
height: 120rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 32rpx;
|
||||
font-size: 32rpx;
|
||||
line-height: 48rpx;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
.pullDownList .name,
|
||||
.pullDownList .icon {
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
.pullDownList .name {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.pullDownList.actived .name {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.pullDownList.actived .icon {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.pullDownList .childBox {
|
||||
transition: height 0.3s;
|
||||
}
|
||||
.pullDownList .childBox .child {
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1rpx solid var(--td-component-stroke);
|
||||
height: 112rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-left: 32rpx;
|
||||
margin-right: 32rpx;
|
||||
font-size: 32rpx;
|
||||
opacity: 0.9;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
.pullDownList .childBox .child:last-of-type {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
60
ProjectLiaisonForm/components/trd-privacy/privacy.js
Normal file
60
ProjectLiaisonForm/components/trd-privacy/privacy.js
Normal file
@@ -0,0 +1,60 @@
|
||||
// components/privacy/privacy.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
name: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
date: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
winStyle: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
win: false,
|
||||
privacy: false,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
showPrivacyDetail() {
|
||||
this.setData({
|
||||
win: false,
|
||||
privacy: true,
|
||||
});
|
||||
},
|
||||
privacyConfirm() {
|
||||
this.setData({
|
||||
privacy: false,
|
||||
win: false,
|
||||
});
|
||||
wx.setStorageSync('TIMIShowPrivacy', true);
|
||||
},
|
||||
showPrivacyWin() {
|
||||
this.setData({
|
||||
win: true,
|
||||
});
|
||||
},
|
||||
},
|
||||
ready() {
|
||||
const TIMIShowPrivacy = wx.getStorageSync('TIMIShowPrivacy');
|
||||
if (!TIMIShowPrivacy) {
|
||||
this.setData({
|
||||
win: true,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
6
ProjectLiaisonForm/components/trd-privacy/privacy.json
Normal file
6
ProjectLiaisonForm/components/trd-privacy/privacy.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-button": "tdesign-miniprogram/button/button"
|
||||
}
|
||||
}
|
||||
39
ProjectLiaisonForm/components/trd-privacy/privacy.wxml
Normal file
39
ProjectLiaisonForm/components/trd-privacy/privacy.wxml
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- <view wx:if="{{privacy}}" class="privacy_wrap">
|
||||
<view class="privacy_safe_area">
|
||||
<view class="privacy_top">
|
||||
<view class="privacy_title">{{name}}服务声明</view>
|
||||
<view class="privacy_right">发布日期:{{date}}</view>
|
||||
<view class="privacy_right">生效日期:{{date}}</view>
|
||||
</view>
|
||||
<view class="privacy_content">
|
||||
<text class="privacy_bold">引言</text>
|
||||
<text decode="{{true}}" class="privacy_normal"
|
||||
>{{name}}是由深圳市腾讯计算机系统有限公司(以下简称“我们”)提供的产品,我们的注册地为深圳市南山区粤海街道麻岭社区科技中一路腾讯大厦35层。</text
|
||||
>
|
||||
<text decode="{{true}}" class="privacy_bold"
|
||||
>我们在此特别声明:\n1.本小程序产品功能的实现不涉及收集和处理用户(以下简称“您”)的任何个人信息。\n2.如果我们更新、改进或修改小程序产品功能,并因此导致我们需要处理您的个人信息的,我们将会依据适用法律的要求对本声明进行修订,并将修订后的内容通过弹框等形式通知您并获得您同意。</text
|
||||
>
|
||||
<text decode="{{true}}" class="privacy_normal">
|
||||
3.如果您对本声明有任何疑问或建议,您可以通过以下方式与我们取得联系:\n(1)将问题发送至Dataprivacy@tencent.com;\n(2)通过https://kf.qq.com/与我们联系;\n(3)将您的问题邮寄至下列地址:\n\n中国广东省深圳市南山区海天二路33号腾讯滨海大厦\n数据隐私保护部(收)\n邮编:518054\n\n我们将尽快审核所涉问题,并在15个工作日或法律法规规定的期限内予以反馈。
|
||||
</text>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<t-button class="t-design-button" theme="primary" bindtap="privacyConfirm">我已知晓</t-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{win}}" class="privacy_tips_win">
|
||||
<view class="privacy_win_content {{winStyle?'privacy_middle':''}}">
|
||||
<view class="privacy_tips_content"
|
||||
>我们将严格按照<text class="privacy_url" bindtap="showPrivacyDetail">《{{name}}服务声明》</text
|
||||
>向您提供服务,不会收集和处理您的个人信息。</view
|
||||
>
|
||||
<view class="privacy_tips_content"
|
||||
>如您对<text class="privacy_url" bindtap="showPrivacyDetail">《{{name}}服务声明》</text
|
||||
>有任何疑问或建议,可以通过声明内的联系方式向我们反馈。</view
|
||||
>
|
||||
<view class="footer">
|
||||
<t-button class="t-design-button" theme="primary" bindtap="privacyConfirm">我已知晓</t-button>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
137
ProjectLiaisonForm/components/trd-privacy/privacy.wxss
Normal file
137
ProjectLiaisonForm/components/trd-privacy/privacy.wxss
Normal file
@@ -0,0 +1,137 @@
|
||||
/* components/privacy/privacy.wxss */
|
||||
.privacy_wrap {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
background-color: #fff;
|
||||
color: #222;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.privacy_safe_area {
|
||||
width: 750rpx;
|
||||
height: 1180rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
.privacy_top {
|
||||
padding: 50rpx 40rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.privacy_btn_back::before {
|
||||
content: '<<';
|
||||
}
|
||||
.privacy_title {
|
||||
height: 100%;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
.privacy_right {
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
text-align: right;
|
||||
}
|
||||
.privacy_content {
|
||||
height: 790rpx;
|
||||
padding: 0 40rpx;
|
||||
overflow: auto;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
.privacy_bold {
|
||||
font-weight: 700;
|
||||
display: inline-block;
|
||||
padding-bottom: 12rpx;
|
||||
}
|
||||
.privacy_normal {
|
||||
text-indent: 2em;
|
||||
display: inline-block;
|
||||
padding-bottom: 12rpx;
|
||||
}
|
||||
.privacy_btn_confirm {
|
||||
width: 150rpx;
|
||||
height: 92rpx;
|
||||
padding: 0 85rpx;
|
||||
border-radius: 16rpx;
|
||||
border: #ccc solid 2rpx;
|
||||
background-color: #06c15f;
|
||||
font-size: 32rpx;
|
||||
text-align: center;
|
||||
line-height: 92rpx;
|
||||
color: #fff;
|
||||
margin: 30rpx auto 0;
|
||||
text-indent: 0;
|
||||
}
|
||||
.privacy_tips_win {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
color: #222;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.privacy_win_content {
|
||||
width: 100vw;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background: #fff;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
padding: 50rpx 40rpx;
|
||||
text-indent: 2em;
|
||||
animation: privacy_up 0.2s forwards;
|
||||
transform: translateY(100%);
|
||||
}
|
||||
@keyframes privacy_up {
|
||||
0% {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
.privacy_line {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.privacy_url {
|
||||
color: #576b95;
|
||||
text-indent: 0;
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.privacy_tips_content {
|
||||
line-height: 40rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.privacy_middle {
|
||||
width: 650rpx;
|
||||
left: 50%;
|
||||
bottom: 50%;
|
||||
transform: translate(-50%, 50%);
|
||||
border-radius: 24rpx;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-indent: 0;
|
||||
}
|
||||
.t-design-button {
|
||||
width: 300rpx;
|
||||
}
|
||||
1
ProjectLiaisonForm/demos/radio/basic/basic.d.ts
vendored
Normal file
1
ProjectLiaisonForm/demos/radio/basic/basic.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
ProjectLiaisonForm/demos/radio/basic/basic.js
Normal file
1
ProjectLiaisonForm/demos/radio/basic/basic.js
Normal file
@@ -0,0 +1 @@
|
||||
Component({});
|
||||
3
ProjectLiaisonForm/demos/radio/basic/basic.json
Normal file
3
ProjectLiaisonForm/demos/radio/basic/basic.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
4
ProjectLiaisonForm/demos/radio/basic/basic.wxml
Normal file
4
ProjectLiaisonForm/demos/radio/basic/basic.wxml
Normal file
@@ -0,0 +1,4 @@
|
||||
<view>
|
||||
<t-radio class="basic-radio" title="单行标题" name="radio1"></t-radio>
|
||||
<t-radio title="双行标题,长文本自动换行,该选项的描述是一段很长的内容" name="radio2"></t-radio>
|
||||
</view>
|
||||
0
ProjectLiaisonForm/demos/radio/basic/basic.wxss
Normal file
0
ProjectLiaisonForm/demos/radio/basic/basic.wxss
Normal file
1
ProjectLiaisonForm/demos/radio/group/group.d.ts
vendored
Normal file
1
ProjectLiaisonForm/demos/radio/group/group.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
22
ProjectLiaisonForm/demos/radio/group/group.js
Normal file
22
ProjectLiaisonForm/demos/radio/group/group.js
Normal file
@@ -0,0 +1,22 @@
|
||||
Component({
|
||||
properties: {
|
||||
items: {
|
||||
type: Array,
|
||||
value: [],
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
data: {
|
||||
currentValue: '',
|
||||
},
|
||||
methods: {
|
||||
onChange(event) {
|
||||
this.setData({
|
||||
currentValue: event.detail.name,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
3
ProjectLiaisonForm/demos/radio/group/group.json
Normal file
3
ProjectLiaisonForm/demos/radio/group/group.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
12
ProjectLiaisonForm/demos/radio/group/group.wxml
Normal file
12
ProjectLiaisonForm/demos/radio/group/group.wxml
Normal file
@@ -0,0 +1,12 @@
|
||||
<t-radio-group class="radio-group" bind:change="onChange" value="{{value}}">
|
||||
<t-radio
|
||||
wx:for="{{items}}"
|
||||
class="{{item.disabled ? 'radio-disabled' : ''}}"
|
||||
wx:key="index"
|
||||
title="{{item.title}}"
|
||||
name="{{item.name}}"
|
||||
disabled="{{item.disabled}}"
|
||||
data-bordered="{{item.bordered}}"
|
||||
label="{{item.label}}"
|
||||
></t-radio>
|
||||
</t-radio-group>
|
||||
0
ProjectLiaisonForm/demos/radio/group/group.wxss
Normal file
0
ProjectLiaisonForm/demos/radio/group/group.wxss
Normal file
85
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts
vendored
Normal file
85
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.d.ts
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
export default class ActionSheet extends SuperComponent {
|
||||
static show: (options: import("./show").ActionSheetShowOption) => WechatMiniprogram.Component.TrivialInstance;
|
||||
behaviors: string[];
|
||||
externalClasses: string[];
|
||||
properties: {
|
||||
align?: {
|
||||
type: StringConstructor;
|
||||
value?: "left" | "center";
|
||||
};
|
||||
cancelText?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
count?: {
|
||||
type: NumberConstructor;
|
||||
value?: number;
|
||||
};
|
||||
description?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
value?: (string | import("./type").ActionSheetItem)[];
|
||||
required?: boolean;
|
||||
};
|
||||
popupProps?: {
|
||||
type: ObjectConstructor;
|
||||
value?: import("../popup").TdPopupProps;
|
||||
};
|
||||
showCancel?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
showOverlay?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
theme?: {
|
||||
type: StringConstructor;
|
||||
value?: "list" | "grid";
|
||||
};
|
||||
usingCustomNavbar?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
visible?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
defaultVisible?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
};
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
gridThemeItems: any[];
|
||||
currentSwiperIndex: number;
|
||||
defaultPopUpProps: {};
|
||||
defaultPopUpzIndex: number;
|
||||
};
|
||||
controlledProps: {
|
||||
key: string;
|
||||
event: string;
|
||||
}[];
|
||||
observers: {
|
||||
'visible, items'(visible: boolean): void;
|
||||
};
|
||||
methods: {
|
||||
init(): void;
|
||||
memoInitialData(): void;
|
||||
splitGridThemeActions(): void;
|
||||
show(options: any): void;
|
||||
close(): void;
|
||||
onPopupVisibleChange({ detail }: {
|
||||
detail: any;
|
||||
}): void;
|
||||
onSwiperChange(e: WechatMiniprogram.TouchEvent): void;
|
||||
onSelect(event: WechatMiniprogram.TouchEvent): void;
|
||||
onCancel(): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{chunk}from"../common/utils";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import{ActionSheetTheme,show}from"./show";import props from"./props";import useCustomNavbar from"../mixins/using-custom-navbar";const{prefix:prefix}=config,name=`${prefix}-action-sheet`;let ActionSheet=class extends SuperComponent{constructor(){super(...arguments),this.behaviors=[useCustomNavbar],this.externalClasses=[`${prefix}-class`,`${prefix}-class-content`,`${prefix}-class-cancel`],this.properties=Object.assign({},props),this.data={prefix:prefix,classPrefix:name,gridThemeItems:[],currentSwiperIndex:0,defaultPopUpProps:{},defaultPopUpzIndex:11500},this.controlledProps=[{key:"visible",event:"visible-change"}],this.observers={"visible, items"(e){e&&this.init()}},this.methods={init(){this.memoInitialData(),this.splitGridThemeActions()},memoInitialData(){this.initialData=Object.assign(Object.assign({},this.properties),this.data)},splitGridThemeActions(){this.data.theme===ActionSheetTheme.Grid&&this.setData({gridThemeItems:chunk(this.data.items,this.data.count)})},show(e){this.setData(Object.assign(Object.assign(Object.assign({},this.initialData),e),{visible:!0})),this.splitGridThemeActions(),this.autoClose=!0,this._trigger("visible-change",{visible:!0})},close(){this.triggerEvent("close",{trigger:"command"}),this._trigger("visible-change",{visible:!1})},onPopupVisibleChange({detail:e}){e.visible||(this.triggerEvent("close",{trigger:"overlay"}),this._trigger("visible-change",{visible:!1})),this.autoClose&&(this.setData({visible:!1}),this.autoClose=!1)},onSwiperChange(e){const{current:t}=e.detail;this.setData({currentSwiperIndex:t})},onSelect(e){const{currentSwiperIndex:t,items:i,gridThemeItems:s,count:o,theme:r}=this.data,{index:n}=e.currentTarget.dataset,a=r===ActionSheetTheme.Grid,h=a?s[t][n]:i[n],c=a?n+t*o:n;h&&(this.triggerEvent("selected",{selected:h,index:c}),h.disabled||(this.triggerEvent("close",{trigger:"select"}),this._trigger("visible-change",{visible:!1})))},onCancel(){this.triggerEvent("cancel"),this.autoClose&&(this.setData({visible:!1}),this.autoClose=!1)}}}};ActionSheet.show=show,ActionSheet=__decorate([wxComponent()],ActionSheet);export default ActionSheet;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"t-icon":"../icon/icon","t-popup":"../popup/popup","t-grid":"../grid/grid","t-grid-item":"../grid-item/grid-item"}}
|
||||
@@ -0,0 +1 @@
|
||||
<wxs src="./action-sheet.wxs" module="_this"/><wxs src="../common/utils.wxs" module="_"/><import src="./template/list.wxml"/><import src="./template/grid.wxml"/><view id="{{classPrefix}}" style="{{_._style([style, customStyle])}}" class="{{classPrefix}} class {{prefix}}-class"><t-popup visible="{{visible}}" placement="bottom" usingCustomNavbar="{{usingCustomNavbar}}" bind:visible-change="onPopupVisibleChange" show-overlay="{{showOverlay}}" z-index="{{ popupProps.zIndex || defaultPopUpzIndex }}" overlay-props="{{ popupProps.overlayProps || defaultPopUpProps }}"><view class="{{_.cls(classPrefix + '__content', [['grid', gridThemeItems.length]])}} {{prefix}}-class-content" tabindex="0"><view wx:if="{{description}}" tabindex="0" class="{{_.cls(classPrefix + '__description', [align])}}">{{description}}</view><block wx:if="{{gridThemeItems.length}}"><template is="grid" data="{{classPrefix, prefix, gridThemeItems, count, currentSwiperIndex}}"/></block><view wx:elif="{{items && items.length}}" class="{{classPrefix}}__list"><block wx:for="{{ items }}" wx:key="index"><template is="list" data="{{index, classPrefix, listThemeItemClass: _.cls(classPrefix + '__list-item', [align, [disabled, item.disabled]]), item}}"/></block></view></view><slot/><view wx:if="{{showCancel}}" class="{{classPrefix}}__footer"><view class="{{classPrefix}}__gap-{{theme}}"/><view class="{{classPrefix}}__cancel {{prefix}}-class-cancel" hover-class="{{classPrefix}}__cancel--hover" hover-stay-time="70" bind:tap="onCancel" aria-role="button">{{ cancelText || '取消' }}</view></view></t-popup></view>
|
||||
@@ -0,0 +1,19 @@
|
||||
var getListThemeItemClass = function (props) {
|
||||
var classPrefix = props.classPrefix;
|
||||
var item = props.item;
|
||||
var prefix = props.prefix;
|
||||
var classList = [classPrefix + '__list-item'];
|
||||
if (item.disabled) {
|
||||
classList.push(prefix + '-is-disabled');
|
||||
}
|
||||
return classList.join(' ');
|
||||
};
|
||||
|
||||
var isImage = function (name) {
|
||||
return name.indexOf('/') !== -1;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getListThemeItemClass: getListThemeItemClass,
|
||||
isImage: isImage,
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
@import '../common/style/index.wxss';.t-action-sheet__content{color:var(--td-action-sheet-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));border-top-left-radius:var(--td-action-sheet-border-radius,var(--td-radius-extra-large,24rpx));border-top-right-radius:var(--td-action-sheet-border-radius,var(--td-radius-extra-large,24rpx));background-color:var(--td-bg-color-container,var(--td-font-white-1,#fff));overflow:hidden}.t-action-sheet__content--grid{padding-top:16rpx}.t-action-sheet__content:focus{outline:0}.t-action-sheet__grid{padding-bottom:16rpx}.t-action-sheet__grid--swiper{padding-bottom:48rpx}.t-action-sheet__description{color:var(--td-action-sheet-description-color,var(--td-text-color-placeholder,var(--td-font-gray-3,rgba(0,0,0,.4))));line-height:44rpx;font-size:28rpx;text-align:var(--td-action-sheet-text-align,center);padding:24rpx 32rpx;position:relative}.t-action-sheet__description:focus{outline:0}.t-action-sheet__description::after{content:'';display:block;position:absolute;top:unset;bottom:0;left:unset;right:unset;background-color:var(--td-action-sheet-border-color,var(--td-border-level-1-color,var(--td-gray-color-3,#e7e7e7)))}.t-action-sheet__description::after{height:1px;left:0;right:0;transform:scaleY(.5)}.t-action-sheet__description--left{text-align:left}.t-action-sheet__description--left::after{left:32rpx}.t-action-sheet__list-item{display:flex;align-items:center;justify-content:center;position:relative;height:var(--td-action-sheet-list-item-height,112rpx);padding:0 32rpx}.t-action-sheet__list-item::after{content:'';display:block;position:absolute;top:unset;bottom:0;left:unset;right:unset;background-color:var(--td-action-sheet-border-color,var(--td-border-level-1-color,var(--td-gray-color-3,#e7e7e7)))}.t-action-sheet__list-item::after{height:1px;left:0;right:0;transform:scaleY(.5)}.t-action-sheet__list-item:focus{outline:0}.t-action-sheet__list-item--left{justify-content:start}.t-action-sheet__list-item--left::after{left:32rpx}.t-action-sheet__list-item--disabled{color:var(--td-action-sheet-list-item-disabled-color,var(--td-text-color-disabled,var(--td-font-gray-4,rgba(0,0,0,.26))))}.t-action-sheet__list-item-text{font-size:var(--td-font-size-m,32rpx);word-wrap:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-action-sheet__list-item-icon{margin-right:16rpx}.t-action-sheet__list-item-icon--suffix{margin-left:auto}.t-action-sheet__swiper-wrap{margin-top:8rpx;position:relative}.t-action-sheet__footer{background-color:var(--td-bg-color-container,var(--td-font-white-1,#fff))}.t-action-sheet__gap-list{height:16rpx;background-color:var(--td-action-sheet-gap-color,var(--td-bg-color-page,var(--td-gray-color-1,#f3f3f3)))}.t-action-sheet__gap-grid{height:1rpx;background-color:var(--td-action-sheet-border-color,var(--td-border-level-1-color,var(--td-gray-color-3,#e7e7e7)))}.t-action-sheet__cancel{display:flex;align-items:center;justify-content:center;color:var(--td-action-sheet-cancel-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));height:var(--td-action-sheet-cancel-height,96rpx)}.t-action-sheet__dots{position:absolute;left:50%;bottom:32rpx;transform:translateX(-50%);display:flex;flex-direction:row}.t-action-sheet__dots-item{width:16rpx;height:16rpx;background-color:#dcdcdc;border-radius:50%;margin:0 16rpx;transition:all .4s ease-in}.t-action-sheet__dots-item.t-is-active{background-color:#0052d9}
|
||||
8
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/index.d.ts
vendored
Normal file
8
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/// <reference types="miniprogram-api-typings" />
|
||||
import { ActionSheetItem, ActionSheetTheme, ActionSheetShowOption } from './show';
|
||||
export { ActionSheetItem, ActionSheetTheme, ActionSheetShowOption };
|
||||
declare const _default: {
|
||||
show(options: ActionSheetShowOption): WechatMiniprogram.Component.TrivialInstance;
|
||||
close(options: ActionSheetShowOption): void;
|
||||
};
|
||||
export default _default;
|
||||
@@ -0,0 +1 @@
|
||||
import{show,close,ActionSheetTheme}from"./show";export{ActionSheetTheme};export default{show:e=>show(e),close:e=>close(e)};
|
||||
@@ -0,0 +1 @@
|
||||
const props={align:{type:String,value:"center"},cancelText:{type:String,value:""},count:{type:Number,value:8},description:{type:String,value:""},items:{type:Array,required:!0},popupProps:{type:Object,value:{}},showCancel:{type:Boolean,value:!0},showOverlay:{type:Boolean,value:!0},theme:{type:String,value:"list"},usingCustomNavbar:{type:Boolean,value:!1},visible:{type:Boolean,value:null},defaultVisible:{type:Boolean,value:!1}};export default props;
|
||||
26
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/show.d.ts
vendored
Normal file
26
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/action-sheet/show.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/// <reference types="miniprogram-api-typings" />
|
||||
/// <reference types="miniprogram-api-typings" />
|
||||
import { ActionSheetItem } from './type';
|
||||
export { ActionSheetItem };
|
||||
declare type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
|
||||
export declare enum ActionSheetTheme {
|
||||
List = "list",
|
||||
Grid = "grid"
|
||||
}
|
||||
interface ActionSheetProps {
|
||||
align: 'center' | 'left';
|
||||
cancelText?: string;
|
||||
count?: number;
|
||||
description: string;
|
||||
items: Array<string | ActionSheetItem>;
|
||||
showCancel?: boolean;
|
||||
theme?: ActionSheetTheme;
|
||||
visible: boolean;
|
||||
defaultVisible?: boolean;
|
||||
}
|
||||
export interface ActionSheetShowOption extends Omit<ActionSheetProps, 'visible'> {
|
||||
context?: Context;
|
||||
selector?: string;
|
||||
}
|
||||
export declare const show: (options: ActionSheetShowOption) => WechatMiniprogram.Component.TrivialInstance;
|
||||
export declare const close: (options: ActionSheetShowOption) => void;
|
||||
@@ -0,0 +1 @@
|
||||
import{__rest}from"tslib";import{getInstance}from"../common/utils";export var ActionSheetTheme;!function(t){t.List="list",t.Grid="grid"}(ActionSheetTheme||(ActionSheetTheme={}));export const show=function(t){const e=Object.assign({},t),{context:o,selector:n="#t-action-sheet"}=e,c=__rest(e,["context","selector"]),s=getInstance(o,n);if(s)return s.show(Object.assign({},c)),s;console.error("未找到组件,请确认 selector && context 是否正确")};export const close=function(t){const{context:e,selector:o="#t-action-sheet"}=Object.assign({},t),n=getInstance(e,o);n&&n.close()};
|
||||
@@ -0,0 +1 @@
|
||||
<template name="grid"><block wx:if="{{gridThemeItems.length === 1}}"><t-grid align="center" t-class="{{classPrefix}}__grid" column="{{count / 2}}" class="{{classPrefix}}__single-wrap"><t-grid-item t-class="{{classPrefix}}__grid-item" class="{{classPrefix}}__square" wx:for="{{gridThemeItems[0]}}" wx:key="index" bind:tap="onSelect" data-index="{{index}}" icon="{{ { name: item.icon, color: item.color } }}" text="{{item.label || ''}}" image="{{item.image || ''}}" style="--td-grid-item-text-color: {{item.color}}"></t-grid-item></t-grid></block><block wx:elif="{{gridThemeItems.length > 1}}"><view class="{{classPrefix}}__swiper-wrap"><swiper style="height: 456rpx" autoplay="{{false}}" current="{{currentSwiperIndex}}" bindchange="onSwiperChange"><swiper-item wx:for="{{gridThemeItems}}" wx:key="index"><t-grid align="center" t-class="{{classPrefix}}__grid {{classPrefix}}__grid--swiper" column="{{count / 2}}"><t-grid-item t-class="{{classPrefix}}__grid-item" class="{{classPrefix}}__square" wx:for="{{item}}" wx:key="index" data-index="{{index}}" bind:tap="onSelect" icon="{{ { name: item.icon, color: item.color } }}" text="{{item.label || ''}}" image="{{item.image || ''}}" style="--td-grid-item-text-color: {{item.color}}"></t-grid-item></t-grid></swiper-item></swiper><view class="{{classPrefix}}__nav"><view class="{{classPrefix}}__dots"><view wx:for="{{gridThemeItems.length}}" wx:key="index" class="{{classPrefix}}__dots-item {{index === currentSwiperIndex ? prefix + '-is-active' : ''}}"/></view></view></view></block></template>
|
||||
@@ -0,0 +1 @@
|
||||
<template name="list"><view data-index="{{index}}" style="{{ item.color ? 'color: ' + item.color : '' }}" class="{{listThemeItemClass}}" bind:tap="onSelect" aria-role="{{ariaRole || 'button'}}" aria-label="{{item.label || item}}" tabindex="0"><t-icon wx:if="{{item.icon}}" name="{{item.icon}}" class="{{classPrefix}}__list-item-icon" size="48rpx"></t-icon><view class="{{classPrefix}}__list-item-text">{{item.label || item}}</view><t-icon wx:if="{{item.suffixIcon}}" name="{{item.suffixIcon}}" class="{{classPrefix}}__list-item-icon {{classPrefix}}__list-item-icon--suffix" size="48rpx"></t-icon></view></template>
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
28
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts
vendored
Normal file
28
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { SuperComponent, RelationsOptions } from '../common/src/index';
|
||||
export default class AvatarGroup extends SuperComponent {
|
||||
externalClasses: string[];
|
||||
properties: import("./type").TdAvatarGroupProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
hasChild: boolean;
|
||||
length: number;
|
||||
className: string;
|
||||
};
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
relations: RelationsOptions;
|
||||
lifetimes: {
|
||||
attached(): void;
|
||||
ready(): void;
|
||||
};
|
||||
observers: {
|
||||
'cascading, size'(): void;
|
||||
};
|
||||
methods: {
|
||||
setClass(): void;
|
||||
handleMax(): void;
|
||||
onCollapsedItemClick(e: WechatMiniprogram.CustomEvent): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import avatarGroupProps from"./props";const{prefix:prefix}=config,name=`${prefix}-avatar-group`;let AvatarGroup=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-content`,`${prefix}-class-image`],this.properties=avatarGroupProps,this.data={prefix:prefix,classPrefix:name,hasChild:!0,length:0,className:""},this.options={multipleSlots:!0},this.relations={"../avatar/avatar":{type:"descendant"}},this.lifetimes={attached(){this.setClass()},ready(){this.setData({length:this.$children.length}),this.handleMax()}},this.observers={"cascading, size"(){this.setClass()}},this.methods={setClass(){const{cascading:e,size:t}=this.properties,s=e.split("-")[0],a=[name,`${prefix}-class`,`${name}-offset-${s}`,`${name}-offset-${s}-${t.indexOf("px")>-1?"medium":t||"medium"}`];this.setData({className:a.join(" ")})},handleMax(){const{max:e}=this.data,t=this.$children.length;if(!e||e>t)return;this.$children.splice(e,t-e).forEach((e=>{e.hide()}))},onCollapsedItemClick(e){this.triggerEvent("collapsed-item-click",e.detail)}}}};AvatarGroup=__decorate([wxComponent()],AvatarGroup);export default AvatarGroup;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"shared","usingComponents":{"t-avatar":"../avatar/avatar"}}
|
||||
@@ -0,0 +1 @@
|
||||
<wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{className}} class"><slot/><view class="{{classPrefix}}__collapse--slot"><slot name="collapse-avatar"/></view><view class="{{classPrefix}}__collapse--default" wx:if="{{max && (max < length)}}" bindtap="onCollapsedItemClick"><t-avatar t-class-image="{{prefix}}-avatar--border {{prefix}}-avatar--border-{{size}} {{prefix}}-class-image" t-class-content="{{prefix}}-class-content" size="{{size}}" shape="{{shape}}" icon="{{ collapseAvatar ? '' : 'user-add'}}" aria-role="none">{{collapseAvatar}}</t-avatar></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
const props={cascading:{type:String,value:"left-up"},collapseAvatar:{type:String},max:{type:Number},shape:{type:String},size:{type:String,value:""}};export default props;
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
22
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/avatar/avatar.d.ts
vendored
Normal file
22
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/avatar/avatar.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/// <reference types="miniprogram-api-typings" />
|
||||
import { SuperComponent, RelationsOptions } from '../common/src/index';
|
||||
export default class Avatar extends SuperComponent {
|
||||
options: WechatMiniprogram.Component.ComponentOptions;
|
||||
externalClasses: string[];
|
||||
properties: import("./type").TdAvatarProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
isShow: boolean;
|
||||
zIndex: number;
|
||||
systemInfo: WechatMiniprogram.WindowInfo | WechatMiniprogram.SystemInfo;
|
||||
};
|
||||
relations: RelationsOptions;
|
||||
observers: {
|
||||
icon(icon: any): void;
|
||||
};
|
||||
methods: {
|
||||
hide(): void;
|
||||
onLoadError(e: WechatMiniprogram.CustomEvent): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import avatarProps from"./props";import{setIcon,systemInfo}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-avatar`;let Avatar=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.externalClasses=[`${prefix}-class`,`${prefix}-class-image`,`${prefix}-class-icon`,`${prefix}-class-alt`,`${prefix}-class-content`],this.properties=avatarProps,this.data={prefix:prefix,classPrefix:name,isShow:!0,zIndex:0,systemInfo:systemInfo},this.relations={"../avatar-group/avatar-group":{type:"ancestor",linked(t){this.parent=t,this.setData({shape:this.data.shape||t.data.shape||"circle",size:this.data.size||t.data.size,bordered:!0})}}},this.observers={icon(t){const s=setIcon("icon",t,"");this.setData(Object.assign({},s))}},this.methods={hide(){this.setData({isShow:!1})},onLoadError(t){this.properties.hideOnLoadFailed&&this.setData({isShow:!1}),this.triggerEvent("error",t.detail)}}}};Avatar=__decorate([wxComponent()],Avatar);export default Avatar;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"shared","usingComponents":{"t-icon":"../icon/icon","t-badge":"../badge/badge","t-image":"../image/image"}}
|
||||
@@ -0,0 +1 @@
|
||||
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><wxs src="./avatar.wxs" module="_this"/><view class="{{classPrefix}}__wrapper class {{prefix}}-class" style="{{_._style([_this.getStyles(isShow), style, customStyle])}}"><t-badge color="{{badgeProps.color || ''}}" content="{{badgeProps.content || ''}}" count="{{badgeProps.count || 0}}" dot="{{badgeProps.dot || false}}" max-count="{{badgeProps.maxCount || 99}}" offset="{{badgeProps.offset || []}}" shape="{{badgeProps.shape || 'circle'}}" show-zero="{{badgeProps.showZero || false}}" size="{{badgeProps.size || 'medium'}}" t-class="{{badgeProps.tClass}}" t-class-content="{{badgeProps.tClassContent}}" t-class-count="{{badgeProps.tClassCount}}"><view class="{{_this.getClass(classPrefix, size || 'medium', shape, bordered)}} {{prefix}}-class-image" style="{{_this.getSize(size, systemInfo)}}" aria-label="{{ ariaLabel || alt ||'头像'}}" aria-role="{{ ariaRole || 'img'}}" aria-hidden="{{ ariaHidden }}"><t-image wx:if="{{image}}" t-class="{{prefix}}-image {{classPrefix}}__image" t-class-load="{{prefix}}-class-alt" style="{{imageProps && imageProps.style || ''}}" src="{{image}}" mode="{{imageProps && imageProps.mode || 'aspectFill'}}" lazy="{{imageProps && imageProps.lazy || false}}" loading="{{imageProps && imageProps.loading || 'default'}}" shape="{{imageProps && imageProps.shape || 'round'}}" webp="{{imageProps && imageProps.webp || false}}" error="{{alt || 'default'}}" bind:error="onLoadError"/><template wx:elif="{{iconName || _.isNoEmptyObj(iconData)}}" is="icon" data="{{tClass: classPrefix + '__icon ' + prefix + '-class-icon', name: iconName, ...iconData}}"/><view wx:else class="{{classPrefix}}__text {{prefix}}-class-content"><slot/></view></view></t-badge></view>
|
||||
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
getClass: function (classPrefix, size, shape, bordered) {
|
||||
var hasPx = (size || '').indexOf('px') > -1;
|
||||
var borderSize = hasPx ? 'medium' : size;
|
||||
var classNames = [
|
||||
classPrefix,
|
||||
classPrefix + (shape === 'round' ? '--round' : '--circle'),
|
||||
bordered ? classPrefix + '--border' + ' ' + classPrefix + '--border-' + borderSize : '',
|
||||
hasPx ? '' : classPrefix + '--' + size,
|
||||
];
|
||||
return classNames.join(' ');
|
||||
},
|
||||
|
||||
getSize: function (size = 'medium', systemInfo) {
|
||||
var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);
|
||||
|
||||
if (res && res.length >= 3) {
|
||||
var px = res[1];
|
||||
if (res[2] === 'rpx') {
|
||||
px = Math.floor((systemInfo.windowWidth * res[1]) / 750);
|
||||
}
|
||||
|
||||
return 'width:' + size + ';height:' + size + ';font-size:' + ((px / 8) * 3 + 2) + 'px';
|
||||
}
|
||||
},
|
||||
|
||||
getStyles: function (isShow) {
|
||||
return isShow ? '' : 'display: none;';
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
@import '../common/style/index.wxss';.t-avatar{display:flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:var(--td-avatar-bg-color,var(--td-brand-color-light-active,var(--td-primary-color-2,#d9e1ff)));color:var(--td-avatar-content-color,var(--td-brand-color,var(--td-primary-color-7,#0052d9)))}.t-avatar__wrapper{display:inline-flex;position:relative;vertical-align:top;margin-left:var(--td-avatar-margin-left,0)}.t-avatar--large{width:var(--td-avatar-large-width,128rpx);height:var(--td-avatar-large-width,128rpx);font-size:var(--td-avatar-text-large-font-size,var(--td-font-size-xl,40rpx))}.t-avatar--large .t-avatar__icon{font-size:var(--td-avatar-icon-large-font-size,64rpx)}.t-avatar--medium{width:var(--td-avatar-medium-width,96rpx);height:var(--td-avatar-medium-width,96rpx);font-size:var(--td-avatar-text-medium-font-size,var(--td-font-size-m,32rpx))}.t-avatar--medium .t-avatar__icon{font-size:var(--td-avatar-icon-medium-font-size,48rpx)}.t-avatar--small{width:var(--td-avatar-small-width,80rpx);height:var(--td-avatar-small-width,80rpx);font-size:var(--td-avatar-text-small-font-size,var(--td-font-size-base,28rpx))}.t-avatar--small .t-avatar__icon{font-size:var(--td-avatar-icon-small-font-size,40rpx)}.t-avatar .t-image,.t-avatar__image{width:100%;height:100%}.t-avatar--circle{border-radius:var(--td-avatar-circle-border-radius,var(--td-radius-circle,50%));overflow:hidden}.t-avatar--round{border-radius:var(--td-avatar-round-border-radius,var(--td-radius-default,12rpx));overflow:hidden}.t-avatar__icon,.t-avatar__text{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.t-avatar__icon:empty,.t-avatar__text:empty{width:0;height:0}.t-avatar--border{border-color:var(--td-avatar-border-color,#fff);border-style:solid}.t-avatar--border-small{border-width:var(--td-avatar-border-width-small,2rpx)}.t-avatar--border-medium{border-width:var(--td-avatar-border-width-medium,4rpx)}.t-avatar--border-large{border-width:var(--td-avatar-border-width-large,6rpx)}
|
||||
@@ -0,0 +1 @@
|
||||
const props={alt:{type:String,value:""},badgeProps:{type:Object},bordered:{type:Boolean,value:!1},hideOnLoadFailed:{type:Boolean,value:!1},icon:{type:null},image:{type:String,value:""},imageProps:{type:Object},shape:{type:String},size:{type:String,value:""}};export default props;
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
26
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/back-top/back-top.d.ts
vendored
Normal file
26
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/back-top/back-top.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { SuperComponent, RelationsOptions } from '../common/src/index';
|
||||
export default class BackTop extends SuperComponent {
|
||||
externalClasses: string[];
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
properties: import("./type").TdBackTopProps;
|
||||
relations: RelationsOptions;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
_icon: any;
|
||||
hidden: boolean;
|
||||
};
|
||||
observers: {
|
||||
icon(): void;
|
||||
scrollTop(value: number): void;
|
||||
};
|
||||
lifetimes: {
|
||||
ready(): void;
|
||||
};
|
||||
methods: {
|
||||
setIcon(v: any): void;
|
||||
toTop(): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{calcIcon}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-back-top`;let BackTop=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-icon`,`${prefix}-class-text`],this.options={multipleSlots:!0},this.properties=props,this.relations={"../pull-down-refresh/pull-down-refresh":{type:"ancestor"}},this.data={prefix:prefix,classPrefix:name,_icon:null,hidden:!0},this.observers={icon(){this.setIcon()},scrollTop(o){const{visibilityHeight:t}=this.properties;this.setData({hidden:o<t})}},this.lifetimes={ready(){const{icon:o}=this.properties;this.setIcon(o)}},this.methods={setIcon(o){this.setData({_icon:calcIcon(o,"backtop")})},toTop(){var o;this.triggerEvent("to-top"),this.$parent?(null===(o=this.$parent)||void 0===o||o.setScrollTop(0),this.setData({hidden:!0})):wx.pageScrollTo({scrollTop:0,duration:300})}}}};BackTop=__decorate([wxComponent()],BackTop);export default BackTop;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"t-icon":"../icon/icon"}}
|
||||
@@ -0,0 +1 @@
|
||||
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="class {{prefix}}-class {{_.cls(classPrefix, [['fixed', fixed], theme])}}" bindtap="toTop" aria-role="button" hidden="{{hidden}}"><view class="{{classPrefix}}__icon" aria-hidden><slot name="icon"/><template wx:if="{{_icon}}" is="icon" data="{{tClass: prefix + '-class-icon', ..._icon }}"/></view><view wx:if="{{!!text}}" class="{{classPrefix}}__text--{{theme}} {{prefix}}-class-text">{{text}}</view><slot/></view>
|
||||
@@ -0,0 +1 @@
|
||||
@import '../common/style/index.wxss';.t-back-top{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;overflow:hidden;box-sizing:border-box;transition:height .2s;height:auto}.t-back-top--fixed{position:fixed;right:var(--td-spacer,16rpx);bottom:calc(var(--td-spacer-2,32rpx) + env(safe-area-inset-bottom))}.t-back-top--round,.t-back-top--round-dark{width:96rpx;height:96rpx;border-radius:var(--td-back-top-round-border-radius,var(--td-radius-circle,50%))}.t-back-top--half-round,.t-back-top--round{color:var(--td-back-top-round-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))));border:1rpx solid var(--td-back-top-round-border-color,var(--td-component-border,var(--td-gray-color-4,#dcdcdc)));background-color:var(--td-back-top-round-bg-color,var(--td-bg-color-container,var(--td-font-white-1,#fff)))}.t-back-top--half-round-dark,.t-back-top--round-dark{color:var(--td-back-top-round-dark-color,var(--td-text-color-anti,var(--td-font-white-1,#fff)));background-color:var(--td-back-top-round-dark-bg-color,var(--td-gray-color-13,#242424))}.t-back-top--half-round,.t-back-top--half-round-dark{width:120rpx;height:80rpx;border-radius:0;border-top-left-radius:var(--td-back-top-half-round-border-radius,var(--td-radius-round,999px));border-bottom-left-radius:var(--td-back-top-half-round-border-radius,var(--td-radius-round,999px));flex-direction:row;right:0}.t-back-top__text--half-round,.t-back-top__text--half-round-dark,.t-back-top__text--round,.t-back-top__text--round-dark{font-size:var(--td-font-size,20rpx);line-height:24rpx}.t-back-top__text--half-round,.t-back-top__text--half-round-dark{width:48rpx}.t-back-top__icon:not(:empty)+.t-back-top__text--half-round,.t-back-top__icon:not(:empty)+.t-back-top__text--half-round-dark{margin-left:8rpx}.t-back-top__icon{display:flex;justify-content:center;align-items:center;font-size:44rpx}
|
||||
@@ -0,0 +1 @@
|
||||
const props={fixed:{type:Boolean,value:!0},icon:{type:null,value:!0},scrollTop:{type:Number,value:0},style:{type:String,value:""},text:{type:String,value:""},theme:{type:String,value:"round"},visibilityHeight:{type:Number,value:200}};export default props;
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
21
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts
vendored
Normal file
21
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
import type { TdBadgeProps } from './type';
|
||||
export interface BadgeProps extends TdBadgeProps {
|
||||
}
|
||||
export default class Badge extends SuperComponent {
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
externalClasses: string[];
|
||||
properties: TdBadgeProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
value: string;
|
||||
labelID: string;
|
||||
descriptionID: string;
|
||||
};
|
||||
lifetimes: {
|
||||
ready(): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{uniqueFactory}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-badge`,getUniqueID=uniqueFactory("badge");let Badge=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.externalClasses=[`${prefix}-class`,`${prefix}-class-count`,`${prefix}-class-content`],this.properties=props,this.data={prefix:prefix,classPrefix:name,value:"",labelID:"",descriptionID:""},this.lifetimes={ready(){const e=getUniqueID();this.setData({labelID:`${e}_label`,descriptionID:`${e}_description`})}}}};Badge=__decorate([wxComponent()],Badge);export default Badge;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"apply-shared","usingComponents":{}}
|
||||
@@ -0,0 +1 @@
|
||||
<wxs src="./badge.wxs" module="_this"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{_this.getBadgeOuterClass({shape})}} class {{prefix}}-class" aria-labelledby="{{labelID}}" aria-describedby="{{descriptionID}}" aria-role="{{ ariaRole || 'option'}}"><view id="{{labelID}}" class="{{classPrefix}}__content {{prefix}}-class-content" aria-hidden="true"><slot wx:if="{{!content}}" class="{{classPrefix}}__content-slot"/><text wx:else class="{{classPrefix}}__content-text">{{content}}</text></view><view aria-hidden="true" aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}" wx:if="{{_this.isShowBadge({dot,count,showZero})}}" id="{{descriptionID}}" class="{{_this.getBadgeInnerClass({dot, size, shape, count})}} {{prefix}}-has-count {{prefix}}-class-count" style="{{_._style([_this.getBadgeStyles({color, offset})])}}" aria-hidden="true" aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}">{{ _this.getBadgeValue({dot, count, maxCount}) }}</view><slot name="count"/></view>
|
||||
@@ -0,0 +1,71 @@
|
||||
var getBadgeValue = function (props) {
|
||||
if (props.dot) {
|
||||
return '';
|
||||
}
|
||||
if (isNaN(props.count) || isNaN(props.maxCount)) {
|
||||
return props.count;
|
||||
}
|
||||
return parseInt(props.count) > props.maxCount ? props.maxCount + '+' : props.count;
|
||||
};
|
||||
|
||||
var hasUnit = function (unit) {
|
||||
return (
|
||||
unit.indexOf('px') > 0 ||
|
||||
unit.indexOf('rpx') > 0 ||
|
||||
unit.indexOf('em') > 0 ||
|
||||
unit.indexOf('rem') > 0 ||
|
||||
unit.indexOf('%') > 0 ||
|
||||
unit.indexOf('vh') > 0 ||
|
||||
unit.indexOf('vm') > 0
|
||||
);
|
||||
};
|
||||
|
||||
var getBadgeStyles = function (props) {
|
||||
var styleStr = '';
|
||||
if (props.color) {
|
||||
styleStr += 'background:' + props.color + ';';
|
||||
}
|
||||
if (props.offset[0]) {
|
||||
styleStr +=
|
||||
'left: calc(100% + ' + (hasUnit(props.offset[0].toString()) ? props.offset[0] : props.offset[0] + 'px') + ');';
|
||||
}
|
||||
if (props.offset[1]) {
|
||||
styleStr += 'top:' + (hasUnit(props.offset[1].toString()) ? props.offset[1] : props.offset[1] + 'px') + ';';
|
||||
}
|
||||
return styleStr;
|
||||
};
|
||||
|
||||
var getBadgeOuterClass = function (props) {
|
||||
var baseClass = 't-badge';
|
||||
var classNames = [baseClass, props.shape === 'ribbon' ? baseClass + '__ribbon-outer' : ''];
|
||||
return classNames.join(' ');
|
||||
};
|
||||
|
||||
var getBadgeInnerClass = function (props) {
|
||||
var baseClass = 't-badge';
|
||||
var classNames = [
|
||||
baseClass + '--basic',
|
||||
props.dot ? baseClass + '--dot' : '',
|
||||
baseClass + '--' + props.size,
|
||||
baseClass + '--' + props.shape,
|
||||
!props.dot && props.count ? baseClass + '--count' : '',
|
||||
];
|
||||
return classNames.join(' ');
|
||||
};
|
||||
|
||||
var isShowBadge = function (props) {
|
||||
if (props.dot) {
|
||||
return true;
|
||||
}
|
||||
if (!props.showZero && !isNaN(props.count) && parseInt(props.count) === 0) {
|
||||
return false;
|
||||
}
|
||||
if (props.count == null) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
module.exports.getBadgeValue = getBadgeValue;
|
||||
module.exports.getBadgeStyles = getBadgeStyles;
|
||||
module.exports.getBadgeOuterClass = getBadgeOuterClass;
|
||||
module.exports.getBadgeInnerClass = getBadgeInnerClass;
|
||||
module.exports.isShowBadge = isShowBadge;
|
||||
@@ -0,0 +1 @@
|
||||
@import '../common/style/index.wxss';.t-badge{position:relative;display:inline-flex;align-items:start}.t-badge--basic{z-index:100;padding:0 var(--td-badge-basic-padding,8rpx);font-size:var(--td-badge-font-size,var(--td-font-size-xs,var(--td-font-size,20rpx)));color:var(--td-badge-text-color,var(--td-text-color-anti,var(--td-font-white-1,#fff)));background-color:var(--td-badge-bg-color,var(--td-error-color,var(--td-error-color-6,#d54941)));text-align:center;height:var(--td-badge-basic-height,32rpx);line-height:var(--td-badge-basic-height,32rpx);font-weight:var(--td-badge-font-weight,600);border-radius:var(--td-badge-border-radius,4rpx)}.t-badge--dot{height:var(--td-badge-dot-size,16rpx);border-radius:50%;min-width:var(--td-badge-dot-size,16rpx);padding:0}.t-badge--count{min-width:var(--td-badge-basic-width,32rpx);white-space:nowrap;box-sizing:border-box}.t-badge--circle{border-radius:calc(var(--td-badge-basic-height,32rpx)/ 2)}.t-badge__ribbon-outer{position:absolute;top:0;right:0}.t-badge--ribbon{position:relative;display:inline-block;transform-origin:center center;transform:translate(calc(50% - var(--td-badge-basic-height,32rpx) + 1rpx),calc(-50% + var(--td-badge-basic-height,32rpx) - 1rpx)) rotate(45deg);border-radius:0}.t-badge--ribbon::after,.t-badge--ribbon::before{content:'';position:absolute;width:0;height:0;bottom:0;border-bottom:var(--td-badge-basic-height,32rpx) solid var(--td-badge-bg-color,var(--td-error-color,var(--td-error-color-6,#d54941)));font-size:0}.t-badge--ribbon::before{left:calc(-1 * var(--td-badge-basic-height,32rpx) + 1rpx);border-left:var(--td-badge-basic-height,32rpx) solid transparent}.t-badge--ribbon::after{right:calc(-1 * var(--td-badge-basic-height,32rpx) + 1rpx);border-right:var(--td-badge-basic-height,32rpx) solid transparent}.t-badge--bubble{border-radius:var(--td-badge-bubble-border-radius,20rpx 20rpx 20rpx 1px)}.t-badge--large{font-size:var(--td-badge-large-font-size,var(--td-font-size-s,24rpx));height:var(--td-badge-large-height,40rpx);min-width:var(--td-badge-large-height,40rpx);line-height:var(--td-badge-large-height,40rpx);padding:0 var(--td-badge-large-padding,10rpx)}.t-badge--large.t-badge--circle{border-radius:calc(var(--td-badge-large-height,40rpx)/ 2)}.t-badge__content:not(:empty)+.t-has-count{transform-origin:center center;transform:translate(-50%,-50%);position:absolute;left:100%;top:0}.t-badge__content-text{display:block;line-height:48rpx;color:var(--td-badge-content-text-color,var(--td-text-color-primary,var(--td-font-gray-1,rgba(0,0,0,.9))))}
|
||||
3
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/badge/index.d.ts
vendored
Normal file
3
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/badge/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './type';
|
||||
export * from './props';
|
||||
export * from './badge';
|
||||
@@ -0,0 +1 @@
|
||||
export*from"./type";export*from"./props";export*from"./badge";
|
||||
@@ -0,0 +1 @@
|
||||
const props={color:{type:String,value:""},content:{type:String,value:""},count:{type:null,value:0},dot:{type:Boolean,value:!1},externalClasses:{type:Array},maxCount:{type:Number,value:99},offset:{type:Array},shape:{type:String,value:"circle"},showZero:{type:Boolean,value:!1},size:{type:String,value:"medium"}};export default props;
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
36
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/button/button.d.ts
vendored
Normal file
36
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/button/button.d.ts
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
import type { TdButtonProps } from './type';
|
||||
export interface ButtonProps extends TdButtonProps {
|
||||
}
|
||||
export default class Button extends SuperComponent {
|
||||
externalClasses: string[];
|
||||
behaviors: string[];
|
||||
properties: TdButtonProps;
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
data: {
|
||||
prefix: string;
|
||||
className: string;
|
||||
classPrefix: string;
|
||||
};
|
||||
observers: {
|
||||
'theme, size, plain, block, shape, disabled, loading, variant'(): void;
|
||||
icon(icon: any): void;
|
||||
};
|
||||
lifetimes: {
|
||||
attached(): void;
|
||||
};
|
||||
methods: {
|
||||
setClass(): void;
|
||||
getuserinfo(e: any): void;
|
||||
contact(e: any): void;
|
||||
getphonenumber(e: any): void;
|
||||
error(e: any): void;
|
||||
opensetting(e: any): void;
|
||||
launchapp(e: any): void;
|
||||
chooseavatar(e: any): void;
|
||||
agreeprivacyauthorization(e: any): void;
|
||||
handleTap(e: any): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{canIUseFormFieldButton}from"../common/version";import{calcIcon}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-button`;let Button=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-icon`,`${prefix}-class-loading`],this.behaviors=canIUseFormFieldButton()?["wx://form-field-button"]:[],this.properties=props,this.options={multipleSlots:!0},this.data={prefix:prefix,className:"",classPrefix:name},this.observers={"theme, size, plain, block, shape, disabled, loading, variant"(){this.setClass()},icon(t){this.setData({_icon:calcIcon(t,"")})}},this.lifetimes={attached(){this.setClass()}},this.methods={setClass(){const t=[name,`${prefix}-class`,`${name}--${this.data.variant||"base"}`,`${name}--${this.data.theme||"default"}`,`${name}--${this.data.shape||"rectangle"}`,`${name}--size-${this.data.size||"medium"}`];this.data.block&&t.push(`${name}--block`),this.data.disabled&&t.push(`${name}--disabled`),this.data.ghost&&t.push(`${name}--ghost`),this.setData({className:t.join(" ")})},getuserinfo(t){this.triggerEvent("getuserinfo",t.detail)},contact(t){this.triggerEvent("contact",t.detail)},getphonenumber(t){this.triggerEvent("getphonenumber",t.detail)},error(t){this.triggerEvent("error",t.detail)},opensetting(t){this.triggerEvent("opensetting",t.detail)},launchapp(t){this.triggerEvent("launchapp",t.detail)},chooseavatar(t){this.triggerEvent("chooseavatar",t.detail)},agreeprivacyauthorization(t){this.triggerEvent("agreeprivacyauthorization",t.detail)},handleTap(t){this.data.disabled||this.data.loading||this.triggerEvent("tap",t)}}}};Button=__decorate([wxComponent()],Button);export default Button;
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"t-icon":"../icon/icon","t-loading":"../loading/loading"}}
|
||||
@@ -0,0 +1 @@
|
||||
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><button id="{{tId}}" style="{{_._style([style, customStyle])}}" data-custom="{{ customDataset }}" class="class {{className}}" form-type="{{disabled || loading ? '' : type}}" open-type="{{disabled || loading ? '' : openType}}" hover-stop-propagation="{{hoverStopPropagation}}" hover-start-time="{{hoverStartTime}}" hover-stay-time="{{hoverStayTime}}" lang="{{lang}}" session-from="{{sessionFrom}}" hover-class="{{disabled || loading ? '' : (hoverClass || classPrefix + '--hover')}}" send-message-title="{{sendMessageTitle}}" send-message-path="{{sendMessagePath}}" send-message-img="{{sendMessageImg}}" app-parameter="{{appParameter}}" show-message-card="{{showMessageCard}}" catch:tap="handleTap" bind:getuserinfo="getuserinfo" bind:contact="contact" bind:getphonenumber="getphonenumber" bind:error="error" bind:opensetting="opensetting" bind:launchapp="launchapp" bind:chooseavatar="chooseavatar" bind:agreeprivacyauthorization="agreeprivacyauthorization" aria-label="{{ariaLabel}}"><template wx:if="{{_icon}}" is="icon" data="{{tClass: classPrefix + '__icon ' + prefix + '-class-icon', ariaHidden: true, name: iconName, ..._icon}}"/><t-loading wx:if="{{loading}}" delay="{{loadingProps.delay || 0}}" duration="{{loadingProps.duration || 800}}" indicator="{{loadingProps.indicator || true}}" inheritColor="{{loadingProps.inheritColor || true}}" layout="{{loadingProps.layout || 'horizontal'}}" pause="{{loadingProps.pause || false}}" progress="{{loadingProps.progress || 0}}" reverse="{{loadingProps.reverse || false}}" size="{{loadingProps.size || '40rpx'}}" text="{{loadingProps.text || '' }}" theme="{{loadingProps.theme || 'circular'}}" loading t-class="{{classPrefix}}__loading {{classPrefix}}__loading--wrapper" t-class-indicator="{{classPrefix}}__loading--indicator {{prefix}}-class-loading"/><view class="{{classPrefix}}__content"><slot name="content"/><block wx:if="{{content}}">{{content}}</block><slot/></view><slot name="suffix"/></button>
|
||||
File diff suppressed because one or more lines are too long
3
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/button/index.d.ts
vendored
Normal file
3
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/button/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './props';
|
||||
export * from './type';
|
||||
export * from './button';
|
||||
@@ -0,0 +1 @@
|
||||
export*from"./props";export*from"./type";export*from"./button";
|
||||
@@ -0,0 +1 @@
|
||||
const props={appParameter:{type:String,value:""},block:{type:Boolean,value:!1},content:{type:String},customDataset:{type:null},disabled:{type:null,value:void 0},ghost:{type:Boolean,value:!1},hoverClass:{type:String,value:""},hoverStartTime:{type:Number,value:20},hoverStayTime:{type:Number,value:70},hoverStopPropagation:{type:Boolean,value:!1},icon:{type:null},lang:{type:String},loading:{type:Boolean,value:!1},loadingProps:{type:Object},openType:{type:String},phoneNumberNoQuotaToast:{type:Boolean,value:!0},sendMessageImg:{type:String,value:"截图"},sendMessagePath:{type:String,value:"当前分享路径"},sendMessageTitle:{type:String,value:"当前标题"},sessionFrom:{type:String,value:""},shape:{type:String,value:"rectangle"},showMessageCard:{type:Boolean,value:!1},size:{type:String,value:"medium"},style:{type:String,value:""},tId:{type:String,value:""},theme:{type:String,value:"default"},type:{type:String},variant:{type:String,value:"base"}};export default props;
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
@@ -0,0 +1 @@
|
||||
<wxs src="../common/utils.wxs" module="_"/><template name="calendar-header"><view class="{{class}} {{classPrefix}} {{switchMode !== 'none' ? classPrefix + '__with-action' : ''}}" id="{{tId}}"><view class="{{classPrefix}}__action" wx:if="{{switchMode !== 'none'}}"><view wx:if="{{switchMode === 'year-month'}}" class="{{_.cls(classPrefix + '__icon', [['disabled', preYearBtnDisable]])}}" data-disabled="{{preYearBtnDisable}}" data-type="pre-year" bindtap="handleSwitchModeChange"><t-icon name="chevron-left-double"/></view><view class="{{_.cls(classPrefix + '__icon', [['disabled', prevMonthBtnDisable]])}}" data-disabled="{{prevMonthBtnDisable}}" data-type="pre-month" bindtap="handleSwitchModeChange"><t-icon name="chevron-left"/></view></view><view class="{{classPrefix}}__title">{{ title }}</view><view class="{{classPrefix}}__action" wx:if="{{switchMode !== 'none'}}"><view class="{{_.cls(classPrefix + '__icon', [['disabled', nextMonthBtnDisable]])}}" data-disabled="{{nextMonthBtnDisable}}" data-type="next-month" bindtap="handleSwitchModeChange"><t-icon name="chevron-right"/></view><view wx:if="{{switchMode === 'year-month'}}" class="{{_.cls(classPrefix + '__icon', [['disabled', nextYearBtnDisable]])}}" data-disabled="{{nextYearBtnDisable}}" data-type="next-year" bindtap="handleSwitchModeChange"><t-icon name="chevron-right-double"/></view></view></view></template>
|
||||
62
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/calendar/calendar.d.ts
vendored
Normal file
62
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/calendar/calendar.d.ts
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/// <reference types="miniprogram-api-typings" />
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
import { TdCalendarProps } from './type';
|
||||
export interface CalendarProps extends TdCalendarProps {
|
||||
}
|
||||
export default class Calendar extends SuperComponent {
|
||||
behaviors: string[];
|
||||
externalClasses: string[];
|
||||
options: WechatMiniprogram.Component.ComponentOptions;
|
||||
properties: TdCalendarProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
months: any[];
|
||||
scrollIntoView: string;
|
||||
innerConfirmBtn: {};
|
||||
realLocalText: {};
|
||||
currentMonth: {};
|
||||
actionButtons: {
|
||||
preYearBtnDisable: boolean;
|
||||
prevMonthBtnDisable: boolean;
|
||||
nextMonthBtnDisable: boolean;
|
||||
nextYearBtnDisable: boolean;
|
||||
};
|
||||
};
|
||||
controlledProps: {
|
||||
key: string;
|
||||
event: string;
|
||||
}[];
|
||||
lifetimes: {
|
||||
created(): void;
|
||||
ready(): void;
|
||||
};
|
||||
observers: {
|
||||
type(v: any): void;
|
||||
confirmBtn(v: any): void;
|
||||
'firstDayOfWeek,minDate,maxDate'(firstDayOfWeek: any, minDate: any, maxDate: any): void;
|
||||
value(v: any): void;
|
||||
visible(v: any): void;
|
||||
format(v: any): void;
|
||||
};
|
||||
methods: {
|
||||
initialValue(): void;
|
||||
scrollIntoView(): void;
|
||||
getCurrentYearAndMonth(v: Date): {
|
||||
year: number;
|
||||
month: number;
|
||||
};
|
||||
updateActionButton(value: Date): void;
|
||||
calcCurrentMonth(newValue?: any): void;
|
||||
calcMonths(): void;
|
||||
close(trigger: any): void;
|
||||
onVisibleChange(): void;
|
||||
handleClose(): void;
|
||||
handleSelect(e: any): void;
|
||||
onTplButtonTap(): void;
|
||||
toTime(val: any): any;
|
||||
onScroll(e: any): void;
|
||||
getCurrentDate(): any;
|
||||
handleSwitchModeChange(e: any): void;
|
||||
};
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"t-popup":"../popup/popup","t-button":"../button/button","t-icon":"../icon/icon"}}
|
||||
@@ -0,0 +1 @@
|
||||
<wxs src="./calendar.wxs" module="_this"/><wxs src="../common/utils.wxs" module="_"/><t-popup wx:if="{{usePopup}}" class="class" visible="{{visible}}" usingCustomNavbar="{{usingCustomNavbar}}" bind:visible-change="onVisibleChange" placement="bottom"><include src="./template.wxml"/></t-popup><block wx:else><include src="./template.wxml"/></block>
|
||||
@@ -0,0 +1,44 @@
|
||||
function getDateLabel(monthItem, dateItem) {
|
||||
var weekdayText = ['日', '一', '二', '三', '四', '五', '六'];
|
||||
var weekday = (monthItem.weekdayOfFirstDay + dateItem.day - 1) % 7;
|
||||
var label = monthItem.month + 1 + '月' + dateItem.day + '日, 星期' + weekdayText[weekday];
|
||||
if (dateItem.type === 'start') {
|
||||
label = '开始日期:' + label;
|
||||
}
|
||||
if (dateItem.type === 'end') {
|
||||
label = '结束日期:' + label;
|
||||
}
|
||||
if (isDateSelected(dateItem)) {
|
||||
label = '已选中, ' + label;
|
||||
}
|
||||
if (dateItem.prefix) {
|
||||
label += ', ' + dateItem.prefix;
|
||||
}
|
||||
if (dateItem.suffix) {
|
||||
label += ', ' + dateItem.suffix;
|
||||
}
|
||||
return label;
|
||||
}
|
||||
|
||||
function isDateSelected(dateItem) {
|
||||
return ['start', 'end', 'selected', 'centre'].indexOf(dateItem.type) >= 0;
|
||||
}
|
||||
|
||||
function getMonthTitle(year, month, pattern = '') {
|
||||
// prettier-ignore
|
||||
var REGEXP = getRegExp('\{year\}|\{month\}', 'g');
|
||||
|
||||
return pattern.replace(REGEXP, function (match) {
|
||||
var replacements = {
|
||||
'{year}': year,
|
||||
'{month}': month < 10 ? '0' + month : month,
|
||||
};
|
||||
return replacements[match] || match;
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getDateLabel: getDateLabel,
|
||||
isDateSelected: isDateSelected,
|
||||
getMonthTitle: getMonthTitle,
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
2
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/calendar/index.d.ts
vendored
Normal file
2
ProjectLiaisonForm/miniprogram_npm/tdesign-miniprogram/calendar/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './type';
|
||||
export * from './calendar';
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user