@tuya-miniapp/smart-ui 2.5.1 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-zh_CN.md +14 -18
- package/README.md +17 -20
- package/dist/action-sheet/index.css +1 -1
- package/dist/action-sheet/index.js +8 -2
- package/dist/action-sheet/index.wxml +3 -2
- package/dist/action-sheet/index.wxss +1 -1
- package/dist/bottom-sheet/index.css +1 -1
- package/dist/bottom-sheet/index.js +1 -0
- package/dist/bottom-sheet/index.wxml +2 -2
- package/dist/bottom-sheet/index.wxss +1 -1
- package/dist/button/index.css +1 -1
- package/dist/button/index.wxss +1 -1
- package/dist/calendar/index.css +1 -1
- package/dist/calendar/index.wxss +1 -1
- package/dist/calendar-header/index.css +1 -1
- package/dist/calendar-header/index.wxss +1 -1
- package/dist/calendar-month/index.css +1 -1
- package/dist/calendar-month/index.wxss +1 -1
- package/dist/calendar-month-list/index.css +1 -1
- package/dist/calendar-month-list/index.wxss +1 -1
- package/dist/calendar-year-list/index.css +1 -1
- package/dist/calendar-year-list/index.wxss +1 -1
- package/dist/cascader/index.css +1 -1
- package/dist/cascader/index.wxml +2 -2
- package/dist/cascader/index.wxss +1 -1
- package/dist/cell/index.css +1 -1
- package/dist/cell/index.wxss +1 -1
- package/dist/cell-group/index.css +1 -1
- package/dist/cell-group/index.wxss +1 -1
- package/dist/checkbox/index.css +1 -1
- package/dist/checkbox/index.wxss +1 -1
- package/dist/circle/index.css +1 -1
- package/dist/circle/index.rjs +1 -0
- package/dist/circle/index.wxss +1 -1
- package/dist/collapse/index.css +1 -1
- package/dist/collapse/index.wxss +1 -1
- package/dist/collapse-item/index.css +1 -1
- package/dist/collapse-item/index.wxss +1 -1
- package/dist/common/index.css +1 -1
- package/dist/common/index.wxss +1 -1
- package/dist/common/style/hairline.css +1 -1
- package/dist/common/style/hairline.wxss +1 -1
- package/dist/common/style/mixins/hairline.css +1 -0
- package/dist/common/style/mixins/hairline.wxss +1 -0
- package/dist/common/style/var.css +1 -0
- package/dist/common/style/var.wxss +1 -0
- package/dist/common/utils.d.ts +2 -0
- package/dist/common/utils.js +14 -1
- package/dist/count-down/index.css +1 -1
- package/dist/count-down/index.wxss +1 -1
- package/dist/custom-keyboard/index.css +1 -1
- package/dist/custom-keyboard/index.wxss +1 -1
- package/dist/datetime-picker/index.css +1 -1
- package/dist/datetime-picker/index.js +136 -56
- package/dist/datetime-picker/index.wxml +1 -0
- package/dist/datetime-picker/index.wxss +1 -1
- package/dist/dialog/index.css +1 -1
- package/dist/dialog/index.wxss +1 -1
- package/dist/divider/index.css +1 -1
- package/dist/divider/index.wxss +1 -1
- package/dist/dropdown-item/index.css +1 -1
- package/dist/dropdown-item/index.wxss +1 -1
- package/dist/dropdown-menu/index.css +1 -1
- package/dist/dropdown-menu/index.wxss +1 -1
- package/dist/empty/index.css +1 -1
- package/dist/empty/index.wxss +1 -1
- package/dist/field/index.css +1 -1
- package/dist/field/index.wxss +1 -1
- package/dist/goods-action/index.css +1 -1
- package/dist/goods-action/index.wxss +1 -1
- package/dist/goods-action-button/index.css +1 -1
- package/dist/goods-action-button/index.wxss +1 -1
- package/dist/goods-action-icon/index.css +1 -1
- package/dist/goods-action-icon/index.wxss +1 -1
- package/dist/grid-item/index.css +1 -1
- package/dist/grid-item/index.wxss +1 -1
- package/dist/icon/index.css +1 -1
- package/dist/icon/index.wxss +1 -1
- package/dist/image/index.css +1 -1
- package/dist/image/index.wxss +1 -1
- package/dist/index-anchor/index.css +1 -1
- package/dist/index-anchor/index.wxss +1 -1
- package/dist/index-bar/index.css +1 -1
- package/dist/index-bar/index.wxss +1 -1
- package/dist/info/index.css +1 -1
- package/dist/info/index.wxml +1 -1
- package/dist/info/index.wxss +1 -1
- package/dist/loading/index.css +1 -1
- package/dist/loading/index.wxss +1 -1
- package/dist/nav-bar/index.css +1 -1
- package/dist/nav-bar/index.wxss +1 -1
- package/dist/normal-slider/index.css +1 -1
- package/dist/normal-slider/index.wxss +1 -1
- package/dist/notice-bar/index.css +1 -1
- package/dist/notice-bar/index.wxss +1 -1
- package/dist/notify/index.css +1 -1
- package/dist/notify/index.wxss +1 -1
- package/dist/overlay/index.css +1 -1
- package/dist/overlay/index.wxss +1 -1
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.js +1 -1
- package/dist/picker/index.wxml +1 -1
- package/dist/picker/index.wxs +1 -0
- package/dist/picker/index.wxss +1 -1
- package/dist/picker/shared.js +1 -1
- package/dist/picker-column/index.css +1 -1
- package/dist/picker-column/index.js +21 -14
- package/dist/picker-column/index.wxml +7 -6
- package/dist/picker-column/index.wxs +16 -5
- package/dist/picker-column/index.wxss +1 -1
- package/dist/popover/index.css +1 -1
- package/dist/popover/index.wxss +1 -1
- package/dist/popup/index.css +1 -1
- package/dist/popup/index.wxss +1 -1
- package/dist/progress/index.css +1 -1
- package/dist/progress/index.wxss +1 -1
- package/dist/radio/index.css +1 -1
- package/dist/radio/index.wxss +1 -1
- package/dist/rate/index.css +1 -1
- package/dist/rate/index.wxss +1 -1
- package/dist/search/index.css +1 -1
- package/dist/search/index.wxss +1 -1
- package/dist/sidebar/index.css +1 -1
- package/dist/sidebar/index.wxss +1 -1
- package/dist/sidebar-item/index.css +1 -1
- package/dist/sidebar-item/index.wxss +1 -1
- package/dist/skeleton/index.css +1 -1
- package/dist/skeleton/index.wxss +1 -1
- package/dist/slider/index.css +1 -1
- package/dist/slider/index.wxss +1 -1
- package/dist/stepper/index.css +1 -1
- package/dist/stepper/index.wxss +1 -1
- package/dist/steps/index.css +1 -1
- package/dist/steps/index.wxss +1 -1
- package/dist/swipe-cell/index.css +1 -1
- package/dist/swipe-cell/index.wxss +1 -1
- package/dist/switch/index.css +1 -1
- package/dist/switch/index.wxss +1 -1
- package/dist/tab/index.css +1 -1
- package/dist/tab/index.wxss +1 -1
- package/dist/tabbar/index.css +1 -1
- package/dist/tabbar/index.wxss +1 -1
- package/dist/tabbar-item/index.css +1 -1
- package/dist/tabbar-item/index.wxss +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.wxss +1 -1
- package/dist/tag/index.css +1 -1
- package/dist/tag/index.wxss +1 -1
- package/dist/toast/index.css +1 -1
- package/dist/toast/index.wxss +1 -1
- package/dist/tree-select/index.css +1 -1
- package/dist/tree-select/index.wxss +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +8 -2
- package/lib/action-sheet/index.wxml +3 -2
- package/lib/action-sheet/index.wxss +1 -1
- package/lib/bottom-sheet/index.css +1 -1
- package/lib/bottom-sheet/index.js +1 -0
- package/lib/bottom-sheet/index.wxml +2 -2
- package/lib/bottom-sheet/index.wxss +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.wxss +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.wxss +1 -1
- package/lib/calendar-header/index.css +1 -1
- package/lib/calendar-header/index.wxss +1 -1
- package/lib/calendar-month/index.css +1 -1
- package/lib/calendar-month/index.wxss +1 -1
- package/lib/calendar-month-list/index.css +1 -1
- package/lib/calendar-month-list/index.wxss +1 -1
- package/lib/calendar-year-list/index.css +1 -1
- package/lib/calendar-year-list/index.wxss +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.wxml +2 -2
- package/lib/cascader/index.wxss +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.wxss +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.wxss +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.wxss +1 -1
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.rjs +1 -0
- package/lib/circle/index.wxss +1 -1
- package/lib/collapse/index.css +1 -1
- package/lib/collapse/index.wxss +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.wxss +1 -1
- package/lib/common/index.css +1 -1
- package/lib/common/index.wxss +1 -1
- package/lib/common/style/hairline.css +1 -1
- package/lib/common/style/hairline.wxss +1 -1
- package/lib/common/style/mixins/hairline.css +1 -0
- package/lib/common/style/mixins/hairline.wxss +1 -0
- package/lib/common/style/var.css +1 -0
- package/lib/common/style/var.wxss +1 -0
- package/lib/common/utils.d.ts +2 -0
- package/lib/common/utils.js +17 -2
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.wxss +1 -1
- package/lib/custom-keyboard/index.css +1 -1
- package/lib/custom-keyboard/index.wxss +1 -1
- package/lib/datetime-picker/index.css +1 -1
- package/lib/datetime-picker/index.js +146 -70
- package/lib/datetime-picker/index.wxml +1 -0
- package/lib/datetime-picker/index.wxss +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.wxss +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.wxss +1 -1
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.wxss +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.wxss +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.wxss +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.wxss +1 -1
- package/lib/goods-action/index.css +1 -1
- package/lib/goods-action/index.wxss +1 -1
- package/lib/goods-action-button/index.css +1 -1
- package/lib/goods-action-button/index.wxss +1 -1
- package/lib/goods-action-icon/index.css +1 -1
- package/lib/goods-action-icon/index.wxss +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.wxss +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.wxss +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image/index.wxss +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.wxss +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.wxss +1 -1
- package/lib/info/index.css +1 -1
- package/lib/info/index.wxml +1 -1
- package/lib/info/index.wxss +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.wxss +1 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.wxss +1 -1
- package/lib/normal-slider/index.css +1 -1
- package/lib/normal-slider/index.wxss +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.wxss +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.wxss +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.wxss +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +1 -1
- package/lib/picker/index.wxml +1 -1
- package/lib/picker/index.wxs +1 -0
- package/lib/picker/index.wxss +1 -1
- package/lib/picker/shared.js +1 -1
- package/lib/picker-column/index.css +1 -1
- package/lib/picker-column/index.js +22 -9
- package/lib/picker-column/index.wxml +7 -6
- package/lib/picker-column/index.wxs +16 -5
- package/lib/picker-column/index.wxss +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.wxss +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.wxss +1 -1
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.wxss +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.wxss +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.wxss +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.wxss +1 -1
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.wxss +1 -1
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.wxss +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.wxss +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.wxss +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.wxss +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.wxss +1 -1
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.wxss +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.wxss +1 -1
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.wxss +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.wxss +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.wxss +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.wxss +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.wxss +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.wxss +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.wxss +1 -1
- package/package.json +12 -7
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
|
package/dist/common/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
package/dist/common/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
@@ -1 +1 @@
|
|
1
|
-
.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
@@ -1 +1 @@
|
|
1
|
-
.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--hairline-color,var(--app-B6-N7,rgba(0,0,0,.1)));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:var(--hairline-top-width,1px)}.smart-hairline--left:after{border-left-width:var(--hairline-left-width,1px)}.smart-hairline--right:after{border-right-width:var(--hairline-right-width,1px)}.smart-hairline--bottom:after{border-bottom-width:var(--hairline-bottom-width,1px)}.smart-hairline--top-bottom:after{border-width:var(--hairline-top-bottom-width,1px 0)}.smart-hairline--surround:after{border-width:var(--hairline-surround-width,1px)}
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}
|
package/dist/common/utils.d.ts
CHANGED
@@ -19,4 +19,6 @@ export declare function getCurrentPage<T>(): T & WechatMiniprogram.OptionalInter
|
|
19
19
|
export declare const isPC: boolean;
|
20
20
|
export declare const isWxWork: boolean;
|
21
21
|
export declare function replacePlaceholders(template: any, values: any): any;
|
22
|
+
export declare const getSafeAreaInsetMin: () => number;
|
22
23
|
export declare function getSafeBottomOffset(): number;
|
24
|
+
export declare const getDateString: (date: Date) => string | undefined;
|
package/dist/common/utils.js
CHANGED
@@ -93,8 +93,21 @@ export function replacePlaceholders(template, values) {
|
|
93
93
|
return values[key] || match; // 如果在values中找到key对应的值,则替换;否则保留原样
|
94
94
|
});
|
95
95
|
}
|
96
|
+
// 默认安全底部最小值为16px
|
97
|
+
export const getSafeAreaInsetMin = () => 16;
|
98
|
+
// 获取安全底部高度,适用于 iOS 和 Android
|
96
99
|
export function getSafeBottomOffset() {
|
100
|
+
const safeAreaInsetBottomMin = getSafeAreaInsetMin();
|
97
101
|
const { safeArea, screenHeight, statusBarHeight } = getSystemInfoSync() || {};
|
98
102
|
const bottomSafeHeight = screenHeight - (safeArea === null || safeArea === void 0 ? void 0 : safeArea.height) - statusBarHeight;
|
99
|
-
return bottomSafeHeight;
|
103
|
+
return bottomSafeHeight + safeAreaInsetBottomMin;
|
100
104
|
}
|
105
|
+
export const getDateString = (date) => {
|
106
|
+
if (!date)
|
107
|
+
return;
|
108
|
+
const year = date.getFullYear();
|
109
|
+
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 加1因为月份从0开始
|
110
|
+
const day = date.getDate().toString().padStart(2, '0');
|
111
|
+
const formattedDate = `${year}/${month}/${day}`;
|
112
|
+
return formattedDate;
|
113
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-count-down{color:var(--count-down-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-count-down{color:var(--count-down-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';:root text{white-space:normal}.keyboard-container{align-items:center;background-color:var(--custom-keyboard-bg-color,var(--app-B6,#fff));border:
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}:root text{white-space:normal}.keyboard-container{align-items:center;background-color:var(--custom-keyboard-bg-color,var(--app-B6,#fff));border-color:var(--custom-keyboard-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-radius:16rpx;border-style:solid;border-width:1rpx;box-sizing:border-box;display:flex;flex-direction:row;height:80rpx;justify-content:space-between;overflow:hidden;padding:24rpx 0rpx 24rpx 24rpx;width:500rpx}.keyboard-button{align-items:center;background-color:initial;justify-content:center}.keyboard-textView{display:flex;flex:1}.keyboard-pwdText{color:var(--custom-keyboard-placeholder-color,var(--app-B6-N6,rgba(0,0,0,.2)));font-size:40rpx}.keyboard-password{color:var(--custom-keyboard-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));letter-spacing:16rpx}.keyboard-randomText{font-size:24rpx;font-weight:500}.keyboard-popup-container{background-color:var(--app-B6-N6,rgba(0,0,0,.2));display:flex;flex-direction:row;height:464rpx;padding:8rpx;width:100%}.keyboard-number-wrap{background-color:initial;display:flex;flex:1;flex-direction:row;flex-wrap:wrap;width:570rpx}.keyboard-operate-wrap{background-color:initial;padding-right:4rpx;padding-top:8rpx;width:180rpx}.keyboard-number-item{align-items:center;background-color:var(--app-B6,#fff);border-radius:8rpx;display:flex;height:96rpx;justify-content:center;margin:8rpx;width:166rpx}.keyboard-number-text{color:var(--app-B6-N2,rgba(0,0,0,.7));font-size:48rpx;font-weight:700}.keyboard-hidden-image{background:var(--app-B6-N2,rgba(0,0,0,.7));height:80rpx;width:80rpx}.keyboard-confirm-btn{align-items:center;background-color:var(--app-B6,#fff);border-radius:8rpx;display:flex;height:210rpx;justify-content:center;padding:0;width:168rpx}.keyboard-confirm-color{background-color:var(--app-M3,#2dda86)}.keyboard-confirm-text{color:#fff;font-size:40rpx;font-weight:700}.keyboard-hover-class{background-color:var(--app-B6-N7,rgba(0,0,0,.1))}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';:root text{white-space:normal}.keyboard-container{align-items:center;background-color:var(--custom-keyboard-bg-color,var(--app-B6,#fff));border:
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}:root text{white-space:normal}.keyboard-container{align-items:center;background-color:var(--custom-keyboard-bg-color,var(--app-B6,#fff));border-color:var(--custom-keyboard-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-radius:16rpx;border-style:solid;border-width:1rpx;box-sizing:border-box;display:flex;flex-direction:row;height:80rpx;justify-content:space-between;overflow:hidden;padding:24rpx 0rpx 24rpx 24rpx;width:500rpx}.keyboard-button{align-items:center;background-color:initial;justify-content:center}.keyboard-textView{display:flex;flex:1}.keyboard-pwdText{color:var(--custom-keyboard-placeholder-color,var(--app-B6-N6,rgba(0,0,0,.2)));font-size:40rpx}.keyboard-password{color:var(--custom-keyboard-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));letter-spacing:16rpx}.keyboard-randomText{font-size:24rpx;font-weight:500}.keyboard-popup-container{background-color:var(--app-B6-N6,rgba(0,0,0,.2));display:flex;flex-direction:row;height:464rpx;padding:8rpx;width:100%}.keyboard-number-wrap{background-color:initial;display:flex;flex:1;flex-direction:row;flex-wrap:wrap;width:570rpx}.keyboard-operate-wrap{background-color:initial;padding-right:4rpx;padding-top:8rpx;width:180rpx}.keyboard-number-item{align-items:center;background-color:var(--app-B6,#fff);border-radius:8rpx;display:flex;height:96rpx;justify-content:center;margin:8rpx;width:166rpx}.keyboard-number-text{color:var(--app-B6-N2,rgba(0,0,0,.7));font-size:48rpx;font-weight:700}.keyboard-hidden-image{background:var(--app-B6-N2,rgba(0,0,0,.7));height:80rpx;width:80rpx}.keyboard-confirm-btn{align-items:center;background-color:var(--app-B6,#fff);border-radius:8rpx;display:flex;height:210rpx;justify-content:center;padding:0;width:168rpx}.keyboard-confirm-color{background-color:var(--app-M3,#2dda86)}.keyboard-confirm-text{color:#fff;font-size:40rpx;font-weight:700}.keyboard-hover-class{background-color:var(--app-B6-N7,rgba(0,0,0,.1))}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-datetime-picker{--hairline-color:transparent}.smart-datetime-picker-hairline{border-image-slice:1;border-image-source:var(--hairline-border-image-color,var(--smart-ui-border-image,linear-gradient(to right,transparent,rgba(0,0,0,.3),transparent)));border-style:solid;border-width:.5px 0;position:absolute}
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
1
12
|
import { SmartComponent } from '../common/component';
|
2
13
|
import { isDef } from '../common/validator';
|
3
14
|
import { pickerProps } from '../picker/shared';
|
@@ -29,6 +40,18 @@ function getTrueValue(formattedValue) {
|
|
29
40
|
function getMonthEndDay(year, month) {
|
30
41
|
return 32 - new Date(year, month - 1, 32).getDate();
|
31
42
|
}
|
43
|
+
function findIntersection(range1, range2) {
|
44
|
+
const [start1, end1] = range1;
|
45
|
+
const [start2, end2] = range2;
|
46
|
+
// 确定交集的开始和结束
|
47
|
+
const intersectionStart = Math.max(start1, start2);
|
48
|
+
const intersectionEnd = Math.min(end1, end2);
|
49
|
+
// 检查是否有交集
|
50
|
+
if (intersectionStart <= intersectionEnd) {
|
51
|
+
return [intersectionStart, intersectionEnd];
|
52
|
+
}
|
53
|
+
return []; // 没有交集
|
54
|
+
}
|
32
55
|
const defaultFormatter = (type, value) => value;
|
33
56
|
SmartComponent({
|
34
57
|
classes: ['active-class', 'toolbar-class', 'column-class'],
|
@@ -94,26 +117,32 @@ SmartComponent({
|
|
94
117
|
value: undefined,
|
95
118
|
} }),
|
96
119
|
data: {
|
97
|
-
part:
|
120
|
+
part: 'am',
|
98
121
|
innerValue: Date.now(),
|
122
|
+
isCreated: false,
|
99
123
|
columns: [],
|
100
124
|
},
|
101
125
|
created() {
|
102
126
|
const innerValue = this.correctValue(this.data.value);
|
103
|
-
this.updateColumnValue(innerValue)
|
127
|
+
this.updateColumnValue(innerValue);
|
128
|
+
if (innerValue !== this.data.value) {
|
104
129
|
this.$emit('input', innerValue);
|
130
|
+
}
|
131
|
+
this.setData({
|
132
|
+
isCreated: true,
|
105
133
|
});
|
106
134
|
},
|
107
135
|
methods: {
|
108
136
|
updateValue() {
|
109
|
-
const {
|
110
|
-
|
111
|
-
|
112
|
-
this.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
137
|
+
const { value, innerValue, isCreated } = this.data;
|
138
|
+
if (!isCreated)
|
139
|
+
return;
|
140
|
+
const val = this.correctValue(value);
|
141
|
+
const isEqual = val === innerValue;
|
142
|
+
this.updateColumnValue(val);
|
143
|
+
if (!isEqual) {
|
144
|
+
this.$emit('input', val);
|
145
|
+
}
|
117
146
|
},
|
118
147
|
getPicker() {
|
119
148
|
if (this.picker == null) {
|
@@ -124,10 +153,29 @@ SmartComponent({
|
|
124
153
|
}
|
125
154
|
return this.picker;
|
126
155
|
},
|
156
|
+
getTimeBoundary() {
|
157
|
+
const { type, is12HourClock, minHour, maxHour, minMinute, maxMinute } = this.data;
|
158
|
+
if (type === 'time' && is12HourClock) {
|
159
|
+
if (minHour === 1 && maxHour === 24) {
|
160
|
+
return {
|
161
|
+
minHour: 0,
|
162
|
+
maxHour: 23,
|
163
|
+
minMinute,
|
164
|
+
maxMinute,
|
165
|
+
};
|
166
|
+
}
|
167
|
+
}
|
168
|
+
return {
|
169
|
+
minHour,
|
170
|
+
maxHour,
|
171
|
+
minMinute,
|
172
|
+
maxMinute,
|
173
|
+
};
|
174
|
+
},
|
127
175
|
formatterFunc(type, value, data) {
|
128
176
|
var _a, _b;
|
129
177
|
if (type === 'part') {
|
130
|
-
return value ===
|
178
|
+
return value === 'am' ? data.amText : data.pmText;
|
131
179
|
}
|
132
180
|
const { formatterMap, formatter = defaultFormatter } = (_a = this === null || this === void 0 ? void 0 : this.data) !== null && _a !== void 0 ? _a : data;
|
133
181
|
const mapDetail = formatterMap === null || formatterMap === void 0 ? void 0 : formatterMap[type];
|
@@ -139,35 +187,52 @@ SmartComponent({
|
|
139
187
|
}
|
140
188
|
return formatter(type, value);
|
141
189
|
},
|
142
|
-
updateColumns() {
|
190
|
+
updateColumns(values) {
|
143
191
|
const { locale, columnStyles, fontStyles } = this.data;
|
144
|
-
const results = this.getOriginColumns().map(column =>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
192
|
+
const results = this.getOriginColumns().map((column, index) => {
|
193
|
+
const value = values[index];
|
194
|
+
const list = column.values.map(value => this.formatterFunc(column.type, value, this.data));
|
195
|
+
const activeIndex = list.findIndex(item => item === value);
|
196
|
+
return {
|
197
|
+
values: list,
|
198
|
+
order: column.order,
|
199
|
+
unit: locale === null || locale === void 0 ? void 0 : locale[column.type],
|
200
|
+
style: columnStyles === null || columnStyles === void 0 ? void 0 : columnStyles[column.type],
|
201
|
+
fontStyle: fontStyles === null || fontStyles === void 0 ? void 0 : fontStyles[column.type],
|
202
|
+
activeIndex,
|
203
|
+
};
|
204
|
+
});
|
205
|
+
return this.setData({ columns: results });
|
152
206
|
},
|
153
207
|
getOriginColumns() {
|
154
|
-
const { filter, is12HourClock, type, amText, pmText, columnsOrder } = this.data;
|
155
|
-
const
|
208
|
+
const { part, filter, is12HourClock, type, amText, pmText, columnsOrder } = this.data;
|
209
|
+
const { minHour, maxHour } = this.getTimeBoundary();
|
210
|
+
const results = this.getRanges().map(({ type: timeType, range }, index) => {
|
156
211
|
const order = columnsOrder[index];
|
157
212
|
let values = times(range[1] - range[0] + 1, index => {
|
158
213
|
const value = range[0] + index;
|
159
|
-
|
214
|
+
if (is12HourClock && type === 'time' && timeType === 'hour') {
|
215
|
+
if (part === 'pm') {
|
216
|
+
if (value === 12)
|
217
|
+
return '12';
|
218
|
+
return padZero(value - 12);
|
219
|
+
}
|
220
|
+
if (value === 0)
|
221
|
+
return '12';
|
222
|
+
return padZero(value);
|
223
|
+
}
|
224
|
+
return timeType === 'year' ? `${value}` : padZero(value);
|
160
225
|
});
|
161
226
|
if (filter) {
|
162
|
-
values = filter(
|
227
|
+
values = filter(timeType, values);
|
163
228
|
}
|
164
|
-
return { type, values, order };
|
229
|
+
return { type: timeType, values, order };
|
165
230
|
});
|
166
231
|
if (is12HourClock && type === 'time') {
|
167
232
|
return [
|
168
233
|
{
|
169
234
|
type: '12HourClock',
|
170
|
-
values: [amText, pmText],
|
235
|
+
values: minHour > 11 ? [pmText] : maxHour < 12 ? [amText] : [amText, pmText],
|
171
236
|
order: columnsOrder[0],
|
172
237
|
},
|
173
238
|
...results.map((item, index) => (Object.assign(Object.assign({}, item), { order: columnsOrder[index + 1] }))),
|
@@ -178,30 +243,30 @@ SmartComponent({
|
|
178
243
|
getRanges() {
|
179
244
|
const { data } = this;
|
180
245
|
if (data.type === 'time' && data.is12HourClock) {
|
246
|
+
const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
|
181
247
|
const { part } = data;
|
248
|
+
const time12Range = part === 'pm' ? [12, 23] : [0, 11];
|
182
249
|
return [
|
183
250
|
{
|
184
251
|
type: 'hour',
|
185
|
-
range: [
|
186
|
-
Math.max(part ? 13 : 1, data.minHour) - (part ? 12 : 0),
|
187
|
-
Math.min(part ? 24 : 12, data.maxHour) - (part ? 12 : 0),
|
188
|
-
],
|
252
|
+
range: findIntersection(time12Range, [minHour, maxHour]),
|
189
253
|
},
|
190
254
|
{
|
191
255
|
type: 'minute',
|
192
|
-
range: [
|
256
|
+
range: [minMinute, maxMinute],
|
193
257
|
},
|
194
258
|
];
|
195
259
|
}
|
196
260
|
if (data.type === 'time') {
|
261
|
+
const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
|
197
262
|
return [
|
198
263
|
{
|
199
264
|
type: 'hour',
|
200
|
-
range: [
|
265
|
+
range: [minHour, maxHour],
|
201
266
|
},
|
202
267
|
{
|
203
268
|
type: 'minute',
|
204
|
-
range: [
|
269
|
+
range: [minMinute, maxMinute],
|
205
270
|
},
|
206
271
|
];
|
207
272
|
}
|
@@ -248,15 +313,13 @@ SmartComponent({
|
|
248
313
|
}
|
249
314
|
// time type
|
250
315
|
if (!isDateType) {
|
316
|
+
const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
|
251
317
|
let [hour, minute] = value.split(':');
|
252
|
-
if (Number(hour) ===
|
253
|
-
hour = 24;
|
254
|
-
}
|
255
|
-
if (Number(hour) === 24 && data.maxHour < 24) {
|
318
|
+
if (Number(hour) === 24) {
|
256
319
|
hour = 0;
|
257
320
|
}
|
258
|
-
hour = padZero(range(hour,
|
259
|
-
minute = padZero(range(minute,
|
321
|
+
hour = padZero(range(hour, minHour, maxHour));
|
322
|
+
minute = padZero(range(minute, minMinute, maxMinute));
|
260
323
|
return `${hour}:${minute}`;
|
261
324
|
}
|
262
325
|
// date type
|
@@ -310,15 +373,19 @@ SmartComponent({
|
|
310
373
|
const picker = this.getPicker();
|
311
374
|
const indexes = picker.getIndexes();
|
312
375
|
if (data.type === 'time' && data.is12HourClock) {
|
313
|
-
const
|
376
|
+
const originColumns = this.getOriginColumns();
|
377
|
+
const [partText, hour, minute] = indexes.map((item, index) => originColumns[index].values[item]);
|
378
|
+
const part = partText === this.data.pmText ? 'pm' : 'am';
|
314
379
|
this.setData({
|
315
380
|
part,
|
316
381
|
});
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
:
|
382
|
+
value = `${part === 'pm'
|
383
|
+
? hour === '12'
|
384
|
+
? 12
|
385
|
+
: Number(hour) + 12
|
386
|
+
: hour === '12'
|
387
|
+
? 0
|
388
|
+
: Number(hour)}:${Number(minute)}`;
|
322
389
|
}
|
323
390
|
else if (data.type === 'time') {
|
324
391
|
const originColumns = this.getOriginColumns();
|
@@ -345,26 +412,36 @@ SmartComponent({
|
|
345
412
|
value = new Date(year, month - 1, date, hour, minute);
|
346
413
|
}
|
347
414
|
value = this.correctValue(value);
|
348
|
-
this.updateColumnValue(value)
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
});
|
415
|
+
this.updateColumnValue(value);
|
416
|
+
picker.value = value;
|
417
|
+
this.$emit('input', value);
|
418
|
+
this.$emit('change', picker);
|
353
419
|
},
|
354
420
|
updateColumnValue(value) {
|
355
421
|
let values = [];
|
422
|
+
const _a = this.data, { columns, part, value: outerValue } = _a, rest = __rest(_a, ["columns", "part", "value"]);
|
423
|
+
rest.innerValue = value;
|
424
|
+
const dataStr = JSON.stringify(rest);
|
425
|
+
if (dataStr === this.preDataStr)
|
426
|
+
return;
|
427
|
+
this.preDataStr = dataStr;
|
356
428
|
const { type, is12HourClock } = this.data;
|
357
429
|
const formatter = this.formatterFunc;
|
358
|
-
const picker = this.getPicker();
|
359
430
|
if (type === 'time' && is12HourClock) {
|
360
431
|
const [hour, minute] = value.split(':');
|
361
|
-
const part = Number(hour)
|
432
|
+
const part = Number(hour) < 12 ? 'am' : 'pm';
|
362
433
|
this.setData({
|
363
434
|
part,
|
364
435
|
});
|
365
436
|
values = [
|
366
437
|
formatter('part', part, this.data),
|
367
|
-
formatter('hour', part
|
438
|
+
formatter('hour', part === 'am'
|
439
|
+
? hour === '0'
|
440
|
+
? '12'
|
441
|
+
: hour
|
442
|
+
: hour === '12'
|
443
|
+
? '12'
|
444
|
+
: padZero(Number(hour) - 12), this.data),
|
368
445
|
formatter('minute', minute, this.data),
|
369
446
|
];
|
370
447
|
}
|
@@ -385,9 +462,12 @@ SmartComponent({
|
|
385
462
|
values.push(formatter('day', padZero(date.getDate()), this.data), formatter('hour', padZero(date.getHours()), this.data), formatter('minute', padZero(date.getMinutes()), this.data));
|
386
463
|
}
|
387
464
|
}
|
388
|
-
|
389
|
-
|
390
|
-
|
465
|
+
this.setData({ innerValue: value });
|
466
|
+
this.updateColumns(values);
|
467
|
+
// picker.setValues(values);
|
468
|
+
// return this.set({ innerValue: value })
|
469
|
+
// .then(() => this.updateColumns())
|
470
|
+
// .then(() => picker.setValues(values));
|
391
471
|
},
|
392
472
|
onAnimationStart() {
|
393
473
|
this.$emit('animation-start');
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-datetime-picker{--hairline-color:transparent}.smart-datetime-picker-hairline{border-image-slice:1;border-image-source:var(--hairline-border-image-color,var(--smart-ui-border-image,linear-gradient(to right,transparent,rgba(0,0,0,.3),transparent)));border-style:solid;border-width:.5px 0;position:absolute}
|
package/dist/dialog/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dialog{--button-default-background-color:transparent;--goods-action-background-color:transparent;background-color:var(--dialog-background-color,var(--smart-ui-dialog-background,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:50%;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{--hairline-right-width:0;padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{--hairline-right-width:0;height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__confirm{font-weight:var(--dialog-confirm-font-weight,normal)}.smart-dialog__cancel{font-weight:var(--dialog-cancel-font-weight,normal)}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
|
package/dist/dialog/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dialog{--button-default-background-color:transparent;--goods-action-background-color:transparent;background-color:var(--dialog-background-color,var(--smart-ui-dialog-background,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:50%;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding:var(--dialog-header-padding,0);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{--hairline-right-width:0;padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{--hairline-right-width:0;height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__confirm{font-weight:var(--dialog-confirm-font-weight,normal)}.smart-dialog__cancel{font-weight:var(--dialog-cancel-font-weight,normal)}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}.smart-dialog--round-button .smart-dialog__cancel,.smart-dialog--round-button .smart-dialog__confirm{border-radius:var(--dialog--round-button-border-radius,20px)!important}
|
package/dist/divider/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-divider{align-items:center;border-color:var(--divider-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-style:solid;border-width:0;color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.smart-divider:after,.smart-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.smart-divider:before{content:""}.smart-divider--hairline:after,.smart-divider--hairline:before{transform:scaleY(.5)}.smart-divider--dashed{border-style:dashed}.smart-divider--center:before,.smart-divider--left:before,.smart-divider--right:before{margin-right:var(--divider-content-padding,16px)}.smart-divider--center:after,.smart-divider--left:after,.smart-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.smart-divider--left:before{max-width:var(--divider-content-left-width,10%)}.smart-divider--right:after{max-width:var(--divider-content-right-width,10%)}
|
package/dist/divider/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-divider{align-items:center;border-color:var(--divider-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-style:solid;border-width:0;color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.smart-divider:after,.smart-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.smart-divider:before{content:""}.smart-divider--hairline:after,.smart-divider--hairline:before{transform:scaleY(.5)}.smart-divider--dashed{border-style:dashed}.smart-divider--center:before,.smart-divider--left:before,.smart-divider--right:before{margin-right:var(--divider-content-padding,16px)}.smart-divider--center:after,.smart-divider--left:after,.smart-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.smart-divider--left:before{max-width:var(--divider-content-left-width,10%)}.smart-divider--right:after{max-width:var(--divider-content-right-width,10%)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.smart-dropdown-item .smart-dropdown-item__title{font-size:var(--dropdown-menu-item-title-font-size,14px);font-weight:var(--dropdown-menu-item-title-font-weight,normal);line-height:var(--dropdown-menu-item-title-line-height,28px)}.smart-dropdown-item .smart-dropdown-item__icon{font-size:var(--dropdown-menu-item-icon-font-size,28px)}.smart-dropdown-item__option{--cell-border-color:var(--dropdown-menu-item-line-color,var(--app-B6-N7,rgba(0,0,0,.1)));--cell-border-left-position:0;--cell-border-right-position:0;position:relative;text-align:left}.smart-dropdown-item__option--first:after{border-top:1px solid var(--dropdown-menu-item-line-color,var(--app-B6-N7,rgba(0,0,0,.1)));box-sizing:border-box;content:" ";left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scaleY(.5);transform-origin:center}.smart-dropdown-item__option--active .smart-dropdown-item__icon,.smart-dropdown-item__option--active .smart-dropdown-item__title{color:var(--dropdown-menu-option-active-color,var(--app-M1,#3678e3));font-weight:var(--dropdown-menu-item-title-active-font-weight,500)}.smart-dropdown-item--up{top:0}.smart-dropdown-item--down{bottom:0}.smart-dropdown-item__icon{display:block;line-height:inherit}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.smart-dropdown-item .smart-dropdown-item__title{font-size:var(--dropdown-menu-item-title-font-size,14px);font-weight:var(--dropdown-menu-item-title-font-weight,normal);line-height:var(--dropdown-menu-item-title-line-height,28px)}.smart-dropdown-item .smart-dropdown-item__icon{font-size:var(--dropdown-menu-item-icon-font-size,28px)}.smart-dropdown-item__option{--cell-border-color:var(--dropdown-menu-item-line-color,var(--app-B6-N7,rgba(0,0,0,.1)));--cell-border-left-position:0;--cell-border-right-position:0;position:relative;text-align:left}.smart-dropdown-item__option--first:after{border-top:1px solid var(--dropdown-menu-item-line-color,var(--app-B6-N7,rgba(0,0,0,.1)));box-sizing:border-box;content:" ";left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scaleY(.5);transform-origin:center}.smart-dropdown-item__option--active .smart-dropdown-item__icon,.smart-dropdown-item__option--active .smart-dropdown-item__title{color:var(--dropdown-menu-option-active-color,var(--app-M1,#3678e3));font-weight:var(--dropdown-menu-item-title-active-font-weight,500)}.smart-dropdown-item--up{top:0}.smart-dropdown-item--down{bottom:0}.smart-dropdown-item__icon{display:block;line-height:inherit}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dropdown-menu{background-color:var(--dropdown-menu-background-color,var(--app-B3,#fff));display:flex;height:var(--dropdown-menu-height,46px);-webkit-user-select:none;user-select:none}.smart-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.smart-dropdown-menu__item:active{opacity:.7}.smart-dropdown-menu__item--disabled:active{opacity:1}.smart-dropdown-menu__item--disabled .smart-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,var(--app-B6-N4,rgba(0,0,0,.4)))}.smart-dropdown-menu__title{align-items:center;box-sizing:border-box;color:var(--dropdown-menu-title-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--dropdown-menu-title-font-size,14px);justify-content:center;line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px)}.smart-dropdown-menu__title__triangle{font-size:var(--dropdown-menu-title-triangle-size,12px);margin-left:var(--dropdown-menu-title-triangle-margin-left,4px);transform:translateY(10%);transition:all .2s}.smart-dropdown-menu__title__triangle--up{transform:rotate(180deg)}.smart-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,var(--app-M1,#3678e3))}.smart-dropdown-menu__title--active .smart-dropdown-menu__title__triangle{transform:rotate(180deg);transform-origin:center}.smart-dropdown-menu__title--active .smart-dropdown-menu__title__triangle--up{transform:translateY(10%) rotate(1turn);transform-origin:center}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-dropdown-menu{background-color:var(--dropdown-menu-background-color,var(--app-B3,#fff));display:flex;height:var(--dropdown-menu-height,46px);-webkit-user-select:none;user-select:none}.smart-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.smart-dropdown-menu__item:active{opacity:.7}.smart-dropdown-menu__item--disabled:active{opacity:1}.smart-dropdown-menu__item--disabled .smart-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,var(--app-B6-N4,rgba(0,0,0,.4)))}.smart-dropdown-menu__title{align-items:center;box-sizing:border-box;color:var(--dropdown-menu-title-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--dropdown-menu-title-font-size,14px);justify-content:center;line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px)}.smart-dropdown-menu__title__triangle{font-size:var(--dropdown-menu-title-triangle-size,12px);margin-left:var(--dropdown-menu-title-triangle-margin-left,4px);transform:translateY(10%);transition:all .2s}.smart-dropdown-menu__title__triangle--up{transform:rotate(180deg)}.smart-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,var(--app-M1,#3678e3))}.smart-dropdown-menu__title--active .smart-dropdown-menu__title__triangle{transform:rotate(180deg);transform-origin:center}.smart-dropdown-menu__title--active .smart-dropdown-menu__title__triangle--up{transform:translateY(10%) rotate(1turn);transform-origin:center}
|
package/dist/empty/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css'
|
1
|
+
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|
package/dist/empty/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss'
|
1
|
+
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
|