提交 21dcb5e7 编写于 作者: O oasis-cloud

fix: timeselect export

上级 e5d8da49
......@@ -753,6 +753,7 @@
"desc": "配送时间日期选择",
"sort": 7,
"show": false,
"exportEmpty": true,
"author": "zhaoqian16"
},
{
......@@ -763,6 +764,7 @@
"desc": "配送时间上门时间选择",
"sort": 8,
"show": false,
"exportEmpty": true,
"author": "zhaoqian16"
},
{
......
import React, { FunctionComponent, useEffect, useState } from 'react'
import './timedetail.scss'
import bem from '@/utils/bem'
import { useConfig } from '@/packages/configprovider'
......@@ -57,7 +56,11 @@ export const TimeDetail: FunctionComponent<
return (
<div className={`${b()} ${className || ''}`}>
{renderData.map((item: string, index: number) => (
<span className={getDetailClass(item)} key={item} onClick={() => handleTime(item)}>
<span
className={getDetailClass(item)}
key={item}
onClick={() => handleTime(item)}
>
{item}
</span>
))}
......
import React, { FunctionComponent } from 'react'
import './timepannel.scss'
import bem from '@/utils/bem'
import { useConfig } from '@/packages/configprovider'
......@@ -18,7 +17,10 @@ export const TimePannel: FunctionComponent<
Partial<TimePannelProps> & React.HTMLAttributes<HTMLDivElement>
> = (props) => {
const { locale } = useConfig()
const { children, className, date, curKey, change } = { ...defaultProps, ...props }
const { children, className, date, curKey, change } = {
...defaultProps,
...props,
}
const b = bem('timepannel')
return (
......
@import '../timepannel/timepannel.scss';
@import '../timedetail/timedetail.scss';
.nut-timeselect {
display: flex;
flex-direction: column;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册