From 8090bca68e35f6151352369341e3413eecae5717 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 11 Feb 2022 15:48:17 +0800 Subject: [PATCH 001/575] =?UTF-8?q?fix(Form):=20=E4=BF=AE=E5=A4=8Dref?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E8=A1=A8=E5=8D=95=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 25 ++++++++++++++++---- website/src/routes/components/form/index.tsx | 3 ++- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 7a6d1f5b4f..fb88b00771 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { IProps } from '@uiw/utils'; import FormItem, { FormItemProps } from './FormItem'; import './style/form.less'; @@ -100,7 +100,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: ((instance: HTMLInputElement) => void) | React.RefObject | null, + ref: React.ForwardedRef, ) { const initData = newFormState(fields, ({ initialValue }) => { initialValue = newInitialValue(initialValue); @@ -109,6 +109,18 @@ function Form( const [data, setData] = useState(initData); + useEffect(() => { + if (ref) { + (ref as unknown as React.MutableRefObject< + Record<'onSubmit' | 'resetForm' | 'getFieldValues', Function> + >)!.current = { + onSubmit: handleSubmit, + resetForm: handleReset, + getFieldValues: getFieldValues, + }; + } + }, [data]); + const formUnits: FormChildrenProps['fields'] = {}; for (const name in fields) { const props = fields[name]; @@ -139,6 +151,10 @@ function Form( ); } + function getFieldValues() { + return data.current; + } + function handleChange( name: string, validator: FormFieldsProps['validator'], @@ -175,7 +191,7 @@ function Form( }; } - function handleSubmit(e: React.FormEvent) { + const handleSubmit = (e: React.FormEvent) => { e && e.preventDefault(); const { initial, current } = data; setData({ ...data, submitting: true }); @@ -203,7 +219,7 @@ function Form( } catch (evn) { onError(evn); } - } + }; function canSubmit() { const { submitting, current = {} } = data; @@ -265,6 +281,7 @@ function Form( props.onChange = handleChange(name, validator, element, element.props.onChange) as FormElementProps['onChange']; return React.cloneElement(element, props as FormElementProps); } + return (
{ const md = await import('uiw/node_modules/@uiw/react-form/README.md'); From ddf96b29650e2e1b020512e24c026c6fdbe35ffc Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 11 Feb 2022 16:51:13 +0800 Subject: [PATCH 002/575] =?UTF-8?q?fix(Form):=E4=BD=BF=E7=94=A8useLayoutEf?= =?UTF-8?q?fect=E6=9B=BF=E6=8D=A2useEffect=E7=BB=91=E5=AE=9A=E7=BB=91?= =?UTF-8?q?=E5=AE=9AForwardedRef?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 34 ++++++++++++++------------------ 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index fb88b00771..b4a62bd7d8 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useEffect, useState, useImperativeHandle } from 'react'; import { IProps } from '@uiw/utils'; import FormItem, { FormItemProps } from './FormItem'; import './style/form.less'; @@ -58,6 +58,8 @@ export type FormElementProps = { onChange?: (env: React.BaseSyntheticEvent, list?: string[]) => void; }; +export type FormRefType = Record<'onSubmit' | 'resetForm' | 'getFieldValues', Function>; + function newFormState( fields: FormProps['fields'], cb: (porps: FormFieldsProps) => { @@ -100,7 +102,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: React.ForwardedRef, + ref: React.ForwardedRef | React.RefObject, ) { const initData = newFormState(fields, ({ initialValue }) => { initialValue = newInitialValue(initialValue); @@ -109,17 +111,15 @@ function Form( const [data, setData] = useState(initData); - useEffect(() => { - if (ref) { - (ref as unknown as React.MutableRefObject< - Record<'onSubmit' | 'resetForm' | 'getFieldValues', Function> - >)!.current = { - onSubmit: handleSubmit, - resetForm: handleReset, - getFieldValues: getFieldValues, - }; - } - }, [data]); + useImperativeHandle( + ref as React.RefObject, + () => ({ + onSubmit: handleSubmit, + resetForm: handleReset, + getFieldValues: () => data.current, + }), + [data], + ); const formUnits: FormChildrenProps['fields'] = {}; for (const name in fields) { @@ -151,10 +151,6 @@ function Form( ); } - function getFieldValues() { - return data.current; - } - function handleChange( name: string, validator: FormFieldsProps['validator'], @@ -191,7 +187,7 @@ function Form( }; } - const handleSubmit = (e: React.FormEvent) => { + function handleSubmit(e: React.FormEvent) { e && e.preventDefault(); const { initial, current } = data; setData({ ...data, submitting: true }); @@ -219,7 +215,7 @@ function Form( } catch (evn) { onError(evn); } - }; + } function canSubmit() { const { submitting, current = {} } = data; From 53880a5f36b719d7135c372d266f69735aee3636 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 11 Feb 2022 17:58:24 +0800 Subject: [PATCH 003/575] =?UTF-8?q?refactor:(Form)=20=E4=BF=AE=E6=94=B9Ref?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/README.md | 118 ++++++++++++++++++------------- packages/react-form/src/Form.tsx | 10 +-- 2 files changed, 74 insertions(+), 54 deletions(-) diff --git a/packages/react-form/README.md b/packages/react-form/README.md index dd532b000c..9ec48c66eb 100644 --- a/packages/react-form/README.md +++ b/packages/react-form/README.md @@ -13,57 +13,77 @@ import { Form, FormItem } from '@uiw/react-form'; ```jsx + +import React, { useState, useRef } from "react"; import ReactDOM from 'react-dom'; import { Form, Input, Row, Col, Slider, Button, Notify } from 'uiw'; -const Demo = () => ( -
- { - console.log('onChange', initial, current); - }} - onSubmit={({initial, current}) => { - if(current.name === initial.name) { - Notify.error({ - title: '提交失败!', - description: `表单提交内容为空!`, - }); - } else { - Notify.success({ - title: '提交成功!', - description: `姓名为:${current.name},提交完成,将自动填充初始化值!`, - }); - } - }} - fields={{ - name: { - label: '姓名', - children: - }, - }} - > - {({ fields, state, canSubmit }) => { - return ( -
- - {fields.name} - - - - - - - - - {JSON.stringify(state.current)} - - -
- ) - }} - -
-) +function Demo() { + const form = useRef() + + const onSubmit = () => { + form.current.onSubmit() + } + const resetForm = () => { + form.current.resetForm() + } + const getFieldValues = () => { + console.log('getFieldValues', form.current.getFieldValues()) + } + + return ( +
+
{ + console.log('onChange', initial, current); + }} + onSubmit={({ initial, current }) => { + if (current.name === initial.name) { + Notify.error({ + title: '提交失败!', + description: `表单提交内容为空!`, + }); + } else { + Notify.success({ + title: '提交成功!', + description: `姓名为:${current.name},提交完成,将自动填充初始化值!`, + }); + } + }} + fields={{ + name: { + label: '姓名', + children: + }, + }} + > + {({ fields, state, canSubmit }) => { + return ( +
+ + {fields.name} + + + + + + + + + {JSON.stringify(state.current)} + + +
+ ) + }} +
+ + + +
+ ) +} ReactDOM.render(, _mount_); ``` @@ -682,4 +702,4 @@ ReactDOM.render(, _mount_); | labelStyle | 表单标题样式 | object | - | | labelFor | 列的宽度相对于同一网格中其他列的比率 | number | - | | help | 提示信息 | ReactNode | - | -| hasError | 如果为true,则应用错误CSS。转动边框并帮助文字变红。 | number | - | \ No newline at end of file +| hasError | 如果为true,则应用错误CSS。转动边框并帮助文字变红。 | number | - | diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index b4a62bd7d8..758496af7d 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState, useImperativeHandle } from 'react'; +import React, { useState, useImperativeHandle } from 'react'; import { IProps } from '@uiw/utils'; import FormItem, { FormItemProps } from './FormItem'; import './style/form.less'; @@ -102,7 +102,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: React.ForwardedRef | React.RefObject, + ref: React.Ref>, //| React.RefObject, ) { const initData = newFormState(fields, ({ initialValue }) => { initialValue = newInitialValue(initialValue); @@ -111,8 +111,8 @@ function Form( const [data, setData] = useState(initData); - useImperativeHandle( - ref as React.RefObject, + useImperativeHandle, any>( + ref, () => ({ onSubmit: handleSubmit, resetForm: handleReset, @@ -300,4 +300,4 @@ function Form( ); } -export default React.forwardRef>(Form); +export default React.forwardRef, FormProps<{}>>(Form); From 0c4f0bcd38e358d9354c3428c5fc681d320aa36b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 14 Feb 2022 11:20:33 +0800 Subject: [PATCH 004/575] =?UTF-8?q?fix(Form):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E9=87=8D=E7=BD=AE(initialValue)=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 758496af7d..6331436fab 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -1,4 +1,4 @@ -import React, { useState, useImperativeHandle } from 'react'; +import React, { useState, useImperativeHandle, useMemo } from 'react'; import { IProps } from '@uiw/utils'; import FormItem, { FormItemProps } from './FormItem'; import './style/form.less'; @@ -53,7 +53,7 @@ export interface FormChildrenProps { export type FormElementProps = { id?: string; name?: string; - value?: string; + value?: string | boolean; checked?: boolean; onChange?: (env: React.BaseSyntheticEvent, list?: string[]) => void; }; @@ -104,12 +104,20 @@ function Form( }: FormProps, ref: React.Ref>, //| React.RefObject, ) { - const initData = newFormState(fields, ({ initialValue }) => { - initialValue = newInitialValue(initialValue); - return { initialValue, currentValue: initialValue }; - }); + const initData = useMemo( + () => + newFormState(fields, ({ initialValue }) => { + initialValue = newInitialValue(initialValue); + return { initialValue, currentValue: initialValue }; + }), + [], + ); - const [data, setData] = useState(initData); + const [data, setDatas] = useState(JSON.parse(JSON.stringify(initData))); + const setData = (values: any) => { + // 解决value为数组时不进行深拷贝,initvalue无法重置问题 + setDatas(JSON.parse(JSON.stringify(values))); + }; useImperativeHandle, any>( ref, @@ -270,8 +278,9 @@ function Form( // : element.props.value; const type = element.props.type; - if (type === 'checkbox' || type === 'switch') { - props.checked = !!props.checked; + // console.log('type', element) + if (type === 'checkbox' || type === 'switch' || typeof props.value === 'boolean') { + props.checked = !!props.value; delete props.value; } props.onChange = handleChange(name, validator, element, element.props.onChange) as FormElementProps['onChange']; From 9f8cdd9a505e0dd21c38784699387ea47573f2da Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 14 Feb 2022 14:16:14 +0800 Subject: [PATCH 005/575] =?UTF-8?q?fix(Form):=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 6331436fab..401057372b 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -102,7 +102,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: React.Ref>, //| React.RefObject, + ref: React.ForwardedRef, //| React.RefObject, ) { const initData = useMemo( () => @@ -119,7 +119,7 @@ function Form( setDatas(JSON.parse(JSON.stringify(values))); }; - useImperativeHandle, any>( + useImperativeHandle( ref, () => ({ onSubmit: handleSubmit, @@ -309,4 +309,4 @@ function Form( ); } -export default React.forwardRef, FormProps<{}>>(Form); +export default React.forwardRef>(Form); From 8639505df14f6a8b969cd8de23098e45ee380736 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 10:02:48 +0800 Subject: [PATCH 006/575] =?UTF-8?q?feat(search-select):=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 19 +- packages/react-search-select/package.json | 1 + packages/react-search-select/src/index.tsx | 164 +++++++++++++----- .../react-search-select/src/style/index.less | 8 + 4 files changed, 149 insertions(+), 43 deletions(-) create mode 100644 packages/react-search-select/src/style/index.less diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index e3f0784d7f..2c4e0bf1c2 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -21,28 +21,38 @@ const Demo = () => { const [loading, setLoading] = React.useState(false); const [value, setValue] = React.useState(undefined); function handleSearch(e) { + console.log('handleSearch',e) setLoading(true) setTimeout(() => { setOption([ { label: 'a', value: 2 }, { label: 'aa', value: 3 }, { label: 'aaa', value: 4 }, + { label: 'a5', value: 5 }, + { label: 'a6', value: 6 }, + { label: 'a7', value: 7 }, + { label: 'a8', value: 8 }, ]); setLoading(false); }, 2000); } return( console.log('onSelect',value)} loading={loading} option={option} - onChange={(value) => setValue(value)} + onChange={(value) => { + console.log('onChange',value) + setValue(value) + }} /> ); }; @@ -62,6 +72,7 @@ const Demo = () => { const [option, setOption] = React.useState([]); const [loading, setLoading] = React.useState(false); function handleSearch(e) { + console.log('handleSearch',e) setLoading(true) setTimeout(() => { setOption([ @@ -107,6 +118,9 @@ const Demo = () => { disabled={false} placeholder="请输入选择" onSearch={handleSearch} + onChange={(v)=>{ + console.log('onChange',v) + }} option={option} loading={loading} /> @@ -148,6 +162,7 @@ ReactDOM.render(, _mount_); |--------- |-------- |--------- |-------- | | allowClear | 支持清除 | Boolean | `false` | | disabled | 禁用选择器 | Boolean | `false` | +| mode | 是否可以多选; 'multiple','single' | String | 'single' | | defaultValue | 指定默认选中的条目 | String/Number | - | | value | 指定选中的条目的值 | String/Number | - | | placeholder | 选择框默认文字 | String | - | diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index 572436dc48..feed8de3ca 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -49,6 +49,7 @@ "@uiw/react-input": "^4.10.6", "@uiw/react-loader": "^4.10.6", "@uiw/react-menu": "^4.10.6", + "@uiw/react-tag": "^4.10.7", "@uiw/utils": "^4.10.6" }, "devDependencies": { diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 08003aca80..9057ca6b12 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -1,29 +1,28 @@ -import React from 'react'; +import React, { useMemo } from 'react'; import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; import Icon from '@uiw/react-icon'; import Menu from '@uiw/react-menu'; import Input from '@uiw/react-input'; +import Tag from '@uiw/react-tag'; import { IProps } from '@uiw/utils'; import { useState } from 'react'; import { useRef } from 'react'; import { useEffect } from 'react'; +import './style/index.less'; +type ValueType = string | number | undefined; export interface SearchSelectProps extends IProps, DropdownProps { + mode?: 'single' | 'multiple'; size?: 'large' | 'default' | 'small'; loading: boolean; showSearch?: boolean; allowClear: boolean; defaultValue?: string | number; - value?: string | number; - option: { - label: string; - value: string | number; - key: any; - [propName: string]: any; - }[]; - onSelect?: (value: string | number) => void; + value?: ValueType; + option: MenuItemData[]; + onSelect?: (value: ValueType | Array) => void; onSearch?: (value: string) => void; - onChange?: (value: string) => void; + onChange?: (value: ValueType | Array) => void; } export interface MenuItemData { @@ -41,6 +40,7 @@ export default function SearchSelect(props: SearchSelectProps) { loading = false, prefixCls, className, + mode = 'single', style, isOpen, value, @@ -53,33 +53,56 @@ export default function SearchSelect(props: SearchSelectProps) { ...others } = props; + const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); - const [selectedValue, setSelectedValue] = useState(value); + const [selectedValue, setSelectedValue] = useState>( + option.filter((item) => item.value === value), + ); const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); const divRef = useRef(null); + const valueRef = useRef>(); + valueRef.current = useMemo(() => selectedValue, [selectedValue]); + useEffect(() => { if (defaultValue) { - const defaultMenuItem = option.find((menuItem: MenuItemData) => defaultValue === menuItem.value); - setSelectedValue(defaultValue); - setSelectedLabel(defaultMenuItem ? defaultMenuItem.label : ''); + const defaultMenuItem = option.filter((opt) => opt.value === defaultValue); + setSelectedValue(defaultMenuItem); } }, []); - useEffect(() => { - if (value !== selectedValue) { - setSelectedValue(value); - } - }, [value]); + function removeSelectItem(index: number) { + const selectedValue = valueRef.current as MenuItemData[]; + selectedValue.splice(index, 1); + const values = [...selectedValue]; + return values; + } function handleItemClick(item: MenuItemData) { setInnerIsOpen(false); - setSelectedValue(item.value); + const values = [item]; + setSelectedValue(values); setSelectedLabel(item.label); - onSelect && onSelect(item.value); + const resultValue = item.value; + onSelect && onSelect(resultValue); // 支持form组件 - handleSelectChange(item.value); + handleSelectChange(resultValue); + } + + function handleItemsClick(item: MenuItemData) { + let values: MenuItemData[] = []; + const index = selectedValue.findIndex((finds) => finds.value === item.value); + if (index !== -1) { + values = removeSelectItem(index); + } else { + values = [...selectedValue, item]; + } + setSelectedValue(values); + const resultValue = values.map((item) => item.value); + onSelect && onSelect(resultValue); + // // 支持form组件 + handleSelectChange(resultValue); } // 渲染icon @@ -99,27 +122,37 @@ export default function SearchSelect(props: SearchSelectProps) { setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); showSearch && onSearch && onSearch(value); - handleSelectChange(value); + // handleSelectChange(value); } // 清除选中的值 function resetSelectedValue() { setInnerIsOpen(false); - setSelectedValue(''); + setSelectedValue([]); setSelectedLabel(''); setSelectIconType(''); handleSelectChange(''); } - function handleSelectChange(value: any) { + function handleSelectChange(value: ValueType | Array) { onChange && onChange(value); } + function inputKeyDown(e: any) { + if (selectedValue.length > 0 && !!selectedLabel && e.keyCode === 8) { + const values = removeSelectItem(selectedValue.length - 1); + setSelectedValue(values); + } + } + return ( 0 ? false : true} {...others} - onVisibleChange={(open) => setInnerIsOpen(open)} + onVisibleChange={(open) => { + if (!open && isMultiple) setSelectedLabel(''); + setInnerIsOpen(open); + }} isOpen={innerIsOpen} menu={ {loading ? '正在加载数据...' : '没有数据'} ) : ( option.map((item, idx) => { - const active = selectedValue === item.value; - return handleItemClick(item)} />; + const active = !!selectedValue.find((finds) => finds.value === item.value); + return ( + (isMultiple ? handleItemsClick(item) : handleItemClick(item))} + /> + ); }) )} @@ -146,21 +186,63 @@ export default function SearchSelect(props: SearchSelectProps) { ref={divRef} onMouseOver={() => renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - style={style} + style={{ + ...style, + maxWidth: 'none', + width: 200, + // display: 'flex', + // flexWrap: 'wrap', + // flex: '1 1 auto', + }} > - - ) +
+ > + {isMultiple && + selectedValue.map((item, index) => { + return ( + setSelectedValue(removeSelectItem(index))} + color="#ccc" + > + {item.label} + + ); + })} + + ) + } + /> +
); diff --git a/packages/react-search-select/src/style/index.less b/packages/react-search-select/src/style/index.less new file mode 100644 index 0000000000..016dc592df --- /dev/null +++ b/packages/react-search-select/src/style/index.less @@ -0,0 +1,8 @@ +.inptContents { + input { + box-shadow: none; + &:hover:after { + box-shadow: 'none' !important; + } + } +} From bfefc277b28efd68d7f462613c1a83387e023201 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 10:41:27 +0800 Subject: [PATCH 007/575] =?UTF-8?q?fix(form):=E5=A2=9E=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=A1=A8=E5=8D=95=E5=80=BC=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 6331436fab..18315b1151 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -125,6 +125,7 @@ function Form( onSubmit: handleSubmit, resetForm: handleReset, getFieldValues: () => data.current, + setFields: setFields, }), [data], ); @@ -159,6 +160,11 @@ function Form( ); } + function setFields(fields: FormState['current']) { + data.current = fields; + setData(data); + } + function handleChange( name: string, validator: FormFieldsProps['validator'], From 94cdab2ae603d228370734a75dce97a1cd8f2b81 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 11:02:33 +0800 Subject: [PATCH 008/575] =?UTF-8?q?feat(form):=E5=A2=9E=E5=8A=A0=E5=BF=85?= =?UTF-8?q?=E4=BC=A0=E8=A1=A8=E5=8D=95=E9=A1=B9=E6=A0=87=E6=B3=A8=20#534?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 1 + packages/react-form/src/FormItem.tsx | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 18315b1151..c0961ba91d 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -29,6 +29,7 @@ export interface FormFieldsProps extends FormItemProps { inline?: boolean; checked?: boolean; initialValue?: string | number | T; + required?: boolean; validator?: (currentValue: any) => any; } diff --git a/packages/react-form/src/FormItem.tsx b/packages/react-form/src/FormItem.tsx index f73917f6d8..c03707d35a 100644 --- a/packages/react-form/src/FormItem.tsx +++ b/packages/react-form/src/FormItem.tsx @@ -8,6 +8,7 @@ export interface FormItemProps extends IProps, HTMLDivProps { inline?: boolean; hasError?: boolean; label?: React.ReactNode; + required?: boolean; labelFor?: string; labelClassName?: string; help?: React.ReactNode; @@ -24,6 +25,7 @@ export default class FormItem extends React.PureComponent> { const { prefixCls, className, + required, style, label, labelFor, @@ -36,6 +38,7 @@ export default class FormItem extends React.PureComponent> { hasError, ...otherProps } = this.props; + console.log('required', required); const cls = [prefixCls, className, hasError ? `${prefixCls}-error` : null].filter(Boolean).join(' ').trim(); const labelCls = ['w-form-label', labelClassName].filter(Boolean).join(' ').trim(); if (inline) { @@ -43,6 +46,7 @@ export default class FormItem extends React.PureComponent> {
+ {required && } @@ -60,9 +64,12 @@ export default class FormItem extends React.PureComponent> { return (
{label && ( - + + {required && } + + )} {this.props.children} {help &&
{help}
} From 8fc1fec2cb3739c38f34340fa6f58fe11fd14de6 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 11:16:32 +0800 Subject: [PATCH 009/575] =?UTF-8?q?fix(search-select):=E5=A2=9E=E5=8A=A0Ta?= =?UTF-8?q?g=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 14 ++++++++------ packages/react-search-select/package.json | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index c0961ba91d..8d5db58663 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -59,7 +59,7 @@ export type FormElementProps = { onChange?: (env: React.BaseSyntheticEvent, list?: string[]) => void; }; -export type FormRefType = Record<'onSubmit' | 'resetForm' | 'getFieldValues', Function>; +export type FormRefType = Record<'onSubmit' | 'resetForm' | 'getFieldValues' | 'setFields', Function>; function newFormState( fields: FormProps['fields'], @@ -120,13 +120,15 @@ function Form( setDatas(JSON.parse(JSON.stringify(values))); }; - useImperativeHandle, any>( + useImperativeHandle, React.MutableRefObject>( ref, () => ({ - onSubmit: handleSubmit, - resetForm: handleReset, - getFieldValues: () => data.current, - setFields: setFields, + current: { + onSubmit: handleSubmit, + resetForm: handleReset, + getFieldValues: () => data.current, + setFields: setFields, + }, }), [data], ); diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index 2008759519..125c9f3bd9 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -49,6 +49,7 @@ "@uiw/react-input": "^4.11.0", "@uiw/react-loader": "^4.11.0", "@uiw/react-menu": "^4.11.0", + "@uiw/react-tag": "^4.11.0", "@uiw/utils": "^4.11.0" }, "devDependencies": { From f47944d291f880a03813d595b4e69620ddb1e8ba Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 13:46:14 +0800 Subject: [PATCH 010/575] =?UTF-8?q?fix(form):=E5=A2=9E=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 8d5db58663..2d1e864179 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -120,15 +120,14 @@ function Form( setDatas(JSON.parse(JSON.stringify(values))); }; - useImperativeHandle, React.MutableRefObject>( + useImperativeHandle, any>( ref, () => ({ - current: { - onSubmit: handleSubmit, - resetForm: handleReset, - getFieldValues: () => data.current, - setFields: setFields, - }, + onSubmit: handleSubmit, + resetForm: handleReset, + getFieldValues: () => data.current, + getError: () => data.errors, + setFields: setFields, }), [data], ); From 34cbebc3916a40ea12697843778d91b703a62d6b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 13:57:38 +0800 Subject: [PATCH 011/575] =?UTF-8?q?fix(form):=E4=BF=AE=E5=A4=8DafterSubmit?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 2 +- packages/react-form/src/FormItem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 2d1e864179..607153ccba 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -219,7 +219,7 @@ function Form( nextState.current = initial; } setData({ ...data, ...nextState, errors: {} }); - return () => afterSubmit!({ state: data, response, reset: handleReset }); + afterSubmit && afterSubmit({ state: data, response, reset: handleReset }); }; try { const afterSubmitPromise = onSubmit ? onSubmit({ initial, current }, e) : undefined; diff --git a/packages/react-form/src/FormItem.tsx b/packages/react-form/src/FormItem.tsx index c03707d35a..58b3225c36 100644 --- a/packages/react-form/src/FormItem.tsx +++ b/packages/react-form/src/FormItem.tsx @@ -38,7 +38,7 @@ export default class FormItem extends React.PureComponent> { hasError, ...otherProps } = this.props; - console.log('required', required); + const cls = [prefixCls, className, hasError ? `${prefixCls}-error` : null].filter(Boolean).join(' ').trim(); const labelCls = ['w-form-label', labelClassName].filter(Boolean).join(' ').trim(); if (inline) { From e206d3490a7bb8b31564b52a91d4b3ecd1e4538c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 14:32:29 +0800 Subject: [PATCH 012/575] =?UTF-8?q?fix(search-select):=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/package.json | 1 + packages/react-search-select/src/index.tsx | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index 6c4af1ba4b..8eba0f036a 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -48,6 +48,7 @@ "@uiw/react-icon": "^4.11.1", "@uiw/react-input": "^4.11.1", "@uiw/react-loader": "^4.11.1", + "@uiw/react-tag": "^4.11.1", "@uiw/react-menu": "^4.11.1", "@uiw/utils": "^4.11.1" }, diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 9057ca6b12..3902fb5224 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -186,14 +186,7 @@ export default function SearchSelect(props: SearchSelectProps) { ref={divRef} onMouseOver={() => renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - style={{ - ...style, - maxWidth: 'none', - width: 200, - // display: 'flex', - // flexWrap: 'wrap', - // flex: '1 1 auto', - }} + style={{ width: 'auto', maxWidth: 'none', ...style }} >
Date: Wed, 16 Feb 2022 15:03:44 +0800 Subject: [PATCH 013/575] =?UTF-8?q?refactor(search-select):=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E7=B1=BB=E5=9E=8B=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 3902fb5224..d68114512f 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -19,13 +19,13 @@ export interface SearchSelectProps extends IProps, DropdownProps { allowClear: boolean; defaultValue?: string | number; value?: ValueType; - option: MenuItemData[]; + option: SearchSelectOptionData[]; onSelect?: (value: ValueType | Array) => void; onSearch?: (value: string) => void; onChange?: (value: ValueType | Array) => void; } -export interface MenuItemData { +export interface SearchSelectOptionData { label: string; value: string | number; [keyName: string]: any; @@ -55,14 +55,14 @@ export default function SearchSelect(props: SearchSelectProps) { const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); - const [selectedValue, setSelectedValue] = useState>( + const [selectedValue, setSelectedValue] = useState>( option.filter((item) => item.value === value), ); const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); const divRef = useRef(null); - const valueRef = useRef>(); + const valueRef = useRef>(); valueRef.current = useMemo(() => selectedValue, [selectedValue]); useEffect(() => { @@ -73,13 +73,13 @@ export default function SearchSelect(props: SearchSelectProps) { }, []); function removeSelectItem(index: number) { - const selectedValue = valueRef.current as MenuItemData[]; + const selectedValue = valueRef.current as SearchSelectOptionData[]; selectedValue.splice(index, 1); const values = [...selectedValue]; return values; } - function handleItemClick(item: MenuItemData) { + function handleItemClick(item: SearchSelectOptionData) { setInnerIsOpen(false); const values = [item]; setSelectedValue(values); @@ -90,8 +90,8 @@ export default function SearchSelect(props: SearchSelectProps) { handleSelectChange(resultValue); } - function handleItemsClick(item: MenuItemData) { - let values: MenuItemData[] = []; + function handleItemsClick(item: SearchSelectOptionData) { + let values: SearchSelectOptionData[] = []; const index = selectedValue.findIndex((finds) => finds.value === item.value); if (index !== -1) { values = removeSelectItem(index); From 72216645f1d8a02fc3bff70bf3c5274e74d46b0b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 15:36:50 +0800 Subject: [PATCH 014/575] =?UTF-8?q?style(search-select):=20=E5=A4=9A?= =?UTF-8?q?=E9=80=89select=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 4 ++-- packages/react-search-select/src/style/index.less | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index d68114512f..699b9722fe 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -186,7 +186,7 @@ export default function SearchSelect(props: SearchSelectProps) { ref={divRef} onMouseOver={() => renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - style={{ width: 'auto', maxWidth: 'none', ...style }} + style={style} >
{ return ( setSelectedValue(removeSelectItem(index))} diff --git a/packages/react-search-select/src/style/index.less b/packages/react-search-select/src/style/index.less index 016dc592df..ff481636e3 100644 --- a/packages/react-search-select/src/style/index.less +++ b/packages/react-search-select/src/style/index.less @@ -1,8 +1,13 @@ .inptContents { input { box-shadow: none; - &:hover:after { - box-shadow: 'none' !important; + } + .w-input-inner { + &:hover { + box-shadow: none !important; + } + &:focus { + box-shadow: none !important; } } } From d6efbbe89f2a20d7aac0c353d511a20759721fe0 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 15:46:19 +0800 Subject: [PATCH 015/575] =?UTF-8?q?style(search-select):=20=E5=A4=9A?= =?UTF-8?q?=E9=80=89select=E4=B8=8B=E6=8B=89=E5=BC=B9=E5=B1=82=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 699b9722fe..0f80574418 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -160,6 +160,7 @@ export default function SearchSelect(props: SearchSelectProps) { style={{ minHeight: 25, maxHeight: 280, + minWidth: style?.minWidth || 200, overflowY: 'scroll', width: divRef.current ? divRef.current.offsetWidth : 'auto', }} From 0cb0a693d161e1151e36be5d51777044c9034c10 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 16:29:11 +0800 Subject: [PATCH 016/575] =?UTF-8?q?fix(Table):data=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=AF=B9=E8=B1=A1=E5=86=85=E5=8C=85=E5=90=AB=E5=B8=83?= =?UTF-8?q?=E5=B0=94=E7=B1=BB=E5=9E=8B=20#517?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- packages/react-table/src/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 82716e75cb..7cfad8a890 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ yarn.lock # IDEA *.iml *.ipr -*.iws \ No newline at end of file +*.iws +Tools diff --git a/packages/react-table/src/index.tsx b/packages/react-table/src/index.tsx index b4ed1ab97b..0ca040f16e 100644 --- a/packages/react-table/src/index.tsx +++ b/packages/react-table/src/index.tsx @@ -25,7 +25,7 @@ export type TableColumns = { export interface TableProps extends IProps, Omit { prefixCls?: string; columns?: TableColumns[]; - data?: Record[]; + data?: Record[]; title?: React.ReactNode; footer?: React.ReactNode; bordered?: boolean; From 0048c06803b3b3c375e6032ccdbeb7808fdeb240 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Feb 2022 16:51:03 +0800 Subject: [PATCH 017/575] =?UTF-8?q?style(search-select):=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 6 +++-- .../react-search-select/src/style/index.less | 24 ++++++++++++------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 0f80574418..d9205e61cb 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -38,7 +38,7 @@ export default function SearchSelect(props: SearchSelectProps) { size = 'default', option = [], loading = false, - prefixCls, + prefixCls = 'w-search-select', className, mode = 'single', style, @@ -53,6 +53,7 @@ export default function SearchSelect(props: SearchSelectProps) { ...others } = props; + const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedValue, setSelectedValue] = useState>( @@ -145,6 +146,7 @@ export default function SearchSelect(props: SearchSelectProps) { return ( 0 ? false : true} @@ -218,7 +220,7 @@ export default function SearchSelect(props: SearchSelectProps) { })} Date: Wed, 16 Feb 2022 17:21:08 +0800 Subject: [PATCH 018/575] =?UTF-8?q?style(SearchSelect):=20=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - packages/react-search-select/src/index.tsx | 2 +- packages/react-search-select/src/style/index.less | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7cfad8a890..cd51ab3286 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,3 @@ yarn.lock *.iml *.ipr *.iws -Tools diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 13ba91e4a3..9ff56eb83a 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -220,7 +220,7 @@ export default function SearchSelect(props: SearchSelectProps) { })} Date: Thu, 17 Feb 2022 11:41:16 +0800 Subject: [PATCH 019/575] =?UTF-8?q?ifx(SearchSelect):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?value=E5=8F=97=E6=8E=A7=E6=94=AF=E6=8C=81,=E5=A4=9A=E9=80=89?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=B8=BA=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 36 ++++++++++---------- packages/react-search-select/src/index.tsx | 39 ++++++++++++++-------- 2 files changed, 45 insertions(+), 30 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index 2c4e0bf1c2..9d0caf4e70 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -17,22 +17,25 @@ import ReactDOM from 'react-dom'; import { SearchSelect } from 'uiw'; const Demo = () => { - const [option, setOption] = React.useState([]); - const [loading, setLoading] = React.useState(false); - const [value, setValue] = React.useState(undefined); - function handleSearch(e) { - console.log('handleSearch',e) - setLoading(true) - setTimeout(() => { - setOption([ - { label: 'a', value: 2 }, - { label: 'aa', value: 3 }, - { label: 'aaa', value: 4 }, + const selectOption=[ + { label: 'a1', value: 1 }, + { label: 'a2', value: 2 }, + { label: 'a3', value: 3 }, + { label: 'a4', value: 4 }, { label: 'a5', value: 5 }, { label: 'a6', value: 6 }, { label: 'a7', value: 7 }, { label: 'a8', value: 8 }, - ]); + ] + + const [option, setOption] = React.useState(selectOption); + const [loading, setLoading] = React.useState(false); + const [value, setValue] = React.useState([2,5]); + function handleSearch(e) { + setValue([3,4]) + setLoading(true) + setTimeout(() => { + setOption(); setLoading(false); }, 2000); } @@ -42,7 +45,7 @@ const Demo = () => { style={{ maxWidth: 200 }} showSearch={true} allowClear - value={[2,3]} + value={value} disabled={false} placeholder="请输入选择" onSearch={handleSearch} @@ -50,7 +53,6 @@ const Demo = () => { loading={loading} option={option} onChange={(value) => { - console.log('onChange',value) setValue(value) }} /> @@ -162,13 +164,13 @@ ReactDOM.render(, _mount_); |--------- |-------- |--------- |-------- | | allowClear | 支持清除 | Boolean | `false` | | disabled | 禁用选择器 | Boolean | `false` | -| mode | 是否可以多选; 'multiple','single' | String | 'single' | +| mode | 选择模式: `multiple` `single` | String | `single` | | defaultValue | 指定默认选中的条目 | String/Number | - | -| value | 指定选中的条目的值 | String/Number | - | +| value | 指定选中的条目的值 | String/Number 多选模式下`value`皆为`Array` | - | | placeholder | 选择框默认文字 | String | - | | showSearch | 使单选模式可搜索 | Boolean | - | | size | 选择框尺寸 | Enum{`large`, `default`, `small` } | `default` | -| onChange | 选中 option,或 input 的 value,调用此函数 | `function(value, option:Option/Array
}> */} + {/* e.preventDefault()}> + 点击我出现下拉菜单 + */} +
renderSelectIcon('enter')} + // onMouseLeave={() => renderSelectIcon('leave')} + style={{ width: 200, maxWidth: 'none', ...style }} + > +
+
+ {selectedOption.map((item, index) => { + return ( + setSelectedOption(removeSelectItem(index))} + color="#ccc" + > + {item} + + ); + })} + +
+ {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( + {}} /> + )} +
+
+ + ); +} + +export default SearchTagInput; diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less new file mode 100644 index 0000000000..8cff585394 --- /dev/null +++ b/packages/react-search-tree/src/style/index.less @@ -0,0 +1,65 @@ +@w-search-tree: ~'w-search-tree'; + +.@{w-search-tree} { + &-input-contents { + input { + box-shadow: none; + padding: 0px; + height: 20px; + } + + .w-input-inner { + &:hover { + box-shadow: none !important; + } + + &:focus { + box-shadow: none !important; + } + } + } + + &-inner { + display: flex; + justify-content: space-between; + outline: none; + border: none; + align-items: center; + border-radius: 3px; + box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), + inset 0 1px 1px rgba(16, 22, 26, 0.2); + box-sizing: border-box; + background: #fff; + min-height: 30px; + margin: 0 !important; + padding: 3px 10px 3px 10px; + vertical-align: middle; + line-height: 30px; + color: #393e48; + font-weight: 400; + font-size: inherit; + transition: box-shadow 0.3s cubic-bezier(0.4, 1, 0.75, 0.9); + appearance: none; + + &:focus { + box-shadow: 0 0 0 1px #393e48, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:focus&:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:disabled { + box-shadow: none; + background: #dddddd; + opacity: 0.75; + color: #a5a5a5; + cursor: not-allowed; + resize: none; + } + } +} diff --git a/packages/react-search-tree/tsconfig.json b/packages/react-search-tree/tsconfig.json new file mode 100644 index 0000000000..41a3f0ac82 --- /dev/null +++ b/packages/react-search-tree/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig", + "include": ["src/**/*"], + "compilerOptions": { + "outDir": "./cjs", + "baseUrl": "." + } +} From b9363e4cfc1d95048195cf28f53971c628517268 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 22 Feb 2022 18:09:26 +0800 Subject: [PATCH 032/575] SearchTree --- packages/uiw/package.json | 1 + packages/uiw/src/index.ts | 2 ++ website/src/menu.json | 1 + website/src/routers.tsx | 2 ++ .../src/routes/components/search-tree/index.tsx | 14 ++++++++++++++ 5 files changed, 20 insertions(+) create mode 100644 website/src/routes/components/search-tree/index.tsx diff --git a/packages/uiw/package.json b/packages/uiw/package.json index e5077cf7a8..bd1875c0b6 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -110,6 +110,7 @@ "@uiw/react-time-picker": "^4.11.4", "@uiw/react-tooltip": "^4.11.4", "@uiw/react-tree": "^4.11.4", + "@uiw/react-search-tree": "^4.11.4", "@uiw/react-tree-checked": "^4.11.4" }, "devDependencies": { diff --git a/packages/uiw/src/index.ts b/packages/uiw/src/index.ts index 0ea20b0bbe..31f4b8acd1 100644 --- a/packages/uiw/src/index.ts +++ b/packages/uiw/src/index.ts @@ -55,6 +55,7 @@ export * from '@uiw/react-time-picker'; export * from '@uiw/react-tooltip'; export * from '@uiw/react-tree'; export * from '@uiw/react-tree-checked'; +export * from '@uiw/react-search-tree'; export { default as Affix } from '@uiw/react-affix'; export { default as Alert } from '@uiw/react-alert'; @@ -112,3 +113,4 @@ export { default as TimePicker } from '@uiw/react-time-picker'; export { default as Tooltip } from '@uiw/react-tooltip'; export { default as Tree } from '@uiw/react-tree'; export { default as TreeChecked } from '@uiw/react-tree-checked'; +export { default as SearchTree } from '@uiw/react-search-tree'; diff --git a/website/src/menu.json b/website/src/menu.json index 56257b5065..7be5c0bb33 100755 --- a/website/src/menu.json +++ b/website/src/menu.json @@ -72,6 +72,7 @@ { "name": "Tag 标签", "path": "tag" }, { "name": "Tree 树形控件", "path": "tree" }, { "name": "TreeChecked 树形选择控件", "path": "tree-checked" }, + { "name": "SearchTree 搜索树形控件", "path": "search-tree" }, { "name": "Table 表格", "path": "table" }, { "name": "Progress 进度条", "path": "progress" }, { "name": "List 列表", "path": "list" }, diff --git a/website/src/routers.tsx b/website/src/routers.tsx index 7e30e2b869..b65a05e2e0 100755 --- a/website/src/routers.tsx +++ b/website/src/routers.tsx @@ -63,6 +63,7 @@ const Layout = Loadable(lazy(() => import('./routes/components/layout'))); const Notify = Loadable(lazy(() => import('./routes/components/notify'))); const Tree = Loadable(lazy(() => import('./routes/components/tree'))); const TreeChecked = Loadable(lazy(() => import('./routes/components/tree-checked'))); +const SearchTree = Loadable(lazy(() => import('./routes/components/search-tree'))); const Tag = Loadable(lazy(() => import('./routes/components/tag'))); const Tabs = Loadable(lazy(() => import('./routes/components/tabs'))); const Tooltip = Loadable(lazy(() => import('./routes/components/tooltip'))); @@ -153,6 +154,7 @@ export const routes: RouteObject[] = [ { path: '/components/notify', element: }, { path: '/components/tree', element: }, { path: '/components/tree-checked', element: }, + { path: '/components/search-tree', element: }, { path: '/components/tag', element: }, { path: '/components/tabs', element: }, { path: '/components/tooltip', element: }, diff --git a/website/src/routes/components/search-tree/index.tsx b/website/src/routes/components/search-tree/index.tsx new file mode 100644 index 0000000000..f8ee3e89a4 --- /dev/null +++ b/website/src/routes/components/search-tree/index.tsx @@ -0,0 +1,14 @@ +import React, { useState } from 'react'; +import { TreeChecked, SearchTree, Row, Col, Card, Icon } from 'uiw'; +import Markdown from '../../../components/Markdown'; + +export default () => ( + { + const md = await import('uiw/node_modules/@uiw/react-search-tree/README.md'); + return md.default || md; + }} + /> +); From 940fb072fdd49c0de7cf05ada496895781a8e802 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 23 Feb 2022 00:32:37 +0800 Subject: [PATCH 033/575] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 12 +- packages/react-search-tree/README.md | 1 - packages/react-search-tree/package.json | 1 + packages/react-search-tree/src/index.tsx | 160 +++++++++++++++--- .../react-search-tree/src/searchTagInput.tsx | 55 +++--- 5 files changed, 170 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index a01c1d042d..d96694ab12 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", - "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", - "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", - "lib:css:watch": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm --watch", - "lib:watch": "lerna exec --scope @uiw/react-file-input -- tsbb watch & npm run lib:css:watch", - "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-file-input", + "lib": "lerna exec --scope @uiw/react-search-tree -- tsbb build --target react", + "lib:css": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o esm", + "lib:css:dist": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o lib --combine=dist.css", + "lib:css:watch": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o esm --watch", + "lib:watch": "lerna exec --scope @uiw/react-search-tree -- tsbb watch & npm run lib:css:watch", + "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-search-tree", "lib:build": "npm run lib && npm run lib:css && npm run lib:css:dist", "//>>>>>>>>>>>>": "<<<<<<<<<<", "watch:other:lib": "lerna exec --parallel --scope @uiw/* --ignore @uiw/doc -- tsbb watch", diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index f5414e2fa7..ca5456aba0 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -53,7 +53,6 @@ const data = [ }, { label: '澳门', key: '3' }, ]; -console.log('data',data) const Demo = () => ( ; +const TreeCheckeds = (props: DropContent & { reff: any }) => { + // const [selectOption, selectOptionSet] = useState({}) + // const [keys, keysSet] = useState>() + + const { + option: [selectOption, selectOptionSet], + keys: [keys, keysSet], + } = props.reff.current; + console.log(',,,,,,,', keys); + const onSelected = (_1: any, _2: any, isChecked: any, evn: any) => { + let curSelectOption: SelectOtpion = {}; + curSelectOption = getOptionsRecursion([evn], selectOption, isChecked); + selectOptionSet(curSelectOption); + // const option = Object.entries(curSelectOption).map(([value, label]) => ({ value, label })) + const keys: any = []; + const option = Object.entries(curSelectOption).map(([value, label]) => { + keys.push(value); + return { value, label }; + }); + keysSet(keys); + props.onSelected(option); + }; + + const getOptionsRecursion = (childrens: Array, selectOption: SelectOtpion, isAdd: boolean) => { + childrens.forEach((child: any) => { + if (child?.children?.length > 0) { + selectOption = getOptionsRecursion(child.children, selectOption, isAdd); + } else if (isAdd) { + selectOption[child.key] = child.label; + } else { + delete selectOption[child.key]; + } + }); + return selectOption; + }; + + const data = [ + { + label: '湖北省', + key: '0-0-0', + children: [ + { + label: '武汉市', + key: '0-1-0', + children: [ + { label: '新洲区', key: '0-1-1', disabled: true }, + { label: '武昌区', key: '0-1-2' }, + { + label: '汉南区', + key: '0-1-3', + children: [ + { label: '汉南区1', key: '0-1-3-1' }, + { label: '汉南区2', key: '0-1-3-2' }, + { label: '汉南区3', key: '0-1-3-3' }, + ], + }, + ], + }, + { label: '黄冈市', key: '0-2-0' }, + { + label: '黄石市', + key: '0-3-0', + children: [ + { label: '青山区', key: '0-3-1' }, + { label: '黄陂区', key: '0-3-2' }, + { label: '青山区', key: '0-3-3' }, + ], + }, + ], + }, + { + label: '上海市', + key: '1-0-0', + children: [ + { label: '黄浦区', key: '1-0-1' }, + { label: '卢湾区', key: '1-0-2' }, + { + label: '徐汇区', + key: '1-0-3', + children: [ + { label: '半淞园路街道', key: '1-1-0' }, + { label: '南京东路街道', key: '1-2-0' }, + { label: '外滩街道', key: '1-3-0' }, + ], + }, + ], + }, + { + label: '北京市', + key: '2-0-0', + children: [ + { label: '东城区', key: '2-1-0' }, + { label: '西城区', key: '2-2-0' }, + { + label: '崇文区', + key: '2-3-0', + children: [ + { label: '东花市街道', key: '2-3-1' }, + { label: '体育馆路街道', key: '2-3-2' }, + { label: '前门街道', key: '2-3-3' }, + ], + }, + ], + }, + { label: '澳门', key: '3' }, + ]; + + return ; +}; + +function SearchTreeChecked(props: any) { + const reff = useRef(); + reff.current = { + option: useState({}), + keys: useState>(), + }; + + const onChange = (resultValue: Array) => { + // console.log('resultVal--ue', resultValue) + // props.onChange(resultValue) + }; -const TreeCheckeds = (props: DropContent) => { - console.log('aa', props.value); return ( - { - // console.log(key, expanded, data, node); - // }} - // onSelected={(key, selected, item, evn) => { - // console.log('select:', key); - // console.log('select:', selected); - // console.log('select:', item); - // console.log('select:', evn); - // }} + { + console.log('------------------', option); + }} + /> + } /> ); -}; - -function TreeChecked() { - return {}} />} />; } -export default TreeChecked; +export default SearchTreeChecked; diff --git a/packages/react-search-tree/src/searchTagInput.tsx b/packages/react-search-tree/src/searchTagInput.tsx index c8f3711517..829f3fd373 100644 --- a/packages/react-search-tree/src/searchTagInput.tsx +++ b/packages/react-search-tree/src/searchTagInput.tsx @@ -1,17 +1,15 @@ -import React, { useMemo, useState, useRef, useEffect } from 'react'; -import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; +import React, { useMemo, useState, useRef, useEffect, ReactElement } from 'react'; +import Dropdown from '@uiw/react-dropdown'; import Icon from '@uiw/react-icon'; import Input from '@uiw/react-input'; import Tag from '@uiw/react-tag'; +import Card from '@uiw/react-card'; import { IProps } from '@uiw/utils'; import './style/index.less'; -export interface DropContent extends React.ReactElement { - value: Array | undefined; - onSelected: () => void; - // key: any, - // type: any, - // props: any +export interface DropContent { + values: Array | undefined; + onSelected: (options: Array) => void; // data: Array, } @@ -21,7 +19,7 @@ export interface SearchTagInputOption { } export interface SearchTagInputProps extends IProps { - content: DropContent; + content: ReactElement; onChange?: (_: Array) => void; mode?: 'single' | 'multiple'; loading?: boolean; @@ -41,48 +39,45 @@ function SearchTagInput(props: SearchTagInputProps) { } = props; const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); - const isMultiple = useMemo(() => mode === 'multiple', [mode]); - const [innerIsOpen, setInnerIsOpen] = useState(false); + // const isMultiple = useMemo(() => mode === 'multiple', [mode]); + // const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState>([]); + const optionRef = useRef>(); + optionRef.current = useMemo(() => selectedOption, [selectedOption]); const [selectIconType, setSelectIconType] = useState(''); const onSelected = (selectedOption: Array) => { - console.log('selectedOption', selectedOption); setSelectedOption(selectedOption); + + onChange && onChange(selectedOption); }; const removeSelectItem = (index: number) => { - const selectedValue = selectedOption; - selectedValue.splice(index, 1); - const values = [...selectedValue]; - return values; + const selectedOption = optionRef.current as Array; + selectedOption.splice(index, 1); + onSelected([...selectedOption]); }; - const handleChangeForProps = (changeValue: Array) => { - if (!onChange) return; - - onChange(changeValue); - }; + // const handleChangeForProps = (selectedOption: Array) => { + // if (!onChange) return; + // onChange(selectedOption); + // }; const newContent = useMemo(() => { const newProps = { ...content.props, onSelected }; - return React.cloneElement(content as any, newProps); + return React.cloneElement(content as JSX.Element, newProps); }, []); return ( - - {/* 123
}> */} - {/* e.preventDefault()}> - 点击我出现下拉菜单 - */} + {newContent}}>
renderSelectIcon('enter')} // onMouseLeave={() => renderSelectIcon('leave')} style={{ width: 200, maxWidth: 'none', ...style }} >
+ {/* {optionRef.current.map((item, index) => { */} {selectedOption.map((item, index) => { return ( setSelectedOption(removeSelectItem(index))} + onClose={() => removeSelectItem(index)} color="#ccc" > - {item} + {item.label} ); })} From 455485cbd896f1cc484481780d4ac86e4898df9e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 23 Feb 2022 17:47:15 +0800 Subject: [PATCH 034/575] =?UTF-8?q?feat(SearhTree):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B8=A6=E6=90=9C=E7=B4=A2=E7=9A=84=E6=A0=91=E5=BD=A2=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 1 + packages/react-search-tree/README.md | 49 ++---- packages/react-search-tree/src/index.tsx | 164 +++++------------- .../react-search-tree/src/searchTagInput.tsx | 123 ++++++++----- .../react-search-tree/src/style/index.less | 1 + packages/react-tree/src/index.tsx | 4 + 6 files changed, 152 insertions(+), 190 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index f800499cec..7b24e62e11 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -146,6 +146,7 @@ export default function SearchSelect(props: SearchSelectProps) { function renderSelectIcon(type: string) { let selectIconType; if (type === 'enter' && allowClear && selectedValue) { + console.log(123); selectIconType = 'close'; } else { selectIconType = ''; diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index ca5456aba0..76d3925aaa 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -56,34 +56,12 @@ const data = [ const Demo = () => ( consoe.log('SearchTree-> SearchTreeOption',SearchTreeOption)} - onChange={()=>console.log('SearchTree-> onChange',onChange)} - content={ - { - // console.log(key, expanded, data, node); - // }} - // onSelected={(key, selected, item, evn) => { - // console.log('select:', key); - // console.log('select:', selected); - // console.log('select:', item); - // console.log('select:', evn); - // }} - /> - } - // data={data} - // selectedKeys={['0-1-1']} - // onExpand={(key, expanded, data, node) => { - // console.log(key, expanded, data, node); - // }} - // onSelected={(key, selected, item, evn) => { - // console.log('select:', key); - // console.log('select:', selected); - // console.log('select:', item); - // console.log('select:', evn); - // }} + allowClear={true} + onSearch={(searchValue)=>console.log('SearchTree-> SearchTreeOption',searchValue)} + onChange={(selectedAll, selectd, isChecked)=>console.log('SearchTree-> onChange',selectedAll, selectd, isChecked)} + value={[{ label: '东花市街道', value: '2-3-1' }]} + options={data} + placeholder="请输入选择" /> ) ReactDOM.render(, _mount_); @@ -91,10 +69,15 @@ ReactDOM.render(, _mount_); ## Props -完全继承 [Tree](#/components/Tree) 组件属性,默认初始值不一样,下面仅列出默认不一致的 Props。 - | 参数 | 说明 | 类型 | 默认值 | |--------- |-------- |--------- |-------- | -| checkStrictly | 子节点受父节点控制设置 `true`,需要配合 `multiple` 参数使用。 | Boolean | `true` | -| isSelected | 是否选中当前节点 | Boolean | `false` | -| multiple | 支持点选多个节点 | Boolean | `true` | +| allowClear | 支持清除 | Boolean | `false` | +| disabled | 禁用选择器 | Boolean | `false` | +| value | 指定当前选中的条目 | [{label:string, value:string}] | - | +| options | 下拉数据源 | [{label:string, value:string}] | - | +| placeholder | 选择框默认文字 | String | - | +| size | 选择框尺寸 | Enum{large, default, small } | `default` | +| onChange | 选中 option,或 input 的 value,调用此函数 | function(selectdAll, selectd, isChecked)=>void | - | +| onSearch | 文本框值变化时回调 | function(searchValue) | - | +| loading | 加载中状态 | Boolean | `false` | + diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 3136319bf0..4af3a831ed 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -1,144 +1,74 @@ import React, { useState, useEffect, useRef } from 'react'; import SearchTagInput, { DropContent, SearchTagInputOption } from './searchTagInput'; -import TreeChecked from '@uiw/react-tree-checked'; +import { TreeData } from '@uiw/react-tree'; +import TreeChecked, { TreeCheckedProps } from '@uiw/react-tree-checked'; type SelectOtpion = Record; -const TreeCheckeds = (props: DropContent & { reff: any }) => { - // const [selectOption, selectOptionSet] = useState({}) - // const [keys, keysSet] = useState>() - const { - option: [selectOption, selectOptionSet], - keys: [keys, keysSet], - } = props.reff.current; - console.log(',,,,,,,', keys); - const onSelected = (_1: any, _2: any, isChecked: any, evn: any) => { - let curSelectOption: SelectOtpion = {}; - curSelectOption = getOptionsRecursion([evn], selectOption, isChecked); - selectOptionSet(curSelectOption); - // const option = Object.entries(curSelectOption).map(([value, label]) => ({ value, label })) - const keys: any = []; - const option = Object.entries(curSelectOption).map(([value, label]) => { - keys.push(value); - return { value, label }; +// type TreeCheckedsProps = TreeCheckedProps & Partial> +function TreeCheckeds( + props: Omit & Partial>, +) { + const [selectOption, selectOptionSet] = useState({}); + const [keys, keysSet] = useState>([]); + + useEffect(() => { + let selectOption: SelectOtpion = {}; + const keys = props.values?.map((opt) => { + selectOption[opt.value] = opt.label; + return opt.value; }); - keysSet(keys); - props.onSelected(option); + selectOptionSet(selectOption); + keysSet(keys || []); + }, [props.values]); + + const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => { + const curSelectOption: SelectOtpion = getOptionsRecursion([evn], selectOption, isChecked); + const option = Object.entries(curSelectOption).map(([value, label]) => ({ value, label } as V)); + props.onSelected?.(option, { value: evn.key, label: evn.label as string } as V, isChecked); }; - const getOptionsRecursion = (childrens: Array, selectOption: SelectOtpion, isAdd: boolean) => { - childrens.forEach((child: any) => { - if (child?.children?.length > 0) { + const getOptionsRecursion = (childrens: TreeData[], selectOption: SelectOtpion, isAdd: boolean) => { + childrens.forEach((child: TreeData) => { + if (!!child.children?.length) { selectOption = getOptionsRecursion(child.children, selectOption, isAdd); } else if (isAdd) { - selectOption[child.key] = child.label; + selectOption[child.key!] = child.label?.toString()!; } else { - delete selectOption[child.key]; + delete selectOption[child.key!]; } }); return selectOption; }; - const data = [ - { - label: '湖北省', - key: '0-0-0', - children: [ - { - label: '武汉市', - key: '0-1-0', - children: [ - { label: '新洲区', key: '0-1-1', disabled: true }, - { label: '武昌区', key: '0-1-2' }, - { - label: '汉南区', - key: '0-1-3', - children: [ - { label: '汉南区1', key: '0-1-3-1' }, - { label: '汉南区2', key: '0-1-3-2' }, - { label: '汉南区3', key: '0-1-3-3' }, - ], - }, - ], - }, - { label: '黄冈市', key: '0-2-0' }, - { - label: '黄石市', - key: '0-3-0', - children: [ - { label: '青山区', key: '0-3-1' }, - { label: '黄陂区', key: '0-3-2' }, - { label: '青山区', key: '0-3-3' }, - ], - }, - ], - }, - { - label: '上海市', - key: '1-0-0', - children: [ - { label: '黄浦区', key: '1-0-1' }, - { label: '卢湾区', key: '1-0-2' }, - { - label: '徐汇区', - key: '1-0-3', - children: [ - { label: '半淞园路街道', key: '1-1-0' }, - { label: '南京东路街道', key: '1-2-0' }, - { label: '外滩街道', key: '1-3-0' }, - ], - }, - ], - }, - { - label: '北京市', - key: '2-0-0', - children: [ - { label: '东城区', key: '2-1-0' }, - { label: '西城区', key: '2-2-0' }, - { - label: '崇文区', - key: '2-3-0', - children: [ - { label: '东花市街道', key: '2-3-1' }, - { label: '体育馆路街道', key: '2-3-2' }, - { label: '前门街道', key: '2-3-3' }, - ], - }, - ], - }, - { label: '澳门', key: '3' }, - ]; + return ; +} - return ; -}; +export interface SearchTreeProps { + onChange?: (selectedAll: Array, selectd: V, isChecked: boolean) => void; + onSearch?: (seachValue: string) => void; + value?: Array; + options?: TreeData[]; + treeProps?: Omit & Partial>; +} -function SearchTreeChecked(props: any) { - const reff = useRef(); - reff.current = { - option: useState({}), - keys: useState>(), - }; +function SearchTree(props: SearchTreeProps) { + const { onChange, onSearch, options = [], value = [], treeProps, ...other } = props; + const [selectedValues, selectedValuesSet] = useState>(value); - const onChange = (resultValue: Array) => { - // console.log('resultVal--ue', resultValue) - // props.onChange(resultValue) + const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { + selectedValuesSet(resultValue); + onChange?.(resultValue, cur, isChecked); }; return ( { - console.log('------------------', option); - }} - /> - } + {...other} + onChange={selectedChange} + values={selectedValues} + content={} /> ); } -export default SearchTreeChecked; +export default SearchTree; diff --git a/packages/react-search-tree/src/searchTagInput.tsx b/packages/react-search-tree/src/searchTagInput.tsx index 829f3fd373..e1c475392e 100644 --- a/packages/react-search-tree/src/searchTagInput.tsx +++ b/packages/react-search-tree/src/searchTagInput.tsx @@ -1,5 +1,5 @@ import React, { useMemo, useState, useRef, useEffect, ReactElement } from 'react'; -import Dropdown from '@uiw/react-dropdown'; +import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; import Icon from '@uiw/react-icon'; import Input from '@uiw/react-input'; import Tag from '@uiw/react-tag'; @@ -7,77 +7,116 @@ import Card from '@uiw/react-card'; import { IProps } from '@uiw/utils'; import './style/index.less'; -export interface DropContent { - values: Array | undefined; - onSelected: (options: Array) => void; - // data: Array, +export interface DropContent { + values: Array; + onSelected?: (selectedAll: Array, selectd: V, isChecked: boolean) => void; + options?: any; } export interface SearchTagInputOption { label: string; - value: any; + value: string | number; } -export interface SearchTagInputProps extends IProps { - content: ReactElement; - onChange?: (_: Array) => void; - mode?: 'single' | 'multiple'; +export interface SearchTagInputProps extends IProps, DropdownProps, DropContent { + allowClear?: boolean; + content: ReactElement>; + size?: 'large' | 'default' | 'small'; + onChange: (selectedAll: Array, selectd: V, isChecked: boolean) => void; + onSearch?: (seachValue: string) => void; + // mode?: 'single' | 'multiple'; loading?: boolean; + placeholder?: string; } -function SearchTagInput(props: SearchTagInputProps) { +function SearchTagInput(props: SearchTagInputProps) { const { prefixCls = 'w-search-tree', mode = 'single', + size = 'default', + disabled = false, + allowClear = false, + loading = false, className, + style, + placeholder, + content, + values, onChange, - - style, - loading = false, + onSearch, ...others } = props; const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); // const isMultiple = useMemo(() => mode === 'multiple', [mode]); // const [innerIsOpen, setInnerIsOpen] = useState(false); - const [selectedOption, setSelectedOption] = useState>([]); - const optionRef = useRef>(); + const [selectedOption, setSelectedOption] = useState>(values); + const optionRef = useRef>(); + const [searchValue, searchValueSet] = useState(''); optionRef.current = useMemo(() => selectedOption, [selectedOption]); const [selectIconType, setSelectIconType] = useState(''); + const inputRef = useRef(null); + + function renderSelectIcon(type: string) { + const selectIconType = type === 'enter' && allowClear && (!!selectedOption.length || searchValue) ? 'close' : ''; + setSelectIconType(selectIconType); + } - const onSelected = (selectedOption: Array) => { - setSelectedOption(selectedOption); + const handleSelectChange = (selectedAll: Array, selectd?: V, isChecked: boolean = true) => { + setSelectedOption(selectedAll); - onChange && onChange(selectedOption); + onChange && onChange(selectedAll, selectd!, isChecked); }; const removeSelectItem = (index: number) => { - const selectedOption = optionRef.current as Array; + const selectedOption = optionRef.current as Array; + const curreentItem = selectedOption[index]; selectedOption.splice(index, 1); - onSelected([...selectedOption]); + handleSelectChange([...selectedOption], curreentItem, false); }; - // const handleChangeForProps = (selectedOption: Array) => { - // if (!onChange) return; - // onChange(selectedOption); - // }; + function handleInputChange(e: React.ChangeEvent) { + const value = e.target.value; + searchValueSet(value); + onSearch?.(value); + setSelectIconType(value ? 'loading' : ''); + } + + // 清除选中的值 + function resetSelectedValue() { + // setInnerIsOpen(false); + setSelectedOption([]); + searchValueSet(''); + setSelectIconType(''); + handleSelectChange([]); + } + + function inputKeyDown(e: any) { + if (selectedOption.length > 0 && !searchValue && e.keyCode === 8) { + removeSelectItem(selectedOption.length - 1); + } + } const newContent = useMemo(() => { - const newProps = { ...content.props, onSelected }; + const newProps = { + ...content.props, + onSelected: handleSelectChange, + values: selectedOption, + }; return React.cloneElement(content as JSX.Element, newProps); - }, []); + }, [selectedOption]); return ( - {newContent}}> + {newContent}}>
renderSelectIcon('enter')} - // onMouseLeave={() => renderSelectIcon('leave')} + onMouseOver={() => renderSelectIcon('enter')} + onMouseLeave={() => renderSelectIcon('leave')} + onClick={() => inputRef.current?.focus()} style={{ width: 200, maxWidth: 'none', ...style }} >
- {/* {optionRef.current.map((item, index) => { */} {selectedOption.map((item, index) => { return ( removeSelectItem(index)} + onClose={(e) => { + e.stopPropagation(); + removeSelectItem(index); + }} color="#ccc" > {item.label} @@ -93,19 +135,20 @@ function SearchTagInput(props: SearchTagInputProps) { ); })}
{(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( - {}} /> + )}
diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less index 8cff585394..9fd269a3cb 100644 --- a/packages/react-search-tree/src/style/index.less +++ b/packages/react-search-tree/src/style/index.less @@ -21,6 +21,7 @@ &-inner { display: flex; + overflow: hidden; justify-content: space-between; outline: none; border: none; diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 8c777f5df6..fb0912b61f 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -142,6 +142,10 @@ export default function Tree(props: TreeProps) { const [curOpenKeys, setCurOpenKeys] = useState(openKeys); const [curSelectedKeys, setCurSelectedKeys] = useState(selectedKeys); + useEffect(() => { + setCurSelectedKeys(props.selectedKeys!); + }, [JSON.parse(JSON.stringify(props.selectedKeys))]); + // useEffect(() => setCurOpenKeys(openKeys), [openKeys]); // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); From d0151c12f37c94bcabfad3e4038fd1c815363415 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 23 Feb 2022 17:50:33 +0800 Subject: [PATCH 035/575] =?UTF-8?q?revert:=20=E6=92=A4=E9=94=80package.jso?= =?UTF-8?q?n=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d96694ab12..a01c1d042d 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "lib": "lerna exec --scope @uiw/react-search-tree -- tsbb build --target react", - "lib:css": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o esm", - "lib:css:dist": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o lib --combine=dist.css", - "lib:css:watch": "lerna exec --scope @uiw/react-search-tree -- compile-less -d src -o esm --watch", - "lib:watch": "lerna exec --scope @uiw/react-search-tree -- tsbb watch & npm run lib:css:watch", - "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-search-tree", + "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", + "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", + "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", + "lib:css:watch": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm --watch", + "lib:watch": "lerna exec --scope @uiw/react-file-input -- tsbb watch & npm run lib:css:watch", + "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-file-input", "lib:build": "npm run lib && npm run lib:css && npm run lib:css:dist", "//>>>>>>>>>>>>": "<<<<<<<<<<", "watch:other:lib": "lerna exec --parallel --scope @uiw/* --ignore @uiw/doc -- tsbb watch", From 755d7714bb2cfe2379fad0b6bbc27efc2f5d5b4c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 23 Feb 2022 17:58:12 +0800 Subject: [PATCH 036/575] =?UTF-8?q?docs(SearchTree):=20=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 76d3925aaa..c1773b02e1 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -1,4 +1,4 @@ -SearhTree 带搜索的Tree选择控件 +SearchTree 带搜索的Tree选择控件 === 使用树选择控件可以完整展现其中的层级关系,并具有选中状态。 From 41ead8f6dd33a24971f32c4d4151641414745edd Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 24 Feb 2022 15:23:25 +0800 Subject: [PATCH 037/575] =?UTF-8?q?feat(SearchTree):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD,=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=B8=8D=E5=8C=B9=E9=85=8D=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 39 ++++++++++++++++++- .../react-search-tree/src/searchTagInput.tsx | 10 +++-- .../react-search-tree/src/style/index.less | 2 +- packages/react-tree/src/TreeNode.tsx | 2 +- packages/react-tree/src/index.tsx | 1 + 5 files changed, 46 insertions(+), 8 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 4af3a831ed..525967d82f 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -41,7 +41,9 @@ function TreeCheckeds( return selectOption; }; - return ; + return ( + + ); } export interface SearchTreeProps { @@ -55,18 +57,51 @@ export interface SearchTreeProps { function SearchTree(props: SearchTreeProps) { const { onChange, onSearch, options = [], value = [], treeProps, ...other } = props; const [selectedValues, selectedValuesSet] = useState>(value); + const [selectedOptions, selectedOptionSet] = useState>(options); const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { selectedValuesSet(resultValue); onChange?.(resultValue, cur, isChecked); }; + // 防抖 + const debounce = (fn: Function, ms: number) => { + let timeoutId: NodeJS.Timeout; + return (searchValue: string) => { + onSearch?.(searchValue); + clearTimeout(timeoutId); + timeoutId = setTimeout(() => { + fn(searchValue); + }, ms); + }; + }; + + const selectedSearch = (searchValue: string) => { + const hiddenNodeForSeach = (childrens: TreeData[]) => { + childrens.forEach((child: TreeData) => { + const isHide = !(child.label as string).includes(searchValue); + if (!!child.children?.length) { + hiddenNodeForSeach(child.children); + const find = child.children.find((item) => !item.hideNode); + child.hideNode = isHide && !find; + } else { + // const isHide = !(child.label as string).includes(searchValue) + child.hideNode = isHide; + } + }); + }; + hiddenNodeForSeach(options); + selectedOptionSet([...options]); + }; + return ( } + options={selectedOptions} + content={} /> ); } diff --git a/packages/react-search-tree/src/searchTagInput.tsx b/packages/react-search-tree/src/searchTagInput.tsx index e1c475392e..aa818cbd7b 100644 --- a/packages/react-search-tree/src/searchTagInput.tsx +++ b/packages/react-search-tree/src/searchTagInput.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState, useRef, useEffect, ReactElement } from 'react'; +import React, { useMemo, useState, useRef, ReactElement } from 'react'; import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; import Icon from '@uiw/react-icon'; import Input from '@uiw/react-input'; @@ -10,7 +10,7 @@ import './style/index.less'; export interface DropContent { values: Array; onSelected?: (selectedAll: Array, selectd: V, isChecked: boolean) => void; - options?: any; + options?: Array; } export interface SearchTagInputOption { @@ -42,6 +42,7 @@ function SearchTagInput(props: SearchTagInputPro placeholder, content, + options, values, onChange, onSearch, @@ -103,9 +104,10 @@ function SearchTagInput(props: SearchTagInputPro ...content.props, onSelected: handleSelectChange, values: selectedOption, + options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [selectedOption]); + }, [selectedOption, options]); return ( {newContent}}> @@ -136,7 +138,7 @@ function SearchTagInput(props: SearchTagInputPro })} (props: TreeNodeProps) { const checkedKeys = selectedKeys ? selectedKeys.filter((key) => childKeys.indexOf(key) > -1) : []; const isHalfChecked = checkedKeys.length > 0 && childKeys.length !== checkedKeys.length; return ( -
  • +
  • onItemClick(item, evn)}> Date: Thu, 24 Feb 2022 15:40:08 +0800 Subject: [PATCH 038/575] =?UTF-8?q?docs(Searchtree):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 2 +- packages/react-search-tree/package.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index c1773b02e1..b26782b7e5 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -1,7 +1,7 @@ SearchTree 带搜索的Tree选择控件 === -使用树选择控件可以完整展现其中的层级关系,并具有选中状态。 +使用树选择控件可以完整展现其中的层级关系,并具有选中状态。新组件 v4.11.7+ 支持。 ```jsx import { TreeChecked } from 'uiw'; diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index e0047ff21e..c147b5d248 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -2,7 +2,6 @@ "name": "@uiw/react-search-tree", "version": "4.11.4", "description": "TreeChecked component", - "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/search-tree", "repository": { "type": "git", @@ -21,8 +20,8 @@ "access": "public" }, "keywords": [ - "tree-checked", - "react-tree-checked", + "react-search-checked", + "search-checked", "design", "uiw", "uiw-react", From c8b6a3920481449c3b8ed9f9fb23b3fa7e12c09f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 24 Feb 2022 15:46:27 +0800 Subject: [PATCH 039/575] =?UTF-8?q?fix(SerachTree):=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 2 +- packages/react-tree/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 525967d82f..56b32b49dd 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect, useRef } from 'react'; -import SearchTagInput, { DropContent, SearchTagInputOption } from './searchTagInput'; +import SearchTagInput, { DropContent, SearchTagInputOption } from './SearchTagInput'; import { TreeData } from '@uiw/react-tree'; import TreeChecked, { TreeCheckedProps } from '@uiw/react-tree-checked'; diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 8108b2ec38..95a54fcd35 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -145,7 +145,7 @@ export default function Tree(props: TreeProps) { useEffect(() => { setCurSelectedKeys(props.selectedKeys!); - }, [JSON.parse(JSON.stringify(props.selectedKeys))]); + }, [JSON.stringify(props.selectedKeys)]); // useEffect(() => setCurOpenKeys(openKeys), [openKeys]); // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); From 167ff03bec873aaeeeabd66c20b17fb2bfab2fd3 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 24 Feb 2022 16:11:46 +0800 Subject: [PATCH 040/575] =?UTF-8?q?fix(SearchTree):=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E6=9B=B4=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/{searchTagInput.tsx => SearchTagInput.tsx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/react-search-tree/src/{searchTagInput.tsx => SearchTagInput.tsx} (100%) diff --git a/packages/react-search-tree/src/searchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx similarity index 100% rename from packages/react-search-tree/src/searchTagInput.tsx rename to packages/react-search-tree/src/SearchTagInput.tsx From 25e9e16338fd804ee026d3b38393f16a3f79075a Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 24 Feb 2022 18:03:40 +0800 Subject: [PATCH 041/575] =?UTF-8?q?fix(SearchTree):=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 12 +++++++----- packages/react-search-tree/src/style/index.less | 6 ++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index aa818cbd7b..f4218bdeee 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -115,7 +115,7 @@ function SearchTagInput(props: SearchTagInputPro onMouseOver={() => renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} onClick={() => inputRef.current?.focus()} - style={{ width: 200, maxWidth: 'none', ...style }} + style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    @@ -126,11 +126,11 @@ function SearchTagInput(props: SearchTagInputPro className={`${prefixCls}-tag`} key={index} closable + color="#393E48" onClose={(e) => { e.stopPropagation(); removeSelectItem(index); }} - color="#ccc" > {item.label} @@ -149,9 +149,11 @@ function SearchTagInput(props: SearchTagInputPro // readOnly={false} />
    - {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( - - )} + + {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( + + )} +
    diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less index 26a2ae580b..e056ac9eb1 100644 --- a/packages/react-search-tree/src/style/index.less +++ b/packages/react-search-tree/src/style/index.less @@ -62,5 +62,11 @@ cursor: not-allowed; resize: none; } + + &-close-tag-contents { + width: 14px; + display: flex; + align-content: center; + } } } From bc0d1ee65230e46078508a91cc91734bc923035d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 25 Feb 2022 10:50:53 +0800 Subject: [PATCH 042/575] =?UTF-8?q?fix(SearchTree):=20=E5=AD=90=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=85=A8=E9=83=A8=E9=80=89=E4=B8=AD=E7=88=B6=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=B2=A1=E6=9C=89=E8=87=AA=E5=8A=A8=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- .../react-search-tree/src/SearchTagInput.tsx | 2 +- packages/react-search-tree/src/index.tsx | 25 +++++++++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 7b24e62e11..6d8650cb6a 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -241,7 +241,7 @@ export default function SearchSelect(props: SearchSelectProps) { key={index} closable onClose={() => handleItemsClick(index, item)} - color="#ccc" + color="#393E48" > {item.label} diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index f4218bdeee..e01569b5ec 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -15,7 +15,7 @@ export interface DropContent { export interface SearchTagInputOption { label: string; - value: string | number; + key: string | number; } export interface SearchTagInputProps extends IProps, DropdownProps, DropContent { diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 56b32b49dd..d6756e0505 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -15,8 +15,8 @@ function TreeCheckeds( useEffect(() => { let selectOption: SelectOtpion = {}; const keys = props.values?.map((opt) => { - selectOption[opt.value] = opt.label; - return opt.value; + selectOption[opt.key] = opt.label; + return opt.key; }); selectOptionSet(selectOption); keysSet(keys || []); @@ -24,18 +24,27 @@ function TreeCheckeds( const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => { const curSelectOption: SelectOtpion = getOptionsRecursion([evn], selectOption, isChecked); - const option = Object.entries(curSelectOption).map(([value, label]) => ({ value, label } as V)); - props.onSelected?.(option, { value: evn.key, label: evn.label as string } as V, isChecked); + const option = Object.entries(curSelectOption).map(([key, label]) => ({ key, label } as V)); + props.onSelected?.(option, { key: evn.key, label: evn.label as string } as V, isChecked); }; const getOptionsRecursion = (childrens: TreeData[], selectOption: SelectOtpion, isAdd: boolean) => { + const addOrDel = (key: string | number, label: string, isAdd: boolean) => { + if (isAdd) { + selectOption[key] = label; + } else { + delete selectOption[key!]; + } + }; + childrens.forEach((child: TreeData) => { if (!!child.children?.length) { selectOption = getOptionsRecursion(child.children, selectOption, isAdd); - } else if (isAdd) { - selectOption[child.key!] = child.label?.toString()!; - } else { - delete selectOption[child.key!]; + } + addOrDel(child.key!, child.label?.toString()!, isAdd); + if (child.parent) { + const selectCount = child.parent.children.filter((child: TreeData) => !selectOption[child.key!]).length; + addOrDel(child.parent.key, child.parent.label, selectCount === 0); } }); return selectOption; From d59d150f8b368055df74d93ac3bfbd3c9d7847a9 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 25 Feb 2022 11:10:38 +0800 Subject: [PATCH 043/575] =?UTF-8?q?docs(SearchTree):=20=E5=A2=9E=E5=8A=A0F?= =?UTF-8?q?orm=E4=B8=AD=E4=BD=BF=E7=94=A8=E5=AE=9E=E4=BE=8B=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 124 +++++++++++++++++- .../routes/components/search-tree/index.tsx | 4 +- 2 files changed, 122 insertions(+), 6 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index fb6c202ba2..a2bae067cf 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -18,7 +18,7 @@ import TreeChecked from '@uiw/react-tree-checked'; ```jsx import ReactDOM from 'react-dom'; -import { TreeChecked, SearchTree, Card, Row, Col } from 'uiw'; +import { SearchTree } from 'uiw'; const data = [ { @@ -63,7 +63,7 @@ const Demo = () => ( allowClear={true} onSearch={(searchValue)=>console.log('SearchTree-> SearchTreeOption',searchValue)} onChange={(selectedAll, selectd, isChecked)=>console.log('SearchTree-> onChange',selectedAll, selectd, isChecked)} - value={[{ label: '东花市街道', value: '2-3-1' }]} + value={[{ label: '东花市街道', key: '2-3-1' }]} options={data} placeholder="请输入选择" /> @@ -71,14 +71,130 @@ const Demo = () => ( ReactDOM.render(, _mount_); ``` +## Form中使用 + + +```jsx +import ReactDOM from 'react-dom'; +import { Form, Button, SearchTree, Card, Row, Col } from 'uiw';; + +const Demo = () => { + + const data = [ + { + label: '上海市', + key: '1-0-0', + children:[ + { label: '黄浦区', key: '1-0-1' }, + { label: '卢湾区', key: '1-0-2' }, + { + label: '徐汇区', + key: '1-0-3', + children:[ + { label: '半淞园路街道', key: '1-1-0' }, + { label: '南京东路街道', key: '1-2-0' }, + { label: '外滩街道', key: '1-3-0' }, + ] + }, + ] + }, + { + label: '北京市', + key: '2-0-0', + children:[ + { label: '东城区', key: '2-1-0' }, + { label: '西城区', key: '2-2-0' }, + { + label: '崇文区', + key: '2-3-0', + children:[ + { label: '东花市街道', key: '2-3-1' }, + { label: '体育馆路街道', key: '2-3-2' }, + { label: '前门街道', key: '2-3-3' }, + ] + }, + ] + }, + { label: '澳门', key: '3' }, + ]; + + return ( +
    +
    { + if (error.filed) { + return { ...error.filed }; + } + return null; + }} + onSubmit={({initial, current}) => { + const errorObj = {}; + if (!current.selectField) { + errorObj.selectField = '默认需要选择内容,选择入内容'; + } + if(Object.keys(errorObj).length > 0) { + const err = new Error(); + err.filed = errorObj; + Notify.error({ title: '提交失败!', description: '请确认提交表单是否正确!' }); + throw err; + } + Notify.success({ + title: '提交成功!', + description: `表单提交成功,选择值为:${current.selectField},将自动填充初始化值!`, + }); + }} + fields={{ + searchTree: { + initialValue:[{ label: '东花市街道', key: '2-3-1' }], + children: ( + console.log('SearchTree-> SearchTreeOption',searchValue)} + onChange={(selectedAll, selectd, isChecked)=>console.log('SearchTree-> onChange',selectedAll, selectd, isChecked)} + options={data} + placeholder="请输入选择" + /> + ) + }, + }} + > + {({ fields, state, canSubmit }) => { + return ( +
    + + {fields.searchTree} + + + + + + + + +
    +                  {console.log('state',state)}
    +                    {JSON.stringify(state.current, null, 2)}
    +                  
    + +
    +
    + ) + }} + +
    + ); +} +ReactDOM.render(, _mount_); +``` + ## Props | 参数 | 说明 | 类型 | 默认值 | |--------- |-------- |--------- |-------- | | allowClear | 支持清除 | Boolean | `false` | | disabled | 禁用选择器 | Boolean | `false` | -| value | 指定当前选中的条目 | [{label:string, value:string}] | - | -| options | 下拉数据源 | [{label:string, value:string}] | - | +| value | 指定当前选中的条目 | [{label:string, key:string}] | - | +| options | 下拉数据源,可参考Tree下拉数据源 | [{label:string, key:string, children: [{label:string, key:string}] }] | - | | placeholder | 选择框默认文字 | String | - | | size | 选择框尺寸 | Enum{large, default, small } | `default` | | onChange | 选中 option,或 input 的 value,调用此函数 | function(selectdAll, selectd, isChecked)=>void | - | diff --git a/website/src/routes/components/search-tree/index.tsx b/website/src/routes/components/search-tree/index.tsx index f8ee3e89a4..51270bbcb9 100644 --- a/website/src/routes/components/search-tree/index.tsx +++ b/website/src/routes/components/search-tree/index.tsx @@ -1,11 +1,11 @@ import React, { useState } from 'react'; -import { TreeChecked, SearchTree, Row, Col, Card, Icon } from 'uiw'; +import { Form, Button, TreeChecked, SearchTree, Row, Col, Card, Icon } from 'uiw'; import Markdown from '../../../components/Markdown'; export default () => ( { const md = await import('uiw/node_modules/@uiw/react-search-tree/README.md'); return md.default || md; From e80c0de284c7ed2ac050cdd6c5dd09a9ecb8623e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 25 Feb 2022 15:21:10 +0800 Subject: [PATCH 044/575] =?UTF-8?q?fix(SerachTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=8D=E5=8F=97Form=E6=8E=A7=E5=88=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 4 +- packages/react-search-tree/README.md | 42 ++++++++++++++----- .../react-search-tree/src/SearchTagInput.tsx | 6 ++- packages/react-search-tree/src/index.tsx | 24 +++++++---- .../routes/components/search-tree/index.tsx | 4 +- 5 files changed, 57 insertions(+), 23 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 7c0d604a83..5f049f8bfe 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -158,8 +158,8 @@ function Form( } function setFields(fields: FormState['current']) { - data.current = fields; - setData(data); + const tempData = { ...data, current: fields }; + setData(tempData); } function handleChange( diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index db8e81952a..cc12d4cbfe 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -17,6 +17,7 @@ import SearchTree from '@uiw/react-search-tree'; ```jsx +import React, { useState, useEffect, useRef } from 'react'; import ReactDOM from 'react-dom'; import { SearchTree } from 'uiw'; @@ -57,17 +58,24 @@ const data = [ }, { label: '澳门', key: '3' }, ]; +const Demo = () => { + +const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }]) + +const onChange=(selectd, selectedAll, isChecked)=>{ + console.log('SearchTree-> onChange',selectedAll, selectd, isChecked) + valueSet(selectedAll) +} -const Demo = () => ( - console.log('SearchTree-> SearchTreeOption',searchValue)} - onChange={(selectedAll, selectd, isChecked)=>console.log('SearchTree-> onChange',selectedAll, selectd, isChecked)} - value={[{ label: '东花市街道', key: '2-3-1' }]} + onChange={onChange} + value={value} options={data} placeholder="请输入选择" - /> -) + />) +} ReactDOM.render(, _mount_); ``` @@ -75,10 +83,13 @@ ReactDOM.render(, _mount_); ```jsx +import React, { useState, useEffect, useRef } from 'react'; import ReactDOM from 'react-dom'; import { Form, Button, SearchTree, Card, Row, Col } from 'uiw';; + const Demo = () => { +const form=useRef() const data = [ { @@ -118,9 +129,18 @@ const Demo = () => { { label: '澳门', key: '3' }, ]; + const setValue=()=>{ + form.current.setFields({ searchTree: [{ label: '东城区', key: '2-1-0' }, { label: '外滩街道', key: '1-3-0' }] }) + } + + const resetValue=()=>{ + form.current.resetForm() + } + return (
    { if (error.filed) { return { ...error.filed }; @@ -128,6 +148,7 @@ const Demo = () => { return null; }} onSubmit={({initial, current}) => { + console.log('current',current) const errorObj = {}; if (!current.selectField) { errorObj.selectField = '默认需要选择内容,选择入内容'; @@ -145,12 +166,12 @@ const Demo = () => { }} fields={{ searchTree: { - initialValue:[{ label: '东花市街道', key: '2-3-1' }], + initialValue:[{ label: '东花市街道', key: '2-3-1' },{ label: '前门街道', key: '2-3-3' }], children: ( console.log('SearchTree-> SearchTreeOption',searchValue)} - onChange={(selectedAll, selectd, isChecked)=>console.log('SearchTree-> onChange',selectedAll, selectd, isChecked)} + onChange={(selectd, selectedAll, isChecked)=>console.log('SearchTree-> onChange', selectd, selectedAll, isChecked)} options={data} placeholder="请输入选择" /> @@ -167,12 +188,13 @@ const Demo = () => { + +
    -                  {console.log('state',state)}
                         {JSON.stringify(state.current, null, 2)}
                       
    @@ -197,7 +219,7 @@ ReactDOM.render(, _mount_); | options | 下拉数据源,可参考Tree下拉数据源 | [{label:string, key:string, children: [{label:string, key:string}] }] | - | | placeholder | 选择框默认文字 | String | - | | size | 选择框尺寸 | Enum{large, default, small } | `default` | -| onChange | 选中 option,或 input 的 value,调用此函数 | function(selectdAll, selectd, isChecked)=>void | - | +| onChange | 选中 option,或 input 的 value,调用此函数 | function(selectd, selectdAll, isChecked)=>void | - | | onSearch | 文本框值变化时回调 | function(searchValue) | - | | loading | 加载中状态 | Boolean | `false` | diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index e01569b5ec..85af853f1e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState, useRef, ReactElement } from 'react'; +import React, { useMemo, useState, useRef, useEffect, ReactElement } from 'react'; import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; import Icon from '@uiw/react-icon'; import Input from '@uiw/react-input'; @@ -59,6 +59,10 @@ function SearchTagInput(props: SearchTagInputPro const [selectIconType, setSelectIconType] = useState(''); const inputRef = useRef(null); + useEffect(() => { + setSelectedOption(values); + }, [JSON.stringify(values)]); + function renderSelectIcon(type: string) { const selectIconType = type === 'enter' && allowClear && (!!selectedOption.length || searchValue) ? 'close' : ''; setSelectIconType(selectIconType); diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index d6756e0505..21f22fbb5a 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef } from 'react'; +import React, { useState, useEffect } from 'react'; import SearchTagInput, { DropContent, SearchTagInputOption } from './SearchTagInput'; import { TreeData } from '@uiw/react-tree'; import TreeChecked, { TreeCheckedProps } from '@uiw/react-tree-checked'; @@ -36,16 +36,21 @@ function TreeCheckeds( delete selectOption[key!]; } }; + const iteratorParent = (child: TreeData) => { + // 向上迭代 + if (child.parent) { + const selectCount = child.parent.children.filter((child: TreeData) => !selectOption[child.key!]).length; + addOrDel(child.parent.key, child.parent.label, selectCount === 0); + iteratorParent(child.parent); + } + }; childrens.forEach((child: TreeData) => { if (!!child.children?.length) { selectOption = getOptionsRecursion(child.children, selectOption, isAdd); } addOrDel(child.key!, child.label?.toString()!, isAdd); - if (child.parent) { - const selectCount = child.parent.children.filter((child: TreeData) => !selectOption[child.key!]).length; - addOrDel(child.parent.key, child.parent.label, selectCount === 0); - } + iteratorParent(child); }); return selectOption; }; @@ -54,9 +59,8 @@ function TreeCheckeds( ); } - export interface SearchTreeProps { - onChange?: (selectedAll: Array, selectd: V, isChecked: boolean) => void; + onChange?: (selectd: V, selectedAll: Array, isChecked: boolean) => void; onSearch?: (seachValue: string) => void; value?: Array; options?: TreeData[]; @@ -68,9 +72,13 @@ function SearchTree(props: SearchTreeProps) { const [selectedValues, selectedValuesSet] = useState>(value); const [selectedOptions, selectedOptionSet] = useState>(options); + useEffect(() => { + selectedValuesSet(value); + }, [JSON.stringify(value)]); + const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { selectedValuesSet(resultValue); - onChange?.(resultValue, cur, isChecked); + onChange?.(cur, resultValue, isChecked); }; // 防抖 diff --git a/website/src/routes/components/search-tree/index.tsx b/website/src/routes/components/search-tree/index.tsx index 51270bbcb9..d5823fb2e2 100644 --- a/website/src/routes/components/search-tree/index.tsx +++ b/website/src/routes/components/search-tree/index.tsx @@ -1,11 +1,11 @@ -import React, { useState } from 'react'; +import React, { useState, useRef } from 'react'; import { Form, Button, TreeChecked, SearchTree, Row, Col, Card, Icon } from 'uiw'; import Markdown from '../../../components/Markdown'; export default () => ( { const md = await import('uiw/node_modules/@uiw/react-search-tree/README.md'); return md.default || md; From 97b7f3804fac2a814f0502a0c98f532a6b78c18e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 045/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ .github/workflows/npm.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e1e2ab3be..51d1e3598b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 8af7a3026c..b17e370ae5 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -67,6 +67,9 @@ jobs: - run: cp -rf website/build/* packages/doc/web - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build + - run: git checkout -f packages/uiw/tsconfig.json - run: git status From 6c5d448986dc7c3ab870c0e01c6fb914649ddc2e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 046/575] chore: update workflows config. --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 51d1e3598b..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc @@ -36,6 +34,8 @@ jobs: - run: rm -rf packages/doc/web - run: mkdir -p packages/doc/web + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - name: Generate Contributors Images uses: jaywcjlove/github-action-contributors@main From 88ef62859884da67fced5bde2b9f30f0591aaa67 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 14 Feb 2022 14:16:14 +0800 Subject: [PATCH 047/575] =?UTF-8?q?fix(Form):=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 5f049f8bfe..fb732ac4a5 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -103,7 +103,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: React.Ref>, //| React.RefObject, + ref: React.ForwardedRef, //| React.RefObject, ) { const initData = useMemo( () => @@ -115,7 +115,7 @@ function Form( ); const [data, setData] = useState(initData); - useImperativeHandle, any>( + useImperativeHandle( ref, () => ({ onSubmit: handleSubmit, @@ -318,4 +318,4 @@ function Form( ); } -export default React.forwardRef, FormProps<{}>>(Form); +export default React.forwardRef>(Form); From c0af739f0ebeacd7e4348eb223679bc50005057f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 25 Feb 2022 17:24:26 +0800 Subject: [PATCH 048/575] =?UTF-8?q?docs(List):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-list/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-list/README.md b/packages/react-list/README.md index e2e2384755..1c075ab164 100644 --- a/packages/react-list/README.md +++ b/packages/react-list/README.md @@ -45,7 +45,7 @@ const Demo = () => (

    小尺寸

    列表头部
    } + header={
    列表头部
    } footer={
    列表尾部
    } dataSource={data} renderItem={item => ({item})} @@ -53,7 +53,7 @@ const Demo = () => (

    大尺寸

    列表头部
  • } + header={
    列表头部
    } footer={
    列表尾部
    } dataSource={data} renderItem={item => ({item})} @@ -278,7 +278,7 @@ ReactDOM.render(, _mount_); | footer | 列表底部 | String/ReactNode | - | | header | 列表头部 | String/ReactNode | - | | dataSource | 是否展示边框 | Boolean | - | -| renderItem | 通过毁掉函数返回Dome,渲染列表每个行 | Function(item,index) | - | +| renderItem | 通过回调函数返回Dome,渲染列表每个行 | Function(item,index) | - | ## List.Item @@ -304,4 +304,4 @@ const Demo = () => { ) } -``` \ No newline at end of file +``` From d632684a64a91b5b9761e2711b26a556b2fd2c84 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 17:21:45 +0800 Subject: [PATCH 049/575] =?UTF-8?q?feat(DateInputRange):=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=8C=BA=E9=97=B4=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20#536?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/README.md | 121 ++++++++++++------ .../react-date-input/src/DateInputRange.tsx | 112 ++++++++++++++++ packages/react-date-input/src/index.tsx | 1 + .../react-date-input/src/style/dateRange.less | 68 ++++++++++ .../routes/components/date-input/index.tsx | 4 +- website/src/routes/components/menu/index.tsx | 4 +- 6 files changed, 267 insertions(+), 43 deletions(-) create mode 100644 packages/react-date-input/src/DateInputRange.tsx create mode 100644 packages/react-date-input/src/style/dateRange.less diff --git a/packages/react-date-input/README.md b/packages/react-date-input/README.md index f6cb56dc7b..f31c978d43 100644 --- a/packages/react-date-input/README.md +++ b/packages/react-date-input/README.md @@ -8,9 +8,9 @@ DateInput 日期输入框 显示一个月的日历,并允许用户选择单个日期。 ```jsx -import { DateInput } from 'uiw'; +import { DateInput, DateInputRange } from 'uiw'; // or -import DateInput from '@uiw/react-date-input'; +import DateInput,{ DateInputRange } from '@uiw/react-date-input'; ``` ## 基本使用 @@ -19,32 +19,46 @@ import DateInput from '@uiw/react-date-input'; ```jsx import React from 'react'; import ReactDOM from 'react-dom'; -import { DateInput, Row, Col } from 'uiw'; +import { DateInput, DateInputRange, Row, Col } from 'uiw'; -class Demo extends React.Component { - onChange(selectedDate) { - console.log('selectedDate:', selectedDate) +function Demo () { + + const [dataRange,dataRangeSet] =React.useState(['2022-02-25 15:06:24','2022-02-27 14:47:32']) + + function onChange(selectedDate,dataRange) { + console.log('selectedDate',selectedDate,dataRange) } - render() { return ( - - - - - - - - +
    + + + + + + + + + + + + + +
    ) - } } ReactDOM.render(, _mount_); ``` @@ -55,13 +69,26 @@ ReactDOM.render(, _mount_); ```jsx +import React from 'react'; import ReactDOM from 'react-dom'; -import { DateInput, Notify, Button, Form, Row, Col } from 'uiw'; +import { DateInput,DateInputRange, Notify, Button, Form, Row, Col } from 'uiw'; + +function Demo(){ + const form = React.useRef(null) -ReactDOM.render( - { - if(current.date) { + const resetDateRange = () => { + form.current.resetForm() + } + + const setDateRange = () => { + form.current.setFields({dateRange:[new Date(),new Date()]}) + } + + return ( + { + if (current.date) { Notify.success({ title: '提交成功!', description: `表单提交时间成功,时间为:${current.date}`, @@ -72,7 +99,6 @@ ReactDOM.render( description: `表单提交时间成功,时间为:${current.date},将自动填充初始化值!`, }); } - console.log('-->>', initial, current); }} fields={{ date: { @@ -81,21 +107,38 @@ ReactDOM.render( labelFor: 'date-inline', children: }, + dateRange: { + initialValue: ['2019/02/17', '2019/02/20'], + labelClassName: 'fieldLabel', + labelFor: 'date-inline', + children: + }, }} > {({ fields, state, canSubmit }) => { return ( - - {fields.date} - - - - +
    + + {fields.date} + + + {fields.dateRange} + + + + + + + + +
    ) }} - , - _mount_ -); + + ) +} + +ReactDOM.render(, _mount_); ``` ## 日期格式 diff --git a/packages/react-date-input/src/DateInputRange.tsx b/packages/react-date-input/src/DateInputRange.tsx new file mode 100644 index 0000000000..a4b6678e30 --- /dev/null +++ b/packages/react-date-input/src/DateInputRange.tsx @@ -0,0 +1,112 @@ +import React, { useEffect, useState } from 'react'; +import Input, { InputProps } from '@uiw/react-input'; +import Popover, { PopoverProps } from '@uiw/react-popover'; +import DatePicker, { DatePickerProps } from '@uiw/react-date-picker'; +import Icon from '@uiw/react-icon'; +import { IProps } from '@uiw/utils'; +import formatter from '@uiw/formatter'; +import './style/dateRange.less'; + +export interface DateInputRangeProps extends IProps, Omit { + popoverProps?: PopoverProps; + datePickerProps?: DatePickerProps; + value?: Array; + format?: string; + allowClear?: boolean; + bodyStyle?: object; + onChange?: (selectedDate?: Date, dateRange?: Array) => void; +} + +export function DateInputRange(props: DateInputRangeProps) { + const { + prefixCls = 'w-daterange', + bodyStyle = undefined, + className, + popoverProps, + datePickerProps, + allowClear = true, + format = 'YYYY/MM/DD', + onChange, + value, + ...inputProps + } = props; + + const [dateRange, setDateRange] = useState>([]); + useEffect(() => { + let valueTemp: Array = []; + const propsValue = value; + if (Array.isArray(propsValue) && !!propsValue?.length) { + propsValue.forEach((date, index) => { + valueTemp[index] = typeof propsValue[index] === 'string' ? new Date(date) : (date as Date); + }); + } + setDateRange(valueTemp); + }, [JSON.stringify(value)]); + + function handleChange(cdate: Date | undefined, idx?: number) { + const changeValue = [...dateRange]; + changeValue[idx!] = cdate; + setDateRange(changeValue); + onChange && onChange(cdate, changeValue); + } + + return ( +
    + handleChange(selectedDate, 0)} + /> + } + > + console.log('v', v)} + value={dateRange[0] ? formatter(format, dateRange[0]) : ''} + className={[prefixCls, className].filter(Boolean).join(' ').trim()} + /> + + + + + handleChange(selectedDate, 1)} + /> + } + > + console.log('v2', v)} + className={[prefixCls, className].filter(Boolean).join(' ').trim()} + /> + + {allowClear && dateRange.length > 0 && ( + setDateRange([])} type="close" /> + )} +
    + ); +} diff --git a/packages/react-date-input/src/index.tsx b/packages/react-date-input/src/index.tsx index 262737a3b4..75ae01dac8 100644 --- a/packages/react-date-input/src/index.tsx +++ b/packages/react-date-input/src/index.tsx @@ -5,6 +5,7 @@ import DatePicker, { DatePickerProps } from '@uiw/react-date-picker'; import Icon from '@uiw/react-icon'; import { IProps } from '@uiw/utils'; import formatter from '@uiw/formatter'; +export * from './DateInputRange'; import './style/index.less'; export interface DateInputProps extends IProps, Omit { diff --git a/packages/react-date-input/src/style/dateRange.less b/packages/react-date-input/src/style/dateRange.less new file mode 100644 index 0000000000..7e9971a5e7 --- /dev/null +++ b/packages/react-date-input/src/style/dateRange.less @@ -0,0 +1,68 @@ +@daterange-prefix: ~'w-daterange'; + +.@{daterange-prefix} { + &-contents { + display: flex; + justify-content: space-between; + input { + box-shadow: none; + padding: 0px; + height: 20px; + } + + .w-input-inner { + &:hover { + box-shadow: none !important; + } + + &:focus { + box-shadow: none !important; + } + } + } + + &-inner { + display: flex; + // overflow: hidden; + justify-content: space-between; + outline: none; + border: none; + align-items: center; + border-radius: 3px; + box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), + inset 0 1px 1px rgba(16, 22, 26, 0.2); + box-sizing: border-box; + background: #fff; + min-height: 30px; + margin: 0 !important; + padding: 3px 10px 3px 10px; + vertical-align: middle; + line-height: 30px; + color: #393e48; + font-weight: 400; + font-size: inherit; + transition: box-shadow 0.3s cubic-bezier(0.4, 1, 0.75, 0.9); + appearance: none; + + &:focus { + box-shadow: 0 0 0 1px #393e48, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:focus&:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:disabled { + box-shadow: none; + background: #dddddd; + opacity: 0.75; + color: #a5a5a5; + cursor: not-allowed; + resize: none; + } + } +} diff --git a/website/src/routes/components/date-input/index.tsx b/website/src/routes/components/date-input/index.tsx index 2ee041eacf..99b791f34f 100755 --- a/website/src/routes/components/date-input/index.tsx +++ b/website/src/routes/components/date-input/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { DateInput, Notify, Form, Row, Col, Button } from 'uiw'; +import { DateInput, DateInputRange, Notify, Form, Row, Col, Button } from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('uiw/node_modules/@uiw/react-date-input/README.md'); return md.default || md; diff --git a/website/src/routes/components/menu/index.tsx b/website/src/routes/components/menu/index.tsx index 38addb386a..4e3d8eecc0 100755 --- a/website/src/routes/components/menu/index.tsx +++ b/website/src/routes/components/menu/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { Menu, MenuItem, MenuDivider, SubMenu, Row, Col, Switch, Icon, Popover, Button } from 'uiw'; +import { Menu, Drawer, MenuItem, MenuDivider, SubMenu, Row, Col, Switch, Icon, Popover, Button } from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('uiw/node_modules/@uiw/react-menu/README.md'); return md.default || md; From e2e91fca2e6d22ea312083d58d8b4582ba3a2825 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 14 Feb 2022 14:16:14 +0800 Subject: [PATCH 050/575] =?UTF-8?q?fix(Form):=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/Form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 5f049f8bfe..fb732ac4a5 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -103,7 +103,7 @@ function Form( afterSubmit, ...others }: FormProps, - ref: React.Ref>, //| React.RefObject, + ref: React.ForwardedRef, //| React.RefObject, ) { const initData = useMemo( () => @@ -115,7 +115,7 @@ function Form( ); const [data, setData] = useState(initData); - useImperativeHandle, any>( + useImperativeHandle( ref, () => ({ onSubmit: handleSubmit, @@ -318,4 +318,4 @@ function Form( ); } -export default React.forwardRef, FormProps<{}>>(Form); +export default React.forwardRef>(Form); From d5302c280c2de295b9573822d9b668744ed7e574 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 25 Feb 2022 17:24:26 +0800 Subject: [PATCH 051/575] =?UTF-8?q?docs(List):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-list/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-list/README.md b/packages/react-list/README.md index e2e2384755..1c075ab164 100644 --- a/packages/react-list/README.md +++ b/packages/react-list/README.md @@ -45,7 +45,7 @@ const Demo = () => (

    小尺寸

    列表头部
    } + header={
    列表头部
    } footer={
    列表尾部
    } dataSource={data} renderItem={item => ({item})} @@ -53,7 +53,7 @@ const Demo = () => (

    大尺寸

    列表头部
    } + header={
    列表头部
    } footer={
    列表尾部
    } dataSource={data} renderItem={item => ({item})} @@ -278,7 +278,7 @@ ReactDOM.render(, _mount_); | footer | 列表底部 | String/ReactNode | - | | header | 列表头部 | String/ReactNode | - | | dataSource | 是否展示边框 | Boolean | - | -| renderItem | 通过毁掉函数返回Dome,渲染列表每个行 | Function(item,index) | - | +| renderItem | 通过回调函数返回Dome,渲染列表每个行 | Function(item,index) | - | ## List.Item @@ -304,4 +304,4 @@ const Demo = () => { ) } -``` \ No newline at end of file +``` From 40d587af1070c409c81de097fe97bc4157588a05 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 17:21:45 +0800 Subject: [PATCH 052/575] =?UTF-8?q?feat(DateInputRange):=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=8C=BA=E9=97=B4=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20#536?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/README.md | 121 ++++++++++++------ .../react-date-input/src/DateInputRange.tsx | 112 ++++++++++++++++ packages/react-date-input/src/index.tsx | 1 + .../react-date-input/src/style/dateRange.less | 68 ++++++++++ .../routes/components/date-input/index.tsx | 4 +- website/src/routes/components/menu/index.tsx | 4 +- 6 files changed, 267 insertions(+), 43 deletions(-) create mode 100644 packages/react-date-input/src/DateInputRange.tsx create mode 100644 packages/react-date-input/src/style/dateRange.less diff --git a/packages/react-date-input/README.md b/packages/react-date-input/README.md index f6cb56dc7b..f31c978d43 100644 --- a/packages/react-date-input/README.md +++ b/packages/react-date-input/README.md @@ -8,9 +8,9 @@ DateInput 日期输入框 显示一个月的日历,并允许用户选择单个日期。 ```jsx -import { DateInput } from 'uiw'; +import { DateInput, DateInputRange } from 'uiw'; // or -import DateInput from '@uiw/react-date-input'; +import DateInput,{ DateInputRange } from '@uiw/react-date-input'; ``` ## 基本使用 @@ -19,32 +19,46 @@ import DateInput from '@uiw/react-date-input'; ```jsx import React from 'react'; import ReactDOM from 'react-dom'; -import { DateInput, Row, Col } from 'uiw'; +import { DateInput, DateInputRange, Row, Col } from 'uiw'; -class Demo extends React.Component { - onChange(selectedDate) { - console.log('selectedDate:', selectedDate) +function Demo () { + + const [dataRange,dataRangeSet] =React.useState(['2022-02-25 15:06:24','2022-02-27 14:47:32']) + + function onChange(selectedDate,dataRange) { + console.log('selectedDate',selectedDate,dataRange) } - render() { return ( - - - - - - - - +
    + + + + + + + + + + + + + +
    ) - } } ReactDOM.render(, _mount_); ``` @@ -55,13 +69,26 @@ ReactDOM.render(, _mount_); ```jsx +import React from 'react'; import ReactDOM from 'react-dom'; -import { DateInput, Notify, Button, Form, Row, Col } from 'uiw'; +import { DateInput,DateInputRange, Notify, Button, Form, Row, Col } from 'uiw'; + +function Demo(){ + const form = React.useRef(null) -ReactDOM.render( -
    { - if(current.date) { + const resetDateRange = () => { + form.current.resetForm() + } + + const setDateRange = () => { + form.current.setFields({dateRange:[new Date(),new Date()]}) + } + + return ( + { + if (current.date) { Notify.success({ title: '提交成功!', description: `表单提交时间成功,时间为:${current.date}`, @@ -72,7 +99,6 @@ ReactDOM.render( description: `表单提交时间成功,时间为:${current.date},将自动填充初始化值!`, }); } - console.log('-->>', initial, current); }} fields={{ date: { @@ -81,21 +107,38 @@ ReactDOM.render( labelFor: 'date-inline', children: }, + dateRange: { + initialValue: ['2019/02/17', '2019/02/20'], + labelClassName: 'fieldLabel', + labelFor: 'date-inline', + children: + }, }} > {({ fields, state, canSubmit }) => { return ( - - {fields.date} - - - - +
    + + {fields.date} + + + {fields.dateRange} + + + + + + + + +
    ) }} - , - _mount_ -); + + ) +} + +ReactDOM.render(, _mount_); ``` ## 日期格式 diff --git a/packages/react-date-input/src/DateInputRange.tsx b/packages/react-date-input/src/DateInputRange.tsx new file mode 100644 index 0000000000..a4b6678e30 --- /dev/null +++ b/packages/react-date-input/src/DateInputRange.tsx @@ -0,0 +1,112 @@ +import React, { useEffect, useState } from 'react'; +import Input, { InputProps } from '@uiw/react-input'; +import Popover, { PopoverProps } from '@uiw/react-popover'; +import DatePicker, { DatePickerProps } from '@uiw/react-date-picker'; +import Icon from '@uiw/react-icon'; +import { IProps } from '@uiw/utils'; +import formatter from '@uiw/formatter'; +import './style/dateRange.less'; + +export interface DateInputRangeProps extends IProps, Omit { + popoverProps?: PopoverProps; + datePickerProps?: DatePickerProps; + value?: Array; + format?: string; + allowClear?: boolean; + bodyStyle?: object; + onChange?: (selectedDate?: Date, dateRange?: Array) => void; +} + +export function DateInputRange(props: DateInputRangeProps) { + const { + prefixCls = 'w-daterange', + bodyStyle = undefined, + className, + popoverProps, + datePickerProps, + allowClear = true, + format = 'YYYY/MM/DD', + onChange, + value, + ...inputProps + } = props; + + const [dateRange, setDateRange] = useState>([]); + useEffect(() => { + let valueTemp: Array = []; + const propsValue = value; + if (Array.isArray(propsValue) && !!propsValue?.length) { + propsValue.forEach((date, index) => { + valueTemp[index] = typeof propsValue[index] === 'string' ? new Date(date) : (date as Date); + }); + } + setDateRange(valueTemp); + }, [JSON.stringify(value)]); + + function handleChange(cdate: Date | undefined, idx?: number) { + const changeValue = [...dateRange]; + changeValue[idx!] = cdate; + setDateRange(changeValue); + onChange && onChange(cdate, changeValue); + } + + return ( +
    + handleChange(selectedDate, 0)} + /> + } + > + console.log('v', v)} + value={dateRange[0] ? formatter(format, dateRange[0]) : ''} + className={[prefixCls, className].filter(Boolean).join(' ').trim()} + /> + + + + + handleChange(selectedDate, 1)} + /> + } + > + console.log('v2', v)} + className={[prefixCls, className].filter(Boolean).join(' ').trim()} + /> + + {allowClear && dateRange.length > 0 && ( + setDateRange([])} type="close" /> + )} +
    + ); +} diff --git a/packages/react-date-input/src/index.tsx b/packages/react-date-input/src/index.tsx index 262737a3b4..75ae01dac8 100644 --- a/packages/react-date-input/src/index.tsx +++ b/packages/react-date-input/src/index.tsx @@ -5,6 +5,7 @@ import DatePicker, { DatePickerProps } from '@uiw/react-date-picker'; import Icon from '@uiw/react-icon'; import { IProps } from '@uiw/utils'; import formatter from '@uiw/formatter'; +export * from './DateInputRange'; import './style/index.less'; export interface DateInputProps extends IProps, Omit { diff --git a/packages/react-date-input/src/style/dateRange.less b/packages/react-date-input/src/style/dateRange.less new file mode 100644 index 0000000000..7e9971a5e7 --- /dev/null +++ b/packages/react-date-input/src/style/dateRange.less @@ -0,0 +1,68 @@ +@daterange-prefix: ~'w-daterange'; + +.@{daterange-prefix} { + &-contents { + display: flex; + justify-content: space-between; + input { + box-shadow: none; + padding: 0px; + height: 20px; + } + + .w-input-inner { + &:hover { + box-shadow: none !important; + } + + &:focus { + box-shadow: none !important; + } + } + } + + &-inner { + display: flex; + // overflow: hidden; + justify-content: space-between; + outline: none; + border: none; + align-items: center; + border-radius: 3px; + box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), + inset 0 1px 1px rgba(16, 22, 26, 0.2); + box-sizing: border-box; + background: #fff; + min-height: 30px; + margin: 0 !important; + padding: 3px 10px 3px 10px; + vertical-align: middle; + line-height: 30px; + color: #393e48; + font-weight: 400; + font-size: inherit; + transition: box-shadow 0.3s cubic-bezier(0.4, 1, 0.75, 0.9); + appearance: none; + + &:focus { + box-shadow: 0 0 0 1px #393e48, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:focus&:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:disabled { + box-shadow: none; + background: #dddddd; + opacity: 0.75; + color: #a5a5a5; + cursor: not-allowed; + resize: none; + } + } +} diff --git a/website/src/routes/components/date-input/index.tsx b/website/src/routes/components/date-input/index.tsx index 2ee041eacf..99b791f34f 100755 --- a/website/src/routes/components/date-input/index.tsx +++ b/website/src/routes/components/date-input/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { DateInput, Notify, Form, Row, Col, Button } from 'uiw'; +import { DateInput, DateInputRange, Notify, Form, Row, Col, Button } from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('uiw/node_modules/@uiw/react-date-input/README.md'); return md.default || md; diff --git a/website/src/routes/components/menu/index.tsx b/website/src/routes/components/menu/index.tsx index 38addb386a..4e3d8eecc0 100755 --- a/website/src/routes/components/menu/index.tsx +++ b/website/src/routes/components/menu/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { Menu, MenuItem, MenuDivider, SubMenu, Row, Col, Switch, Icon, Popover, Button } from 'uiw'; +import { Menu, Drawer, MenuItem, MenuDivider, SubMenu, Row, Col, Switch, Icon, Popover, Button } from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('uiw/node_modules/@uiw/react-menu/README.md'); return md.default || md; From 8719e72f6fa59b44438b90b7a98a4dea0cdd7335 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 17:55:56 +0800 Subject: [PATCH 053/575] =?UTF-8?q?fix(DateInputRange):=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/src/DateInputRange.tsx | 4 ++-- .../src/style/{dateRange.less => date-input-range.less} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename packages/react-date-input/src/style/{dateRange.less => date-input-range.less} (95%) diff --git a/packages/react-date-input/src/DateInputRange.tsx b/packages/react-date-input/src/DateInputRange.tsx index a4b6678e30..3c59b6f050 100644 --- a/packages/react-date-input/src/DateInputRange.tsx +++ b/packages/react-date-input/src/DateInputRange.tsx @@ -5,7 +5,7 @@ import DatePicker, { DatePickerProps } from '@uiw/react-date-picker'; import Icon from '@uiw/react-icon'; import { IProps } from '@uiw/utils'; import formatter from '@uiw/formatter'; -import './style/dateRange.less'; +import './style/date-input-range.less'; export interface DateInputRangeProps extends IProps, Omit { popoverProps?: PopoverProps; @@ -19,7 +19,7 @@ export interface DateInputRangeProps extends IProps, Omit(props: DateInputRangeProps) { const { - prefixCls = 'w-daterange', + prefixCls = 'w-dateinputrange', bodyStyle = undefined, className, popoverProps, diff --git a/packages/react-date-input/src/style/dateRange.less b/packages/react-date-input/src/style/date-input-range.less similarity index 95% rename from packages/react-date-input/src/style/dateRange.less rename to packages/react-date-input/src/style/date-input-range.less index 7e9971a5e7..8cfd859e0a 100644 --- a/packages/react-date-input/src/style/dateRange.less +++ b/packages/react-date-input/src/style/date-input-range.less @@ -1,6 +1,6 @@ -@daterange-prefix: ~'w-daterange'; +@dateinputrange-prefix: ~'w-dateinputrange'; -.@{daterange-prefix} { +.@{dateinputrange-prefix} { &-contents { display: flex; justify-content: space-between; From 23259a0476e27d65cf0a15f046e577b08cbd9d25 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 18:18:50 +0800 Subject: [PATCH 054/575] =?UTF-8?q?docs(DateInputRange):=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/react-date-input/README.md b/packages/react-date-input/README.md index f31c978d43..0ca546686d 100644 --- a/packages/react-date-input/README.md +++ b/packages/react-date-input/README.md @@ -6,6 +6,7 @@ DateInput 日期输入框 [![npm version](https://img.shields.io/npm/v/@uiw/react-date-input.svg?label=@uiw/react-date-input)](https://npmjs.com/@uiw/react-date-input) 显示一个月的日历,并允许用户选择单个日期。 +在v4.12.3版本中增加 DateInputRange组件 ```jsx import { DateInput, DateInputRange } from 'uiw'; @@ -209,3 +210,20 @@ ReactDOM.render(, _mount_); | disabled | 组件 [``](#/components/input) 的属性,禁用日历 | Boolean | - | 更多属性文档请参考 [``](#/components/input)。 + +## DateInputRange + +| 参数 | 说明 | 类型 | 默认值 | +|--------- |-------- |--------- |-------- | +| value | 初始时间值 | Array | - | +| placeholder | 输入框提示文字 | String | - | +| allowClear | 是否显示清除按钮 | Boolean | true | +| format | 格式化时间,规则查看 [``](#/components/formatter) 文档 | String | `YYYY/MM/DD` | +| onChange | 选择一天时调用。 | Function(selectedDate:Date, dateRange: Array) | - | +| popoverProps | 将参数传递给 [``](#/components/popover) 组件 | Object | - | +| datePickerProps | 将参数传递给 [``](#/components/date-picker) 组件 | Object | - | +| disabled | 组件 [``](#/components/input) 的属性,禁用日历 | Boolean | - | +| bodyStyle | 选择框样式 | Object | { width: 300 } | - | + +更多属性文档请参考 [``](#/components/input)。 + From 883f15dbca5b5dbf9e5ea43cccdcf58aab51f806 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 18:50:40 +0800 Subject: [PATCH 055/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20value=E4=B8=8D=E5=AD=98=E5=9C=A8=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=E4=BC=9A=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#565?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index dcc932943e..21acb55145 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -104,7 +104,7 @@ export default function SearchSelect(props: SearchSelectProps) { } } else { if (Array.isArray(changeValue)) { - opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!); + opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!).filter((m) => !!m); } else { const findResult = getSelectOption(option, changeValue as ValueType); if (findResult) { From 68a6808908ab37cf00de81aca1068b824247b1cb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 056/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From da54b4f87f4943cffa27a466f72ab965fc6c8cc4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 057/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 77559f01d21049bf564949715bf18a7c1df433c5 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 18:50:40 +0800 Subject: [PATCH 058/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20value=E4=B8=8D=E5=AD=98=E5=9C=A8=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=E4=BC=9A=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#565?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index dcc932943e..21acb55145 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -104,7 +104,7 @@ export default function SearchSelect(props: SearchSelectProps) { } } else { if (Array.isArray(changeValue)) { - opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!); + opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!).filter((m) => !!m); } else { const findResult = getSelectOption(option, changeValue as ValueType); if (findResult) { From 2247bddf6f2745bffb21c76d0f6b87489dc0b816 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 28 Feb 2022 19:02:17 +0800 Subject: [PATCH 059/575] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-date-input/README.md b/packages/react-date-input/README.md index 9849fc7148..2575f24030 100644 --- a/packages/react-date-input/README.md +++ b/packages/react-date-input/README.md @@ -6,7 +6,6 @@ DateInput 日期输入框 [![npm version](https://img.shields.io/npm/v/@uiw/react-date-input.svg?label=@uiw/react-date-input)](https://npmjs.com/@uiw/react-date-input) 显示一个月的日历,并允许用户选择单个日期。 -在v4.12.3版本中增加 DateInputRange组件 ```jsx import { DateInput, DateInputRange } from 'uiw'; From 7042ed8b35f8b4e513895d3e7ec73443f8d54ea1 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 09:32:49 +0800 Subject: [PATCH 060/575] =?UTF-8?q?style(TimePicker):=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=97=B6=E5=BC=B9=E7=AA=97=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E6=A8=AA=E5=90=91=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-time-picker/src/style/time-picker.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-time-picker/src/style/time-picker.less b/packages/react-time-picker/src/style/time-picker.less index 9bdbc294dc..720a331aa7 100644 --- a/packages/react-time-picker/src/style/time-picker.less +++ b/packages/react-time-picker/src/style/time-picker.less @@ -10,7 +10,7 @@ &-spinner { max-height: 189px; flex: 1; - overflow: hidden; + overflow: auto; font-size: 14px; &:hover { overflow: auto; From 30d153a344541743cedae058834867ca464a3f8b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 13:47:37 +0800 Subject: [PATCH 061/575] =?UTF-8?q?fix(Tree):=E4=BF=AE=E5=A4=8D=E5=AD=90?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=97=A0=E6=B3=95=E6=8E=A7=E5=88=B6=E8=B6=85?= =?UTF-8?q?=E8=BF=872=E7=BA=A7=E4=B8=8A=E5=B1=82=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=8A=B6=E6=80=81=20#572?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 95a54fcd35..684bcac73c 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -101,7 +101,7 @@ const getParentSelectKeys = ( selectedKeys: TreeData['key'][] = [], result: TreeData['key'][] = [], ) => { - if (childs.key && childs.children && isContained(selectedKeys, getChildKeys(childs.children))) { + if (childs.key && childs.children && isContained(selectedKeys, getChildKeys(childs.children, undefined, 1))) { result.push(childs.key); if (childs.parent && !childs.parent.parent) { if (isContained(selectedKeys, getChildKeys(childs.children))) { From 5cfcad56facdcdf35d69d33973f72ce0cec46c0e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 062/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5f241757148514f229248c5ac2e7cb70b784f62b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 063/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 51a674ee8b677813a5b23e248902b80628b792e0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 064/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0a52985d2a64f8a8028ca4ef885209e9d1ace43e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 065/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5675283f46f304118c474f64cca76464e6ba9cc9 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 13:47:37 +0800 Subject: [PATCH 066/575] =?UTF-8?q?fix(Tree):=E4=BF=AE=E5=A4=8D=E5=AD=90?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=97=A0=E6=B3=95=E6=8E=A7=E5=88=B6=E8=B6=85?= =?UTF-8?q?=E8=BF=872=E7=BA=A7=E4=B8=8A=E5=B1=82=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=8A=B6=E6=80=81=20#572?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 95a54fcd35..684bcac73c 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -101,7 +101,7 @@ const getParentSelectKeys = ( selectedKeys: TreeData['key'][] = [], result: TreeData['key'][] = [], ) => { - if (childs.key && childs.children && isContained(selectedKeys, getChildKeys(childs.children))) { + if (childs.key && childs.children && isContained(selectedKeys, getChildKeys(childs.children, undefined, 1))) { result.push(childs.key); if (childs.parent && !childs.parent.parent) { if (isContained(selectedKeys, getChildKeys(childs.children))) { From 6f6215a604da470727b05275dad1a9ea16215f28 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 15:38:11 +0800 Subject: [PATCH 067/575] =?UTF-8?q?style(Notify):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E5=AD=97=E7=AC=A6=E5=92=8C=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98=20=20#57?= =?UTF-8?q?5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-alert/src/style/index.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-alert/src/style/index.less b/packages/react-alert/src/style/index.less index ec119b7ac8..8239d2cb53 100644 --- a/packages/react-alert/src/style/index.less +++ b/packages/react-alert/src/style/index.less @@ -44,6 +44,7 @@ } .w-modal-shown-title.w-modal-inner { .w-modal-header { + word-break: break-word; display: flex; padding-top: 15px; padding-right: 10px; @@ -58,6 +59,7 @@ } } .w-modal-body { + word-break: break-word; padding-top: 5px; } } From 7be7ad2d7a5570c62d2f9c290c6b42e52d8083e8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 068/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From baed5ff80bceff20e754f9ec1cd0a5e5cd752111 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 069/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2247d799d0e5db44a38f17ba84abc0a7c6c69cbd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 070/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6d31295a4f55ef0243b6f8f895f5949c82632a8a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 071/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b4a46169d87d53a452819f2dcbd6818a3a71785f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 072/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0477629a5e14b6d2be5a6d790f1b08a6e7f79015 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 073/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c470a49221cadd1de4ed050e78ed7fd2c647c491 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 074/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b3727ae2906aadcc219bcc75c667525d469520e4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 075/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 867e61c8a0806df0f64b0fe3621370b50f5de2db Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 15:38:11 +0800 Subject: [PATCH 076/575] =?UTF-8?q?style(Notify):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E5=AD=97=E7=AC=A6=E5=92=8C=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98=20=20#57?= =?UTF-8?q?5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-alert/src/style/index.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-alert/src/style/index.less b/packages/react-alert/src/style/index.less index ec119b7ac8..8239d2cb53 100644 --- a/packages/react-alert/src/style/index.less +++ b/packages/react-alert/src/style/index.less @@ -44,6 +44,7 @@ } .w-modal-shown-title.w-modal-inner { .w-modal-header { + word-break: break-word; display: flex; padding-top: 15px; padding-right: 10px; @@ -58,6 +59,7 @@ } } .w-modal-body { + word-break: break-word; padding-top: 5px; } } From 30eabb36c3c9ad2505abf06cebab90f7e18ddee7 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 16:24:41 +0800 Subject: [PATCH 077/575] =?UTF-8?q?fix(SearchTree):=20=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=8C=89=E9=92=AE=E5=88=A0=E9=99=A4=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=90=8E,=E6=B2=A1=E6=9C=89=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=80=89=E9=A1=B9=20#563?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 85af853f1e..fe1dee9d5e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -81,8 +81,7 @@ function SearchTagInput(props: SearchTagInputPro handleSelectChange([...selectedOption], curreentItem, false); }; - function handleInputChange(e: React.ChangeEvent) { - const value = e.target.value; + function handleInputChange(value: string) { searchValueSet(value); onSearch?.(value); setSelectIconType(value ? 'loading' : ''); @@ -92,8 +91,7 @@ function SearchTagInput(props: SearchTagInputPro function resetSelectedValue() { // setInnerIsOpen(false); setSelectedOption([]); - searchValueSet(''); - setSelectIconType(''); + handleInputChange(''); handleSelectChange([]); } @@ -147,7 +145,7 @@ function SearchTagInput(props: SearchTagInputPro size={size} disabled={disabled} onKeyDown={inputKeyDown} - onChange={handleInputChange} + onChange={(e: React.ChangeEvent) => handleInputChange(e.target.value)} value={searchValue} placeholder={selectedOption.length ? '' : placeholder} // readOnly={false} From da5c56d7920fa7c22c8723820f817bd3c47745d8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 1 Mar 2022 07:44:05 +0000 Subject: [PATCH 078/575] released-v4.13.2 --- packages/doc/package.json | 2 +- packages/react-affix/package.json | 4 +- packages/react-alert/package.json | 6 +- packages/react-auto-link/package.json | 2 +- packages/react-avatar/package.json | 6 +- packages/react-back-top/package.json | 4 +- packages/react-badge/package.json | 4 +- packages/react-breadcrumb/package.json | 4 +- packages/react-button-group/package.json | 6 +- packages/react-button/package.json | 6 +- packages/react-calendar/package.json | 8 +- packages/react-card/package.json | 4 +- packages/react-checkbox/package.json | 6 +- packages/react-collapse/package.json | 6 +- packages/react-copy-to-clipboard/package.json | 4 +- packages/react-date-input/package.json | 12 +- packages/react-date-picker/package.json | 8 +- packages/react-descriptions/package.json | 4 +- packages/react-divider/package.json | 4 +- packages/react-drawer/package.json | 10 +- packages/react-dropdown/package.json | 6 +- packages/react-empty/package.json | 2 +- packages/react-file-input/package.json | 8 +- packages/react-form/package.json | 8 +- packages/react-grid/package.json | 4 +- packages/react-icon/package.json | 2 +- packages/react-input/package.json | 6 +- packages/react-list/package.json | 4 +- packages/react-loader/package.json | 4 +- packages/react-menu/package.json | 8 +- packages/react-message/package.json | 8 +- packages/react-modal/package.json | 10 +- packages/react-month-picker/package.json | 12 +- packages/react-notify/package.json | 10 +- packages/react-overlay-trigger/package.json | 6 +- packages/react-overlay/package.json | 6 +- packages/react-pagination/package.json | 6 +- packages/react-pin-code/package.json | 6 +- packages/react-popover/package.json | 4 +- packages/react-portal/package.json | 2 +- packages/react-progress/package.json | 6 +- packages/react-radio/package.json | 4 +- packages/react-rate/package.json | 4 +- packages/react-search-select/package.json | 16 +-- packages/react-search-tree/package.json | 20 +-- packages/react-select/package.json | 4 +- packages/react-slider/package.json | 4 +- packages/react-steps/package.json | 6 +- packages/react-switch/package.json | 4 +- packages/react-table/package.json | 4 +- packages/react-tabs/package.json | 4 +- packages/react-tag/package.json | 4 +- packages/react-textarea/package.json | 4 +- packages/react-time-picker/package.json | 10 +- packages/react-tooltip/package.json | 6 +- packages/react-tree-checked/package.json | 8 +- packages/react-tree/package.json | 6 +- packages/uiw/package.json | 114 +++++++++--------- packages/utils/package.json | 2 +- website/package.json | 4 +- 60 files changed, 233 insertions(+), 233 deletions(-) diff --git a/packages/doc/package.json b/packages/doc/package.json index 8345450c67..51ee30447c 100644 --- a/packages/doc/package.json +++ b/packages/doc/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/doc", - "version": "4.13.1", + "version": "4.13.2", "description": "UIW documentation website.", "homepage": "https://uiwjs.github.io", "files": [ diff --git a/packages/react-affix/package.json b/packages/react-affix/package.json index 3de525567e..abebff6502 100644 --- a/packages/react-affix/package.json +++ b/packages/react-affix/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-affix", - "version": "4.13.1", + "version": "4.13.2", "description": "Affix component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/affix", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-alert/package.json b/packages/react-alert/package.json index 5d8409f463..6c6167b421 100644 --- a/packages/react-alert/package.json +++ b/packages/react-alert/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-alert", - "version": "4.13.1", + "version": "4.13.2", "description": "Alert component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/alert", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-modal": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-modal": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-auto-link/package.json b/packages/react-auto-link/package.json index a6f46110ea..aa1e24f3e4 100644 --- a/packages/react-auto-link/package.json +++ b/packages/react-auto-link/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-auto-link", - "version": "4.13.1", + "version": "4.13.2", "description": "AutoLink component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/auto-link", diff --git a/packages/react-avatar/package.json b/packages/react-avatar/package.json index 64d65f1022..d98f5a7b17 100644 --- a/packages/react-avatar/package.json +++ b/packages/react-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-avatar", - "version": "4.13.1", + "version": "4.13.2", "description": "Avatar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-back-top/package.json b/packages/react-back-top/package.json index 449e688df7..aacc76d7ef 100644 --- a/packages/react-back-top/package.json +++ b/packages/react-back-top/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-back-top", - "version": "4.13.1", + "version": "4.13.2", "description": "BackTop component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/back-top", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-badge/package.json b/packages/react-badge/package.json index 7901ff1695..74ada9ff20 100644 --- a/packages/react-badge/package.json +++ b/packages/react-badge/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-badge", - "version": "4.13.1", + "version": "4.13.2", "description": "Badge component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/badge", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-breadcrumb/package.json b/packages/react-breadcrumb/package.json index b1e7280e40..cb748679c6 100644 --- a/packages/react-breadcrumb/package.json +++ b/packages/react-breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-breadcrumb", - "version": "4.13.1", + "version": "4.13.2", "description": "Breadcrumb component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/breadcrumb", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button-group/package.json b/packages/react-button-group/package.json index daf9ea8b02..1a7a84a738 100644 --- a/packages/react-button-group/package.json +++ b/packages/react-button-group/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button-group", - "version": "4.13.1", + "version": "4.13.2", "description": "ButtonGroup component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button-group", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button/package.json b/packages/react-button/package.json index bdcf3dd090..b316ce333d 100644 --- a/packages/react-button/package.json +++ b/packages/react-button/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button", - "version": "4.13.1", + "version": "4.13.2", "description": "Button component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index f2e1540dd1..fd8165fa60 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-calendar", - "version": "4.13.1", + "version": "4.13.2", "description": "Calendar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/calendar", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-card/package.json b/packages/react-card/package.json index 4ebce4fb20..52fed08a0f 100644 --- a/packages/react-card/package.json +++ b/packages/react-card/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-card", - "version": "4.13.1", + "version": "4.13.2", "description": "Card component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/card", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-checkbox/package.json b/packages/react-checkbox/package.json index d50f94864d..5c1d8fa325 100644 --- a/packages/react-checkbox/package.json +++ b/packages/react-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-checkbox", - "version": "4.13.1", + "version": "4.13.2", "description": "Checkbox component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/checkbox", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-radio": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-collapse/package.json b/packages/react-collapse/package.json index fc13fd8623..24ae7866dc 100644 --- a/packages/react-collapse/package.json +++ b/packages/react-collapse/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-collapse", - "version": "4.13.1", + "version": "4.13.2", "description": "Collapse component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/collapse", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-copy-to-clipboard/package.json b/packages/react-copy-to-clipboard/package.json index 1100e25b78..8b2d9eacf1 100644 --- a/packages/react-copy-to-clipboard/package.json +++ b/packages/react-copy-to-clipboard/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-copy-to-clipboard", - "version": "4.13.1", + "version": "4.13.2", "description": "CpyToClipboard component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/copy-to-clipboard", @@ -45,7 +45,7 @@ }, "dependencies": { "@uiw/copy-to-clipboard": "~1.0.11", - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-input/package.json b/packages/react-date-input/package.json index 8a97237327..febbcba8dc 100644 --- a/packages/react-date-input/package.json +++ b/packages/react-date-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-input", - "version": "4.13.1", + "version": "4.13.2", "description": "DateInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-input", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-picker/package.json b/packages/react-date-picker/package.json index 3460c96281..c25b547a25 100644 --- a/packages/react-date-picker/package.json +++ b/packages/react-date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "DatePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-picker", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-time-picker": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/react-time-picker": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-descriptions/package.json b/packages/react-descriptions/package.json index 27ac7f5282..2e1030d99e 100644 --- a/packages/react-descriptions/package.json +++ b/packages/react-descriptions/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-descriptions", - "version": "4.13.1", + "version": "4.13.2", "description": "Descriptions component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/descriptions", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-divider/package.json b/packages/react-divider/package.json index 59facd3326..68b56d8b43 100644 --- a/packages/react-divider/package.json +++ b/packages/react-divider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-divider", - "version": "4.13.1", + "version": "4.13.2", "description": "Divider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/divider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-drawer/package.json b/packages/react-drawer/package.json index b5ce8cc88d..e4f4ba9d81 100644 --- a/packages/react-drawer/package.json +++ b/packages/react-drawer/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-drawer", - "version": "4.13.1", + "version": "4.13.2", "description": "Drawer component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/drawer", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-dropdown/package.json b/packages/react-dropdown/package.json index 252e01c700..8d452cafb5 100644 --- a/packages/react-dropdown/package.json +++ b/packages/react-dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-dropdown", - "version": "4.13.1", + "version": "4.13.2", "description": "Dropdown component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/dropdown", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-empty/package.json b/packages/react-empty/package.json index 1b72cf7956..29896eabd8 100644 --- a/packages/react-empty/package.json +++ b/packages/react-empty/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-empty", - "version": "4.13.1", + "version": "4.13.2", "description": "Empty component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/empty", diff --git a/packages/react-file-input/package.json b/packages/react-file-input/package.json index 0da89c3f40..b6812d8f19 100644 --- a/packages/react-file-input/package.json +++ b/packages/react-file-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-file-input", - "version": "4.13.1", + "version": "4.13.2", "description": "FileInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/file-input", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-form/package.json b/packages/react-form/package.json index b6a2df217d..6b33c41396 100644 --- a/packages/react-form/package.json +++ b/packages/react-form/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-form", - "version": "4.13.1", + "version": "4.13.2", "description": "Form component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/form", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-grid": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-grid": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-grid/package.json b/packages/react-grid/package.json index 22066a40f5..c02a667fe7 100644 --- a/packages/react-grid/package.json +++ b/packages/react-grid/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-grid", - "version": "4.13.1", + "version": "4.13.2", "description": "Grid component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/grid", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-icon/package.json b/packages/react-icon/package.json index 335edfc2e1..7e24a14b31 100644 --- a/packages/react-icon/package.json +++ b/packages/react-icon/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-icon", - "version": "4.13.1", + "version": "4.13.2", "description": "Icon component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/icon", diff --git a/packages/react-input/package.json b/packages/react-input/package.json index 5e5713d30e..e3042ab84b 100644 --- a/packages/react-input/package.json +++ b/packages/react-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-input", - "version": "4.13.1", + "version": "4.13.2", "description": "Input component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/input", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-list/package.json b/packages/react-list/package.json index 88b6763cb6..79d4124f03 100644 --- a/packages/react-list/package.json +++ b/packages/react-list/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-list", - "version": "4.13.1", + "version": "4.13.2", "description": "List component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/list", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-loader/package.json b/packages/react-loader/package.json index 270a272b6a..984e2b4244 100644 --- a/packages/react-loader/package.json +++ b/packages/react-loader/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-loader", - "version": "4.13.1", + "version": "4.13.2", "description": "Loader component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/loader", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-menu/package.json b/packages/react-menu/package.json index c11f5bbb27..2415974e22 100644 --- a/packages/react-menu/package.json +++ b/packages/react-menu/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-menu", - "version": "4.13.1", + "version": "4.13.2", "description": "Menu component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/menu", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-message/package.json b/packages/react-message/package.json index c5229d151a..aa2ecd9f71 100644 --- a/packages/react-message/package.json +++ b/packages/react-message/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-message", - "version": "4.13.1", + "version": "4.13.2", "description": "Message component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/message", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-modal/package.json b/packages/react-modal/package.json index 1fdd4dc745..d7ddeb071b 100644 --- a/packages/react-modal/package.json +++ b/packages/react-modal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-modal", - "version": "4.13.1", + "version": "4.13.2", "description": "Modal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/modal", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-month-picker/package.json b/packages/react-month-picker/package.json index 62d1158418..70ab8c2917 100644 --- a/packages/react-month-picker/package.json +++ b/packages/react-month-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-month-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "MonthPicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/month-picker", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.1", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-notify/package.json b/packages/react-notify/package.json index a18ff3f03f..0914a26259 100644 --- a/packages/react-notify/package.json +++ b/packages/react-notify/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-notify", - "version": "4.13.1", + "version": "4.13.2", "description": "Notify component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/notify", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-alert": "^4.13.1", - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-alert": "^4.13.2", + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay-trigger/package.json b/packages/react-overlay-trigger/package.json index 3d050739bb..7e523d58ee 100644 --- a/packages/react-overlay-trigger/package.json +++ b/packages/react-overlay-trigger/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay-trigger", - "version": "4.13.1", + "version": "4.13.2", "description": "OverlayTrigger component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay-trigger", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay/package.json b/packages/react-overlay/package.json index a939853576..7327e5a888 100644 --- a/packages/react-overlay/package.json +++ b/packages/react-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay", - "version": "4.13.1", + "version": "4.13.2", "description": "Overlay component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-portal": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-portal": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-pagination/package.json b/packages/react-pagination/package.json index c1aa5f1ee3..07adfccb1c 100644 --- a/packages/react-pagination/package.json +++ b/packages/react-pagination/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pagination", - "version": "4.13.1", + "version": "4.13.2", "description": "Pagination component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pagination", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-select": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-select": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-pin-code/package.json b/packages/react-pin-code/package.json index 6a0baf2e6c..bdb83dcf02 100644 --- a/packages/react-pin-code/package.json +++ b/packages/react-pin-code/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pin-code", - "version": "4.13.1", + "version": "4.13.2", "description": "PinCode component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pin-code", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-input": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-input": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-popover/package.json b/packages/react-popover/package.json index 4c94b9652c..ca5d2cacb8 100644 --- a/packages/react-popover/package.json +++ b/packages/react-popover/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-popover", - "version": "4.13.1", + "version": "4.13.2", "description": "Popover component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/popover", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-portal/package.json b/packages/react-portal/package.json index 72af34d988..f47e054bcc 100644 --- a/packages/react-portal/package.json +++ b/packages/react-portal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-portal", - "version": "4.13.1", + "version": "4.13.2", "description": "Portal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/portal", diff --git a/packages/react-progress/package.json b/packages/react-progress/package.json index ece3a34eea..79683443fe 100644 --- a/packages/react-progress/package.json +++ b/packages/react-progress/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-progress", - "version": "4.13.1", + "version": "4.13.2", "description": "Progress component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/progress", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-radio/package.json b/packages/react-radio/package.json index 2b1a6c235c..9c65fd2749 100644 --- a/packages/react-radio/package.json +++ b/packages/react-radio/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-radio", - "version": "4.13.1", + "version": "4.13.2", "description": "Radio component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/radio", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-rate/package.json b/packages/react-rate/package.json index a6a551a2f0..e176d212d3 100644 --- a/packages/react-rate/package.json +++ b/packages/react-rate/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-rate", - "version": "4.13.1", + "version": "4.13.2", "description": "Rate component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/rate", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index a4dfd08166..48d3f36b49 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-select", - "version": "4.13.1", + "version": "4.13.2", "description": "SearchSelect component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/search-select", @@ -44,13 +44,13 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-loader": "^4.13.1", - "@uiw/react-menu": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-loader": "^4.13.2", + "@uiw/react-menu": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index a6f0a1d696..83fb5df2c9 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-tree", - "version": "4.13.1", + "version": "4.13.2", "description": "TreeChecked component", "homepage": "https://uiwjs.github.io/#/components/search-tree", "repository": { @@ -43,15 +43,15 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-card": "^4.13.1", - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/react-tree-checked": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-card": "^4.13.2", + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/react-tree-checked": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 6ed8a764ef..39e890e3fe 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-select", - "version": "4.13.1", + "version": "4.13.2", "description": "Select component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/select", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-slider/package.json b/packages/react-slider/package.json index 9a3702573a..9142c91664 100644 --- a/packages/react-slider/package.json +++ b/packages/react-slider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-slider", - "version": "4.13.1", + "version": "4.13.2", "description": "Slider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/slider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-steps/package.json b/packages/react-steps/package.json index 581b50db33..805df60b09 100644 --- a/packages/react-steps/package.json +++ b/packages/react-steps/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-steps", - "version": "4.13.1", + "version": "4.13.2", "description": "Steps component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/steps", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-switch/package.json b/packages/react-switch/package.json index 95a97d07a5..04ef20183b 100644 --- a/packages/react-switch/package.json +++ b/packages/react-switch/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-switch", - "version": "4.13.1", + "version": "4.13.2", "description": "Switch component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/switch", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.1" + "@uiw/react-radio": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 82a2f392ae..3261eed7ef 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-table", - "version": "4.13.1", + "version": "4.13.2", "description": "Table component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/table", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index b3249b15e3..563c57c540 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tabs", - "version": "4.13.1", + "version": "4.13.2", "description": "Tabs component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tabs", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tag/package.json b/packages/react-tag/package.json index 82aee6bcb0..52a650e20f 100644 --- a/packages/react-tag/package.json +++ b/packages/react-tag/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tag", - "version": "4.13.1", + "version": "4.13.2", "description": "Tag component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tag", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-textarea/package.json b/packages/react-textarea/package.json index 1c6a3b9351..9dc951faba 100644 --- a/packages/react-textarea/package.json +++ b/packages/react-textarea/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-textarea", - "version": "4.13.1", + "version": "4.13.2", "description": "Textarea component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/textarea", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-time-picker/package.json b/packages/react-time-picker/package.json index 596e9fc068..d304f77004 100644 --- a/packages/react-time-picker/package.json +++ b/packages/react-time-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-time-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "TimePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/time-picker", @@ -45,10 +45,10 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tooltip/package.json b/packages/react-tooltip/package.json index c1a486a741..cf8f1758fe 100644 --- a/packages/react-tooltip/package.json +++ b/packages/react-tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tooltip", - "version": "4.13.1", + "version": "4.13.2", "description": "Tooltip component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tooltip", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree-checked/package.json b/packages/react-tree-checked/package.json index 8a4f582874..f498e8ff4c 100644 --- a/packages/react-tree-checked/package.json +++ b/packages/react-tree-checked/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree-checked", - "version": "4.13.1", + "version": "4.13.2", "description": "TreeChecked component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree-checked", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree/package.json b/packages/react-tree/package.json index d08fbe7519..d965e81866 100644 --- a/packages/react-tree/package.json +++ b/packages/react-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree", - "version": "4.13.1", + "version": "4.13.2", "description": "Tree component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/uiw/package.json b/packages/uiw/package.json index a57216cf76..9592babb23 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -1,6 +1,6 @@ { "name": "uiw", - "version": "4.13.1", + "version": "4.13.2", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io", @@ -54,64 +54,64 @@ "dependencies": { "@babel/runtime": "7.17.2", "@uiw/formatter": "~1.3.2", - "@uiw/react-affix": "^4.13.1", - "@uiw/react-alert": "^4.13.1", - "@uiw/react-auto-link": "^4.13.1", - "@uiw/react-avatar": "^4.13.1", - "@uiw/react-back-top": "^4.13.1", - "@uiw/react-badge": "^4.13.1", - "@uiw/react-breadcrumb": "^4.13.1", - "@uiw/react-button": "^4.13.1", - "@uiw/react-button-group": "^4.13.1", - "@uiw/react-calendar": "^4.13.1", - "@uiw/react-card": "^4.13.1", - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-collapse": "^4.13.1", - "@uiw/react-copy-to-clipboard": "^4.13.1", - "@uiw/react-date-input": "^4.13.1", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-descriptions": "^4.13.1", - "@uiw/react-divider": "^4.13.1", - "@uiw/react-drawer": "^4.13.1", - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-empty": "^4.13.1", - "@uiw/react-file-input": "^4.13.1", - "@uiw/react-form": "^4.13.1", - "@uiw/react-grid": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", + "@uiw/react-affix": "^4.13.2", + "@uiw/react-alert": "^4.13.2", + "@uiw/react-auto-link": "^4.13.2", + "@uiw/react-avatar": "^4.13.2", + "@uiw/react-back-top": "^4.13.2", + "@uiw/react-badge": "^4.13.2", + "@uiw/react-breadcrumb": "^4.13.2", + "@uiw/react-button": "^4.13.2", + "@uiw/react-button-group": "^4.13.2", + "@uiw/react-calendar": "^4.13.2", + "@uiw/react-card": "^4.13.2", + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-collapse": "^4.13.2", + "@uiw/react-copy-to-clipboard": "^4.13.2", + "@uiw/react-date-input": "^4.13.2", + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-descriptions": "^4.13.2", + "@uiw/react-divider": "^4.13.2", + "@uiw/react-drawer": "^4.13.2", + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-empty": "^4.13.2", + "@uiw/react-file-input": "^4.13.2", + "@uiw/react-form": "^4.13.2", + "@uiw/react-grid": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", "@uiw/react-layout": "~4.10.0", - "@uiw/react-list": "^4.13.1", - "@uiw/react-loader": "^4.13.1", - "@uiw/react-menu": "^4.13.1", - "@uiw/react-message": "^4.13.1", - "@uiw/react-modal": "^4.13.1", - "@uiw/react-month-picker": "^4.13.1", - "@uiw/react-notify": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/react-pagination": "^4.13.1", - "@uiw/react-pin-code": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/react-portal": "^4.13.1", - "@uiw/react-progress": "^4.13.1", - "@uiw/react-radio": "^4.13.1", - "@uiw/react-rate": "^4.13.1", - "@uiw/react-search-select": "^4.13.1", - "@uiw/react-search-tree": "^4.13.1", - "@uiw/react-select": "^4.13.1", - "@uiw/react-slider": "^4.13.1", + "@uiw/react-list": "^4.13.2", + "@uiw/react-loader": "^4.13.2", + "@uiw/react-menu": "^4.13.2", + "@uiw/react-message": "^4.13.2", + "@uiw/react-modal": "^4.13.2", + "@uiw/react-month-picker": "^4.13.2", + "@uiw/react-notify": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/react-pagination": "^4.13.2", + "@uiw/react-pin-code": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/react-portal": "^4.13.2", + "@uiw/react-progress": "^4.13.2", + "@uiw/react-radio": "^4.13.2", + "@uiw/react-rate": "^4.13.2", + "@uiw/react-search-select": "^4.13.2", + "@uiw/react-search-tree": "^4.13.2", + "@uiw/react-select": "^4.13.2", + "@uiw/react-slider": "^4.13.2", "@uiw/react-split": "~5.8.5", - "@uiw/react-steps": "^4.13.1", - "@uiw/react-switch": "^4.13.1", - "@uiw/react-table": "^4.13.1", - "@uiw/react-tabs": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/react-textarea": "^4.13.1", - "@uiw/react-time-picker": "^4.13.1", - "@uiw/react-tooltip": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/react-tree-checked": "^4.13.1" + "@uiw/react-steps": "^4.13.2", + "@uiw/react-switch": "^4.13.2", + "@uiw/react-table": "^4.13.2", + "@uiw/react-tabs": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/react-textarea": "^4.13.2", + "@uiw/react-time-picker": "^4.13.2", + "@uiw/react-tooltip": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/react-tree-checked": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index be796bf2b2..7970ea6f5d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/utils", - "version": "4.13.1", + "version": "4.13.2", "description": "utils tools for uiw", "author": "Kenny Wong ", "homepage": "https://github.com/uiwjs/uiw/tree/master/packages/utils#readme", diff --git a/website/package.json b/website/package.json index e6993a5a4c..c447615152 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "4.13.1", + "version": "4.13.2", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "private": true, "sideEffects": true, @@ -39,7 +39,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "react-router-dom": "6.2.1", - "uiw": "^4.13.1" + "uiw": "^4.13.2" }, "devDependencies": { "@kkt/less-modules": "~7.1.1", From ad3d19022041d5074c1595edfed0594b1fc22ce1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 079/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5097b30ab31519785edbbe54b17b2274de4f0f1b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 080/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 90610158951e202190316ecc1f02318a7b9d4c0c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 081/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5d6a1082361bc43ca883abd5c401b09e661adaac Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 082/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 48cb40fc6193e256fb72f2abf3322d72d3e31775 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 083/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 997d29c946995225d40bc275c4fd3943a5aa572b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 084/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5bdb5e8faa8f51ef5cdacce030ec4620c158a0a0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 085/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 13e39c485d7b5c81624bb22118362342c06dc76f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 086/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a0e59a4d663ee72aadc07c8a64c2c788909b277e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 087/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2f7ab20a67bc3919a8f0bb4f2e83167eaf01ad9a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 088/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4bb42ea9d804c1100ff50cd74dcfb126455f8eb4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 089/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 47dff7846f5617ff45d4cdefae0a2b2c8b934e44 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 090/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 06f15dccd0ae2122762cc7aecbd2129d9a4e462b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 091/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b3869ae3080c30da0eb7a72174aa7085e646c286 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 092/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 68a3578faa085930ca8161b22dae24cfac257aa2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 093/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From bd313f8bdfe56ada911a16e573697a73c81be2e6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 094/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b38ea46339cfe7cfd92c69ce9c8eb89f75755c27 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 16:24:41 +0800 Subject: [PATCH 095/575] =?UTF-8?q?fix(SearchTree):=20=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=8C=89=E9=92=AE=E5=88=A0=E9=99=A4=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=90=8E,=E6=B2=A1=E6=9C=89=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=80=89=E9=A1=B9=20#563?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 85af853f1e..fe1dee9d5e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -81,8 +81,7 @@ function SearchTagInput(props: SearchTagInputPro handleSelectChange([...selectedOption], curreentItem, false); }; - function handleInputChange(e: React.ChangeEvent) { - const value = e.target.value; + function handleInputChange(value: string) { searchValueSet(value); onSearch?.(value); setSelectIconType(value ? 'loading' : ''); @@ -92,8 +91,7 @@ function SearchTagInput(props: SearchTagInputPro function resetSelectedValue() { // setInnerIsOpen(false); setSelectedOption([]); - searchValueSet(''); - setSelectIconType(''); + handleInputChange(''); handleSelectChange([]); } @@ -147,7 +145,7 @@ function SearchTagInput(props: SearchTagInputPro size={size} disabled={disabled} onKeyDown={inputKeyDown} - onChange={handleInputChange} + onChange={(e: React.ChangeEvent) => handleInputChange(e.target.value)} value={searchValue} placeholder={selectedOption.length ? '' : placeholder} // readOnly={false} From b518003c8be06d16802e58849e97c040de581504 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 17:49:03 +0800 Subject: [PATCH 096/575] =?UTF-8?q?fix(Form):=20=E4=BF=AE=E5=A4=8DonChange?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E4=B8=ADeven=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF=20#577?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/FormItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-form/src/FormItem.tsx b/packages/react-form/src/FormItem.tsx index 58b3225c36..aa82321c0c 100644 --- a/packages/react-form/src/FormItem.tsx +++ b/packages/react-form/src/FormItem.tsx @@ -1,10 +1,10 @@ import React, { CSSProperties } from 'react'; import { Col, Row } from '@uiw/react-grid'; -import { IProps, HTMLDivProps } from '@uiw/utils'; +import { IProps, HTMLInputProps } from '@uiw/utils'; import { FormFieldsProps } from './Form'; import './style/form-item.less'; -export interface FormItemProps extends IProps, HTMLDivProps { +export interface FormItemProps extends IProps, HTMLInputProps { inline?: boolean; hasError?: boolean; label?: React.ReactNode; From 556ebc0e6f16725c5bd93df339fd583314b24158 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 097/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5198c5d128949936f0964616784bb71afd2ba78a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 098/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From df5cbb13d3a9be8c9dadad3a9c6eae9c09adf34f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 099/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 62c5043411860b109df58f9ad9489d821ddadd23 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 100/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 955a7b78cdd5bc13e0876ceec2fa0b091f927e26 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 101/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b147707236856b0b2649c5a0c00f17a3ab4d82c3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 102/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 509c348d5740ef55cd787d5c7709b73ff42b361b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 103/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 78ccdfa29c60a7f459e0f20482b760502a4de396 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 104/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b1737565711f4fa7bccf7e14e3e05bea6b5da0a9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 105/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 864bbc6fc089f1ff934782d484f5322583906a60 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 106/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c836fa9bcd147d482514141eb9d529571ac0b804 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 107/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 13303e46819cac02c8e55de692a5e197843fc9fc Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 108/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 08f9c718db5d239fd159091dc13915ecf4f89338 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 109/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 318a2162b145e0bed11e52e3e0f009962617d32a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 110/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From eccca0f8300ed6640e6eda0f4852681a1dd3862b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 111/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 04a2b9f10c18c7ef981f174b01bd429aa2c1b4b0 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 1 Mar 2022 07:44:05 +0000 Subject: [PATCH 112/575] released-v4.13.2 --- packages/doc/package.json | 2 +- packages/react-affix/package.json | 4 +- packages/react-alert/package.json | 6 +- packages/react-auto-link/package.json | 2 +- packages/react-avatar/package.json | 6 +- packages/react-back-top/package.json | 4 +- packages/react-badge/package.json | 4 +- packages/react-breadcrumb/package.json | 4 +- packages/react-button-group/package.json | 6 +- packages/react-button/package.json | 6 +- packages/react-calendar/package.json | 8 +- packages/react-card/package.json | 4 +- packages/react-checkbox/package.json | 6 +- packages/react-collapse/package.json | 6 +- packages/react-copy-to-clipboard/package.json | 4 +- packages/react-date-input/package.json | 12 +- packages/react-date-picker/package.json | 8 +- packages/react-descriptions/package.json | 4 +- packages/react-divider/package.json | 4 +- packages/react-drawer/package.json | 10 +- packages/react-dropdown/package.json | 6 +- packages/react-empty/package.json | 2 +- packages/react-file-input/package.json | 8 +- packages/react-form/package.json | 8 +- packages/react-grid/package.json | 4 +- packages/react-icon/package.json | 2 +- packages/react-input/package.json | 6 +- packages/react-list/package.json | 4 +- packages/react-loader/package.json | 4 +- packages/react-menu/package.json | 8 +- packages/react-message/package.json | 8 +- packages/react-modal/package.json | 10 +- packages/react-month-picker/package.json | 12 +- packages/react-notify/package.json | 10 +- packages/react-overlay-trigger/package.json | 6 +- packages/react-overlay/package.json | 6 +- packages/react-pagination/package.json | 6 +- packages/react-pin-code/package.json | 6 +- packages/react-popover/package.json | 4 +- packages/react-portal/package.json | 2 +- packages/react-progress/package.json | 6 +- packages/react-radio/package.json | 4 +- packages/react-rate/package.json | 4 +- packages/react-search-select/package.json | 16 +-- packages/react-search-tree/package.json | 20 +-- packages/react-select/package.json | 4 +- packages/react-slider/package.json | 4 +- packages/react-steps/package.json | 6 +- packages/react-switch/package.json | 4 +- packages/react-table/package.json | 4 +- packages/react-tabs/package.json | 4 +- packages/react-tag/package.json | 4 +- packages/react-textarea/package.json | 4 +- packages/react-time-picker/package.json | 10 +- packages/react-tooltip/package.json | 6 +- packages/react-tree-checked/package.json | 8 +- packages/react-tree/package.json | 6 +- packages/uiw/package.json | 114 +++++++++--------- packages/utils/package.json | 2 +- website/package.json | 4 +- 60 files changed, 233 insertions(+), 233 deletions(-) diff --git a/packages/doc/package.json b/packages/doc/package.json index 8345450c67..51ee30447c 100644 --- a/packages/doc/package.json +++ b/packages/doc/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/doc", - "version": "4.13.1", + "version": "4.13.2", "description": "UIW documentation website.", "homepage": "https://uiwjs.github.io", "files": [ diff --git a/packages/react-affix/package.json b/packages/react-affix/package.json index 3de525567e..abebff6502 100644 --- a/packages/react-affix/package.json +++ b/packages/react-affix/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-affix", - "version": "4.13.1", + "version": "4.13.2", "description": "Affix component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/affix", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-alert/package.json b/packages/react-alert/package.json index 5d8409f463..6c6167b421 100644 --- a/packages/react-alert/package.json +++ b/packages/react-alert/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-alert", - "version": "4.13.1", + "version": "4.13.2", "description": "Alert component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/alert", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-modal": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-modal": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-auto-link/package.json b/packages/react-auto-link/package.json index a6f46110ea..aa1e24f3e4 100644 --- a/packages/react-auto-link/package.json +++ b/packages/react-auto-link/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-auto-link", - "version": "4.13.1", + "version": "4.13.2", "description": "AutoLink component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/auto-link", diff --git a/packages/react-avatar/package.json b/packages/react-avatar/package.json index 64d65f1022..d98f5a7b17 100644 --- a/packages/react-avatar/package.json +++ b/packages/react-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-avatar", - "version": "4.13.1", + "version": "4.13.2", "description": "Avatar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-back-top/package.json b/packages/react-back-top/package.json index 449e688df7..aacc76d7ef 100644 --- a/packages/react-back-top/package.json +++ b/packages/react-back-top/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-back-top", - "version": "4.13.1", + "version": "4.13.2", "description": "BackTop component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/back-top", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-badge/package.json b/packages/react-badge/package.json index 7901ff1695..74ada9ff20 100644 --- a/packages/react-badge/package.json +++ b/packages/react-badge/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-badge", - "version": "4.13.1", + "version": "4.13.2", "description": "Badge component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/badge", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-breadcrumb/package.json b/packages/react-breadcrumb/package.json index b1e7280e40..cb748679c6 100644 --- a/packages/react-breadcrumb/package.json +++ b/packages/react-breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-breadcrumb", - "version": "4.13.1", + "version": "4.13.2", "description": "Breadcrumb component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/breadcrumb", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button-group/package.json b/packages/react-button-group/package.json index daf9ea8b02..1a7a84a738 100644 --- a/packages/react-button-group/package.json +++ b/packages/react-button-group/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button-group", - "version": "4.13.1", + "version": "4.13.2", "description": "ButtonGroup component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button-group", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button/package.json b/packages/react-button/package.json index bdcf3dd090..b316ce333d 100644 --- a/packages/react-button/package.json +++ b/packages/react-button/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button", - "version": "4.13.1", + "version": "4.13.2", "description": "Button component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index f2e1540dd1..fd8165fa60 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-calendar", - "version": "4.13.1", + "version": "4.13.2", "description": "Calendar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/calendar", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-card/package.json b/packages/react-card/package.json index 4ebce4fb20..52fed08a0f 100644 --- a/packages/react-card/package.json +++ b/packages/react-card/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-card", - "version": "4.13.1", + "version": "4.13.2", "description": "Card component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/card", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-checkbox/package.json b/packages/react-checkbox/package.json index d50f94864d..5c1d8fa325 100644 --- a/packages/react-checkbox/package.json +++ b/packages/react-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-checkbox", - "version": "4.13.1", + "version": "4.13.2", "description": "Checkbox component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/checkbox", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-radio": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-collapse/package.json b/packages/react-collapse/package.json index fc13fd8623..24ae7866dc 100644 --- a/packages/react-collapse/package.json +++ b/packages/react-collapse/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-collapse", - "version": "4.13.1", + "version": "4.13.2", "description": "Collapse component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/collapse", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-copy-to-clipboard/package.json b/packages/react-copy-to-clipboard/package.json index 1100e25b78..8b2d9eacf1 100644 --- a/packages/react-copy-to-clipboard/package.json +++ b/packages/react-copy-to-clipboard/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-copy-to-clipboard", - "version": "4.13.1", + "version": "4.13.2", "description": "CpyToClipboard component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/copy-to-clipboard", @@ -45,7 +45,7 @@ }, "dependencies": { "@uiw/copy-to-clipboard": "~1.0.11", - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-input/package.json b/packages/react-date-input/package.json index 8a97237327..febbcba8dc 100644 --- a/packages/react-date-input/package.json +++ b/packages/react-date-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-input", - "version": "4.13.1", + "version": "4.13.2", "description": "DateInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-input", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-picker/package.json b/packages/react-date-picker/package.json index 3460c96281..c25b547a25 100644 --- a/packages/react-date-picker/package.json +++ b/packages/react-date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "DatePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-picker", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-time-picker": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/react-time-picker": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-descriptions/package.json b/packages/react-descriptions/package.json index 27ac7f5282..2e1030d99e 100644 --- a/packages/react-descriptions/package.json +++ b/packages/react-descriptions/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-descriptions", - "version": "4.13.1", + "version": "4.13.2", "description": "Descriptions component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/descriptions", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-divider/package.json b/packages/react-divider/package.json index 59facd3326..68b56d8b43 100644 --- a/packages/react-divider/package.json +++ b/packages/react-divider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-divider", - "version": "4.13.1", + "version": "4.13.2", "description": "Divider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/divider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-drawer/package.json b/packages/react-drawer/package.json index b5ce8cc88d..e4f4ba9d81 100644 --- a/packages/react-drawer/package.json +++ b/packages/react-drawer/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-drawer", - "version": "4.13.1", + "version": "4.13.2", "description": "Drawer component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/drawer", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-dropdown/package.json b/packages/react-dropdown/package.json index 252e01c700..8d452cafb5 100644 --- a/packages/react-dropdown/package.json +++ b/packages/react-dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-dropdown", - "version": "4.13.1", + "version": "4.13.2", "description": "Dropdown component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/dropdown", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-empty/package.json b/packages/react-empty/package.json index 1b72cf7956..29896eabd8 100644 --- a/packages/react-empty/package.json +++ b/packages/react-empty/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-empty", - "version": "4.13.1", + "version": "4.13.2", "description": "Empty component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/empty", diff --git a/packages/react-file-input/package.json b/packages/react-file-input/package.json index 0da89c3f40..b6812d8f19 100644 --- a/packages/react-file-input/package.json +++ b/packages/react-file-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-file-input", - "version": "4.13.1", + "version": "4.13.2", "description": "FileInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/file-input", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-form/package.json b/packages/react-form/package.json index b6a2df217d..6b33c41396 100644 --- a/packages/react-form/package.json +++ b/packages/react-form/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-form", - "version": "4.13.1", + "version": "4.13.2", "description": "Form component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/form", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-grid": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-grid": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-grid/package.json b/packages/react-grid/package.json index 22066a40f5..c02a667fe7 100644 --- a/packages/react-grid/package.json +++ b/packages/react-grid/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-grid", - "version": "4.13.1", + "version": "4.13.2", "description": "Grid component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/grid", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-icon/package.json b/packages/react-icon/package.json index 335edfc2e1..7e24a14b31 100644 --- a/packages/react-icon/package.json +++ b/packages/react-icon/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-icon", - "version": "4.13.1", + "version": "4.13.2", "description": "Icon component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/icon", diff --git a/packages/react-input/package.json b/packages/react-input/package.json index 5e5713d30e..e3042ab84b 100644 --- a/packages/react-input/package.json +++ b/packages/react-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-input", - "version": "4.13.1", + "version": "4.13.2", "description": "Input component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/input", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-list/package.json b/packages/react-list/package.json index 88b6763cb6..79d4124f03 100644 --- a/packages/react-list/package.json +++ b/packages/react-list/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-list", - "version": "4.13.1", + "version": "4.13.2", "description": "List component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/list", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-loader/package.json b/packages/react-loader/package.json index 270a272b6a..984e2b4244 100644 --- a/packages/react-loader/package.json +++ b/packages/react-loader/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-loader", - "version": "4.13.1", + "version": "4.13.2", "description": "Loader component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/loader", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-menu/package.json b/packages/react-menu/package.json index c11f5bbb27..2415974e22 100644 --- a/packages/react-menu/package.json +++ b/packages/react-menu/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-menu", - "version": "4.13.1", + "version": "4.13.2", "description": "Menu component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/menu", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-message/package.json b/packages/react-message/package.json index c5229d151a..aa2ecd9f71 100644 --- a/packages/react-message/package.json +++ b/packages/react-message/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-message", - "version": "4.13.1", + "version": "4.13.2", "description": "Message component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/message", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-modal/package.json b/packages/react-modal/package.json index 1fdd4dc745..d7ddeb071b 100644 --- a/packages/react-modal/package.json +++ b/packages/react-modal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-modal", - "version": "4.13.1", + "version": "4.13.2", "description": "Modal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/modal", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-month-picker/package.json b/packages/react-month-picker/package.json index 62d1158418..70ab8c2917 100644 --- a/packages/react-month-picker/package.json +++ b/packages/react-month-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-month-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "MonthPicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/month-picker", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.1", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-notify/package.json b/packages/react-notify/package.json index a18ff3f03f..0914a26259 100644 --- a/packages/react-notify/package.json +++ b/packages/react-notify/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-notify", - "version": "4.13.1", + "version": "4.13.2", "description": "Notify component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/notify", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-alert": "^4.13.1", - "@uiw/react-button": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-alert": "^4.13.2", + "@uiw/react-button": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay-trigger/package.json b/packages/react-overlay-trigger/package.json index 3d050739bb..7e523d58ee 100644 --- a/packages/react-overlay-trigger/package.json +++ b/packages/react-overlay-trigger/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay-trigger", - "version": "4.13.1", + "version": "4.13.2", "description": "OverlayTrigger component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay-trigger", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay/package.json b/packages/react-overlay/package.json index a939853576..7327e5a888 100644 --- a/packages/react-overlay/package.json +++ b/packages/react-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay", - "version": "4.13.1", + "version": "4.13.2", "description": "Overlay component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-portal": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-portal": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-pagination/package.json b/packages/react-pagination/package.json index c1aa5f1ee3..07adfccb1c 100644 --- a/packages/react-pagination/package.json +++ b/packages/react-pagination/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pagination", - "version": "4.13.1", + "version": "4.13.2", "description": "Pagination component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pagination", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-select": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-select": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-pin-code/package.json b/packages/react-pin-code/package.json index 6a0baf2e6c..bdb83dcf02 100644 --- a/packages/react-pin-code/package.json +++ b/packages/react-pin-code/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pin-code", - "version": "4.13.1", + "version": "4.13.2", "description": "PinCode component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pin-code", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-input": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-input": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-popover/package.json b/packages/react-popover/package.json index 4c94b9652c..ca5d2cacb8 100644 --- a/packages/react-popover/package.json +++ b/packages/react-popover/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-popover", - "version": "4.13.1", + "version": "4.13.2", "description": "Popover component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/popover", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-portal/package.json b/packages/react-portal/package.json index 72af34d988..f47e054bcc 100644 --- a/packages/react-portal/package.json +++ b/packages/react-portal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-portal", - "version": "4.13.1", + "version": "4.13.2", "description": "Portal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/portal", diff --git a/packages/react-progress/package.json b/packages/react-progress/package.json index ece3a34eea..79683443fe 100644 --- a/packages/react-progress/package.json +++ b/packages/react-progress/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-progress", - "version": "4.13.1", + "version": "4.13.2", "description": "Progress component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/progress", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-radio/package.json b/packages/react-radio/package.json index 2b1a6c235c..9c65fd2749 100644 --- a/packages/react-radio/package.json +++ b/packages/react-radio/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-radio", - "version": "4.13.1", + "version": "4.13.2", "description": "Radio component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/radio", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-rate/package.json b/packages/react-rate/package.json index a6a551a2f0..e176d212d3 100644 --- a/packages/react-rate/package.json +++ b/packages/react-rate/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-rate", - "version": "4.13.1", + "version": "4.13.2", "description": "Rate component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/rate", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index a4dfd08166..48d3f36b49 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-select", - "version": "4.13.1", + "version": "4.13.2", "description": "SearchSelect component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/search-select", @@ -44,13 +44,13 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-loader": "^4.13.1", - "@uiw/react-menu": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-loader": "^4.13.2", + "@uiw/react-menu": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index a6f0a1d696..83fb5df2c9 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-tree", - "version": "4.13.1", + "version": "4.13.2", "description": "TreeChecked component", "homepage": "https://uiwjs.github.io/#/components/search-tree", "repository": { @@ -43,15 +43,15 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-card": "^4.13.1", - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/react-tree-checked": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-card": "^4.13.2", + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/react-tree-checked": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 6ed8a764ef..39e890e3fe 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-select", - "version": "4.13.1", + "version": "4.13.2", "description": "Select component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/select", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-slider/package.json b/packages/react-slider/package.json index 9a3702573a..9142c91664 100644 --- a/packages/react-slider/package.json +++ b/packages/react-slider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-slider", - "version": "4.13.1", + "version": "4.13.2", "description": "Slider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/slider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-steps/package.json b/packages/react-steps/package.json index 581b50db33..805df60b09 100644 --- a/packages/react-steps/package.json +++ b/packages/react-steps/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-steps", - "version": "4.13.1", + "version": "4.13.2", "description": "Steps component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/steps", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-switch/package.json b/packages/react-switch/package.json index 95a97d07a5..04ef20183b 100644 --- a/packages/react-switch/package.json +++ b/packages/react-switch/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-switch", - "version": "4.13.1", + "version": "4.13.2", "description": "Switch component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/switch", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.1" + "@uiw/react-radio": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 82a2f392ae..3261eed7ef 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-table", - "version": "4.13.1", + "version": "4.13.2", "description": "Table component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/table", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index b3249b15e3..563c57c540 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tabs", - "version": "4.13.1", + "version": "4.13.2", "description": "Tabs component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tabs", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tag/package.json b/packages/react-tag/package.json index 82aee6bcb0..52a650e20f 100644 --- a/packages/react-tag/package.json +++ b/packages/react-tag/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tag", - "version": "4.13.1", + "version": "4.13.2", "description": "Tag component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tag", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-textarea/package.json b/packages/react-textarea/package.json index 1c6a3b9351..9dc951faba 100644 --- a/packages/react-textarea/package.json +++ b/packages/react-textarea/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-textarea", - "version": "4.13.1", + "version": "4.13.2", "description": "Textarea component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/textarea", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.1" + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-time-picker/package.json b/packages/react-time-picker/package.json index 596e9fc068..d304f77004 100644 --- a/packages/react-time-picker/package.json +++ b/packages/react-time-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-time-picker", - "version": "4.13.1", + "version": "4.13.2", "description": "TimePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/time-picker", @@ -45,10 +45,10 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.1", - "@uiw/react-input": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-button": "^4.13.2", + "@uiw/react-input": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tooltip/package.json b/packages/react-tooltip/package.json index c1a486a741..cf8f1758fe 100644 --- a/packages/react-tooltip/package.json +++ b/packages/react-tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tooltip", - "version": "4.13.1", + "version": "4.13.2", "description": "Tooltip component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tooltip", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree-checked/package.json b/packages/react-tree-checked/package.json index 8a4f582874..f498e8ff4c 100644 --- a/packages/react-tree-checked/package.json +++ b/packages/react-tree-checked/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree-checked", - "version": "4.13.1", + "version": "4.13.2", "description": "TreeChecked component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree-checked", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/utils": "^4.13.1" + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/utils": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree/package.json b/packages/react-tree/package.json index d08fbe7519..d965e81866 100644 --- a/packages/react-tree/package.json +++ b/packages/react-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree", - "version": "4.13.1", + "version": "4.13.2", "description": "Tree component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.1", - "@uiw/utils": "^4.13.1", + "@uiw/react-icon": "^4.13.2", + "@uiw/utils": "^4.13.2", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/uiw/package.json b/packages/uiw/package.json index a57216cf76..9592babb23 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -1,6 +1,6 @@ { "name": "uiw", - "version": "4.13.1", + "version": "4.13.2", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io", @@ -54,64 +54,64 @@ "dependencies": { "@babel/runtime": "7.17.2", "@uiw/formatter": "~1.3.2", - "@uiw/react-affix": "^4.13.1", - "@uiw/react-alert": "^4.13.1", - "@uiw/react-auto-link": "^4.13.1", - "@uiw/react-avatar": "^4.13.1", - "@uiw/react-back-top": "^4.13.1", - "@uiw/react-badge": "^4.13.1", - "@uiw/react-breadcrumb": "^4.13.1", - "@uiw/react-button": "^4.13.1", - "@uiw/react-button-group": "^4.13.1", - "@uiw/react-calendar": "^4.13.1", - "@uiw/react-card": "^4.13.1", - "@uiw/react-checkbox": "^4.13.1", - "@uiw/react-collapse": "^4.13.1", - "@uiw/react-copy-to-clipboard": "^4.13.1", - "@uiw/react-date-input": "^4.13.1", - "@uiw/react-date-picker": "^4.13.1", - "@uiw/react-descriptions": "^4.13.1", - "@uiw/react-divider": "^4.13.1", - "@uiw/react-drawer": "^4.13.1", - "@uiw/react-dropdown": "^4.13.1", - "@uiw/react-empty": "^4.13.1", - "@uiw/react-file-input": "^4.13.1", - "@uiw/react-form": "^4.13.1", - "@uiw/react-grid": "^4.13.1", - "@uiw/react-icon": "^4.13.1", - "@uiw/react-input": "^4.13.1", + "@uiw/react-affix": "^4.13.2", + "@uiw/react-alert": "^4.13.2", + "@uiw/react-auto-link": "^4.13.2", + "@uiw/react-avatar": "^4.13.2", + "@uiw/react-back-top": "^4.13.2", + "@uiw/react-badge": "^4.13.2", + "@uiw/react-breadcrumb": "^4.13.2", + "@uiw/react-button": "^4.13.2", + "@uiw/react-button-group": "^4.13.2", + "@uiw/react-calendar": "^4.13.2", + "@uiw/react-card": "^4.13.2", + "@uiw/react-checkbox": "^4.13.2", + "@uiw/react-collapse": "^4.13.2", + "@uiw/react-copy-to-clipboard": "^4.13.2", + "@uiw/react-date-input": "^4.13.2", + "@uiw/react-date-picker": "^4.13.2", + "@uiw/react-descriptions": "^4.13.2", + "@uiw/react-divider": "^4.13.2", + "@uiw/react-drawer": "^4.13.2", + "@uiw/react-dropdown": "^4.13.2", + "@uiw/react-empty": "^4.13.2", + "@uiw/react-file-input": "^4.13.2", + "@uiw/react-form": "^4.13.2", + "@uiw/react-grid": "^4.13.2", + "@uiw/react-icon": "^4.13.2", + "@uiw/react-input": "^4.13.2", "@uiw/react-layout": "~4.10.0", - "@uiw/react-list": "^4.13.1", - "@uiw/react-loader": "^4.13.1", - "@uiw/react-menu": "^4.13.1", - "@uiw/react-message": "^4.13.1", - "@uiw/react-modal": "^4.13.1", - "@uiw/react-month-picker": "^4.13.1", - "@uiw/react-notify": "^4.13.1", - "@uiw/react-overlay": "^4.13.1", - "@uiw/react-overlay-trigger": "^4.13.1", - "@uiw/react-pagination": "^4.13.1", - "@uiw/react-pin-code": "^4.13.1", - "@uiw/react-popover": "^4.13.1", - "@uiw/react-portal": "^4.13.1", - "@uiw/react-progress": "^4.13.1", - "@uiw/react-radio": "^4.13.1", - "@uiw/react-rate": "^4.13.1", - "@uiw/react-search-select": "^4.13.1", - "@uiw/react-search-tree": "^4.13.1", - "@uiw/react-select": "^4.13.1", - "@uiw/react-slider": "^4.13.1", + "@uiw/react-list": "^4.13.2", + "@uiw/react-loader": "^4.13.2", + "@uiw/react-menu": "^4.13.2", + "@uiw/react-message": "^4.13.2", + "@uiw/react-modal": "^4.13.2", + "@uiw/react-month-picker": "^4.13.2", + "@uiw/react-notify": "^4.13.2", + "@uiw/react-overlay": "^4.13.2", + "@uiw/react-overlay-trigger": "^4.13.2", + "@uiw/react-pagination": "^4.13.2", + "@uiw/react-pin-code": "^4.13.2", + "@uiw/react-popover": "^4.13.2", + "@uiw/react-portal": "^4.13.2", + "@uiw/react-progress": "^4.13.2", + "@uiw/react-radio": "^4.13.2", + "@uiw/react-rate": "^4.13.2", + "@uiw/react-search-select": "^4.13.2", + "@uiw/react-search-tree": "^4.13.2", + "@uiw/react-select": "^4.13.2", + "@uiw/react-slider": "^4.13.2", "@uiw/react-split": "~5.8.5", - "@uiw/react-steps": "^4.13.1", - "@uiw/react-switch": "^4.13.1", - "@uiw/react-table": "^4.13.1", - "@uiw/react-tabs": "^4.13.1", - "@uiw/react-tag": "^4.13.1", - "@uiw/react-textarea": "^4.13.1", - "@uiw/react-time-picker": "^4.13.1", - "@uiw/react-tooltip": "^4.13.1", - "@uiw/react-tree": "^4.13.1", - "@uiw/react-tree-checked": "^4.13.1" + "@uiw/react-steps": "^4.13.2", + "@uiw/react-switch": "^4.13.2", + "@uiw/react-table": "^4.13.2", + "@uiw/react-tabs": "^4.13.2", + "@uiw/react-tag": "^4.13.2", + "@uiw/react-textarea": "^4.13.2", + "@uiw/react-time-picker": "^4.13.2", + "@uiw/react-tooltip": "^4.13.2", + "@uiw/react-tree": "^4.13.2", + "@uiw/react-tree-checked": "^4.13.2" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index be796bf2b2..7970ea6f5d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/utils", - "version": "4.13.1", + "version": "4.13.2", "description": "utils tools for uiw", "author": "Kenny Wong ", "homepage": "https://github.com/uiwjs/uiw/tree/master/packages/utils#readme", diff --git a/website/package.json b/website/package.json index e6993a5a4c..c447615152 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "4.13.1", + "version": "4.13.2", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "private": true, "sideEffects": true, @@ -39,7 +39,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "react-router-dom": "6.2.1", - "uiw": "^4.13.1" + "uiw": "^4.13.2" }, "devDependencies": { "@kkt/less-modules": "~7.1.1", From 7e09401a1ea28f3a162dd8f65484de1b679c0e1f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 113/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f0d40a0dcdd6208c6c9376f502e7ce2ff3533b81 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 1 Mar 2022 17:49:03 +0800 Subject: [PATCH 114/575] =?UTF-8?q?fix(Form):=20=E4=BF=AE=E5=A4=8DonChange?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E4=B8=ADeven=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF=20#577?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/FormItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-form/src/FormItem.tsx b/packages/react-form/src/FormItem.tsx index 58b3225c36..aa82321c0c 100644 --- a/packages/react-form/src/FormItem.tsx +++ b/packages/react-form/src/FormItem.tsx @@ -1,10 +1,10 @@ import React, { CSSProperties } from 'react'; import { Col, Row } from '@uiw/react-grid'; -import { IProps, HTMLDivProps } from '@uiw/utils'; +import { IProps, HTMLInputProps } from '@uiw/utils'; import { FormFieldsProps } from './Form'; import './style/form-item.less'; -export interface FormItemProps extends IProps, HTMLDivProps { +export interface FormItemProps extends IProps, HTMLInputProps { inline?: boolean; hasError?: boolean; label?: React.ReactNode; From 172ee5d9c15499b823e51e82962de7461484b4b3 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 11:33:47 +0800 Subject: [PATCH 115/575] =?UTF-8?q?fix(SearchTree):=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E5=BC=B9=E5=B1=82=E6=B2=A1=E6=9C=89=E5=B1=95=E5=BC=80=E6=97=B6?= =?UTF-8?q?,=E6=B8=85=E7=A9=BA=E6=90=9C=E7=B4=A2=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=B1=95=E5=BC=80=E5=BC=B9=E5=B1=82=20#584?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index fe1dee9d5e..975b17c47e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -51,7 +51,7 @@ function SearchTagInput(props: SearchTagInputPro const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); // const isMultiple = useMemo(() => mode === 'multiple', [mode]); - // const [innerIsOpen, setInnerIsOpen] = useState(false); + const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState>(values); const optionRef = useRef>(); const [searchValue, searchValueSet] = useState(''); @@ -89,7 +89,7 @@ function SearchTagInput(props: SearchTagInputPro // 清除选中的值 function resetSelectedValue() { - // setInnerIsOpen(false); + setInnerIsOpen(false); setSelectedOption([]); handleInputChange(''); handleSelectChange([]); @@ -112,11 +112,13 @@ function SearchTagInput(props: SearchTagInputPro }, [selectedOption, options]); return ( - {newContent}}> + {newContent}}>
    renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - onClick={() => inputRef.current?.focus()} + onClick={() => { + if (innerIsOpen) inputRef.current?.focus(); + }} style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    From 668ecb94c627dd17c99ec5b4d46b13ec78318abe Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 1 Mar 2022 16:30:35 +0000 Subject: [PATCH 116/575] released-v4.13.3 --- packages/doc/package.json | 2 +- packages/react-affix/package.json | 4 +- packages/react-alert/package.json | 6 +- packages/react-auto-link/package.json | 2 +- packages/react-avatar/package.json | 6 +- packages/react-back-top/package.json | 4 +- packages/react-badge/package.json | 4 +- packages/react-breadcrumb/package.json | 4 +- packages/react-button-group/package.json | 6 +- packages/react-button/package.json | 6 +- packages/react-calendar/package.json | 8 +- packages/react-card/package.json | 4 +- packages/react-checkbox/package.json | 6 +- packages/react-collapse/package.json | 6 +- packages/react-copy-to-clipboard/package.json | 4 +- packages/react-date-input/package.json | 12 +- packages/react-date-picker/package.json | 8 +- packages/react-descriptions/package.json | 4 +- packages/react-divider/package.json | 4 +- packages/react-drawer/package.json | 10 +- packages/react-dropdown/package.json | 6 +- packages/react-empty/package.json | 2 +- packages/react-file-input/package.json | 8 +- packages/react-form/package.json | 8 +- packages/react-grid/package.json | 4 +- packages/react-icon/package.json | 2 +- packages/react-input/package.json | 6 +- packages/react-list/package.json | 4 +- packages/react-loader/package.json | 4 +- packages/react-menu/package.json | 8 +- packages/react-message/package.json | 8 +- packages/react-modal/package.json | 10 +- packages/react-month-picker/package.json | 12 +- packages/react-notify/package.json | 10 +- packages/react-overlay-trigger/package.json | 6 +- packages/react-overlay/package.json | 6 +- packages/react-pagination/package.json | 6 +- packages/react-pin-code/package.json | 6 +- packages/react-popover/package.json | 4 +- packages/react-portal/package.json | 2 +- packages/react-progress/package.json | 6 +- packages/react-radio/package.json | 4 +- packages/react-rate/package.json | 4 +- packages/react-search-select/package.json | 16 +-- packages/react-search-tree/package.json | 20 +-- packages/react-select/package.json | 4 +- packages/react-slider/package.json | 4 +- packages/react-steps/package.json | 6 +- packages/react-switch/package.json | 4 +- packages/react-table/package.json | 4 +- packages/react-tabs/package.json | 4 +- packages/react-tag/package.json | 4 +- packages/react-textarea/package.json | 4 +- packages/react-time-picker/package.json | 10 +- packages/react-tooltip/package.json | 6 +- packages/react-tree-checked/package.json | 8 +- packages/react-tree/package.json | 6 +- packages/uiw/package.json | 114 +++++++++--------- packages/utils/package.json | 2 +- website/package.json | 4 +- 60 files changed, 233 insertions(+), 233 deletions(-) diff --git a/packages/doc/package.json b/packages/doc/package.json index 51ee30447c..16363cbbbe 100644 --- a/packages/doc/package.json +++ b/packages/doc/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/doc", - "version": "4.13.2", + "version": "4.13.3", "description": "UIW documentation website.", "homepage": "https://uiwjs.github.io", "files": [ diff --git a/packages/react-affix/package.json b/packages/react-affix/package.json index abebff6502..1fc2724930 100644 --- a/packages/react-affix/package.json +++ b/packages/react-affix/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-affix", - "version": "4.13.2", + "version": "4.13.3", "description": "Affix component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/affix", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-alert/package.json b/packages/react-alert/package.json index 6c6167b421..b6f5d8d29b 100644 --- a/packages/react-alert/package.json +++ b/packages/react-alert/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-alert", - "version": "4.13.2", + "version": "4.13.3", "description": "Alert component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/alert", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-modal": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-modal": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-auto-link/package.json b/packages/react-auto-link/package.json index aa1e24f3e4..5309cf9926 100644 --- a/packages/react-auto-link/package.json +++ b/packages/react-auto-link/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-auto-link", - "version": "4.13.2", + "version": "4.13.3", "description": "AutoLink component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/auto-link", diff --git a/packages/react-avatar/package.json b/packages/react-avatar/package.json index d98f5a7b17..306cd9b3c9 100644 --- a/packages/react-avatar/package.json +++ b/packages/react-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-avatar", - "version": "4.13.2", + "version": "4.13.3", "description": "Avatar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-back-top/package.json b/packages/react-back-top/package.json index aacc76d7ef..f8ca29751f 100644 --- a/packages/react-back-top/package.json +++ b/packages/react-back-top/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-back-top", - "version": "4.13.2", + "version": "4.13.3", "description": "BackTop component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/back-top", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-badge/package.json b/packages/react-badge/package.json index 74ada9ff20..67a494e3eb 100644 --- a/packages/react-badge/package.json +++ b/packages/react-badge/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-badge", - "version": "4.13.2", + "version": "4.13.3", "description": "Badge component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/badge", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-breadcrumb/package.json b/packages/react-breadcrumb/package.json index cb748679c6..c8232fe39c 100644 --- a/packages/react-breadcrumb/package.json +++ b/packages/react-breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-breadcrumb", - "version": "4.13.2", + "version": "4.13.3", "description": "Breadcrumb component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/breadcrumb", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button-group/package.json b/packages/react-button-group/package.json index 1a7a84a738..13637d26fb 100644 --- a/packages/react-button-group/package.json +++ b/packages/react-button-group/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button-group", - "version": "4.13.2", + "version": "4.13.3", "description": "ButtonGroup component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button-group", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-button/package.json b/packages/react-button/package.json index b316ce333d..26b5532527 100644 --- a/packages/react-button/package.json +++ b/packages/react-button/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button", - "version": "4.13.2", + "version": "4.13.3", "description": "Button component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index fd8165fa60..65c3fea976 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-calendar", - "version": "4.13.2", + "version": "4.13.3", "description": "Calendar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/calendar", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-date-picker": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-card/package.json b/packages/react-card/package.json index 52fed08a0f..a456538863 100644 --- a/packages/react-card/package.json +++ b/packages/react-card/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-card", - "version": "4.13.2", + "version": "4.13.3", "description": "Card component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/card", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-checkbox/package.json b/packages/react-checkbox/package.json index 5c1d8fa325..265d6618d8 100644 --- a/packages/react-checkbox/package.json +++ b/packages/react-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-checkbox", - "version": "4.13.2", + "version": "4.13.3", "description": "Checkbox component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/checkbox", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-radio": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-collapse/package.json b/packages/react-collapse/package.json index 24ae7866dc..c24fce0572 100644 --- a/packages/react-collapse/package.json +++ b/packages/react-collapse/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-collapse", - "version": "4.13.2", + "version": "4.13.3", "description": "Collapse component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/collapse", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2", + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-copy-to-clipboard/package.json b/packages/react-copy-to-clipboard/package.json index 8b2d9eacf1..c44a5bc598 100644 --- a/packages/react-copy-to-clipboard/package.json +++ b/packages/react-copy-to-clipboard/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-copy-to-clipboard", - "version": "4.13.2", + "version": "4.13.3", "description": "CpyToClipboard component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/copy-to-clipboard", @@ -45,7 +45,7 @@ }, "dependencies": { "@uiw/copy-to-clipboard": "~1.0.11", - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-input/package.json b/packages/react-date-input/package.json index febbcba8dc..ca5b6f2874 100644 --- a/packages/react-date-input/package.json +++ b/packages/react-date-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-input", - "version": "4.13.2", + "version": "4.13.3", "description": "DateInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-input", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/react-popover": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-date-picker": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/react-popover": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-date-picker/package.json b/packages/react-date-picker/package.json index c25b547a25..da9b25fbfc 100644 --- a/packages/react-date-picker/package.json +++ b/packages/react-date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-picker", - "version": "4.13.2", + "version": "4.13.3", "description": "DatePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-picker", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-time-picker": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/react-time-picker": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-descriptions/package.json b/packages/react-descriptions/package.json index 2e1030d99e..dd07d58a37 100644 --- a/packages/react-descriptions/package.json +++ b/packages/react-descriptions/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-descriptions", - "version": "4.13.2", + "version": "4.13.3", "description": "Descriptions component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/descriptions", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-divider/package.json b/packages/react-divider/package.json index 68b56d8b43..b53433c68d 100644 --- a/packages/react-divider/package.json +++ b/packages/react-divider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-divider", - "version": "4.13.2", + "version": "4.13.3", "description": "Divider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/divider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-drawer/package.json b/packages/react-drawer/package.json index e4f4ba9d81..8575a2ce72 100644 --- a/packages/react-drawer/package.json +++ b/packages/react-drawer/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-drawer", - "version": "4.13.2", + "version": "4.13.3", "description": "Drawer component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/drawer", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-overlay": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-overlay": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-dropdown/package.json b/packages/react-dropdown/package.json index 8d452cafb5..f4201ced3c 100644 --- a/packages/react-dropdown/package.json +++ b/packages/react-dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-dropdown", - "version": "4.13.2", + "version": "4.13.3", "description": "Dropdown component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/dropdown", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-overlay-trigger": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-empty/package.json b/packages/react-empty/package.json index 29896eabd8..dd1dd39d2e 100644 --- a/packages/react-empty/package.json +++ b/packages/react-empty/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-empty", - "version": "4.13.2", + "version": "4.13.3", "description": "Empty component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/empty", diff --git a/packages/react-file-input/package.json b/packages/react-file-input/package.json index b6812d8f19..a9da5c3673 100644 --- a/packages/react-file-input/package.json +++ b/packages/react-file-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-file-input", - "version": "4.13.2", + "version": "4.13.3", "description": "FileInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/file-input", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-input": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-input": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-form/package.json b/packages/react-form/package.json index 6b33c41396..d36633a780 100644 --- a/packages/react-form/package.json +++ b/packages/react-form/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-form", - "version": "4.13.2", + "version": "4.13.3", "description": "Form component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/form", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-grid": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-grid": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-grid/package.json b/packages/react-grid/package.json index c02a667fe7..2bbf24e5a8 100644 --- a/packages/react-grid/package.json +++ b/packages/react-grid/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-grid", - "version": "4.13.2", + "version": "4.13.3", "description": "Grid component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/grid", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-icon/package.json b/packages/react-icon/package.json index 7e24a14b31..d75df4a5a1 100644 --- a/packages/react-icon/package.json +++ b/packages/react-icon/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-icon", - "version": "4.13.2", + "version": "4.13.3", "description": "Icon component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/icon", diff --git a/packages/react-input/package.json b/packages/react-input/package.json index e3042ab84b..6e6d56e248 100644 --- a/packages/react-input/package.json +++ b/packages/react-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-input", - "version": "4.13.2", + "version": "4.13.3", "description": "Input component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/input", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-list/package.json b/packages/react-list/package.json index 79d4124f03..2eb0b96837 100644 --- a/packages/react-list/package.json +++ b/packages/react-list/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-list", - "version": "4.13.2", + "version": "4.13.3", "description": "List component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/list", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-loader/package.json b/packages/react-loader/package.json index 984e2b4244..a6a724fdf7 100644 --- a/packages/react-loader/package.json +++ b/packages/react-loader/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-loader", - "version": "4.13.2", + "version": "4.13.3", "description": "Loader component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/loader", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-menu/package.json b/packages/react-menu/package.json index 2415974e22..d3c9578834 100644 --- a/packages/react-menu/package.json +++ b/packages/react-menu/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-menu", - "version": "4.13.2", + "version": "4.13.3", "description": "Menu component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/menu", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/react-overlay-trigger": "^4.13.2", - "@uiw/utils": "^4.13.2", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-overlay-trigger": "^4.13.3", + "@uiw/utils": "^4.13.3", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-message/package.json b/packages/react-message/package.json index aa2ecd9f71..1a5f0d8bd3 100644 --- a/packages/react-message/package.json +++ b/packages/react-message/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-message", - "version": "4.13.2", + "version": "4.13.3", "description": "Message component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/message", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2", + "@uiw/react-button": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-modal/package.json b/packages/react-modal/package.json index d7ddeb071b..a548be2108 100644 --- a/packages/react-modal/package.json +++ b/packages/react-modal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-modal", - "version": "4.13.2", + "version": "4.13.3", "description": "Modal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/modal", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-overlay": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-overlay": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-month-picker/package.json b/packages/react-month-picker/package.json index 70ab8c2917..6ee21afe19 100644 --- a/packages/react-month-picker/package.json +++ b/packages/react-month-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-month-picker", - "version": "4.13.2", + "version": "4.13.3", "description": "MonthPicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/month-picker", @@ -45,11 +45,11 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.2", - "@uiw/react-date-picker": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/react-popover": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/react-date-picker": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/react-popover": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-notify/package.json b/packages/react-notify/package.json index 0914a26259..9027b59a23 100644 --- a/packages/react-notify/package.json +++ b/packages/react-notify/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-notify", - "version": "4.13.2", + "version": "4.13.3", "description": "Notify component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/notify", @@ -44,10 +44,10 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-alert": "^4.13.2", - "@uiw/react-button": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-alert": "^4.13.3", + "@uiw/react-button": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay-trigger/package.json b/packages/react-overlay-trigger/package.json index 7e523d58ee..ff59aab5ee 100644 --- a/packages/react-overlay-trigger/package.json +++ b/packages/react-overlay-trigger/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay-trigger", - "version": "4.13.2", + "version": "4.13.3", "description": "OverlayTrigger component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay-trigger", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-overlay": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-overlay/package.json b/packages/react-overlay/package.json index 7327e5a888..97c3cea20f 100644 --- a/packages/react-overlay/package.json +++ b/packages/react-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay", - "version": "4.13.2", + "version": "4.13.3", "description": "Overlay component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-portal": "^4.13.2", - "@uiw/utils": "^4.13.2", + "@uiw/react-portal": "^4.13.3", + "@uiw/utils": "^4.13.3", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/react-pagination/package.json b/packages/react-pagination/package.json index 07adfccb1c..d08bdc985a 100644 --- a/packages/react-pagination/package.json +++ b/packages/react-pagination/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pagination", - "version": "4.13.2", + "version": "4.13.3", "description": "Pagination component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pagination", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-select": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-select": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-pin-code/package.json b/packages/react-pin-code/package.json index bdb83dcf02..1f2dadc017 100644 --- a/packages/react-pin-code/package.json +++ b/packages/react-pin-code/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pin-code", - "version": "4.13.2", + "version": "4.13.3", "description": "PinCode component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pin-code", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-input": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-input": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-popover/package.json b/packages/react-popover/package.json index ca5d2cacb8..8b0dcb445c 100644 --- a/packages/react-popover/package.json +++ b/packages/react-popover/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-popover", - "version": "4.13.2", + "version": "4.13.3", "description": "Popover component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/popover", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.2" + "@uiw/react-overlay-trigger": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-portal/package.json b/packages/react-portal/package.json index f47e054bcc..aa882bd116 100644 --- a/packages/react-portal/package.json +++ b/packages/react-portal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-portal", - "version": "4.13.2", + "version": "4.13.3", "description": "Portal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/portal", diff --git a/packages/react-progress/package.json b/packages/react-progress/package.json index 79683443fe..ef586eb05a 100644 --- a/packages/react-progress/package.json +++ b/packages/react-progress/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-progress", - "version": "4.13.2", + "version": "4.13.3", "description": "Progress component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/progress", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-radio/package.json b/packages/react-radio/package.json index 9c65fd2749..8cec1d7942 100644 --- a/packages/react-radio/package.json +++ b/packages/react-radio/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-radio", - "version": "4.13.2", + "version": "4.13.3", "description": "Radio component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/radio", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-rate/package.json b/packages/react-rate/package.json index e176d212d3..824e4df3c6 100644 --- a/packages/react-rate/package.json +++ b/packages/react-rate/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-rate", - "version": "4.13.2", + "version": "4.13.3", "description": "Rate component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/rate", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index 48d3f36b49..e42ea02380 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-select", - "version": "4.13.2", + "version": "4.13.3", "description": "SearchSelect component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/search-select", @@ -44,13 +44,13 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-dropdown": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/react-loader": "^4.13.2", - "@uiw/react-menu": "^4.13.2", - "@uiw/react-tag": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-dropdown": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/react-loader": "^4.13.3", + "@uiw/react-menu": "^4.13.3", + "@uiw/react-tag": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index 83fb5df2c9..1015bcf9e5 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-tree", - "version": "4.13.2", + "version": "4.13.3", "description": "TreeChecked component", "homepage": "https://uiwjs.github.io/#/components/search-tree", "repository": { @@ -43,15 +43,15 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-card": "^4.13.2", - "@uiw/react-checkbox": "^4.13.2", - "@uiw/react-dropdown": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/react-tag": "^4.13.2", - "@uiw/react-tree": "^4.13.2", - "@uiw/react-tree-checked": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-card": "^4.13.3", + "@uiw/react-checkbox": "^4.13.3", + "@uiw/react-dropdown": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/react-tag": "^4.13.3", + "@uiw/react-tree": "^4.13.3", + "@uiw/react-tree-checked": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 39e890e3fe..0d6df7426a 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-select", - "version": "4.13.2", + "version": "4.13.3", "description": "Select component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/select", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-slider/package.json b/packages/react-slider/package.json index 9142c91664..680940cd4f 100644 --- a/packages/react-slider/package.json +++ b/packages/react-slider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-slider", - "version": "4.13.2", + "version": "4.13.3", "description": "Slider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/slider", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-steps/package.json b/packages/react-steps/package.json index 805df60b09..14268ec0b3 100644 --- a/packages/react-steps/package.json +++ b/packages/react-steps/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-steps", - "version": "4.13.2", + "version": "4.13.3", "description": "Steps component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/steps", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-switch/package.json b/packages/react-switch/package.json index 04ef20183b..4fd671f697 100644 --- a/packages/react-switch/package.json +++ b/packages/react-switch/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-switch", - "version": "4.13.2", + "version": "4.13.3", "description": "Switch component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/switch", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.2" + "@uiw/react-radio": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 3261eed7ef..5c8f03e141 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-table", - "version": "4.13.2", + "version": "4.13.3", "description": "Table component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/table", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index 563c57c540..a56712986c 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tabs", - "version": "4.13.2", + "version": "4.13.3", "description": "Tabs component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tabs", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tag/package.json b/packages/react-tag/package.json index 52a650e20f..3e57d0d8d5 100644 --- a/packages/react-tag/package.json +++ b/packages/react-tag/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tag", - "version": "4.13.2", + "version": "4.13.3", "description": "Tag component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tag", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-textarea/package.json b/packages/react-textarea/package.json index 9dc951faba..9640453f37 100644 --- a/packages/react-textarea/package.json +++ b/packages/react-textarea/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-textarea", - "version": "4.13.2", + "version": "4.13.3", "description": "Textarea component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/textarea", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.2" + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-time-picker/package.json b/packages/react-time-picker/package.json index d304f77004..9fe6eb9c00 100644 --- a/packages/react-time-picker/package.json +++ b/packages/react-time-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-time-picker", - "version": "4.13.2", + "version": "4.13.3", "description": "TimePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/time-picker", @@ -45,10 +45,10 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.2", - "@uiw/react-input": "^4.13.2", - "@uiw/react-popover": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-button": "^4.13.3", + "@uiw/react-input": "^4.13.3", + "@uiw/react-popover": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tooltip/package.json b/packages/react-tooltip/package.json index cf8f1758fe..25cf2b66f2 100644 --- a/packages/react-tooltip/package.json +++ b/packages/react-tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tooltip", - "version": "4.13.2", + "version": "4.13.3", "description": "Tooltip component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tooltip", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-overlay-trigger": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree-checked/package.json b/packages/react-tree-checked/package.json index f498e8ff4c..8b5931c6d7 100644 --- a/packages/react-tree-checked/package.json +++ b/packages/react-tree-checked/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree-checked", - "version": "4.13.2", + "version": "4.13.3", "description": "TreeChecked component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree-checked", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-checkbox": "^4.13.2", - "@uiw/react-tree": "^4.13.2", - "@uiw/utils": "^4.13.2" + "@uiw/react-checkbox": "^4.13.3", + "@uiw/react-tree": "^4.13.3", + "@uiw/utils": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/react-tree/package.json b/packages/react-tree/package.json index d965e81866..99023d0808 100644 --- a/packages/react-tree/package.json +++ b/packages/react-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree", - "version": "4.13.2", + "version": "4.13.3", "description": "Tree component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.2", - "@uiw/utils": "^4.13.2", + "@uiw/react-icon": "^4.13.3", + "@uiw/utils": "^4.13.3", "react-transition-group": "~4.4.2" }, "devDependencies": { diff --git a/packages/uiw/package.json b/packages/uiw/package.json index 9592babb23..c9598c7523 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -1,6 +1,6 @@ { "name": "uiw", - "version": "4.13.2", + "version": "4.13.3", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io", @@ -54,64 +54,64 @@ "dependencies": { "@babel/runtime": "7.17.2", "@uiw/formatter": "~1.3.2", - "@uiw/react-affix": "^4.13.2", - "@uiw/react-alert": "^4.13.2", - "@uiw/react-auto-link": "^4.13.2", - "@uiw/react-avatar": "^4.13.2", - "@uiw/react-back-top": "^4.13.2", - "@uiw/react-badge": "^4.13.2", - "@uiw/react-breadcrumb": "^4.13.2", - "@uiw/react-button": "^4.13.2", - "@uiw/react-button-group": "^4.13.2", - "@uiw/react-calendar": "^4.13.2", - "@uiw/react-card": "^4.13.2", - "@uiw/react-checkbox": "^4.13.2", - "@uiw/react-collapse": "^4.13.2", - "@uiw/react-copy-to-clipboard": "^4.13.2", - "@uiw/react-date-input": "^4.13.2", - "@uiw/react-date-picker": "^4.13.2", - "@uiw/react-descriptions": "^4.13.2", - "@uiw/react-divider": "^4.13.2", - "@uiw/react-drawer": "^4.13.2", - "@uiw/react-dropdown": "^4.13.2", - "@uiw/react-empty": "^4.13.2", - "@uiw/react-file-input": "^4.13.2", - "@uiw/react-form": "^4.13.2", - "@uiw/react-grid": "^4.13.2", - "@uiw/react-icon": "^4.13.2", - "@uiw/react-input": "^4.13.2", + "@uiw/react-affix": "^4.13.3", + "@uiw/react-alert": "^4.13.3", + "@uiw/react-auto-link": "^4.13.3", + "@uiw/react-avatar": "^4.13.3", + "@uiw/react-back-top": "^4.13.3", + "@uiw/react-badge": "^4.13.3", + "@uiw/react-breadcrumb": "^4.13.3", + "@uiw/react-button": "^4.13.3", + "@uiw/react-button-group": "^4.13.3", + "@uiw/react-calendar": "^4.13.3", + "@uiw/react-card": "^4.13.3", + "@uiw/react-checkbox": "^4.13.3", + "@uiw/react-collapse": "^4.13.3", + "@uiw/react-copy-to-clipboard": "^4.13.3", + "@uiw/react-date-input": "^4.13.3", + "@uiw/react-date-picker": "^4.13.3", + "@uiw/react-descriptions": "^4.13.3", + "@uiw/react-divider": "^4.13.3", + "@uiw/react-drawer": "^4.13.3", + "@uiw/react-dropdown": "^4.13.3", + "@uiw/react-empty": "^4.13.3", + "@uiw/react-file-input": "^4.13.3", + "@uiw/react-form": "^4.13.3", + "@uiw/react-grid": "^4.13.3", + "@uiw/react-icon": "^4.13.3", + "@uiw/react-input": "^4.13.3", "@uiw/react-layout": "~4.10.0", - "@uiw/react-list": "^4.13.2", - "@uiw/react-loader": "^4.13.2", - "@uiw/react-menu": "^4.13.2", - "@uiw/react-message": "^4.13.2", - "@uiw/react-modal": "^4.13.2", - "@uiw/react-month-picker": "^4.13.2", - "@uiw/react-notify": "^4.13.2", - "@uiw/react-overlay": "^4.13.2", - "@uiw/react-overlay-trigger": "^4.13.2", - "@uiw/react-pagination": "^4.13.2", - "@uiw/react-pin-code": "^4.13.2", - "@uiw/react-popover": "^4.13.2", - "@uiw/react-portal": "^4.13.2", - "@uiw/react-progress": "^4.13.2", - "@uiw/react-radio": "^4.13.2", - "@uiw/react-rate": "^4.13.2", - "@uiw/react-search-select": "^4.13.2", - "@uiw/react-search-tree": "^4.13.2", - "@uiw/react-select": "^4.13.2", - "@uiw/react-slider": "^4.13.2", + "@uiw/react-list": "^4.13.3", + "@uiw/react-loader": "^4.13.3", + "@uiw/react-menu": "^4.13.3", + "@uiw/react-message": "^4.13.3", + "@uiw/react-modal": "^4.13.3", + "@uiw/react-month-picker": "^4.13.3", + "@uiw/react-notify": "^4.13.3", + "@uiw/react-overlay": "^4.13.3", + "@uiw/react-overlay-trigger": "^4.13.3", + "@uiw/react-pagination": "^4.13.3", + "@uiw/react-pin-code": "^4.13.3", + "@uiw/react-popover": "^4.13.3", + "@uiw/react-portal": "^4.13.3", + "@uiw/react-progress": "^4.13.3", + "@uiw/react-radio": "^4.13.3", + "@uiw/react-rate": "^4.13.3", + "@uiw/react-search-select": "^4.13.3", + "@uiw/react-search-tree": "^4.13.3", + "@uiw/react-select": "^4.13.3", + "@uiw/react-slider": "^4.13.3", "@uiw/react-split": "~5.8.5", - "@uiw/react-steps": "^4.13.2", - "@uiw/react-switch": "^4.13.2", - "@uiw/react-table": "^4.13.2", - "@uiw/react-tabs": "^4.13.2", - "@uiw/react-tag": "^4.13.2", - "@uiw/react-textarea": "^4.13.2", - "@uiw/react-time-picker": "^4.13.2", - "@uiw/react-tooltip": "^4.13.2", - "@uiw/react-tree": "^4.13.2", - "@uiw/react-tree-checked": "^4.13.2" + "@uiw/react-steps": "^4.13.3", + "@uiw/react-switch": "^4.13.3", + "@uiw/react-table": "^4.13.3", + "@uiw/react-tabs": "^4.13.3", + "@uiw/react-tag": "^4.13.3", + "@uiw/react-textarea": "^4.13.3", + "@uiw/react-time-picker": "^4.13.3", + "@uiw/react-tooltip": "^4.13.3", + "@uiw/react-tree": "^4.13.3", + "@uiw/react-tree-checked": "^4.13.3" }, "devDependencies": { "@babel/runtime": "7.17.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index 7970ea6f5d..492b3fdfb8 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/utils", - "version": "4.13.2", + "version": "4.13.3", "description": "utils tools for uiw", "author": "Kenny Wong ", "homepage": "https://github.com/uiwjs/uiw/tree/master/packages/utils#readme", diff --git a/website/package.json b/website/package.json index c447615152..f5e35c66ca 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "4.13.2", + "version": "4.13.3", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "private": true, "sideEffects": true, @@ -39,7 +39,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "react-router-dom": "6.2.1", - "uiw": "^4.13.2" + "uiw": "^4.13.3" }, "devDependencies": { "@kkt/less-modules": "~7.1.1", From f42e96fd10924cd910330e000968fbd47121ab98 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 117/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 43908e3eed09d0019004ba017d4920d9340ffd6c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 118/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0269df314ea15b151b43638614a5b65856b25285 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 119/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ec3f98ceff1684e3ec0e2450e5c50b57f6a2d376 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 120/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0ec8dab11a0aef3d7f753d7bd329ff581ed20849 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 121/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 02bbdbbfa639212dfd1e6f0bc1bb6e235d19d588 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 122/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e0391650c8cdd641683cdf0090f953b6082dec80 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 123/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3913e3b0074953d5146146fab98e8c314ea21209 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 124/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 13f6f5270ca590b778fa0ac7c1ba0cc31ac83fcb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 125/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 621792d401c2c53d0e2439c4e90aad9f7cba4dd0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 126/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d3b86270242189c8c64999727d6b827b154c4da2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 127/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 44be2eafa306dfd38974a871189bfb161d72e1d5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 128/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a607e83e53c7b03db57798c25a98638d49cb8855 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 129/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3b57eca6322f486a2eda66dcc707fbb81206510d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 130/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 700701f8edb3d060db7401c6ed5d3e40778b26f7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 131/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1b44fb4c74e7a6d0f9f4e170c24d5940f7d90a36 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 132/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3aa0f20879d223d577af87740e617570ad331cdc Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 133/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 54e661bdf62aead03ab5b73292fb67a2499bd69e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 134/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ab0d43c9404f36607ae0f3626c6ba4b477ca04de Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 135/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 341d5f3d20fa99f083d1152d94a22fbb8d602f2d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 136/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8811aa383097253dc2111e90d81d8fca8b46fc8a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 137/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2ca3680034739be9bfb5c8075bc37eebe8ceea59 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 138/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8d9b2fdf5ec08fded83702966ccfd78c28970955 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 139/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 66b593ae048c4c295fae6a4ba2f82e61c9bb33d8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 140/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4015afa3e6f5269e99a83d3ef04b5a7c5f5a9849 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 141/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From cb18d7109c85cbefe9ef13e1ad5980753ab70f91 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 142/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2b187810981198b60bfbcbbbe70a2279faacbf8b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 143/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c0a12ca37fe37de7dcadee8dffba66c63b51e2a3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 144/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 02c8e515445d2320d029613a8f7e324415e712d8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 145/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 10d20afdbc53b57d3173a56bc5fa08869f1b0bff Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 146/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a02d89dd1aac8bbdfa563679ceef03f2c7dc597c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 147/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 05aed95397793749710b8711ea9a667478326d78 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 148/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 12f069c858f5cbd7bf7ba4e3ac1ee8147bb03553 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 149/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7731202eb315c51035b450d16e0ccefac782a276 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 150/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 42e2311d40f241a6512e99ca92d708143704671a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 151/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 18917f537d8aa9d654e0345439e55c9f3531ff8e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 152/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ce73c9e96688e7848f66e3a0a5a01a786716cb07 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 153/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 83d3128341d7dc4495b339f3e0f74d26f29e46df Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 154/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From bb9e1165bd77abc6d62e1fb82f8c98b99065a665 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 155/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From cb110145605d77f296d7d379de1a4956b72229a2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 156/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From cb5aeaac7eab30a18cdf4a739cc45cf5ced53964 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 157/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6cc8def36c5e9b4ad608456c2e62923594a20ba4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 158/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6af7ce22444781d0d1c1cb68907396b8554ebddd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 159/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0a7df1580a3b6dcdae20df280ca190937ea26244 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 160/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5784efc3e4254492fa94bc163f11131aebc023e5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 161/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 70227cfdaef86360c192fc9782762e14ebbc0440 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 162/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1e55276b960a5e7d9996ef6801c5e5e8122764ee Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 163/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 774ab6d617903aa904014ea85c4dc42200700587 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 164/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f4a5f39add4ec4f8479d93dafd3c0bf47b6eb2b8 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 11:33:47 +0800 Subject: [PATCH 165/575] =?UTF-8?q?fix(SearchTree):=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E5=BC=B9=E5=B1=82=E6=B2=A1=E6=9C=89=E5=B1=95=E5=BC=80=E6=97=B6?= =?UTF-8?q?,=E6=B8=85=E7=A9=BA=E6=90=9C=E7=B4=A2=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=B1=95=E5=BC=80=E5=BC=B9=E5=B1=82=20#584?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index fe1dee9d5e..975b17c47e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -51,7 +51,7 @@ function SearchTagInput(props: SearchTagInputPro const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); // const isMultiple = useMemo(() => mode === 'multiple', [mode]); - // const [innerIsOpen, setInnerIsOpen] = useState(false); + const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState>(values); const optionRef = useRef>(); const [searchValue, searchValueSet] = useState(''); @@ -89,7 +89,7 @@ function SearchTagInput(props: SearchTagInputPro // 清除选中的值 function resetSelectedValue() { - // setInnerIsOpen(false); + setInnerIsOpen(false); setSelectedOption([]); handleInputChange(''); handleSelectChange([]); @@ -112,11 +112,13 @@ function SearchTagInput(props: SearchTagInputPro }, [selectedOption, options]); return ( - {newContent}}> + {newContent}}>
    renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - onClick={() => inputRef.current?.focus()} + onClick={() => { + if (innerIsOpen) inputRef.current?.focus(); + }} style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    From 6df85977ac9211e88969c528a1d5e7fab535f976 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 166/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c4f43e2c29577fe09e355a25f9bdbf1574e426f7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 167/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 29d1b21dcdf15499f0008322dab9c786d723f8ad Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 168/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From cdcf5f72d5f75b0087b0468a788248c55af53363 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 169/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7519aa1074056af130972b13082b796137316cc3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 170/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6aa62287be629d958a9416fda6f301e53cd30bb2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 171/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From efbede2c2f676c6d3017ddd56848437d7743105d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 172/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 95a700883c9eb36311324271c81873c21084ec3e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 173/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 29f1b4e9338f4aa486ba4a98bbea0c01b440f925 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 174/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c41d81130fea09ee501616e0267c88c2921fce7e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 175/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 953ae4e738a8a57fe1481bace47bbf5c72ab2a8b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 176/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 662f10bd0d3c516a9a4d97ddd000fa8551fb5f8d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 177/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 292c7417e314c936af814d96be9d558e0eb9c1f8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 178/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3433cdb15cc4bb14d9cc16274e85e6b364ac5b02 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 179/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0f6628924f55fc0a6eeb07467b87376f78cf26ed Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 180/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0cccfc37792c3538735d6397973078435b8922ef Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 181/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 58f0f0943ae67f509c3d7f6012382c3eb87f7ba4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 182/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8d8cff1d265cfb9925239bb8dd0fb0002860ace1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 183/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b28907a3a201777c31748fb1fac516a25f828305 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 184/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 81fabc8f6150596cdb24d1a1d72dddaba3c83e77 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 185/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 09856e1f61fafa1cf27c6c848955a3737d04fe73 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 186/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c44007cd40dbb70481f0531a29bf0b10b4844506 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 187/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 40fb50c2f4a3950a73c1b0ab0b6f6c5e2d72a953 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 188/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0203f99565d40b5db464cc32d8cd5e9d00fadafe Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 189/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1f12e1131cb467273623b4d8b885bda8bc7d51f1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 190/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e29a391c9813aab8aa59c56081c0240aae647d4d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 191/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4d5212dc7345030a3fb1944c23375da6572b428f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 192/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7fd10f3759b43ab45cdeeaa1dc4c53ca1609d502 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 193/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From bf3a5799daf1dfb613222c0864984638c7631c47 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 194/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 906f0d521e6f51e9bb6494156ac0f50a54f74ece Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 195/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 89fa6ed6e8a16124354025815718a3b1d0721608 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 196/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 31274d4127913a8c859f193d49a48e1c4d56f06e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 197/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1eabe75979fdf9184979880b9006b41441c0d7d4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 198/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e02449ff0142602a2eb549bedef9f73a2b2517ae Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 199/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 66f8c226ed3ddadd7a94086d3c8036b181cc87fa Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 200/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From efb5e7b6536222583881a05c1d460dac1647fefb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 201/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From dc194a9d0b956740f9f03ea569e4ffdb002d95ce Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 202/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 44ea10a34b7bdecb3d1900784cc23c24cf6ffc75 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 203/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 23ad09d94b899d43c5ad9c7f202f2e84b67c62e1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 204/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 73ba2176f8fce1024e55364ad7f7e1e5977e107c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 205/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 73318c00a4514bc901f322fceb379844286b10c6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 206/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e702e38a370793a09fcbaca97b70b45671f7ddbe Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 207/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1dbcccc1796786453ed72b45bf2f65e8aef73a6f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 208/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 69ef9ef167edb8198afa63622c0d506a3d3f59a5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 209/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d84db713b19a84fb5db6915fa1a5370005c7c5f6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 210/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ddea919662a7acc8ed1de1af87e1f5d7a485ff06 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 211/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4f6f90f9515041e72c233f3f007f4a8f4c34cdc4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 212/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5cefbaa2e2a4a4a440f729f77cbe7c16668f55f4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 213/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b424685e7ab50cbb7bc7e86d7c3a9c48f6c32e21 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 214/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 52eec42adc20cf1866db0a3b85180a8e88c90ced Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 215/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e187b82954be614beaf2b9b8c12bd2acbef4533c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 216/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1f2d320a50b318eb361b99c0aac9ff219c7b8164 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 217/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 00055e7b0a22247af086a828b93be0f14c92f99b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 218/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 670e56aa52f5c6cca9003ac5162e90c9b93d40e5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 219/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1d0bd70dd1e5c063113373924051b28ca61bc5c8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 220/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a51890c04a934f2c3593212fe68518a6a292512a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 221/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 555d312ce33dc9840df90aa43a8ae10746f35a12 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 222/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 98ba677b482c35237702dc7e84c404086d827826 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 223/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 03ce6f4f2bfbccdd30ed06d89c5cc350257c1a4e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 224/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f538c6b1b55937319f3231eb88b0f6d2c23d554a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 225/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b504c9ea1f19fc09d4b51a2fda1d561a041a4fe3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 226/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 197f5306a20e21592c14cfacbbc4404b24cf2731 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 227/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c9379545774f79be5fee1242cfb027997737def3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 228/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 77b429dfff6cd8817a2d4340d4b9112ef0d5dab6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 229/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 326fda1b9f1827987a3884f92a411b8888f197ab Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 230/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 287fc74ae93c0207a06da37b0d86a4689e422b1d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 231/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c70f378cae84f382f8e311a0a472a24dda6acea0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 232/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1103dc7e222b4763af67f8a068fe39d6b06af3cf Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 233/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0a45a6e908633c26471a478ca055e6b20a74cc52 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 234/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c7f0096d6b6c83c9c6599a5c4b1f20ad3a4f9740 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 235/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e280983c94269fdf9e47a8187ed0a448453b7b99 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 236/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 290a5801760c083b1484b99b4f5acfba19b67560 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 237/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ba086b776c26fcbc51d8b1fbf60cf9bed0df2a4d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 238/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 307c148f9f660a4e71585df20361f9a145e4352b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 239/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6eb3e2d27cbac8632c342a56c15f0cf2fa726b43 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 240/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f37ced2335491f07c3299d5daba57793cd483c43 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 241/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0a2df9302db8287511416e82b3f15cd269fa7d49 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 242/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5b227d9df49ac9424233fc22e428bf7eb1bb9fc1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 243/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1fdf2edc9eb94a205358a1f360d9bee22e3f9fd1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 244/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 450743a1dfaf153259011828c9721d04f584dc25 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 245/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6633f990671a1dbc4e1d56799a0605dd870a9cef Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 246/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ec35012ae7bbd52d9e18a2def3f7062e3f27e0ac Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 247/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5ae35dfae4170cbad8311084025201ed71bf4aff Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 248/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1b907b7f4c931efafb82486a7cbf1e01107a384d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 249/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9337c8ee756d462dcf71a0df6b16b460f3765dfe Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 250/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ae6642b04c86a61727c61f8753593add812bd67a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 251/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c9e598b4799df2783a204d07790756bdf279bceb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 252/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e64903d6de088aec6c61a21de244ccde3924466a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 253/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a66e7ef7e39c32b99867d3f9e440fb562028a2fa Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 254/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c2d11eff6c4574637d66ffa69a429b98fb88338e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 255/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6b632755e06411bc1e8edf8540c1476def865c02 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 256/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 96392d2edd90d20d3cbd6991b9ee13729562e0ce Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 257/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 02cfd12eb5293ef58f215187237dd885d406b0a6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 258/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 74cac654da2ca77ef874aeac687e15bb0ba1d135 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 259/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9571d9a7eec0fb666fc28d841dbd2be6cefaa474 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 260/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06b5ea10cb..e9bafaf60f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 82a07a36455bf3ed23c6e4052274570b58c51fc1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 261/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e9bafaf60f..06b5ea10cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 077c0092e036bd23ec2a26a31e16487158fbac49 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 12:37:21 +0800 Subject: [PATCH 262/575] =?UTF-8?q?fix(SearchTree):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E9=80=89=E9=A1=B9=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=86=85=E5=AE=B9=20#584?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 39 +++++++++++++++---- packages/react-search-tree/package.json | 1 + .../react-search-tree/src/SearchTagInput.tsx | 16 +++++--- packages/react-search-tree/src/index.tsx | 10 ++++- 4 files changed, 52 insertions(+), 14 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index abc5a811d8..31f226f9fa 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -67,18 +67,40 @@ const onChange=(selectd, selectedAll, isChecked)=>{ valueSet(selectedAll) } - return (console.log('SearchTree-> SearchTreeOption',searchValue)} - onChange={onChange} - value={value} - options={data} - placeholder="请输入选择" - />) + return ( + <> + console.log('SearchTree-> SearchTreeOption',searchValue)} + onChange={onChange} + value={value} + options={data} + placeholder="请输入选择" + /> + + ) } ReactDOM.render(, _mount_); ``` +## 自定义空选项 + +```jsx +import React, { useState, useEffect, useRef } from 'react'; +import { SearchTree } from 'uiw'; + +const Demo = () => { + return( + <> + + 暂无数据..} placeholder="请输入选择"/> + + ) +} + +ReactDOM.render(, _mount_); +``` + ## Form中使用 @@ -222,4 +244,5 @@ ReactDOM.render(, _mount_); | onChange | 选中 option,或 input 的 value,调用此函数 | function(selectd, selectdAll, isChecked)=>void | - | | onSearch | 文本框值变化时回调 | function(searchValue) | - | | loading | 加载中状态 | Boolean | `false` | +| emptyOption | 自定义下拉选项为空时显示内容 | React.ReactNode | [Empty](https://uiwjs.github.io/#/components/empty) | diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index 1015bcf9e5..1cd02ac937 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -46,6 +46,7 @@ "@uiw/react-card": "^4.13.3", "@uiw/react-checkbox": "^4.13.3", "@uiw/react-dropdown": "^4.13.3", + "@uiw/react-empty": "^4.13.3", "@uiw/react-icon": "^4.13.3", "@uiw/react-input": "^4.13.3", "@uiw/react-tag": "^4.13.3", diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 975b17c47e..d001ae67e6 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -4,6 +4,7 @@ import Icon from '@uiw/react-icon'; import Input from '@uiw/react-input'; import Tag from '@uiw/react-tag'; import Card from '@uiw/react-card'; +import Empty from '@uiw/react-empty'; import { IProps } from '@uiw/utils'; import './style/index.less'; @@ -27,6 +28,7 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte // mode?: 'single' | 'multiple'; loading?: boolean; placeholder?: string; + emptyOption?: boolean | React.ReactNode; } function SearchTagInput(props: SearchTagInputProps) { @@ -46,6 +48,7 @@ function SearchTagInput(props: SearchTagInputPro values, onChange, onSearch, + emptyOption, ...others } = props; @@ -88,7 +91,8 @@ function SearchTagInput(props: SearchTagInputPro } // 清除选中的值 - function resetSelectedValue() { + function resetSelectedValue(e: any) { + e.stopPropagation(); setInnerIsOpen(false); setSelectedOption([]); handleInputChange(''); @@ -102,6 +106,10 @@ function SearchTagInput(props: SearchTagInputPro } const newContent = useMemo(() => { + if (emptyOption) { + return typeof emptyOption === 'boolean' ? : emptyOption; + } + const newProps = { ...content.props, onSelected: handleSelectChange, @@ -109,16 +117,14 @@ function SearchTagInput(props: SearchTagInputPro options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [selectedOption, options]); + }, [selectedOption, options, emptyOption]); return ( {newContent}}>
    renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - onClick={() => { - if (innerIsOpen) inputRef.current?.focus(); - }} + onClick={() => inputRef.current?.focus()} style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 21f22fbb5a..04c4939c17 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -65,12 +65,14 @@ export interface SearchTreeProps { value?: Array; options?: TreeData[]; treeProps?: Omit & Partial>; + emptyOption?: React.ReactNode; } function SearchTree(props: SearchTreeProps) { - const { onChange, onSearch, options = [], value = [], treeProps, ...other } = props; + const { onChange, onSearch, options = [], value = [], emptyOption = !options.length, treeProps, ...other } = props; const [selectedValues, selectedValuesSet] = useState>(value); const [selectedOptions, selectedOptionSet] = useState>(options); + const [isEmpty, isEmptySet] = useState(emptyOption); useEffect(() => { selectedValuesSet(value); @@ -109,11 +111,17 @@ function SearchTree(props: SearchTreeProps) { }; hiddenNodeForSeach(options); selectedOptionSet([...options]); + + let isEmpt = true; + options.forEach((opt) => (isEmpt = isEmpt && !!opt.hideNode)); + isEmptySet(isEmpt); + console.log('isEmpt', isEmpt); }; return ( Date: Wed, 2 Mar 2022 13:10:59 +0800 Subject: [PATCH 263/575] =?UTF-8?q?fix(SearchTree):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 1 + packages/react-search-tree/src/SearchTagInput.tsx | 4 +--- packages/react-search-tree/src/index.tsx | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 31f226f9fa..9d6e4e9d61 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -84,6 +84,7 @@ ReactDOM.render(, _mount_); ``` ## 自定义空选项 + ```jsx import React, { useState, useEffect, useRef } from 'react'; diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 11f7606d5f..d001ae67e6 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -124,9 +124,7 @@ function SearchTagInput(props: SearchTagInputPro
    renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} - onClick={() => { - if (innerIsOpen) inputRef.current?.focus(); - }} + onClick={() => inputRef.current?.focus()} style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 04c4939c17..a866320df2 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -115,7 +115,6 @@ function SearchTree(props: SearchTreeProps) { let isEmpt = true; options.forEach((opt) => (isEmpt = isEmpt && !!opt.hideNode)); isEmptySet(isEmpt); - console.log('isEmpt', isEmpt); }; return ( From 847bb01e662e36f9a17be7cde75bdf778d82a15d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 13:13:39 +0800 Subject: [PATCH 264/575] =?UTF-8?q?docs(SearchTree):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 9d6e4e9d61..89ca888199 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -94,7 +94,11 @@ const Demo = () => { return( <> - 暂无数据..} placeholder="请输入选择"/> + 暂无数据..} + placeholder="请输入选择" + /> ) } @@ -171,7 +175,6 @@ const form=useRef() return null; }} onSubmit={({initial, current}) => { - console.log('current',current) const errorObj = {}; if (!current.searchTree) { errorObj.searchTree = '默认需要选择内容,选择入内容'; From 092182e636ecd6b67388e20918bbc5638506d431 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 13:46:15 +0800 Subject: [PATCH 265/575] =?UTF-8?q?fix(Tree):=20=E4=BF=AE=E5=A4=8DautoExpa?= =?UTF-8?q?ndParent=E4=B8=BAtrue=E6=97=B6openKeys=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 684bcac73c..b6250d10f4 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -151,11 +151,11 @@ export default function Tree(props: TreeProps) { // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); useEffect(() => { - let arrOpenKeys: TreeData['key'][] = []; + let arrOpenKeys: TreeData['key'][] = curOpenKeys; if (defaultExpandAll) { arrOpenKeys = getChildKeys(data); } else if (autoExpandParent) { - arrOpenKeys = getChildKeys(data, undefined, 1); + arrOpenKeys.push(...getChildKeys(data, undefined, 1)); } setCurOpenKeys(arrOpenKeys); }, []); From d8c825236485957d1710220b45887b96be1bc5b6 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 13:50:25 +0800 Subject: [PATCH 266/575] =?UTF-8?q?fix(Tree):=20=E6=B7=BB=E5=8A=A0selected?= =?UTF-8?q?Keys=E7=A9=BA=E5=80=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index b6250d10f4..45e375b5ea 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -144,7 +144,7 @@ export default function Tree(props: TreeProps) { const [curSelectedKeys, setCurSelectedKeys] = useState(selectedKeys); useEffect(() => { - setCurSelectedKeys(props.selectedKeys!); + setCurSelectedKeys(props.selectedKeys || []); }, [JSON.stringify(props.selectedKeys)]); // useEffect(() => setCurOpenKeys(openKeys), [openKeys]); From 8ef82d3e9a4fae930b920219f3db3302ca4b9510 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 16:03:26 +0800 Subject: [PATCH 267/575] =?UTF-8?q?feat(SearchTree):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=20#547?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 67 ++++++++++++++++--- .../react-search-tree/src/SearchTagInput.tsx | 9 ++- packages/react-search-tree/src/index.tsx | 47 +++++++++++-- 3 files changed, 105 insertions(+), 18 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 89ca888199..22871aaad6 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -61,23 +61,47 @@ const data = [ const Demo = () => { const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }]) +const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }]) const onChange=(selectd, selectedAll, isChecked)=>{ console.log('SearchTree-> onChange',selectedAll, selectd, isChecked) valueSet(selectedAll) } +const onChangeSinge=(selectd, selectedAll, isChecked)=>{ + console.log('SearchTree-> onChange', selectd, selectedAll, isChecked) + valueSingeSet(selectedAll) +} + return ( - <> - console.log('SearchTree-> SearchTreeOption',searchValue)} - onChange={onChange} - value={value} - options={data} - placeholder="请输入选择" - /> - + + + + console.log('multiple',searchValue)} + onChange={onChange} + value={value} + options={data} + placeholder="请输入选择" + /> + + + + console.log('singe',searchValue)} + onChange={onChangeSinge} + value={valueSinge} + options={data} + placeholder="请输入选择" + /> + + + ) } ReactDOM.render(, _mount_); @@ -157,7 +181,10 @@ const form=useRef() ]; const setValue=()=>{ - form.current.setFields({ searchTree: [{ label: '东城区', key: '2-1-0' }, { label: '外滩街道', key: '1-3-0' }] }) + form.current.setFields({ + searchTree: [{ label: '东城区', key: '2-1-0' }, { label: '外滩街道', key: '1-3-0' }], + searchTreeSinge:[{ label: '前门街道', key: '2-3-3' }] + }) } const resetValue=()=>{ @@ -175,6 +202,7 @@ const form=useRef() return null; }} onSubmit={({initial, current}) => { + console.log('current',current) const errorObj = {}; if (!current.searchTree) { errorObj.searchTree = '默认需要选择内容,选择入内容'; @@ -203,6 +231,19 @@ const form=useRef() /> ) }, + searchTreeSinge: { + initialValue:[{ label: '东花市街道', key: '2-3-1' }], + children: ( + console.log('SearchTree-> SearchTreeOption',searchValue)} + onChange={(selectd, selectedAll, isChecked)=>console.log('SearchTree-> onChange', selectd, selectedAll, isChecked)} + options={data} + placeholder="请输入选择" + /> + ) + }, }} > {({ fields, state, canSubmit }) => { @@ -211,6 +252,9 @@ const form=useRef() {fields.searchTree} + + {fields.searchTreeSinge} + @@ -241,6 +285,7 @@ ReactDOM.render(, _mount_); |--------- |-------- |--------- |-------- | | allowClear | 支持清除 | Boolean | `false` | | disabled | 禁用选择器 | Boolean | `false` | +| multiple | 是否可以多选 | Boolean | `true` | | value | 指定当前选中的条目 | [{label:string, key:string}] | - | | options | 下拉数据源,可参考Tree下拉数据源 | [{label:string, key:string, children: [{label:string, key:string}] }] | - | | placeholder | 选择框默认文字 | String | - | diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index d001ae67e6..e55f8f2b49 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -120,7 +120,13 @@ function SearchTagInput(props: SearchTagInputPro }, [selectedOption, options, emptyOption]); return ( - {newContent}}> + {newContent}} + >
    renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} @@ -156,7 +162,6 @@ function SearchTagInput(props: SearchTagInputPro onChange={(e: React.ChangeEvent) => handleInputChange(e.target.value)} value={searchValue} placeholder={selectedOption.length ? '' : placeholder} - // readOnly={false} />
    diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index a866320df2..3d374f57d0 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from 'react'; import SearchTagInput, { DropContent, SearchTagInputOption } from './SearchTagInput'; -import { TreeData } from '@uiw/react-tree'; +import Tree, { TreeData, TreeProps } from '@uiw/react-tree'; import TreeChecked, { TreeCheckedProps } from '@uiw/react-tree-checked'; type SelectOtpion = Record; @@ -59,6 +59,33 @@ function TreeCheckeds( ); } + +function SingeTree(props: Omit & Partial>) { + const [keys, keysSet] = useState>([]); + + useEffect(() => { + const key = props.values?.[0].key; + keysSet(key ? [key] : []); + }, [props.values]); + + const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => { + const { key, label } = evn; + const cur = { key, label } as V; + props.onSelected?.([cur], cur, isChecked); + }; + + return ( + + ); +} + export interface SearchTreeProps { onChange?: (selectd: V, selectedAll: Array, isChecked: boolean) => void; onSearch?: (seachValue: string) => void; @@ -66,16 +93,26 @@ export interface SearchTreeProps { options?: TreeData[]; treeProps?: Omit & Partial>; emptyOption?: React.ReactNode; + multiple?: boolean; } function SearchTree(props: SearchTreeProps) { - const { onChange, onSearch, options = [], value = [], emptyOption = !options.length, treeProps, ...other } = props; - const [selectedValues, selectedValuesSet] = useState>(value); + const { + onChange, + onSearch, + multiple = true, + options = [], + value = [], + emptyOption = !options.length, + treeProps, + ...other + } = props; + const [selectedValues, selectedValuesSet] = useState>(Array.isArray(value) ? value : [value]); const [selectedOptions, selectedOptionSet] = useState>(options); const [isEmpty, isEmptySet] = useState(emptyOption); useEffect(() => { - selectedValuesSet(value); + selectedValuesSet(Array.isArray(value) ? value : [value]); }, [JSON.stringify(value)]); const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { @@ -125,7 +162,7 @@ function SearchTree(props: SearchTreeProps) { onChange={selectedChange} values={selectedValues} options={selectedOptions} - content={} + content={multiple ? : } /> ); } From a4f9b175877486a1d4c6ab933eb60b89e54f1f9f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 16:05:50 +0800 Subject: [PATCH 268/575] =?UTF-8?q?feat(SearchTree):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 3d374f57d0..af2b8adc48 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -112,7 +112,7 @@ function SearchTree(props: SearchTreeProps) { const [isEmpty, isEmptySet] = useState(emptyOption); useEffect(() => { - selectedValuesSet(Array.isArray(value) ? value : [value]); + selectedValuesSet(value); }, [JSON.stringify(value)]); const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { From 13414d5a862e2e28726a5d54c045b8f87353524e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 17:28:01 +0800 Subject: [PATCH 269/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index af2b8adc48..18f377d56f 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -64,8 +64,9 @@ function SingeTree(props: Omit>([]); useEffect(() => { - const key = props.values?.[0].key; - keysSet(key ? [key] : []); + const keys: Array = []; + if (props.values?.length) keys[0] = props.values[0].key; + keysSet(keys); }, [props.values]); const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => { From 6fc638299913d6eca4c85081e5135f36f3bf421d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 17:49:29 +0800 Subject: [PATCH 270/575] =?UTF-8?q?fix(SearchTree):=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=A9=BA=E9=80=89=E9=A1=B9=E6=A0=B7=E5=BC=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index e55f8f2b49..1852da557a 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -125,7 +125,7 @@ function SearchTagInput(props: SearchTagInputPro trigger="focus" {...others} isOpen={innerIsOpen} - menu={{newContent}} + menu={{newContent}} >
    renderSelectIcon('enter')} From cc81d0f381739e34b221fca09315933cbd6b0171 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 18:36:58 +0800 Subject: [PATCH 271/575] =?UTF-8?q?feat(Form):=20=E6=B7=BB=E5=8A=A0API,?= =?UTF-8?q?=E5=AF=B9=E5=8D=95=E4=B8=AA=20field=E8=AE=BE=E7=BD=AE=20value,?= =?UTF-8?q?=E5=92=8C=E8=AF=B4=E6=98=8E=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/README.md | 21 ++++++++++++++++++++- packages/react-form/src/Form.tsx | 6 ++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/packages/react-form/README.md b/packages/react-form/README.md index 5d85f25143..98d4c43cf6 100644 --- a/packages/react-form/README.md +++ b/packages/react-form/README.md @@ -679,9 +679,12 @@ ReactDOM.render(, _mount_); | onChange | 表单发生改变回调函数 {`initial`, `current`} | function({ initial, current }) | - | | onSubmitError | 调用 `onSubmit` 抛出的任何错误。从字段名称返回对象映射。 | function | - | | resetOnSubmit | 在 `onSubmit` 成功后将表单重置为其初始状态。| bool | `true` | +| ref | 返回form各种内部函数,可用于主动触发事件 | Ref | - | + + +#### fields ```js -// => fields props { firstName: { initialValue: '王', @@ -697,6 +700,22 @@ ReactDOM.render(, _mount_); } ``` +#### ref + +```jsx + const form = useRef() + render(
    ) +``` + +```js + form.current.onSubmit() // 提交表单 + form.current.resetForm() // 重置form + const fieldValues = form.current.getFieldValues() // 获取所有 field的 value对象 + const error = form.current.getError() // 获取所有提交时验证错误 + form.current.setFields({ /** [fieldName]: value **/ }) // 设置表单的值,覆盖 form所有 field的值 + form.current.setFieldValue(fieldName, value) // 对单个 field设置 value,如果 value为数组请自行深度拷贝后传值,以免破坏原数组 +``` + ## FormItem | 参数 | 说明 | 类型 | 默认值 | diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index fb732ac4a5..bff09fb15f 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -123,6 +123,7 @@ function Form( getFieldValues: () => data.current, getError: () => data.errors, setFields: setFields, + setFieldValue: setFieldValue, }), [data], ); @@ -162,6 +163,11 @@ function Form( setData(tempData); } + function setFieldValue(fieldName: string, value: V) { + const tempData = { ...data, current: { ...data.current, [fieldName]: value } }; + setData(tempData); + } + function handleChange( name: string, validator: FormFieldsProps['validator'], From 910960e3455b089c81da4f9f5ac902db2cc22f53 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 18:40:12 +0800 Subject: [PATCH 272/575] =?UTF-8?q?docs(Form):=20=E6=B7=BB=E5=8A=A0setFiel?= =?UTF-8?q?dValue=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-form/README.md b/packages/react-form/README.md index 98d4c43cf6..28c21ede7a 100644 --- a/packages/react-form/README.md +++ b/packages/react-form/README.md @@ -35,6 +35,10 @@ function Demo() { console.log('getFieldValues', form.current.getFieldValues()) } + const setFieldValue=()=>{ + form.current.setFieldValue('name','UIW') + } + return (
    submit +
    ) } From 217fc86c58dfcbc610c794d0863963dc9e0b1593 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 17:28:01 +0800 Subject: [PATCH 273/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index af2b8adc48..18f377d56f 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -64,8 +64,9 @@ function SingeTree(props: Omit>([]); useEffect(() => { - const key = props.values?.[0].key; - keysSet(key ? [key] : []); + const keys: Array = []; + if (props.values?.length) keys[0] = props.values[0].key; + keysSet(keys); }, [props.values]); const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => { From 93f7cf24ef1d6cdee7dca275a5fe3745bfa938ec Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 17:49:29 +0800 Subject: [PATCH 274/575] =?UTF-8?q?fix(SearchTree):=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=A9=BA=E9=80=89=E9=A1=B9=E6=A0=B7=E5=BC=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index e55f8f2b49..1852da557a 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -125,7 +125,7 @@ function SearchTagInput(props: SearchTagInputPro trigger="focus" {...others} isOpen={innerIsOpen} - menu={{newContent}} + menu={{newContent}} >
    renderSelectIcon('enter')} From f6e472ba480556bd7de09f4d54712b6eb0b4eac4 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 18:36:58 +0800 Subject: [PATCH 275/575] =?UTF-8?q?feat(Form):=20=E6=B7=BB=E5=8A=A0API,?= =?UTF-8?q?=E5=AF=B9=E5=8D=95=E4=B8=AA=20field=E8=AE=BE=E7=BD=AE=20value,?= =?UTF-8?q?=E5=92=8C=E8=AF=B4=E6=98=8E=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/README.md | 21 ++++++++++++++++++++- packages/react-form/src/Form.tsx | 6 ++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/packages/react-form/README.md b/packages/react-form/README.md index 5d85f25143..98d4c43cf6 100644 --- a/packages/react-form/README.md +++ b/packages/react-form/README.md @@ -679,9 +679,12 @@ ReactDOM.render(, _mount_); | onChange | 表单发生改变回调函数 {`initial`, `current`} | function({ initial, current }) | - | | onSubmitError | 调用 `onSubmit` 抛出的任何错误。从字段名称返回对象映射。 | function | - | | resetOnSubmit | 在 `onSubmit` 成功后将表单重置为其初始状态。| bool | `true` | +| ref | 返回form各种内部函数,可用于主动触发事件 | Ref | - | + + +#### fields ```js -// => fields props { firstName: { initialValue: '王', @@ -697,6 +700,22 @@ ReactDOM.render(, _mount_); } ``` +#### ref + +```jsx + const form = useRef() + render() +``` + +```js + form.current.onSubmit() // 提交表单 + form.current.resetForm() // 重置form + const fieldValues = form.current.getFieldValues() // 获取所有 field的 value对象 + const error = form.current.getError() // 获取所有提交时验证错误 + form.current.setFields({ /** [fieldName]: value **/ }) // 设置表单的值,覆盖 form所有 field的值 + form.current.setFieldValue(fieldName, value) // 对单个 field设置 value,如果 value为数组请自行深度拷贝后传值,以免破坏原数组 +``` + ## FormItem | 参数 | 说明 | 类型 | 默认值 | diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index fb732ac4a5..bff09fb15f 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -123,6 +123,7 @@ function Form( getFieldValues: () => data.current, getError: () => data.errors, setFields: setFields, + setFieldValue: setFieldValue, }), [data], ); @@ -162,6 +163,11 @@ function Form( setData(tempData); } + function setFieldValue(fieldName: string, value: V) { + const tempData = { ...data, current: { ...data.current, [fieldName]: value } }; + setData(tempData); + } + function handleChange( name: string, validator: FormFieldsProps['validator'], From d06b452e495f8489d997bb97e14f601e1508e441 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 18:40:12 +0800 Subject: [PATCH 276/575] =?UTF-8?q?docs(Form):=20=E6=B7=BB=E5=8A=A0setFiel?= =?UTF-8?q?dValue=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-form/README.md b/packages/react-form/README.md index 98d4c43cf6..28c21ede7a 100644 --- a/packages/react-form/README.md +++ b/packages/react-form/README.md @@ -35,6 +35,10 @@ function Demo() { console.log('getFieldValues', form.current.getFieldValues()) } + const setFieldValue=()=>{ + form.current.setFieldValue('name','UIW') + } + return (
    submit +
    ) } From 30fdd38e143b57a3c9d70463d2bf96ded5bd51f6 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 3 Mar 2022 09:38:18 +0800 Subject: [PATCH 277/575] =?UTF-8?q?fix(Tree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B1=95=E5=BC=80=E7=88=B6=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A6=96=E6=AC=A1=E6=B8=B2=E6=9F=93=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 45e375b5ea..57fb1236a0 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -151,7 +151,7 @@ export default function Tree(props: TreeProps) { // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); useEffect(() => { - let arrOpenKeys: TreeData['key'][] = curOpenKeys; + let arrOpenKeys: TreeData['key'][] = [...curOpenKeys]; if (defaultExpandAll) { arrOpenKeys = getChildKeys(data); } else if (autoExpandParent) { From ada7bc31cff0551169ee0af483736cb0e9fe7031 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 3 Mar 2022 11:20:31 +0800 Subject: [PATCH 278/575] =?UTF-8?q?fix(SearchTree):=20=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=88=B0=E8=8A=82=E7=82=B9=E5=8C=B9=E9=85=8D=E6=97=B6,?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=89=80=E6=9C=89=E4=B8=8B=E7=BA=A7=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 18f377d56f..7c34fa44d4 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -134,15 +134,14 @@ function SearchTree(props: SearchTreeProps) { }; const selectedSearch = (searchValue: string) => { - const hiddenNodeForSeach = (childrens: TreeData[]) => { + const hiddenNodeForSeach = (childrens: TreeData[], parentIsHide: boolean = true) => { childrens.forEach((child: TreeData) => { - const isHide = !(child.label as string).includes(searchValue); + const isHide = !(child.label as string).includes(searchValue.trim()) && parentIsHide; if (!!child.children?.length) { - hiddenNodeForSeach(child.children); + hiddenNodeForSeach(child.children, isHide); const find = child.children.find((item) => !item.hideNode); child.hideNode = isHide && !find; } else { - // const isHide = !(child.label as string).includes(searchValue) child.hideNode = isHide; } }); @@ -159,7 +158,7 @@ function SearchTree(props: SearchTreeProps) { Date: Thu, 3 Mar 2022 11:20:31 +0800 Subject: [PATCH 279/575] =?UTF-8?q?fix(SearchTree):=20=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=88=B0=E8=8A=82=E7=82=B9=E5=8C=B9=E9=85=8D=E6=97=B6,?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=89=80=E6=9C=89=E4=B8=8B=E7=BA=A7=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 18f377d56f..7c34fa44d4 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -134,15 +134,14 @@ function SearchTree(props: SearchTreeProps) { }; const selectedSearch = (searchValue: string) => { - const hiddenNodeForSeach = (childrens: TreeData[]) => { + const hiddenNodeForSeach = (childrens: TreeData[], parentIsHide: boolean = true) => { childrens.forEach((child: TreeData) => { - const isHide = !(child.label as string).includes(searchValue); + const isHide = !(child.label as string).includes(searchValue.trim()) && parentIsHide; if (!!child.children?.length) { - hiddenNodeForSeach(child.children); + hiddenNodeForSeach(child.children, isHide); const find = child.children.find((item) => !item.hideNode); child.hideNode = isHide && !find; } else { - // const isHide = !(child.label as string).includes(searchValue) child.hideNode = isHide; } }); @@ -159,7 +158,7 @@ function SearchTree(props: SearchTreeProps) { Date: Thu, 3 Mar 2022 17:02:07 +0800 Subject: [PATCH 280/575] =?UTF-8?q?fix(SearchTree):=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=86=85=E9=83=A8=E5=86=85=E9=83=A8=E5=9B=9E=E8=B0=83=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=E9=97=AD=E5=8C=85=E7=8E=AF=E5=A2=83=E4=B8=AD?= =?UTF-8?q?,=E5=AF=BC=E8=87=B4=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E6=97=A0=E6=B3=95=E6=8B=BF=E5=88=B0=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E5=80=BC=20#593?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react-search-tree/src/SearchTagInput.tsx | 2 +- packages/react-tag/src/index.tsx | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 1852da557a..a9ee568378 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -117,7 +117,7 @@ function SearchTagInput(props: SearchTagInputPro options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [selectedOption, options, emptyOption]); + }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]); return ( { if (!visible) { return null; } - const closeBtn = useMemo( - () => - closable ? ( - - - - ) : null, - [closable], - ); + return ( {title || children} - {closeBtn} + {closable ? ( + + + + ) : null} ); }; From 0e1da51df1798004a7a9c524935284589738ee5e Mon Sep 17 00:00:00 2001 From: gssggssg <490104722@qq.com> Date: Thu, 3 Mar 2022 14:33:05 +0800 Subject: [PATCH 281/575] =?UTF-8?q?doc(Tag):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #598 修复 --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index a6ca0b58db..bf350ca780 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 14:35:17 +0800 Subject: [PATCH 282/575] =?UTF-8?q?Revert=20"doc(Tag):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#599)"=20(#600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index bf350ca780..a6ca0b58db 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 16:51:26 +0800 Subject: [PATCH 283/575] chore: add issue template. --- .github/ISSUE_TEMPLATE/BUG_REPORT.md | 49 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 28 +++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/BUG_REPORT.md create mode 100644 .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md new file mode 100644 index 0000000000..1d3335e9c1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -0,0 +1,49 @@ +--- +name: 错误报告(Bug Report) +about: 当出现问题时提交报告以便修复! +--- + +注意:根据下面内容复现错误问题,以方便测试。 + +**描述错误** + +清晰简洁地描述错误是什么。 + +**错误复现** + +重现行为的步骤: + +1. 转到“...” +2. 点击“....” +3. 向下滚动到“....” +4. 查看错误 + +**提供在线重现示例** + +[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/s/uiw-demo-forked-gk9bin) + +**预期行为** + +对您期望发生的事情进行清晰简洁的描述。 + +**截图** + +如果适用,请添加屏幕截图以帮助解释您的问题。 + +**桌面(请填写以下信息):** + +- UIW:[例如 v4.13.4] +- 操作系统:[例如 macOS] +- 浏览器:[例如 火狐、Chrome、Safari] +- 版本和构建:[例如 59.0.2(64 位)] + +**智能手机(请填写以下信息):** + +- 设备:[例如 iPhone 6] +- 操作系统:[例如 iOS8.1] +- 浏览器 [例如 股票浏览器,野生动物园] +- 版本 [例如 22] + +**附加上下文** + +在此处添加有关该问题的任何其他上下文。 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md new file mode 100644 index 0000000000..465235e6d2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md @@ -0,0 +1,28 @@ +--- +name: 功能要求(Feature Request) +about: 为 uiw 组件推荐一个功能 +--- + +**您的功能请求是否与问题有关?请描述。** + +对推荐的新功能,添加清晰简洁的描述。前任。当 [...] + +**描述您想要的解决方案** + +对您想要发生的事情的清晰简洁的描述。 + +**描述您考虑过的替代方案** + +对您考虑过的任何替代解决方案或功能的清晰简洁的描述。 + +**附加上下文** + +在此处添加有关功能请求的任何其他上下文或屏幕截图。 + +### 问题清单 + +完成每个步骤后,在方框中打一个 x。您也可以在创建问题后填写这些内容。如果您不确定其中的任何一个,请随时询问。我们是来帮忙的!这只是提醒我们在回应问题之前要寻找什么。 + +- [ ] 我已经检查过其他类似的问题 +- [ ] 我已经解释了为什么这个改变很重要 +- [ ] 我添加了必要的文件(如果适用) \ No newline at end of file From 0269fec3b2d88083f8a7fabfad5981c6bd217fc1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 3 Mar 2022 17:02:18 +0800 Subject: [PATCH 284/575] chore: update issue template. --- .github/ISSUE_TEMPLATE/BUG_REPORT.md | 18 ++++++++++-------- .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 3 ++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md index 1d3335e9c1..f2de5f44e1 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -1,15 +1,17 @@ --- name: 错误报告(Bug Report) about: 当出现问题时提交报告以便修复! +title: "[TimePicker<组件名称>]: 清晰简洁地一句话描述错误" +labels: bug,question --- 注意:根据下面内容复现错误问题,以方便测试。 -**描述错误** +### 描述错误 清晰简洁地描述错误是什么。 -**错误复现** +### 错误复现 重现行为的步骤: @@ -18,32 +20,32 @@ about: 当出现问题时提交报告以便修复! 3. 向下滚动到“....” 4. 查看错误 -**提供在线重现示例** +### 提供在线重现示例 [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/s/uiw-demo-forked-gk9bin) -**预期行为** +### 预期行为 对您期望发生的事情进行清晰简洁的描述。 -**截图** +### 截图 如果适用,请添加屏幕截图以帮助解释您的问题。 -**桌面(请填写以下信息):** +### 桌面(请填写以下信息): - UIW:[例如 v4.13.4] - 操作系统:[例如 macOS] - 浏览器:[例如 火狐、Chrome、Safari] - 版本和构建:[例如 59.0.2(64 位)] -**智能手机(请填写以下信息):** +### 智能手机(请填写以下信息): - 设备:[例如 iPhone 6] - 操作系统:[例如 iOS8.1] - 浏览器 [例如 股票浏览器,野生动物园] - 版本 [例如 22] -**附加上下文** +### 附加上下文 在此处添加有关该问题的任何其他上下文。 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md index 465235e6d2..7bcb69fbc4 100644 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md @@ -1,6 +1,7 @@ --- name: 功能要求(Feature Request) -about: 为 uiw 组件推荐一个功能 +about: 为 uiw 组件推荐一个功能(添加一个组件,一个组件 API)! +labels: feature,enhancement --- **您的功能请求是否与问题有关?请描述。** From c80559dca7d4e84d0e9fe566dbf11d2de3549a5f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 3 Mar 2022 17:02:07 +0800 Subject: [PATCH 285/575] =?UTF-8?q?fix(SearchTree):=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=86=85=E9=83=A8=E5=86=85=E9=83=A8=E5=9B=9E=E8=B0=83=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=E9=97=AD=E5=8C=85=E7=8E=AF=E5=A2=83=E4=B8=AD?= =?UTF-8?q?,=E5=AF=BC=E8=87=B4=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E6=97=A0=E6=B3=95=E6=8B=BF=E5=88=B0=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E5=80=BC=20#593?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react-search-tree/src/SearchTagInput.tsx | 2 +- packages/react-tag/src/index.tsx | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index 1852da557a..a9ee568378 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -117,7 +117,7 @@ function SearchTagInput(props: SearchTagInputPro options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [selectedOption, options, emptyOption]); + }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]); return ( { if (!visible) { return null; } - const closeBtn = useMemo( - () => - closable ? ( - - - - ) : null, - [closable], - ); + return ( {title || children} - {closeBtn} + {closable ? ( + + + + ) : null} ); }; From 1e43fd7e8a02590fdf07740f97acedcaf6f805f0 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 3 Mar 2022 17:48:59 +0800 Subject: [PATCH 286/575] =?UTF-8?q?fix(SearchTree):=20=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E8=A2=AB=E8=B5=8B=E5=80=BC=E9=94=99=E8=AF=AF=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=A4=84=E7=90=86#604?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 7c34fa44d4..a394a30c4d 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -113,7 +113,7 @@ function SearchTree(props: SearchTreeProps) { const [isEmpty, isEmptySet] = useState(emptyOption); useEffect(() => { - selectedValuesSet(value); + selectedValuesSet(Array.isArray(value) ? value : []); }, [JSON.stringify(value)]); const selectedChange = (resultValue: Array, cur: V, isChecked: boolean) => { From 181c3b655d91000246f3ea9bb4cf256f32b8c670 Mon Sep 17 00:00:00 2001 From: gssggssg <490104722@qq.com> Date: Thu, 3 Mar 2022 14:33:05 +0800 Subject: [PATCH 287/575] =?UTF-8?q?doc(Tag):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #598 修复 --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index a6ca0b58db..bf350ca780 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 14:35:17 +0800 Subject: [PATCH 288/575] =?UTF-8?q?Revert=20"doc(Tag):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#599)"=20(#600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index bf350ca780..a6ca0b58db 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 16:51:26 +0800 Subject: [PATCH 289/575] chore: add issue template. --- .github/ISSUE_TEMPLATE/BUG_REPORT.md | 49 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 28 +++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/BUG_REPORT.md create mode 100644 .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md new file mode 100644 index 0000000000..1d3335e9c1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -0,0 +1,49 @@ +--- +name: 错误报告(Bug Report) +about: 当出现问题时提交报告以便修复! +--- + +注意:根据下面内容复现错误问题,以方便测试。 + +**描述错误** + +清晰简洁地描述错误是什么。 + +**错误复现** + +重现行为的步骤: + +1. 转到“...” +2. 点击“....” +3. 向下滚动到“....” +4. 查看错误 + +**提供在线重现示例** + +[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/s/uiw-demo-forked-gk9bin) + +**预期行为** + +对您期望发生的事情进行清晰简洁的描述。 + +**截图** + +如果适用,请添加屏幕截图以帮助解释您的问题。 + +**桌面(请填写以下信息):** + +- UIW:[例如 v4.13.4] +- 操作系统:[例如 macOS] +- 浏览器:[例如 火狐、Chrome、Safari] +- 版本和构建:[例如 59.0.2(64 位)] + +**智能手机(请填写以下信息):** + +- 设备:[例如 iPhone 6] +- 操作系统:[例如 iOS8.1] +- 浏览器 [例如 股票浏览器,野生动物园] +- 版本 [例如 22] + +**附加上下文** + +在此处添加有关该问题的任何其他上下文。 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md new file mode 100644 index 0000000000..465235e6d2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md @@ -0,0 +1,28 @@ +--- +name: 功能要求(Feature Request) +about: 为 uiw 组件推荐一个功能 +--- + +**您的功能请求是否与问题有关?请描述。** + +对推荐的新功能,添加清晰简洁的描述。前任。当 [...] + +**描述您想要的解决方案** + +对您想要发生的事情的清晰简洁的描述。 + +**描述您考虑过的替代方案** + +对您考虑过的任何替代解决方案或功能的清晰简洁的描述。 + +**附加上下文** + +在此处添加有关功能请求的任何其他上下文或屏幕截图。 + +### 问题清单 + +完成每个步骤后,在方框中打一个 x。您也可以在创建问题后填写这些内容。如果您不确定其中的任何一个,请随时询问。我们是来帮忙的!这只是提醒我们在回应问题之前要寻找什么。 + +- [ ] 我已经检查过其他类似的问题 +- [ ] 我已经解释了为什么这个改变很重要 +- [ ] 我添加了必要的文件(如果适用) \ No newline at end of file From 718e2fe8df2fa2f65e03f266261948c7abf4c040 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 3 Mar 2022 17:02:18 +0800 Subject: [PATCH 290/575] chore: update issue template. --- .github/ISSUE_TEMPLATE/BUG_REPORT.md | 18 ++++++++++-------- .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 3 ++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md index 1d3335e9c1..f2de5f44e1 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -1,15 +1,17 @@ --- name: 错误报告(Bug Report) about: 当出现问题时提交报告以便修复! +title: "[TimePicker<组件名称>]: 清晰简洁地一句话描述错误" +labels: bug,question --- 注意:根据下面内容复现错误问题,以方便测试。 -**描述错误** +### 描述错误 清晰简洁地描述错误是什么。 -**错误复现** +### 错误复现 重现行为的步骤: @@ -18,32 +20,32 @@ about: 当出现问题时提交报告以便修复! 3. 向下滚动到“....” 4. 查看错误 -**提供在线重现示例** +### 提供在线重现示例 [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/s/uiw-demo-forked-gk9bin) -**预期行为** +### 预期行为 对您期望发生的事情进行清晰简洁的描述。 -**截图** +### 截图 如果适用,请添加屏幕截图以帮助解释您的问题。 -**桌面(请填写以下信息):** +### 桌面(请填写以下信息): - UIW:[例如 v4.13.4] - 操作系统:[例如 macOS] - 浏览器:[例如 火狐、Chrome、Safari] - 版本和构建:[例如 59.0.2(64 位)] -**智能手机(请填写以下信息):** +### 智能手机(请填写以下信息): - 设备:[例如 iPhone 6] - 操作系统:[例如 iOS8.1] - 浏览器 [例如 股票浏览器,野生动物园] - 版本 [例如 22] -**附加上下文** +### 附加上下文 在此处添加有关该问题的任何其他上下文。 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md index 465235e6d2..7bcb69fbc4 100644 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md @@ -1,6 +1,7 @@ --- name: 功能要求(Feature Request) -about: 为 uiw 组件推荐一个功能 +about: 为 uiw 组件推荐一个功能(添加一个组件,一个组件 API)! +labels: feature,enhancement --- **您的功能请求是否与问题有关?请描述。** From 1bda47ef1186b2962538a7e30a2f176ce398bf5c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 3 Mar 2022 19:06:16 +0800 Subject: [PATCH 291/575] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) create mode 100755 debug diff --git a/debug b/debug new file mode 100755 index 0000000000..900d903e65 --- /dev/null +++ b/debug @@ -0,0 +1,11 @@ +#!/bin/bash +for compName in $* +do + (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch + (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch + # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css + # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm + # lerna exec --scope @uiw/react-$compName -- tsbb build --target react + lerna bootstrap --hoist --scope @uiw/react-$compName +done + diff --git a/package.json b/package.json index dbbeba5fd9..bc8bc78a15 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { + "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From 062a3ded2d91093460869b7c44b13b1409c961a6 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 12:00:44 +0800 Subject: [PATCH 292/575] =?UTF-8?q?docs(FileInput):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-file-input/README.md | 50 +++++++++++++++++-- .../routes/components/file-input/index.tsx | 4 +- 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/packages/react-file-input/README.md b/packages/react-file-input/README.md index 0c83d378b7..e95a582132 100644 --- a/packages/react-file-input/README.md +++ b/packages/react-file-input/README.md @@ -107,6 +107,48 @@ ReactDOM.render( ); ``` +### 图片预览 + + +```jsx +import React from 'react'; +import ReactDOM from 'react-dom'; +import { FileInput, Overlay } from 'uiw'; + +const Demo=()=>{ + const [visible,visibleSet]=React.useState(false) + const [curfile,curFileSet]=React.useState(null) + console.log('curfile',curfile) + + return( + <> + visibleSet(false)} + > + {`${curfile?.name}`} + + { + visibleSet(true) + curFileSet(file) + }} + value={[ + { dataURL: 'https://avatars2.githubusercontent.com/u/1680273?s=40&v=4', name: 'uiw.png' } + ]} + > + + + + ) +} + +ReactDOM.render( ,_mount_ +); +``` + ### 图片列表样式 @@ -173,12 +215,12 @@ import { Form, Row, Col, Icon } from 'uiw'; ReactDOM.render(
    - { const md = await import('uiw/node_modules/@uiw/react-file-input/README.md'); return md.default || md; From 43066749145d3d596a4b9a442665134b6cd5fc43 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 12:06:38 +0800 Subject: [PATCH 293/575] =?UTF-8?q?clean:=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) delete mode 100755 debug diff --git a/debug b/debug deleted file mode 100755 index 900d903e65..0000000000 --- a/debug +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -for compName in $* -do - (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch - (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm - # lerna exec --scope @uiw/react-$compName -- tsbb build --target react - lerna bootstrap --hoist --scope @uiw/react-$compName -done - diff --git a/package.json b/package.json index ec81842642..14b3c2bbc5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From 6d2392676ebfae47f2b26d032f6e37ce7c0d477d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 14:52:34 +0800 Subject: [PATCH 294/575] =?UTF-8?q?fix(Menu):=20=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E8=B6=85=E8=BF=87Drawer=E5=BC=B9=E5=B1=82=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?#566?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-overlay-trigger/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index a0c9fb1039..bfc6957ef8 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(999); + const zIndex = useRef(990); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From d1037b38d9618d6ed6013e5164ef0c063d31b310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Fri, 4 Mar 2022 14:15:35 +0800 Subject: [PATCH 295/575] =?UTF-8?q?fix(TreeChecked):=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20Form=20=E8=A1=A8=E5=8D=95=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20#605=20(#610)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree-checked/README.md | 113 ++++++++++++++++++ packages/react-tree/src/index.tsx | 14 ++- .../routes/components/tree-checked/index.tsx | 6 +- 3 files changed, 126 insertions(+), 7 deletions(-) diff --git a/packages/react-tree-checked/README.md b/packages/react-tree-checked/README.md index 37e7b618b1..90729c051d 100644 --- a/packages/react-tree-checked/README.md +++ b/packages/react-tree-checked/README.md @@ -109,6 +109,119 @@ const Demo = () => ( ReactDOM.render(, _mount_); ``` +### 表单使用 + + +```jsx +import React, { useState, useRef } from "react"; +import ReactDOM from 'react-dom'; +import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; + +const data = [ + { + label: '湖北省', + key: '0-0-0', + children:[ + { + label: '武汉市', + key: '0-1-0', + children:[ + { label: '新洲区', key: '0-1-1', disabled: true }, + { label: '武昌区', key: '0-1-2' }, + { + label: '汉南区', + key: '0-1-3', + children:[ + { label: '汉南区1', key: '0-1-3-1' }, + { label: '汉南区2', key: '0-1-3-2' }, + { label: '汉南区3', key: '0-1-3-3' }, + ] + }, + ] + }, + { label: '黄冈市', key: '0-2-0' }, + { + label: '黄石市', + key: '0-3-0', + children:[ + { label: '青山区', key: '0-3-1' }, + { label: '黄陂区', key: '0-3-2' }, + { label: '青山区', key: '0-3-3' }, + ] + }, + ] + }, + { label: '澳门', key: '3' }, +]; + +function Demo() { + const form = useRef() + + const onSubmit = () => { + form.current.onSubmit() + } + const resetForm = () => { + form.current.resetForm() + } + const getFieldValues = () => { + console.log('getFieldValues', form.current.getFieldValues()) + } + + const setFieldValue=()=>{ + form.current.setFieldValue('name','UIW') + } + + return ( +
    + { + console.log('onChange', initial, current); + }} + onSubmit={({ initial, current }) => { + if (current.tree === initial.tree) { + Notify.error({ + title: '提交失败!', + description: `表单提交内容为空!`, + }); + } else { + Notify.success({ + title: '提交成功!', + }); + } + }} + fields={{ + tree: { + label: "树", + initialValue: ['3'], + children: + } + }} + > + {({ fields, state, canSubmit }) => { + return ( +
    + + {fields.tree} + + + + + + +
    + ) + }} + +
    + ) +} +ReactDOM.render(, _mount_); +``` + ## Props 完全继承 [Tree](#/components/Tree) 组件属性,默认初始值不一样,下面仅列出默认不一致的 Props。 diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 57fb1236a0..a9bb2a4229 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -12,7 +12,7 @@ export type TreeRenderTitleNode = { selectedKeys?: TreeProps['selectedKeys']; }; -export interface TreeProps extends IProps, HTMLDivProps { +export interface TreeProps extends IProps, Omit { icon?: IconProps['type']; data?: TreeData[]; openKeys?: TreeData['key'][]; @@ -45,6 +45,8 @@ export interface TreeProps extends IProps, HTMLDivProps { item: TreeData, evn: React.MouseEvent, ) => void; + onChange?: (keys: (string | number | undefined)[]) => void; + value?: TreeData['key'][]; } export interface TreeData { @@ -137,16 +139,19 @@ export default function Tree(props: TreeProps) { className, autoExpandParent = true, renderTitle, + onChange, ...elementProps } = props; const [curOpenKeys, setCurOpenKeys] = useState(openKeys); - const [curSelectedKeys, setCurSelectedKeys] = useState(selectedKeys); + const [curSelectedKeys, setCurSelectedKeys] = useState(props.value || selectedKeys); useEffect(() => { setCurSelectedKeys(props.selectedKeys || []); }, [JSON.stringify(props.selectedKeys)]); - + useEffect(() => { + setCurSelectedKeys(props.value || []); + }, [JSON.stringify(props.value)]); // useEffect(() => setCurOpenKeys(openKeys), [openKeys]); // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); @@ -155,7 +160,7 @@ export default function Tree(props: TreeProps) { if (defaultExpandAll) { arrOpenKeys = getChildKeys(data); } else if (autoExpandParent) { - arrOpenKeys.push(...getChildKeys(data, undefined, 1)); + arrOpenKeys.push(...getChildKeys(data || [], undefined, 1)); } setCurOpenKeys(arrOpenKeys); }, []); @@ -209,6 +214,7 @@ export default function Tree(props: TreeProps) { } setCurSelectedKeys(selKeys); onSelected && onSelected(selKeys, item.key, selected, item, evn); + onChange?.(selKeys); } return (
    diff --git a/website/src/routes/components/tree-checked/index.tsx b/website/src/routes/components/tree-checked/index.tsx index 80b40e9143..70cf8e806f 100644 --- a/website/src/routes/components/tree-checked/index.tsx +++ b/website/src/routes/components/tree-checked/index.tsx @@ -1,11 +1,11 @@ -import React from 'react'; -import { TreeChecked, Row, Col, Card, Icon } from 'uiw'; +import React, { useRef } from 'react'; import Markdown from '../../../components/Markdown'; +import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; export default () => ( { const md = await import('uiw/node_modules/@uiw/react-tree-checked/README.md'); return md.default || md; From d06981b36d9cebbb7b9d4b4dc04293b75e73456e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 12:06:38 +0800 Subject: [PATCH 296/575] =?UTF-8?q?clean:=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) delete mode 100755 debug diff --git a/debug b/debug deleted file mode 100755 index 900d903e65..0000000000 --- a/debug +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -for compName in $* -do - (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch - (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm - # lerna exec --scope @uiw/react-$compName -- tsbb build --target react - lerna bootstrap --hoist --scope @uiw/react-$compName -done - diff --git a/package.json b/package.json index ec81842642..14b3c2bbc5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From 41ed7071d57d8d6254547d77cf489916bf107171 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 14:52:34 +0800 Subject: [PATCH 297/575] =?UTF-8?q?fix(Menu):=20=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E8=B6=85=E8=BF=87Drawer=E5=BC=B9=E5=B1=82=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?#566?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-overlay-trigger/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index a0c9fb1039..bfc6957ef8 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(999); + const zIndex = useRef(990); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From 4e3f563ccc7f7e74235d8efbe80c00492440214b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 15:34:04 +0800 Subject: [PATCH 298/575] =?UTF-8?q?style(SearchTree):=20=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=97=A0=E6=B3=95=E6=92=91=E6=BB=A1=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E9=97=AE=E9=A2=98=20#611?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- packages/react-search-select/src/style/index.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 0f2880cc2c..ce38712022 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -233,7 +233,7 @@ export default function SearchSelect(props: SearchSelectProps) { > {isMultiple ? (
    -
    +
    {isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => { return ( diff --git a/packages/react-search-select/src/style/index.less b/packages/react-search-select/src/style/index.less index b42b0aa151..5d6e3753e5 100644 --- a/packages/react-search-select/src/style/index.less +++ b/packages/react-search-select/src/style/index.less @@ -5,7 +5,8 @@ input { box-shadow: none; padding: 0px; - height: 20px; + min-width: 50px; + height: 22px; } .w-input-inner { From 6360a425b7939949e767797a66089136729f2854 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 15:41:56 +0800 Subject: [PATCH 299/575] =?UTF-8?q?style(SearchSelect):=20=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E6=A0=B7=E5=BC=8F=E6=97=A0=E6=B3=95=E6=92=91=E6=BB=A1?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 4 ++-- packages/react-search-tree/src/style/index.less | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index a9ee568378..ba7a20d55d 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -134,7 +134,7 @@ function SearchTagInput(props: SearchTagInputPro style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    -
    +
    {selectedOption.map((item, index) => { return ( (props: SearchTagInputPro placeholder={selectedOption.length ? '' : placeholder} />
    - + {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( )} diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less index e056ac9eb1..81e81bc2dc 100644 --- a/packages/react-search-tree/src/style/index.less +++ b/packages/react-search-tree/src/style/index.less @@ -6,6 +6,7 @@ box-shadow: none; padding: 0px; height: 20px; + min-width: 50px; } .w-input-inner { From 56ffa33cccf612a5f217c4ab2b7e74d34056fcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Fri, 4 Mar 2022 14:15:35 +0800 Subject: [PATCH 300/575] =?UTF-8?q?fix(TreeChecked):=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20Form=20=E8=A1=A8=E5=8D=95=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20#605=20(#610)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tree-checked/README.md | 113 ++++++++++++++++++ packages/react-tree/src/index.tsx | 14 ++- .../routes/components/tree-checked/index.tsx | 6 +- 3 files changed, 126 insertions(+), 7 deletions(-) diff --git a/packages/react-tree-checked/README.md b/packages/react-tree-checked/README.md index 37e7b618b1..90729c051d 100644 --- a/packages/react-tree-checked/README.md +++ b/packages/react-tree-checked/README.md @@ -109,6 +109,119 @@ const Demo = () => ( ReactDOM.render(, _mount_); ``` +### 表单使用 + + +```jsx +import React, { useState, useRef } from "react"; +import ReactDOM from 'react-dom'; +import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; + +const data = [ + { + label: '湖北省', + key: '0-0-0', + children:[ + { + label: '武汉市', + key: '0-1-0', + children:[ + { label: '新洲区', key: '0-1-1', disabled: true }, + { label: '武昌区', key: '0-1-2' }, + { + label: '汉南区', + key: '0-1-3', + children:[ + { label: '汉南区1', key: '0-1-3-1' }, + { label: '汉南区2', key: '0-1-3-2' }, + { label: '汉南区3', key: '0-1-3-3' }, + ] + }, + ] + }, + { label: '黄冈市', key: '0-2-0' }, + { + label: '黄石市', + key: '0-3-0', + children:[ + { label: '青山区', key: '0-3-1' }, + { label: '黄陂区', key: '0-3-2' }, + { label: '青山区', key: '0-3-3' }, + ] + }, + ] + }, + { label: '澳门', key: '3' }, +]; + +function Demo() { + const form = useRef() + + const onSubmit = () => { + form.current.onSubmit() + } + const resetForm = () => { + form.current.resetForm() + } + const getFieldValues = () => { + console.log('getFieldValues', form.current.getFieldValues()) + } + + const setFieldValue=()=>{ + form.current.setFieldValue('name','UIW') + } + + return ( +
    +
    { + console.log('onChange', initial, current); + }} + onSubmit={({ initial, current }) => { + if (current.tree === initial.tree) { + Notify.error({ + title: '提交失败!', + description: `表单提交内容为空!`, + }); + } else { + Notify.success({ + title: '提交成功!', + }); + } + }} + fields={{ + tree: { + label: "树", + initialValue: ['3'], + children: + } + }} + > + {({ fields, state, canSubmit }) => { + return ( +
    + + {fields.tree} + + + + + + +
    + ) + }} + +
    + ) +} +ReactDOM.render(, _mount_); +``` + ## Props 完全继承 [Tree](#/components/Tree) 组件属性,默认初始值不一样,下面仅列出默认不一致的 Props。 diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index 57fb1236a0..a9bb2a4229 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -12,7 +12,7 @@ export type TreeRenderTitleNode = { selectedKeys?: TreeProps['selectedKeys']; }; -export interface TreeProps extends IProps, HTMLDivProps { +export interface TreeProps extends IProps, Omit { icon?: IconProps['type']; data?: TreeData[]; openKeys?: TreeData['key'][]; @@ -45,6 +45,8 @@ export interface TreeProps extends IProps, HTMLDivProps { item: TreeData, evn: React.MouseEvent, ) => void; + onChange?: (keys: (string | number | undefined)[]) => void; + value?: TreeData['key'][]; } export interface TreeData { @@ -137,16 +139,19 @@ export default function Tree(props: TreeProps) { className, autoExpandParent = true, renderTitle, + onChange, ...elementProps } = props; const [curOpenKeys, setCurOpenKeys] = useState(openKeys); - const [curSelectedKeys, setCurSelectedKeys] = useState(selectedKeys); + const [curSelectedKeys, setCurSelectedKeys] = useState(props.value || selectedKeys); useEffect(() => { setCurSelectedKeys(props.selectedKeys || []); }, [JSON.stringify(props.selectedKeys)]); - + useEffect(() => { + setCurSelectedKeys(props.value || []); + }, [JSON.stringify(props.value)]); // useEffect(() => setCurOpenKeys(openKeys), [openKeys]); // useEffect(() => setCurSelectedKeys(selectedKeys), [selectedKeys]); @@ -155,7 +160,7 @@ export default function Tree(props: TreeProps) { if (defaultExpandAll) { arrOpenKeys = getChildKeys(data); } else if (autoExpandParent) { - arrOpenKeys.push(...getChildKeys(data, undefined, 1)); + arrOpenKeys.push(...getChildKeys(data || [], undefined, 1)); } setCurOpenKeys(arrOpenKeys); }, []); @@ -209,6 +214,7 @@ export default function Tree(props: TreeProps) { } setCurSelectedKeys(selKeys); onSelected && onSelected(selKeys, item.key, selected, item, evn); + onChange?.(selKeys); } return (
    diff --git a/website/src/routes/components/tree-checked/index.tsx b/website/src/routes/components/tree-checked/index.tsx index 80b40e9143..70cf8e806f 100644 --- a/website/src/routes/components/tree-checked/index.tsx +++ b/website/src/routes/components/tree-checked/index.tsx @@ -1,11 +1,11 @@ -import React from 'react'; -import { TreeChecked, Row, Col, Card, Icon } from 'uiw'; +import React, { useRef } from 'react'; import Markdown from '../../../components/Markdown'; +import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; export default () => ( { const md = await import('uiw/node_modules/@uiw/react-tree-checked/README.md'); return md.default || md; From bd4f98b12a39af2863e43d88413140d0b379d5ba Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 12:06:38 +0800 Subject: [PATCH 301/575] =?UTF-8?q?clean:=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) delete mode 100755 debug diff --git a/debug b/debug deleted file mode 100755 index 900d903e65..0000000000 --- a/debug +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -for compName in $* -do - (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch - (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm - # lerna exec --scope @uiw/react-$compName -- tsbb build --target react - lerna bootstrap --hoist --scope @uiw/react-$compName -done - diff --git a/package.json b/package.json index ec81842642..14b3c2bbc5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From ffb12da3d121030bfea32bcaa241b5f4dbe31dcd Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 15:34:04 +0800 Subject: [PATCH 302/575] =?UTF-8?q?style(SearchTree):=20=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=97=A0=E6=B3=95=E6=92=91=E6=BB=A1=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E9=97=AE=E9=A2=98=20#611?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- packages/react-search-select/src/style/index.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 0f2880cc2c..ce38712022 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -233,7 +233,7 @@ export default function SearchSelect(props: SearchSelectProps) { > {isMultiple ? (
    -
    +
    {isMultiple && selectedValue.slice(0, maxTagCount).map((item, index) => { return ( diff --git a/packages/react-search-select/src/style/index.less b/packages/react-search-select/src/style/index.less index b42b0aa151..5d6e3753e5 100644 --- a/packages/react-search-select/src/style/index.less +++ b/packages/react-search-select/src/style/index.less @@ -5,7 +5,8 @@ input { box-shadow: none; padding: 0px; - height: 20px; + min-width: 50px; + height: 22px; } .w-input-inner { From c16e365fe0384485e56406049a2edf69f7c3227c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 15:41:56 +0800 Subject: [PATCH 303/575] =?UTF-8?q?style(SearchSelect):=20=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E6=A0=B7=E5=BC=8F=E6=97=A0=E6=B3=95=E6=92=91=E6=BB=A1?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/src/SearchTagInput.tsx | 4 ++-- packages/react-search-tree/src/style/index.less | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index a9ee568378..ba7a20d55d 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -134,7 +134,7 @@ function SearchTagInput(props: SearchTagInputPro style={{ minWidth: 200, maxWidth: 'none', ...style }} >
    -
    +
    {selectedOption.map((item, index) => { return ( (props: SearchTagInputPro placeholder={selectedOption.length ? '' : placeholder} />
    - + {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( )} diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less index e056ac9eb1..81e81bc2dc 100644 --- a/packages/react-search-tree/src/style/index.less +++ b/packages/react-search-tree/src/style/index.less @@ -6,6 +6,7 @@ box-shadow: none; padding: 0px; height: 20px; + min-width: 50px; } .w-input-inner { From 995ceb14e90fe572688b1a024d5839bb34e02595 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 7 Mar 2022 09:29:37 +0800 Subject: [PATCH 304/575] =?UTF-8?q?style(DateInput):DateInput=E5=BC=B9?= =?UTF-8?q?=E5=B1=82=E8=A2=ABModal=E5=BC=B9=E5=B1=82=E9=81=AE=E7=9B=96=20#?= =?UTF-8?q?616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index d2e24710ec..9658824346 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 1001; + z-index: 990; &-inner { padding-bottom: 20px; background: #f9f9f9; From 804124c34ab7f116db18145edadb2ff28a36d15b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 4 Mar 2022 16:45:30 +0800 Subject: [PATCH 305/575] website(Layout): Fix example errors. --- website/src/routes/components/layout/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/routes/components/layout/index.tsx b/website/src/routes/components/layout/index.tsx index 289e9bfd24..26afd570bf 100755 --- a/website/src/routes/components/layout/index.tsx +++ b/website/src/routes/components/layout/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { Layout, Divider } from 'uiw'; +import * as uiw from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('@uiw/react-layout/README-zh.md'); return md.default || md; From 8b78bc7d448492519bfdb3f897c223a5ae8c721a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 4 Mar 2022 11:25:37 +0000 Subject: [PATCH 306/575] released-v4.13.6 --- packages/doc/package.json | 4 +- packages/react-affix/package.json | 4 +- packages/react-alert/package.json | 6 +- packages/react-auto-link/package.json | 2 +- packages/react-avatar/package.json | 6 +- packages/react-back-top/package.json | 4 +- packages/react-badge/package.json | 4 +- packages/react-breadcrumb/package.json | 4 +- packages/react-button-group/package.json | 6 +- packages/react-button/package.json | 6 +- packages/react-calendar/package.json | 8 +- packages/react-card/package.json | 4 +- packages/react-checkbox/package.json | 6 +- packages/react-collapse/package.json | 6 +- packages/react-copy-to-clipboard/package.json | 4 +- packages/react-date-input/package.json | 12 +- packages/react-date-picker/package.json | 8 +- packages/react-descriptions/package.json | 4 +- packages/react-divider/package.json | 4 +- packages/react-drawer/package.json | 10 +- packages/react-dropdown/package.json | 6 +- packages/react-empty/package.json | 2 +- packages/react-file-input/package.json | 8 +- packages/react-form/package.json | 8 +- packages/react-grid/package.json | 4 +- packages/react-icon/package.json | 2 +- packages/react-input/package.json | 6 +- packages/react-list/package.json | 4 +- packages/react-loader/package.json | 4 +- packages/react-menu/package.json | 8 +- packages/react-message/package.json | 8 +- packages/react-modal/package.json | 10 +- packages/react-month-picker/package.json | 12 +- packages/react-notify/package.json | 10 +- packages/react-overlay-trigger/package.json | 6 +- packages/react-overlay/package.json | 6 +- packages/react-pagination/package.json | 6 +- packages/react-pin-code/package.json | 6 +- packages/react-popover/package.json | 4 +- packages/react-portal/package.json | 2 +- packages/react-progress/package.json | 6 +- packages/react-radio/package.json | 4 +- packages/react-rate/package.json | 4 +- packages/react-search-select/package.json | 16 +-- packages/react-search-tree/package.json | 22 ++-- packages/react-select/package.json | 4 +- packages/react-slider/package.json | 4 +- packages/react-steps/package.json | 6 +- packages/react-switch/package.json | 4 +- packages/react-table/package.json | 4 +- packages/react-tabs/package.json | 4 +- packages/react-tag/package.json | 4 +- packages/react-textarea/package.json | 4 +- packages/react-time-picker/package.json | 10 +- packages/react-tooltip/package.json | 6 +- packages/react-tree-checked/package.json | 8 +- packages/react-tree/package.json | 6 +- packages/uiw/package.json | 114 +++++++++--------- packages/utils/package.json | 2 +- website/package.json | 4 +- 60 files changed, 234 insertions(+), 236 deletions(-) diff --git a/packages/doc/package.json b/packages/doc/package.json index b15b4a871f..0347e699e9 100644 --- a/packages/doc/package.json +++ b/packages/doc/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/doc", - "version": "4.13.5", + "version": "4.13.6", "description": "UIW documentation website.", "homepage": "https://uiwjs.github.io", "files": [ @@ -12,8 +12,6 @@ }, "keywords": [ "design", - "document", - "doc", "uiw", "uiw-react", "react.js", diff --git a/packages/react-affix/package.json b/packages/react-affix/package.json index df89930566..baf1c467af 100644 --- a/packages/react-affix/package.json +++ b/packages/react-affix/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-affix", - "version": "4.13.5", + "version": "4.13.6", "description": "Affix component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/affix", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-alert/package.json b/packages/react-alert/package.json index 4488ab6bd4..d7ede108e8 100644 --- a/packages/react-alert/package.json +++ b/packages/react-alert/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-alert", - "version": "4.13.5", + "version": "4.13.6", "description": "Alert component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/alert", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-modal": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-modal": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-auto-link/package.json b/packages/react-auto-link/package.json index 44bf9691c6..f151b666b4 100644 --- a/packages/react-auto-link/package.json +++ b/packages/react-auto-link/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-auto-link", - "version": "4.13.5", + "version": "4.13.6", "description": "AutoLink component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/auto-link", diff --git a/packages/react-avatar/package.json b/packages/react-avatar/package.json index a55e873146..737dc66e20 100644 --- a/packages/react-avatar/package.json +++ b/packages/react-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-avatar", - "version": "4.13.5", + "version": "4.13.6", "description": "Avatar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-back-top/package.json b/packages/react-back-top/package.json index a205d3db89..2600d1954a 100644 --- a/packages/react-back-top/package.json +++ b/packages/react-back-top/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-back-top", - "version": "4.13.5", + "version": "4.13.6", "description": "BackTop component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/back-top", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-badge/package.json b/packages/react-badge/package.json index 2f0b51e545..5546b6db61 100644 --- a/packages/react-badge/package.json +++ b/packages/react-badge/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-badge", - "version": "4.13.5", + "version": "4.13.6", "description": "Badge component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/badge", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-breadcrumb/package.json b/packages/react-breadcrumb/package.json index 4241509722..b905249ae2 100644 --- a/packages/react-breadcrumb/package.json +++ b/packages/react-breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-breadcrumb", - "version": "4.13.5", + "version": "4.13.6", "description": "Breadcrumb component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/breadcrumb", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-button-group/package.json b/packages/react-button-group/package.json index 89a7038b5e..5ebc8a11c1 100644 --- a/packages/react-button-group/package.json +++ b/packages/react-button-group/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button-group", - "version": "4.13.5", + "version": "4.13.6", "description": "ButtonGroup component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button-group", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-button/package.json b/packages/react-button/package.json index 860e41ee5f..5d06fda623 100644 --- a/packages/react-button/package.json +++ b/packages/react-button/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-button", - "version": "4.13.5", + "version": "4.13.6", "description": "Button component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/button", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index 2619a037aa..0c821e34c7 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-calendar", - "version": "4.13.5", + "version": "4.13.6", "description": "Calendar component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/calendar", @@ -45,8 +45,8 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-date-picker": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-card/package.json b/packages/react-card/package.json index 4f9a89e85f..2c7b85a5c5 100644 --- a/packages/react-card/package.json +++ b/packages/react-card/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-card", - "version": "4.13.5", + "version": "4.13.6", "description": "Card component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/card", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-checkbox/package.json b/packages/react-checkbox/package.json index 9c916fa169..4457321f50 100644 --- a/packages/react-checkbox/package.json +++ b/packages/react-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-checkbox", - "version": "4.13.5", + "version": "4.13.6", "description": "Checkbox component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/checkbox", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-radio": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-collapse/package.json b/packages/react-collapse/package.json index 717ec45e33..ba64509d14 100644 --- a/packages/react-collapse/package.json +++ b/packages/react-collapse/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-collapse", - "version": "4.13.5", + "version": "4.13.6", "description": "Collapse component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/collapse", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5", + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6", "react-transition-group": "~4.4.2" } } diff --git a/packages/react-copy-to-clipboard/package.json b/packages/react-copy-to-clipboard/package.json index ced040ec32..fc7dd17ac3 100644 --- a/packages/react-copy-to-clipboard/package.json +++ b/packages/react-copy-to-clipboard/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-copy-to-clipboard", - "version": "4.13.5", + "version": "4.13.6", "description": "CpyToClipboard component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/copy-to-clipboard", @@ -45,6 +45,6 @@ }, "dependencies": { "@uiw/copy-to-clipboard": "~1.0.11", - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-date-input/package.json b/packages/react-date-input/package.json index 8db2f49274..f81940e263 100644 --- a/packages/react-date-input/package.json +++ b/packages/react-date-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-input", - "version": "4.13.5", + "version": "4.13.6", "description": "DateInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-input", @@ -45,10 +45,10 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-date-picker": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/react-popover": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-date-picker": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/react-popover": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-date-picker/package.json b/packages/react-date-picker/package.json index 8b30676217..e604b2b69b 100644 --- a/packages/react-date-picker/package.json +++ b/packages/react-date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-date-picker", - "version": "4.13.5", + "version": "4.13.6", "description": "DatePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/date-picker", @@ -45,8 +45,8 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-time-picker": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/react-time-picker": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-descriptions/package.json b/packages/react-descriptions/package.json index 30f497a7ca..5ea674e334 100644 --- a/packages/react-descriptions/package.json +++ b/packages/react-descriptions/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-descriptions", - "version": "4.13.5", + "version": "4.13.6", "description": "Descriptions component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/descriptions", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-divider/package.json b/packages/react-divider/package.json index 63f9a5d518..1cdf309bc0 100644 --- a/packages/react-divider/package.json +++ b/packages/react-divider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-divider", - "version": "4.13.5", + "version": "4.13.6", "description": "Divider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/divider", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-drawer/package.json b/packages/react-drawer/package.json index a9790ab136..2589782b5e 100644 --- a/packages/react-drawer/package.json +++ b/packages/react-drawer/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-drawer", - "version": "4.13.5", + "version": "4.13.6", "description": "Drawer component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/drawer", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-overlay": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-overlay": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-dropdown/package.json b/packages/react-dropdown/package.json index 830a7cdea5..de8cd04a98 100644 --- a/packages/react-dropdown/package.json +++ b/packages/react-dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-dropdown", - "version": "4.13.5", + "version": "4.13.6", "description": "Dropdown component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/dropdown", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-overlay-trigger": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-empty/package.json b/packages/react-empty/package.json index 2e99389efc..b145ff967e 100644 --- a/packages/react-empty/package.json +++ b/packages/react-empty/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-empty", - "version": "4.13.5", + "version": "4.13.6", "description": "Empty component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/empty", diff --git a/packages/react-file-input/package.json b/packages/react-file-input/package.json index e7121cb04c..c5e85ba202 100644 --- a/packages/react-file-input/package.json +++ b/packages/react-file-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-file-input", - "version": "4.13.5", + "version": "4.13.6", "description": "FileInput component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/file-input", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-input": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-input": "^4.13.6" } } diff --git a/packages/react-form/package.json b/packages/react-form/package.json index eca4cb896a..2bab680c54 100644 --- a/packages/react-form/package.json +++ b/packages/react-form/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-form", - "version": "4.13.5", + "version": "4.13.6", "description": "Form component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/form", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-grid": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-grid": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-grid/package.json b/packages/react-grid/package.json index c7d9d27dca..e266349745 100644 --- a/packages/react-grid/package.json +++ b/packages/react-grid/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-grid", - "version": "4.13.5", + "version": "4.13.6", "description": "Grid component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/grid", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-icon/package.json b/packages/react-icon/package.json index 487337e505..ddd16c1f20 100644 --- a/packages/react-icon/package.json +++ b/packages/react-icon/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-icon", - "version": "4.13.5", + "version": "4.13.6", "description": "Icon component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/icon", diff --git a/packages/react-input/package.json b/packages/react-input/package.json index 6272404559..c8219ceb21 100644 --- a/packages/react-input/package.json +++ b/packages/react-input/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-input", - "version": "4.13.5", + "version": "4.13.6", "description": "Input component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/input", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-list/package.json b/packages/react-list/package.json index 1f137cb5a7..fd48b87a0d 100644 --- a/packages/react-list/package.json +++ b/packages/react-list/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-list", - "version": "4.13.5", + "version": "4.13.6", "description": "List component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/list", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-loader/package.json b/packages/react-loader/package.json index 17829f6d3f..71b16a2e05 100644 --- a/packages/react-loader/package.json +++ b/packages/react-loader/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-loader", - "version": "4.13.5", + "version": "4.13.6", "description": "Loader component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/loader", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-menu/package.json b/packages/react-menu/package.json index e178185481..2db1756046 100644 --- a/packages/react-menu/package.json +++ b/packages/react-menu/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-menu", - "version": "4.13.5", + "version": "4.13.6", "description": "Menu component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/menu", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/react-overlay-trigger": "^4.13.5", - "@uiw/utils": "^4.13.5", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-overlay-trigger": "^4.13.6", + "@uiw/utils": "^4.13.6", "react-transition-group": "~4.4.2" } } diff --git a/packages/react-message/package.json b/packages/react-message/package.json index 465a622d5f..4f96010dae 100644 --- a/packages/react-message/package.json +++ b/packages/react-message/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-message", - "version": "4.13.5", + "version": "4.13.6", "description": "Message component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/message", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5", + "@uiw/react-button": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6", "react-transition-group": "~4.4.2" } } diff --git a/packages/react-modal/package.json b/packages/react-modal/package.json index eb8815d089..63296febec 100644 --- a/packages/react-modal/package.json +++ b/packages/react-modal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-modal", - "version": "4.13.5", + "version": "4.13.6", "description": "Modal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/modal", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-button": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-overlay": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-overlay": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-month-picker/package.json b/packages/react-month-picker/package.json index 1ea05355cb..cca733c03d 100644 --- a/packages/react-month-picker/package.json +++ b/packages/react-month-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-month-picker", - "version": "4.13.5", + "version": "4.13.6", "description": "MonthPicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/month-picker", @@ -45,10 +45,10 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.5", - "@uiw/react-date-picker": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/react-popover": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/react-date-picker": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/react-popover": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-notify/package.json b/packages/react-notify/package.json index d2b83c3681..fd98f27cbb 100644 --- a/packages/react-notify/package.json +++ b/packages/react-notify/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-notify", - "version": "4.13.5", + "version": "4.13.6", "description": "Notify component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/notify", @@ -44,9 +44,9 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-alert": "^4.13.5", - "@uiw/react-button": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-alert": "^4.13.6", + "@uiw/react-button": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-overlay-trigger/package.json b/packages/react-overlay-trigger/package.json index ea2bbdef05..704a919dbe 100644 --- a/packages/react-overlay-trigger/package.json +++ b/packages/react-overlay-trigger/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay-trigger", - "version": "4.13.5", + "version": "4.13.6", "description": "OverlayTrigger component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay-trigger", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-overlay": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-overlay/package.json b/packages/react-overlay/package.json index da726d8f7f..1342cb8ca2 100644 --- a/packages/react-overlay/package.json +++ b/packages/react-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-overlay", - "version": "4.13.5", + "version": "4.13.6", "description": "Overlay component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/overlay", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-portal": "^4.13.5", - "@uiw/utils": "^4.13.5", + "@uiw/react-portal": "^4.13.6", + "@uiw/utils": "^4.13.6", "react-transition-group": "~4.4.2" } } diff --git a/packages/react-pagination/package.json b/packages/react-pagination/package.json index 297982647f..b780026a49 100644 --- a/packages/react-pagination/package.json +++ b/packages/react-pagination/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pagination", - "version": "4.13.5", + "version": "4.13.6", "description": "Pagination component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pagination", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-select": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-select": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-pin-code/package.json b/packages/react-pin-code/package.json index f2813ca4e8..39346f4ec9 100644 --- a/packages/react-pin-code/package.json +++ b/packages/react-pin-code/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-pin-code", - "version": "4.13.5", + "version": "4.13.6", "description": "PinCode component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/pin-code", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-input": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-input": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-popover/package.json b/packages/react-popover/package.json index 7bfaa6af90..6e6ff2536b 100644 --- a/packages/react-popover/package.json +++ b/packages/react-popover/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-popover", - "version": "4.13.5", + "version": "4.13.6", "description": "Popover component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/popover", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.5" + "@uiw/react-overlay-trigger": "^4.13.6" } } diff --git a/packages/react-portal/package.json b/packages/react-portal/package.json index 3442ee1a54..60932a1c3b 100644 --- a/packages/react-portal/package.json +++ b/packages/react-portal/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-portal", - "version": "4.13.5", + "version": "4.13.6", "description": "Portal component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/portal", diff --git a/packages/react-progress/package.json b/packages/react-progress/package.json index 8affe9d10f..1b6579e485 100644 --- a/packages/react-progress/package.json +++ b/packages/react-progress/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-progress", - "version": "4.13.5", + "version": "4.13.6", "description": "Progress component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/progress", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-radio/package.json b/packages/react-radio/package.json index 7a983aaf30..025584f433 100644 --- a/packages/react-radio/package.json +++ b/packages/react-radio/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-radio", - "version": "4.13.5", + "version": "4.13.6", "description": "Radio component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/radio", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-rate/package.json b/packages/react-rate/package.json index 8f6c642789..e38369aab9 100644 --- a/packages/react-rate/package.json +++ b/packages/react-rate/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-rate", - "version": "4.13.5", + "version": "4.13.6", "description": "Rate component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/rate", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-search-select/package.json b/packages/react-search-select/package.json index a2b849cddb..58fcb544e1 100644 --- a/packages/react-search-select/package.json +++ b/packages/react-search-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-select", - "version": "4.13.5", + "version": "4.13.6", "description": "SearchSelect component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/search-select", @@ -44,12 +44,12 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-dropdown": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/react-loader": "^4.13.5", - "@uiw/react-menu": "^4.13.5", - "@uiw/react-tag": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-dropdown": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/react-loader": "^4.13.6", + "@uiw/react-menu": "^4.13.6", + "@uiw/react-tag": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-search-tree/package.json b/packages/react-search-tree/package.json index 6afd8237ad..fc091ecc7c 100644 --- a/packages/react-search-tree/package.json +++ b/packages/react-search-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-search-tree", - "version": "4.13.5", + "version": "4.13.6", "description": "TreeChecked component", "homepage": "https://uiwjs.github.io/#/components/search-tree", "repository": { @@ -43,15 +43,15 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-card": "^4.13.5", - "@uiw/react-checkbox": "^4.13.5", - "@uiw/react-dropdown": "^4.13.5", - "@uiw/react-empty": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/react-tag": "^4.13.5", - "@uiw/react-tree": "^4.13.5", - "@uiw/react-tree-checked": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-card": "^4.13.6", + "@uiw/react-checkbox": "^4.13.6", + "@uiw/react-dropdown": "^4.13.6", + "@uiw/react-empty": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/react-tag": "^4.13.6", + "@uiw/react-tree": "^4.13.6", + "@uiw/react-tree-checked": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 49bf600afa..7303a9b156 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-select", - "version": "4.13.5", + "version": "4.13.6", "description": "Select component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/select", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-slider/package.json b/packages/react-slider/package.json index c762ba1c01..e1a5598fa4 100644 --- a/packages/react-slider/package.json +++ b/packages/react-slider/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-slider", - "version": "4.13.5", + "version": "4.13.6", "description": "Slider component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/slider", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-steps/package.json b/packages/react-steps/package.json index ec47810609..daa47bb50c 100644 --- a/packages/react-steps/package.json +++ b/packages/react-steps/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-steps", - "version": "4.13.5", + "version": "4.13.6", "description": "Steps component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/steps", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-switch/package.json b/packages/react-switch/package.json index e40a86fa74..e21ab355a0 100644 --- a/packages/react-switch/package.json +++ b/packages/react-switch/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-switch", - "version": "4.13.5", + "version": "4.13.6", "description": "Switch component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/switch", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-radio": "^4.13.5" + "@uiw/react-radio": "^4.13.6" } } diff --git a/packages/react-table/package.json b/packages/react-table/package.json index f9ff4ea824..dd12349705 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-table", - "version": "4.13.5", + "version": "4.13.6", "description": "Table component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/table", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index c8e9be1e8b..3ff9896841 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tabs", - "version": "4.13.5", + "version": "4.13.6", "description": "Tabs component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tabs", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tag/package.json b/packages/react-tag/package.json index 993a003bea..96f4724ada 100644 --- a/packages/react-tag/package.json +++ b/packages/react-tag/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tag", - "version": "4.13.5", + "version": "4.13.6", "description": "Tag component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tag", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-textarea/package.json b/packages/react-textarea/package.json index 3d001adfae..628df5db83 100644 --- a/packages/react-textarea/package.json +++ b/packages/react-textarea/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-textarea", - "version": "4.13.5", + "version": "4.13.6", "description": "Textarea component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/textarea", @@ -44,6 +44,6 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/utils": "^4.13.5" + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-time-picker/package.json b/packages/react-time-picker/package.json index 216e87497a..833aa2f197 100644 --- a/packages/react-time-picker/package.json +++ b/packages/react-time-picker/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-time-picker", - "version": "4.13.5", + "version": "4.13.6", "description": "TimePicker component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/time-picker", @@ -45,9 +45,9 @@ }, "dependencies": { "@uiw/formatter": "~1.3.2", - "@uiw/react-button": "^4.13.5", - "@uiw/react-input": "^4.13.5", - "@uiw/react-popover": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-button": "^4.13.6", + "@uiw/react-input": "^4.13.6", + "@uiw/react-popover": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tooltip/package.json b/packages/react-tooltip/package.json index 5e65372fdb..5fd99cd913 100644 --- a/packages/react-tooltip/package.json +++ b/packages/react-tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tooltip", - "version": "4.13.5", + "version": "4.13.6", "description": "Tooltip component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tooltip", @@ -44,7 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-overlay-trigger": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-overlay-trigger": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tree-checked/package.json b/packages/react-tree-checked/package.json index 24f8b1ab56..86d55ec1bb 100644 --- a/packages/react-tree-checked/package.json +++ b/packages/react-tree-checked/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree-checked", - "version": "4.13.5", + "version": "4.13.6", "description": "TreeChecked component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree-checked", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-checkbox": "^4.13.5", - "@uiw/react-tree": "^4.13.5", - "@uiw/utils": "^4.13.5" + "@uiw/react-checkbox": "^4.13.6", + "@uiw/react-tree": "^4.13.6", + "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tree/package.json b/packages/react-tree/package.json index 16e6343a64..782eceb98c 100644 --- a/packages/react-tree/package.json +++ b/packages/react-tree/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/react-tree", - "version": "4.13.5", + "version": "4.13.6", "description": "Tree component", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io/#/components/tree", @@ -44,8 +44,8 @@ "react-dom": ">=16.9.0" }, "dependencies": { - "@uiw/react-icon": "^4.13.5", - "@uiw/utils": "^4.13.5", + "@uiw/react-icon": "^4.13.6", + "@uiw/utils": "^4.13.6", "react-transition-group": "~4.4.2" } } diff --git a/packages/uiw/package.json b/packages/uiw/package.json index 76a30398f5..90829734ac 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -1,6 +1,6 @@ { "name": "uiw", - "version": "4.13.5", + "version": "4.13.6", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "author": "Kenny Wong ", "homepage": "https://uiwjs.github.io", @@ -56,64 +56,64 @@ "@types/react": "~17.0.39", "@types/react-dom": "~17.0.11", "@uiw/formatter": "~1.3.2", - "@uiw/react-affix": "^4.13.5", - "@uiw/react-alert": "^4.13.5", - "@uiw/react-auto-link": "^4.13.5", - "@uiw/react-avatar": "^4.13.5", - "@uiw/react-back-top": "^4.13.5", - "@uiw/react-badge": "^4.13.5", - "@uiw/react-breadcrumb": "^4.13.5", - "@uiw/react-button": "^4.13.5", - "@uiw/react-button-group": "^4.13.5", - "@uiw/react-calendar": "^4.13.5", - "@uiw/react-card": "^4.13.5", - "@uiw/react-checkbox": "^4.13.5", - "@uiw/react-collapse": "^4.13.5", - "@uiw/react-copy-to-clipboard": "^4.13.5", - "@uiw/react-date-input": "^4.13.5", - "@uiw/react-date-picker": "^4.13.5", - "@uiw/react-descriptions": "^4.13.5", - "@uiw/react-divider": "^4.13.5", - "@uiw/react-drawer": "^4.13.5", - "@uiw/react-dropdown": "^4.13.5", - "@uiw/react-empty": "^4.13.5", - "@uiw/react-file-input": "^4.13.5", - "@uiw/react-form": "^4.13.5", - "@uiw/react-grid": "^4.13.5", - "@uiw/react-icon": "^4.13.5", - "@uiw/react-input": "^4.13.5", + "@uiw/react-affix": "^4.13.6", + "@uiw/react-alert": "^4.13.6", + "@uiw/react-auto-link": "^4.13.6", + "@uiw/react-avatar": "^4.13.6", + "@uiw/react-back-top": "^4.13.6", + "@uiw/react-badge": "^4.13.6", + "@uiw/react-breadcrumb": "^4.13.6", + "@uiw/react-button": "^4.13.6", + "@uiw/react-button-group": "^4.13.6", + "@uiw/react-calendar": "^4.13.6", + "@uiw/react-card": "^4.13.6", + "@uiw/react-checkbox": "^4.13.6", + "@uiw/react-collapse": "^4.13.6", + "@uiw/react-copy-to-clipboard": "^4.13.6", + "@uiw/react-date-input": "^4.13.6", + "@uiw/react-date-picker": "^4.13.6", + "@uiw/react-descriptions": "^4.13.6", + "@uiw/react-divider": "^4.13.6", + "@uiw/react-drawer": "^4.13.6", + "@uiw/react-dropdown": "^4.13.6", + "@uiw/react-empty": "^4.13.6", + "@uiw/react-file-input": "^4.13.6", + "@uiw/react-form": "^4.13.6", + "@uiw/react-grid": "^4.13.6", + "@uiw/react-icon": "^4.13.6", + "@uiw/react-input": "^4.13.6", "@uiw/react-layout": "~4.10.0", - "@uiw/react-list": "^4.13.5", - "@uiw/react-loader": "^4.13.5", - "@uiw/react-menu": "^4.13.5", - "@uiw/react-message": "^4.13.5", - "@uiw/react-modal": "^4.13.5", - "@uiw/react-month-picker": "^4.13.5", - "@uiw/react-notify": "^4.13.5", - "@uiw/react-overlay": "^4.13.5", - "@uiw/react-overlay-trigger": "^4.13.5", - "@uiw/react-pagination": "^4.13.5", - "@uiw/react-pin-code": "^4.13.5", - "@uiw/react-popover": "^4.13.5", - "@uiw/react-portal": "^4.13.5", - "@uiw/react-progress": "^4.13.5", - "@uiw/react-radio": "^4.13.5", - "@uiw/react-rate": "^4.13.5", - "@uiw/react-search-select": "^4.13.5", - "@uiw/react-search-tree": "^4.13.5", - "@uiw/react-select": "^4.13.5", - "@uiw/react-slider": "^4.13.5", + "@uiw/react-list": "^4.13.6", + "@uiw/react-loader": "^4.13.6", + "@uiw/react-menu": "^4.13.6", + "@uiw/react-message": "^4.13.6", + "@uiw/react-modal": "^4.13.6", + "@uiw/react-month-picker": "^4.13.6", + "@uiw/react-notify": "^4.13.6", + "@uiw/react-overlay": "^4.13.6", + "@uiw/react-overlay-trigger": "^4.13.6", + "@uiw/react-pagination": "^4.13.6", + "@uiw/react-pin-code": "^4.13.6", + "@uiw/react-popover": "^4.13.6", + "@uiw/react-portal": "^4.13.6", + "@uiw/react-progress": "^4.13.6", + "@uiw/react-radio": "^4.13.6", + "@uiw/react-rate": "^4.13.6", + "@uiw/react-search-select": "^4.13.6", + "@uiw/react-search-tree": "^4.13.6", + "@uiw/react-select": "^4.13.6", + "@uiw/react-slider": "^4.13.6", "@uiw/react-split": "~5.8.5", - "@uiw/react-steps": "^4.13.5", - "@uiw/react-switch": "^4.13.5", - "@uiw/react-table": "^4.13.5", - "@uiw/react-tabs": "^4.13.5", - "@uiw/react-tag": "^4.13.5", - "@uiw/react-textarea": "^4.13.5", - "@uiw/react-time-picker": "^4.13.5", - "@uiw/react-tooltip": "^4.13.5", - "@uiw/react-tree": "^4.13.5", - "@uiw/react-tree-checked": "^4.13.5" + "@uiw/react-steps": "^4.13.6", + "@uiw/react-switch": "^4.13.6", + "@uiw/react-table": "^4.13.6", + "@uiw/react-tabs": "^4.13.6", + "@uiw/react-tag": "^4.13.6", + "@uiw/react-textarea": "^4.13.6", + "@uiw/react-time-picker": "^4.13.6", + "@uiw/react-tooltip": "^4.13.6", + "@uiw/react-tree": "^4.13.6", + "@uiw/react-tree-checked": "^4.13.6" }, "browserslist": { "production": [ diff --git a/packages/utils/package.json b/packages/utils/package.json index 2a5ed8005d..832b0851d7 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@uiw/utils", - "version": "4.13.5", + "version": "4.13.6", "description": "utils tools for uiw", "author": "Kenny Wong ", "homepage": "https://github.com/uiwjs/uiw/tree/master/packages/utils#readme", diff --git a/website/package.json b/website/package.json index 54d5728193..f92587f718 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "4.13.5", + "version": "4.13.6", "description": "A high quality UI Toolkit, A Component Library for React 16+.", "private": true, "sideEffects": true, @@ -39,7 +39,7 @@ "react": "~17.0.2", "react-dom": "~17.0.2", "react-router-dom": "~6.2.2", - "uiw": "^4.13.5" + "uiw": "^4.13.6" }, "devDependencies": { "@kkt/less-modules": "~7.1.1", From b0f0226c79c624581d6adc0f997504d792a57011 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 09:41:46 +0800 Subject: [PATCH 307/575] =?UTF-8?q?feat(Tabs):=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E8=BF=87=E5=A4=9A,=E8=B6=85=E8=BF=87=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E6=97=B6,=E6=94=B6=E7=BC=A9=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tabs/README.md | 44 ++++++- packages/react-tabs/package.json | 1 + packages/react-tabs/src/index.tsx | 154 +++++++++++++++++------ packages/react-tabs/src/style/index.less | 11 ++ 4 files changed, 170 insertions(+), 40 deletions(-) diff --git a/packages/react-tabs/README.md b/packages/react-tabs/README.md index 05fb130aca..c4eb458f34 100644 --- a/packages/react-tabs/README.md +++ b/packages/react-tabs/README.md @@ -146,7 +146,45 @@ class Demo extends React.Component { ReactDOM.render(, _mount_); ``` -## Tabs.Porps +### 超出收缩 + +当pane过多,超出宽度度时,会将超出部分收缩到下拉选项 + + +```jsx +import React from 'react'; +import ReactDOM from 'react-dom'; +import { Tabs } from 'uiw'; + +class Demo extends React.Component { + +render() { + const panes=[] + for (let index = 0; index < 20; index++) { + panes.push({label:`Tabs-${index}`,key:index}) + } + + return ( + { + console.log("=>", key, tab); + }}> + {panes.map(item=>{ + return( + {item.label} + ) + })} + + ); + } +} +ReactDOM.render(, _mount_); +``` + + +## Tabs.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | @@ -154,10 +192,10 @@ ReactDOM.render(, _mount_); | activeKey | 当前激活 `tab` 面板的 `key` | String | - | | onTabClick | `tab` 被点击的回调 | Function | `(item, key, e)=>{}` | -## Tabs.Pane.Porps +## Tabs.Pane.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | | label | 选项卡标题 | String,Node | - | | key | 对应 activeKey | String,Node | - | -| disabled | 标签是禁用不可点击 | Boolean | `false` | \ No newline at end of file +| disabled | 标签是禁用不可点击 | Boolean | `false` | diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index 3ff9896841..7b6041be1a 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -44,6 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { + "@uiw/react-popover": "^4.13.6", "@uiw/utils": "^4.13.6" } } diff --git a/packages/react-tabs/src/index.tsx b/packages/react-tabs/src/index.tsx index 1639921ee3..959716cce7 100644 --- a/packages/react-tabs/src/index.tsx +++ b/packages/react-tabs/src/index.tsx @@ -1,7 +1,8 @@ -import React, { useEffect, useState, useRef } from 'react'; +import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'; import { IProps, HTMLDivProps } from '@uiw/utils'; import Pane from './Pane'; import './style/index.less'; +import Popover from '@uiw/react-popover'; export * from './Pane'; @@ -15,6 +16,14 @@ export interface TabsProps extends IProps, HTMLDivProps { onTabClick?: (key: string, item: React.ReactElement, e: React.MouseEvent) => void; } +type flowNavType = { + content: number; + nav: Array>; + flowLeft: number; + displayStart: number; + displayEnd: number; +}; + export default function Tabs(props: TabsProps) { const { prefixCls = 'w-tabs', @@ -25,11 +34,70 @@ export default function Tabs(props: TabsProps) { onTabClick, ...elementProps } = props; + const [activeKey, setActiveKey] = useState(props.activeKey); const [slideStyle, setSlideStyle] = useState({ width: 0, left: 0 }); const activeItem = useRef(); const cls = [prefixCls, className, type ? `${prefixCls}-${type}` : null].filter(Boolean).join(' ').trim(); + const [flowNav, flowNavSet] = useState({ + content: 0, + nav: [], + flowLeft: -1, + displayStart: 0, + displayEnd: 0, + }); + const [hiddenNav, hiddenNavSet] = useState>([]); + const deviation = 15; + + const [nodes, nodesSet] = useState(); + const divContentRef = useCallback((node) => { + if (node !== null) { + nodesSet(nodes); + node.addEventListener('scroll', (e: any) => { + const { clientWidth, scrollLeft } = e.target; + flowNav.displayStart = scrollLeft; + flowNav.displayEnd = clientWidth + scrollLeft; + flowNavSet({ ...flowNav }); + }); + flowNav.displayEnd = node.getBoundingClientRect().width; + flowNavSet({ ...flowNav }); + } + }, []); + + const divNavRef = useCallback((node, key: number) => { + if (node !== null) { + node.addEventListener('click', (e: any) => { + activeItem.current = node; + }); + divNavWidthChange(node.getBoundingClientRect().width, key); + } + }, []); + + const divNavWidthChange = (width: number, index: number) => { + let curWidth = 0; + flowNav.nav.slice(0, index + 1).forEach((nav) => (curWidth += nav.width)); + flowNav.nav[index] = { width, curWidth: Math.floor(curWidth), index }; + flowNavSet(flowNav); + }; + + useEffect(() => { + showHideenNav(); + }, [flowNav.displayEnd > flowNav.nav[flowNav.nav.length - 1]?.curWidth]); + + const showHideenNav = () => { + const hiddenNav: Array = []; + if (flowNav.nav.length > 0) { + flowNav.nav.forEach((item) => { + const curWidth = item.curWidth - deviation; + if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) { + hiddenNav.push(item.index); + } + }); + hiddenNavSet(hiddenNav); + } + }; + useEffect(() => setActiveKey(props.activeKey), [props.activeKey]); useEffect(() => calcSlideStyle(), [activeKey]); @@ -44,44 +112,29 @@ export default function Tabs(props: TabsProps) { return (
    -
    -
    - {React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { - if (!item) { - return null; - } - const divProps: HTMLDivProps = { - className: [ - `${prefixCls}-item`, - item.key === activeKey ? 'active' : null, - item.props.disabled ? 'disabled' : null, - ] - .filter(Boolean) - .join(' ') - .trim(), - children: item.props.label, - }; - if (!item.props.disabled) { - divProps.onClick = (e: React.MouseEvent) => { - setActiveKey(item.key as string); - onTabClick && onTabClick(item.key as string, item, e); - calcSlideStyle(); - }; - } - return ( -
    { - if (node && item.key === activeKey) { - activeItem.current = node; - } - }} - {...divProps} - /> - ); - })} +
    +
    +
    + {renderNav(children)} +
    + {hiddenNav.length > 0 && ( + + {renderNav(hiddenNav.map((idx) => (children as Array)[idx]))} +
    + } + > +
    + +
    + + )}
    {React.Children.map(children, (item: any) => { if (!item || activeKey !== item.key) { @@ -91,4 +144,31 @@ export default function Tabs(props: TabsProps) { })}
    ); + + function renderNav(children: React.ReactNode): React.ReactNode { + return React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { + if (!item) { + return null; + } + const divProps: HTMLDivProps = { + className: [ + `${prefixCls}-item`, + item.key === activeKey ? 'active' : null, + item.props.disabled ? 'disabled' : null, + ] + .filter(Boolean) + .join(' ') + .trim(), + children: item.props.label, + }; + if (!item.props.disabled) { + divProps.onClick = (e: React.MouseEvent) => { + setActiveKey(item.key as string); + onTabClick && onTabClick(item.key as string, item, e); + calcSlideStyle(); + }; + } + return
    divNavRef(ref, key)} {...divProps} />; + }); + } } diff --git a/packages/react-tabs/src/style/index.less b/packages/react-tabs/src/style/index.less index 09ab8a4feb..9012b74c93 100644 --- a/packages/react-tabs/src/style/index.less +++ b/packages/react-tabs/src/style/index.less @@ -3,10 +3,15 @@ .@{w-tabs} { &-bar { position: relative; + overflow-x: auto; } &-nav { position: relative; } + &-nav-hidden { + display: flex; + flex-direction: column; + } &-item { padding: 7px 10px; display: inline-block; @@ -26,6 +31,12 @@ color: rgba(0, 0, 0, 0.25); } } + &-flow-content { + margin-left: 5px; + padding: 0px 10px 0px 10px; + box-shadow: 1px 0px 0px #d9d9d9 inset; + cursor: pointer; + } } .@{w-tabs} { From 01265786225a20fcc575ece95f1abbb3758bbe0e Mon Sep 17 00:00:00 2001 From: WmW <48251883+nullptr-z@users.noreply.github.com> Date: Tue, 8 Mar 2022 10:07:33 +0800 Subject: [PATCH 308/575] =?UTF-8?q?feat(Tabs):=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E8=BF=87=E5=A4=9A,=E8=B6=85=E8=BF=87=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E6=97=B6,=E6=94=B6=E7=BC=A9=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E9=83=A8=E5=88=86=20#559=20(#626)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tabs/README.md | 44 ++++++- packages/react-tabs/package.json | 1 + packages/react-tabs/src/index.tsx | 154 +++++++++++++++++------ packages/react-tabs/src/style/index.less | 11 ++ 4 files changed, 170 insertions(+), 40 deletions(-) diff --git a/packages/react-tabs/README.md b/packages/react-tabs/README.md index 05fb130aca..c4eb458f34 100644 --- a/packages/react-tabs/README.md +++ b/packages/react-tabs/README.md @@ -146,7 +146,45 @@ class Demo extends React.Component { ReactDOM.render(, _mount_); ``` -## Tabs.Porps +### 超出收缩 + +当pane过多,超出宽度度时,会将超出部分收缩到下拉选项 + + +```jsx +import React from 'react'; +import ReactDOM from 'react-dom'; +import { Tabs } from 'uiw'; + +class Demo extends React.Component { + +render() { + const panes=[] + for (let index = 0; index < 20; index++) { + panes.push({label:`Tabs-${index}`,key:index}) + } + + return ( + { + console.log("=>", key, tab); + }}> + {panes.map(item=>{ + return( + {item.label} + ) + })} + + ); + } +} +ReactDOM.render(, _mount_); +``` + + +## Tabs.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | @@ -154,10 +192,10 @@ ReactDOM.render(, _mount_); | activeKey | 当前激活 `tab` 面板的 `key` | String | - | | onTabClick | `tab` 被点击的回调 | Function | `(item, key, e)=>{}` | -## Tabs.Pane.Porps +## Tabs.Pane.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | | label | 选项卡标题 | String,Node | - | | key | 对应 activeKey | String,Node | - | -| disabled | 标签是禁用不可点击 | Boolean | `false` | \ No newline at end of file +| disabled | 标签是禁用不可点击 | Boolean | `false` | diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index 5238248575..28a7d43871 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -44,6 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { + "@uiw/react-popover": "^4.13.7", "@uiw/utils": "^4.13.7" } } diff --git a/packages/react-tabs/src/index.tsx b/packages/react-tabs/src/index.tsx index 1639921ee3..959716cce7 100644 --- a/packages/react-tabs/src/index.tsx +++ b/packages/react-tabs/src/index.tsx @@ -1,7 +1,8 @@ -import React, { useEffect, useState, useRef } from 'react'; +import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'; import { IProps, HTMLDivProps } from '@uiw/utils'; import Pane from './Pane'; import './style/index.less'; +import Popover from '@uiw/react-popover'; export * from './Pane'; @@ -15,6 +16,14 @@ export interface TabsProps extends IProps, HTMLDivProps { onTabClick?: (key: string, item: React.ReactElement, e: React.MouseEvent) => void; } +type flowNavType = { + content: number; + nav: Array>; + flowLeft: number; + displayStart: number; + displayEnd: number; +}; + export default function Tabs(props: TabsProps) { const { prefixCls = 'w-tabs', @@ -25,11 +34,70 @@ export default function Tabs(props: TabsProps) { onTabClick, ...elementProps } = props; + const [activeKey, setActiveKey] = useState(props.activeKey); const [slideStyle, setSlideStyle] = useState({ width: 0, left: 0 }); const activeItem = useRef(); const cls = [prefixCls, className, type ? `${prefixCls}-${type}` : null].filter(Boolean).join(' ').trim(); + const [flowNav, flowNavSet] = useState({ + content: 0, + nav: [], + flowLeft: -1, + displayStart: 0, + displayEnd: 0, + }); + const [hiddenNav, hiddenNavSet] = useState>([]); + const deviation = 15; + + const [nodes, nodesSet] = useState(); + const divContentRef = useCallback((node) => { + if (node !== null) { + nodesSet(nodes); + node.addEventListener('scroll', (e: any) => { + const { clientWidth, scrollLeft } = e.target; + flowNav.displayStart = scrollLeft; + flowNav.displayEnd = clientWidth + scrollLeft; + flowNavSet({ ...flowNav }); + }); + flowNav.displayEnd = node.getBoundingClientRect().width; + flowNavSet({ ...flowNav }); + } + }, []); + + const divNavRef = useCallback((node, key: number) => { + if (node !== null) { + node.addEventListener('click', (e: any) => { + activeItem.current = node; + }); + divNavWidthChange(node.getBoundingClientRect().width, key); + } + }, []); + + const divNavWidthChange = (width: number, index: number) => { + let curWidth = 0; + flowNav.nav.slice(0, index + 1).forEach((nav) => (curWidth += nav.width)); + flowNav.nav[index] = { width, curWidth: Math.floor(curWidth), index }; + flowNavSet(flowNav); + }; + + useEffect(() => { + showHideenNav(); + }, [flowNav.displayEnd > flowNav.nav[flowNav.nav.length - 1]?.curWidth]); + + const showHideenNav = () => { + const hiddenNav: Array = []; + if (flowNav.nav.length > 0) { + flowNav.nav.forEach((item) => { + const curWidth = item.curWidth - deviation; + if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) { + hiddenNav.push(item.index); + } + }); + hiddenNavSet(hiddenNav); + } + }; + useEffect(() => setActiveKey(props.activeKey), [props.activeKey]); useEffect(() => calcSlideStyle(), [activeKey]); @@ -44,44 +112,29 @@ export default function Tabs(props: TabsProps) { return (
    -
    -
    - {React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { - if (!item) { - return null; - } - const divProps: HTMLDivProps = { - className: [ - `${prefixCls}-item`, - item.key === activeKey ? 'active' : null, - item.props.disabled ? 'disabled' : null, - ] - .filter(Boolean) - .join(' ') - .trim(), - children: item.props.label, - }; - if (!item.props.disabled) { - divProps.onClick = (e: React.MouseEvent) => { - setActiveKey(item.key as string); - onTabClick && onTabClick(item.key as string, item, e); - calcSlideStyle(); - }; - } - return ( -
    { - if (node && item.key === activeKey) { - activeItem.current = node; - } - }} - {...divProps} - /> - ); - })} +
    +
    +
    + {renderNav(children)} +
    + {hiddenNav.length > 0 && ( + + {renderNav(hiddenNav.map((idx) => (children as Array)[idx]))} +
    + } + > +
    + +
    + + )}
    {React.Children.map(children, (item: any) => { if (!item || activeKey !== item.key) { @@ -91,4 +144,31 @@ export default function Tabs(props: TabsProps) { })}
    ); + + function renderNav(children: React.ReactNode): React.ReactNode { + return React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { + if (!item) { + return null; + } + const divProps: HTMLDivProps = { + className: [ + `${prefixCls}-item`, + item.key === activeKey ? 'active' : null, + item.props.disabled ? 'disabled' : null, + ] + .filter(Boolean) + .join(' ') + .trim(), + children: item.props.label, + }; + if (!item.props.disabled) { + divProps.onClick = (e: React.MouseEvent) => { + setActiveKey(item.key as string); + onTabClick && onTabClick(item.key as string, item, e); + calcSlideStyle(); + }; + } + return
    divNavRef(ref, key)} {...divProps} />; + }); + } } diff --git a/packages/react-tabs/src/style/index.less b/packages/react-tabs/src/style/index.less index 09ab8a4feb..9012b74c93 100644 --- a/packages/react-tabs/src/style/index.less +++ b/packages/react-tabs/src/style/index.less @@ -3,10 +3,15 @@ .@{w-tabs} { &-bar { position: relative; + overflow-x: auto; } &-nav { position: relative; } + &-nav-hidden { + display: flex; + flex-direction: column; + } &-item { padding: 7px 10px; display: inline-block; @@ -26,6 +31,12 @@ color: rgba(0, 0, 0, 0.25); } } + &-flow-content { + margin-left: 5px; + padding: 0px 10px 0px 10px; + box-shadow: 1px 0px 0px #d9d9d9 inset; + cursor: pointer; + } } .@{w-tabs} { From c0f1d2551898a663fa4fe295ab9ae90fc0b5f55a Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 10:26:26 +0800 Subject: [PATCH 309/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E5=AD=97key=E4=B8=BA0=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 34 +++++++++++++++++++++--- packages/react-search-tree/src/index.tsx | 2 +- packages/react-tree/src/index.tsx | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 22871aaad6..bdbfc0ee41 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -58,9 +58,17 @@ const data = [ }, { label: '澳门', key: '3' }, ]; + +const datas =[ + { label: '上海市', key: 0 }, + { label: '北京市', key: 1 }, + { label: '成都市', key: 2 }, +] + const Demo = () => { const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }]) +const [values,valuesSet]=useState([{ label: '北京市', key: 1 }]) const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }]) const onChange=(selectd, selectedAll, isChecked)=>{ @@ -68,12 +76,18 @@ const onChange=(selectd, selectedAll, isChecked)=>{ valueSet(selectedAll) } +const onChanges=(selectd, selectedAll, isChecked)=>{ + console.log('SearchTree-> onChange',selectedAll, selectd, isChecked) + valuesSet(selectedAll) +} + const onChangeSinge=(selectd, selectedAll, isChecked)=>{ console.log('SearchTree-> onChange', selectd, selectedAll, isChecked) valueSingeSet(selectedAll) } return ( + <> @@ -87,8 +101,22 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ placeholder="请输入选择" /> - - + + + + + console.log('singe',searchValue)} + onChange={onChanges} + value={values} + options={datas} + placeholder="请输入选择" + /> + + { placeholder="请输入选择" /> - + ) } ReactDOM.render(, _mount_); diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index a394a30c4d..10036e2feb 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -72,7 +72,7 @@ function SingeTree(props: Omit { const { key, label } = evn; const cur = { key, label } as V; - props.onSelected?.([cur], cur, isChecked); + props.onSelected?.(isChecked ? [cur] : [], cur, isChecked); }; return ( diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index a9bb2a4229..87dad898db 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -193,7 +193,7 @@ export default function Tree(props: TreeProps) { let selKeys = [...(curSelectedKeys as TreeData['key'][])]; const findKey = selKeys.find((v) => v === item.key); let selected = false; - if (!findKey) { + if (!findKey && findKey !== 0) { selected = true; selKeys.push(item.key); } else { From 59a1a70f07bce3a5fe36b4038b2949c3146809ab Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 11:02:32 +0800 Subject: [PATCH 310/575] =?UTF-8?q?fix(Drawer):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E9=97=AE=E9=A2=98,Dropdown=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=20#620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index 9658824346..d2e24710ec 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 990; + z-index: 1001; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index bfc6957ef8..a0c9fb1039 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(990); + const zIndex = useRef(999); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From bf2e1bdad6b32a4259d5fad47330c02233f6c813 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 11:46:58 +0800 Subject: [PATCH 311/575] =?UTF-8?q?revert:=E6=92=A4=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index d2e24710ec..9658824346 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 1001; + z-index: 990; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index a0c9fb1039..bfc6957ef8 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(999); + const zIndex = useRef(990); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From fb9ceb4951a84db66bd4a427c137330c9dcecd18 Mon Sep 17 00:00:00 2001 From: WmW <48251883+nullptr-z@users.noreply.github.com> Date: Tue, 8 Mar 2022 11:58:22 +0800 Subject: [PATCH 312/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E5=AD=97key=E4=B8=BA0=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98=20#618=20(#627)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 34 +++++++++++++++++++++--- packages/react-search-tree/src/index.tsx | 2 +- packages/react-tree/src/index.tsx | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 22871aaad6..bdbfc0ee41 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -58,9 +58,17 @@ const data = [ }, { label: '澳门', key: '3' }, ]; + +const datas =[ + { label: '上海市', key: 0 }, + { label: '北京市', key: 1 }, + { label: '成都市', key: 2 }, +] + const Demo = () => { const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }]) +const [values,valuesSet]=useState([{ label: '北京市', key: 1 }]) const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }]) const onChange=(selectd, selectedAll, isChecked)=>{ @@ -68,12 +76,18 @@ const onChange=(selectd, selectedAll, isChecked)=>{ valueSet(selectedAll) } +const onChanges=(selectd, selectedAll, isChecked)=>{ + console.log('SearchTree-> onChange',selectedAll, selectd, isChecked) + valuesSet(selectedAll) +} + const onChangeSinge=(selectd, selectedAll, isChecked)=>{ console.log('SearchTree-> onChange', selectd, selectedAll, isChecked) valueSingeSet(selectedAll) } return ( + <> @@ -87,8 +101,22 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ placeholder="请输入选择" /> - - + + + + + console.log('singe',searchValue)} + onChange={onChanges} + value={values} + options={datas} + placeholder="请输入选择" + /> + + { placeholder="请输入选择" /> - + ) } ReactDOM.render(, _mount_); diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index a394a30c4d..10036e2feb 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -72,7 +72,7 @@ function SingeTree(props: Omit { const { key, label } = evn; const cur = { key, label } as V; - props.onSelected?.([cur], cur, isChecked); + props.onSelected?.(isChecked ? [cur] : [], cur, isChecked); }; return ( diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index a9bb2a4229..87dad898db 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -193,7 +193,7 @@ export default function Tree(props: TreeProps) { let selKeys = [...(curSelectedKeys as TreeData['key'][])]; const findKey = selKeys.find((v) => v === item.key); let selected = false; - if (!findKey) { + if (!findKey && findKey !== 0) { selected = true; selKeys.push(item.key); } else { From 5772939de060a862301f876162e647cd111cc41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Tue, 8 Mar 2022 11:58:55 +0800 Subject: [PATCH 313/575] =?UTF-8?q?chore(Form):=20Select=20=E8=B7=9FInput?= =?UTF-8?q?=20=E5=9C=A8=E8=A1=A8=E5=8D=95=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E9=94=99=E8=AF=AF=E6=A0=B7=E5=BC=8F=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=20#622=20(#628)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/style/form-item.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-form/src/style/form-item.less b/packages/react-form/src/style/form-item.less index d2d0a0d151..1948d1b741 100644 --- a/packages/react-form/src/style/form-item.less +++ b/packages/react-form/src/style/form-item.less @@ -10,6 +10,10 @@ color: #dc3545; } .w-input-inner, + .w-select, + .w-select-default, + .w-select:hover, + .w-select-default:hover, .w-input-inner:hover, .w-input-inner:focus.w-input-inner:hover, .w-textarea, From a7e526c28a75c7f59c102b0692c5a9d04a86723f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 13:20:28 +0800 Subject: [PATCH 314/575] =?UTF-8?q?fix(Drawer):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E9=97=AE=E9=A2=98,Dropdown=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=20#620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index 9658824346..d2e24710ec 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 990; + z-index: 1001; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index bfc6957ef8..a0c9fb1039 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(990); + const zIndex = useRef(999); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From 191801ead475e4e03ebfa590efb79422129743dd Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 15:48:24 +0800 Subject: [PATCH 315/575] =?UTF-8?q?feat(SearchTree):=20=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BC=98=E5=8C=96=20#629=20#631?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react-search-tree/src/SearchTagInput.tsx | 28 ++++++++++++++----- packages/react-search-tree/src/index.tsx | 4 ++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index ba7a20d55d..2af5714b5e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -29,6 +29,7 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte loading?: boolean; placeholder?: string; emptyOption?: boolean | React.ReactNode; + selectCloseDrop?: boolean; } function SearchTagInput(props: SearchTagInputProps) { @@ -39,6 +40,7 @@ function SearchTagInput(props: SearchTagInputPro disabled = false, allowClear = false, loading = false, + selectCloseDrop = false, className, style, placeholder, @@ -74,7 +76,8 @@ function SearchTagInput(props: SearchTagInputPro const handleSelectChange = (selectedAll: Array, selectd?: V, isChecked: boolean = true) => { setSelectedOption(selectedAll); - onChange && onChange(selectedAll, selectd!, isChecked); + searchValueChange(''); + onChange?.(selectedAll, selectd!, isChecked); }; const removeSelectItem = (index: number) => { @@ -85,11 +88,16 @@ function SearchTagInput(props: SearchTagInputPro }; function handleInputChange(value: string) { - searchValueSet(value); - onSearch?.(value); + setInnerIsOpen(true); + searchValueChange(value); setSelectIconType(value ? 'loading' : ''); } + const searchValueChange = (value: string) => { + searchValueSet(value); + onSearch?.(value); + }; + // 清除选中的值 function resetSelectedValue(e: any) { e.stopPropagation(); @@ -112,18 +120,24 @@ function SearchTagInput(props: SearchTagInputPro const newProps = { ...content.props, - onSelected: handleSelectChange, + onSelected: (selectedAll: Array, selectd?: V, isChecked: boolean = true) => { + setInnerIsOpen(!selectCloseDrop); + handleSelectChange(selectedAll, selectd, isChecked); + }, values: selectedOption, options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]); + }, [JSON.stringify(selectedOption), options, emptyOption]); return ( { + setInnerIsOpen(isOpen); + if (!isOpen) searchValueChange(''); + }} isOpen={innerIsOpen} menu={{newContent}} > diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 10036e2feb..1407b535ae 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -158,7 +158,9 @@ function SearchTree(props: SearchTreeProps) { Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 316/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f2af0dd24c62fe9bb8d6239a143f4170bfe285a1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 317/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e4d23fec9bb7d25e0fc2d059b309cfdc7647e571 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 318/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 54b76bb340164250310cfd07e7985a2942dec85d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 319/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e542436ee0e3b9f2165eace163fa2e0d33566597 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 320/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4667e0b882b235f79971e7ea66812c3a9e68ddd7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 321/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From db3ef7463bb17a51feab4ae327878f6ae790a3a4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 322/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ad68ceba114a0b073ef8d87c56753c13a937ea93 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 323/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c4d0f186487559b0c58808bc69ee01b7952da863 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 324/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d1f6255b4d859142a859406a0b7c9c150f327269 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 325/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5f36b9bca5b2c605f10676ff51976135be9abe41 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 326/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a85151ae2ad79271f23e6a2c1ef9a860328d503e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 327/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c52715108e4549bca35409c74e981fd3df757a6b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 328/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d4d04cde7854575247d03893b0c970bfbb0f0232 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 329/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 168f33b8d2a2aa03981603b6b6b18b2745fa8fbb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 330/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6120a78f67a69baeb58a0de5712c2cbb7a9819e3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 331/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c1385176d71fe76e0dfdf72442105ef2f5ff61bd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 332/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From dc6b641b3ad3860896f45dd452a6c895c97fcb08 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 333/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c9baac82f6408e5a324f0f33213c4960f32ecf66 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 334/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 83dde96892096e6d5e8a3c9a25e717d71b5e2671 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 335/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 32c3045cb0aa89307edc6b54ca9987a17442a9c3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 336/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e83243ed30d9f25dd692802e3c34a69bc137b52a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 337/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2f436184776a2b5a8200f87ae3e07027f3e49dec Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 338/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 37a5a83634323ebb4db1c7bb701813d35933f270 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 339/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7947b283462229ea882a15192e478cc21db23af3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 340/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 14e9b67012fac3d71d0b4e7038d33b19cc2fad90 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 341/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 77c0e6d37d4e73cea10c9a086113633d3721fa09 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 342/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 02d09c0299bced5a19159f845069e302e99b383d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 343/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3f1cbeea4655518f6f521f1c0d133a50ac4da17d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 344/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 208d69d880f9220805d541815c07ceeb3abf1164 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 345/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c6f57f1242bad148733ec3001e03072b6cd90b9e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 346/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6f2a42f14a23f2fe2a189c7dfa3baa67f3fe4f17 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 347/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a9bc9064e983fe7836c607440d413c997cf46dbf Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 348/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From af77182a39fe585c1f3e17e74fff08853adcbcd9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 349/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 986d03f664b296a5ccfd4831dd2c94fbd4abcbee Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 350/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e7366de5e9375c26d6783b764d9584b3d2b6697f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 351/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 84a9f9c5d3082cb0468b57aaad4f54f80107d052 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 352/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3072fa823615f4ad7d59f353ba0e62b6ae17925f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 353/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d728f6aeef99b5998383f9f9a00defcb190a6120 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 354/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d000ebb45d1d08bacc0b2653d8a7efab6b73a82e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 355/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9ce396dfce79b8e405f88181bb1c52bfb9b70578 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 356/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 11d23149457f4a812aec149596ac324bca1d1348 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 357/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 787907d256c40ff7b7acc3c2e87c4830c2187574 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 358/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 20d7cd7b19b49b7af31b35ea0d4b63eb7c2d5b74 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 359/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 510c9f66d99d0934aa70e2729471b575ad335ea9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 360/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4388609beecffd2dee7fcd949dca904e81a661da Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 361/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 185d2d3f022a2f70c423bc1444528e1e289676c9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 362/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ffcfacbc03e140701f8fb734f9dca3f769068ee5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 363/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1a4dd9a6e504c9fead53f68a3935aa77a36ecf63 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 364/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0912113ffb34c21b6fd9ff8a2e69cd06aff992db Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 365/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From de043c08a6c154d0c022a831e6e6cfca9e807980 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 366/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 32639e4d9d81dcc0e7f5be16502db39e5cfc3444 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 367/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f525988d5139e263639ff352a48a1c651a9507d2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 368/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7602f122c64188301f389b65ce8d8a6f7e6c4e96 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 369/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d0ecfb2a390912a37a8e265ba0c891facbfaeec0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 370/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From bd5c8f678ea4f67c16a2bddc89bbfa5a5af5b083 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 371/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8882666f7c2779f5f0308ef236d0a1df7fe1b8e3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 372/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0cd679c717a1df39d63cd61a951c03840bfecc99 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 373/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c9f846f82405e76abf832cb0d22ad093c496e30a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 374/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2ffb7c5c5e99f9edd263be283527fa5130150d7b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 375/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3a7f9589445b5c4eedf616149330deabf8964c9e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 376/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b9364558165abfe5f435e22aeeb1567231664aef Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 377/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 60434b73f81a50f5c60289f7a7ca772077932132 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 378/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 388324b7a8b6125dffae1bec3150b5cc6fe2fd86 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 379/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b0c37261f4d517f1ec0d3c07b0d122e0605ad93c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 380/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b710f38f7f47f0bf0655789676977e9162d054bb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 381/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ebfcf5bd1f1fdb75dabf5d446d120af018636789 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 382/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1837b3f199e1acb610d7e4bb5247ee1c0c5add90 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 383/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5bf66edea2f4857869120700ae5b2676210d9fa7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 384/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4119d30a7e56426ef402deecd579126cc092ac1f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 385/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b91773659fd70d8646591434a9119a106c343063 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 386/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 79fc7979594fa3ba9ba207aa2521db63922dc76a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 387/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b27576695a069b9815659187e59040fc53e107de Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 388/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 00f9443a89beb3f2563cd20dae030a6b6359054d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 389/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2b081f63208c291b72e907943a3affedea9b5451 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 390/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b65d597797857e456fe6268b273ec8ba23af490e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 391/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 3d2c38f4553ead016c731f3e7020444fa343acba Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 392/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1a3dad02397666ddbbce58bc3550e2f82aa359c1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 393/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 51827facbb342aa37b9fd23d288bd4bae44b019d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 394/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 526df26b0fab99c5668915e0713ad5a24873dfb6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 395/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8ae9074d271db259d61c2fc94471092091a1ad39 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 396/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 448181e6d2cdfe1b3cb03d57c1d59c4077ee80e7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 397/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 83144a8bf60afc41eeae700c6c4d3c2882547d31 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 398/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 42022a18d52029c64b853e5ce6440ac23a958b2a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 399/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5c742b06337330bd81cabc10e3d896bf49f129e3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 400/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e03e7fa6187c3ac5e21fb6b73b40a0cd294f73ae Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 401/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ef264fc8a1539cadc0a9583de75d825e791b0043 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 402/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6ff533899230afa7daf4116e4ae40a41e63f048d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 403/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c63a02704636480e3a64eaf8f64fc615545b5fa3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 404/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c2193f6f25a2019b879ef0cb8cb8e111dac3d749 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 405/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c0c77fe55871e276586dff42b89105ac67b0c64a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 406/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ffa2e853c1cfe978e00bc7db910e735667c5133a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 407/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 79087a3c699613bb9edc7bde8dac2dec4f30e725 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 408/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 48ee2bdf14a508fa1ed7643160044e1310a2e9ee Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 409/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c61cb2c20b157b61bc91d42949cab1bee011d758 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 410/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From de00013fd69b0bdc287ab3549a8c9daf63d32580 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 411/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e74dd797ea8dfbe9b7924e5c272f3176652e2524 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 412/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 864ab0b58603b8b294ba8a1824e571dd5ba9fc63 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 413/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b00bdabd7142c3f19693e633b561e10663b1d8f1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 414/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c9fac2c38406d4f4db2f7adea93ecb226dc9ec30 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 415/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 393d6663d79d24f90301f6166246d495a7dd98fe Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 416/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0017aa83f336703621e63ec65e4da722749971aa Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 417/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ca1a3e9a93b59c24b65934cff940e195304635df Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 418/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From dd9072517fa34d8cd1767f40ac8aa744355ba5ff Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 419/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b3633b0a3c4cd37373b7561682bd58a11747c127 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 420/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 078f163bf44431fe65c63cf8c90790b81cec41a4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 421/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6df14eabfff076b07a10089cc341f1935975528e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 422/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0dacb63aa0ec5e71e444a4a1d711eecd40dd330e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 423/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9c19ecdfc7f248e2bf49377e4440255cef57dbc7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 424/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 16fc885b9f85ae76cc4ecbe09858b88f6abf729e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 425/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f3e9efb6afaf9e5aa1a908597d4a9f8e43adb2c6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 426/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2a02bc43f8d2a3042ebcfbb418e109a4ee17384d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 427/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d746c342b04c95655e76ae9445c9d750dc23f006 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 428/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d5d7bf353e64f1c64cb4a28d37ad1cf976ac976c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 429/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 106334b4e4d6dc89070732dc3ccd78362fd4e925 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 430/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b3b0d5a36a1af8e593b2455a86b1ed265d99fa30 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 431/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5ba88408423be1e6685da853b4a59e8cdf1e4f0a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 432/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 73585a2f66d9930d466b3f554953cf9b07bb474c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 433/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From eeb9c39bf687c6fe38d10ceaafca93b98e3da3ed Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 434/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 16e733bbbac5d88938fc834748161224f9bcaeb6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 435/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d8d334c6481c407da2ca1a4f4ff8eddb7239103d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 436/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c618dbae46120b2957873100d3aa8256fdb7ad54 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 437/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8c2fdaee50680990357f5d2047e2a4ea48829a79 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 438/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1372782063441182e9dc06269786c790ee76a1f6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 439/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 52f790b22af05f7b3d15894e09135cd5be3a23cd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 440/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 829fe5cbc23837dd1c0d1d0cbab4eb72bb8cf105 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 441/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9febbffe37071f8ea1f95e71e401f2cdd35557c5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 442/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 979415866466541876f53eb5a10376daa3303488 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 443/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6527dc05cb3a9aa4be69f2f3a2a0aeea4e925c94 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 444/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5717afe93bc1b0d2d75cb6e18b42c2e8c0f54e5a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 445/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 472113e787eca74d1fd96d2605673586bbdc15b8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 446/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7b018d63e565698ade0e6ab4ce112400eebb34d1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 447/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From afdde718dcf92e9b976df3674014e2c07d72aef5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 448/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 786359c6ec88345a3f594293922da498bc75f71d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 449/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0138376a84f09829e3971af0c5113c4a166deda3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 450/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 32344266b2ce24b33e5c7e0b680bad5e83fda347 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 451/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 73d6657e8790eb806024b0262a372a9013234b65 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 452/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 94c52ebc13ba1d46ffe8d8636b2051cd8e185c50 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 453/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 80491a2a3402a730b353b661dce07d0f5fd44ea3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 454/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 730b78b13c4d7cd834a21f6f6d59ae07e3e9bf52 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 455/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a88bbe5b4bb0bb72d277597993990dc164cba7bd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 456/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From e08fbb1e209bb12df11c579a12ab81190bfd0132 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 457/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From bd2488646bc835f48f9aad3b16e8aafead5eea11 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 458/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8a9e3624c5ddb2ce16ee455b7d41e5415f76c2bb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 459/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 994e83287a9cd61dfec4dc57a1829d2f22f1cc97 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 460/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d24b155cb5bb5c4f79a1452024e9aa09b8a71aa6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 461/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5ee50148525d24d06f564f261cd06d06091ed42f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 462/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 00dd89b94ed62e41a3bf8f6d7d9fc112dda96d3f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 463/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From df83735cd31849bfb9db3cd75d6cdff181bf6c28 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 464/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a87cc46f5bba6de576b7500a2de0e950b462f486 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 465/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 80db60eefcb09ef966d139036bf733f5aaf7973f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 466/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From d4f12e25b5c21b876b2f28642e7f79efc75844d1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 467/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From eec83cb9357921894fe348af3859faeb750210d9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 468/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 05d95bd9017dcf120b5e8fb92ca48900929ffe14 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 469/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4bb2f80051ed591b39bd07ca7b56104e62d21ddd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 470/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 794742a596738e0edd5cac2f956a186b88015e2c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 471/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6b2bdbb621d8857f096c32518b64b0822f10fcd3 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 472/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 429cbc215c7ccab7bc0ab9b27e864c583c4201b8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 473/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2de0a60cc08e2e9d2b5013f4c47c5da72323ca9b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 474/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 5646547dd5a7399881070ceffa7832c5bb9d4cbe Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 475/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0c31d4430636a13233135765785850bbc6ae5785 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 476/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 8f0d57a62cf6fe7f84b9cc4510a3638119bc99f6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 477/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From be4a1efee7796666d3ad1adb45e13ac6c1f1d11c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 478/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b0da4a84f0f309fc69dcb64d56d6b974ee01a5bb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 479/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a0c451df4de57fd464297bef35397f2d2a8d68fb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 480/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 1262f0cabbd0619c4c9408edb0a42d62fadad56c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 481/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4fe82d364226f3fd4dc4a0edb533dadbbcd86ff8 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 482/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 98f2466449efc271d57f75928e0c4fbd4528fa62 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 483/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 417e15c9e4caf8577f6f9818b8a1d54bc25b3535 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 484/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 0579d7caa87b34c0b8edde630b476232f0db0392 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 485/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7a918778e94aa2a98ed6466b803af75c40e69a66 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 486/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f935e17789646071b7aa4167f04d635adc60e338 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 487/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 7489e55b29ee89992c65a4bab797b8de315afa1a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 488/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 70b1822014bc9955df034deaf9eec03128d8377f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 489/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6bbcca7c8031b9a092651758d900f43b512589ad Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 490/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From f831b668d73b3ef369239b66d44eedfd7d1f9d4a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 491/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 9ef151d8fe2fca287de383e0ed3893153a26258c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 492/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 6c55d40c06f9bf50ad24ac28b494e31509eed0e0 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 493/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2723b9e7e1e895d180c9ec21820d2472f2f8fc92 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 494/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From a878dc440d3dec2ccbf52bb47160b214546b1710 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 495/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From ef0a14ed51bb68209b24dd7dc5280cd24ad9ddc7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 496/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 83f4038a0bb0eae63662f83c203ae85350326c50 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 497/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From b10d4c00364484068de681505c64e9c2eb343985 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 498/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 231b12f8c4a42a246b9ef9338f96ead04ee7204f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 499/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From fb347fbc90b28ff1331359eca08c05d969529a62 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 500/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 76fa6b865ba01117d2a1e18dbb825db3a573a48e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 501/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From c80a5f50940d0e0c3b6cb9ced7cf919bc80c0aaf Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 502/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 60e6943311ce9f1c32498f9c4a2f7b043f6fd1b6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 503/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 4b90347e6acdc56f578e06814086edd1abd18c1e Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 504/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From fdd5ef5f7102109705a57db85a36e99ae83b83e5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 505/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 86e52a20141bb7dfddc265244adf5486165d40b4 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:30:33 +0800 Subject: [PATCH 506/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bae1699d77..3df763f034 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: - run: npm run build - run: npm run bundle + - run: cp -rp packages/uiw/dist/*js website/build + - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 551481061ad1b1841117675e54133d8971f65408 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 25 Feb 2022 15:46:26 +0800 Subject: [PATCH 507/575] chore: update workflows config. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3df763f034..bae1699d77 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,6 @@ jobs: - run: npm run build - run: npm run bundle - - run: cp -rp packages/uiw/dist/*js website/build - - run: cp -rp packages/uiw/dist/*css website/build - run: npm run coverage - run: npm run b:website - run: npm run b:doc From 2943c9ca965fd97951e74434b49f7972ff78fac8 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 2 Mar 2022 13:13:39 +0800 Subject: [PATCH 508/575] =?UTF-8?q?docs(SearchTree):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 22871aaad6..95ecb0a020 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -202,7 +202,6 @@ const form=useRef() return null; }} onSubmit={({initial, current}) => { - console.log('current',current) const errorObj = {}; if (!current.searchTree) { errorObj.searchTree = '默认需要选择内容,选择入内容'; From 4a0d5e9467e52d11f3a3b174d5877be11746c47c Mon Sep 17 00:00:00 2001 From: gssggssg <490104722@qq.com> Date: Thu, 3 Mar 2022 14:33:05 +0800 Subject: [PATCH 509/575] =?UTF-8?q?doc(Tag):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #598 修复 --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index a6ca0b58db..bf350ca780 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 14:35:17 +0800 Subject: [PATCH 510/575] =?UTF-8?q?Revert=20"doc(Tag):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#599)"=20(#600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index bf350ca780..a6ca0b58db 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 14:33:05 +0800 Subject: [PATCH 511/575] =?UTF-8?q?doc(Tag):=20=E4=BF=AE=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #598 修复 --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index a6ca0b58db..bf350ca780 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 14:35:17 +0800 Subject: [PATCH 512/575] =?UTF-8?q?Revert=20"doc(Tag):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#599)"=20(#600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tag/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-tag/README.md b/packages/react-tag/README.md index bf350ca780..a6ca0b58db 100644 --- a/packages/react-tag/README.md +++ b/packages/react-tag/README.md @@ -186,7 +186,7 @@ class Demo extends React.Component { {dataTags.map((item, idx) => { return ( Date: Thu, 3 Mar 2022 19:06:16 +0800 Subject: [PATCH 513/575] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) create mode 100755 debug diff --git a/debug b/debug new file mode 100755 index 0000000000..900d903e65 --- /dev/null +++ b/debug @@ -0,0 +1,11 @@ +#!/bin/bash +for compName in $* +do + (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch + (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch + # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css + # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm + # lerna exec --scope @uiw/react-$compName -- tsbb build --target react + lerna bootstrap --hoist --scope @uiw/react-$compName +done + diff --git a/package.json b/package.json index 14b3c2bbc5..ec81842642 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { + "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From a54ba32f82fc23f4a927602fbd9e3ddf0924c81b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 4 Mar 2022 12:06:38 +0800 Subject: [PATCH 514/575] =?UTF-8?q?clean:=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) delete mode 100755 debug diff --git a/debug b/debug deleted file mode 100755 index 900d903e65..0000000000 --- a/debug +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -for compName in $* -do - (lerna exec --scope @uiw/react-$compName -- tsbb watch) & # lib:watch - (lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm --watch) # lib:css:watch - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o lib --combine=dist.css - # lerna exec --scope @uiw/react-$compName -- compile-less -d src -o esm - # lerna exec --scope @uiw/react-$compName -- tsbb build --target react - lerna bootstrap --hoist --scope @uiw/react-$compName -done - diff --git a/package.json b/package.json index ec81842642..14b3c2bbc5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "debug":"./debug", "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", From f2cbada39eedd46e247bc15b9e7acc63bdee8fe0 Mon Sep 17 00:00:00 2001 From: WmW <48251883+nullptr-z@users.noreply.github.com> Date: Tue, 8 Mar 2022 10:07:33 +0800 Subject: [PATCH 515/575] =?UTF-8?q?feat(Tabs):=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E8=BF=87=E5=A4=9A,=E8=B6=85=E8=BF=87=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E6=97=B6,=E6=94=B6=E7=BC=A9=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E9=83=A8=E5=88=86=20#559=20(#626)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-tabs/README.md | 44 ++++++- packages/react-tabs/package.json | 1 + packages/react-tabs/src/index.tsx | 154 +++++++++++++++++------ packages/react-tabs/src/style/index.less | 11 ++ 4 files changed, 170 insertions(+), 40 deletions(-) diff --git a/packages/react-tabs/README.md b/packages/react-tabs/README.md index 05fb130aca..c4eb458f34 100644 --- a/packages/react-tabs/README.md +++ b/packages/react-tabs/README.md @@ -146,7 +146,45 @@ class Demo extends React.Component { ReactDOM.render(, _mount_); ``` -## Tabs.Porps +### 超出收缩 + +当pane过多,超出宽度度时,会将超出部分收缩到下拉选项 + + +```jsx +import React from 'react'; +import ReactDOM from 'react-dom'; +import { Tabs } from 'uiw'; + +class Demo extends React.Component { + +render() { + const panes=[] + for (let index = 0; index < 20; index++) { + panes.push({label:`Tabs-${index}`,key:index}) + } + + return ( + { + console.log("=>", key, tab); + }}> + {panes.map(item=>{ + return( + {item.label} + ) + })} + + ); + } +} +ReactDOM.render(, _mount_); +``` + + +## Tabs.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | @@ -154,10 +192,10 @@ ReactDOM.render(, _mount_); | activeKey | 当前激活 `tab` 面板的 `key` | String | - | | onTabClick | `tab` 被点击的回调 | Function | `(item, key, e)=>{}` | -## Tabs.Pane.Porps +## Tabs.Pane.Porps | 参数 | 说明 | 类型 | 默认值 | |------ |-------- |---------- |-------- | | label | 选项卡标题 | String,Node | - | | key | 对应 activeKey | String,Node | - | -| disabled | 标签是禁用不可点击 | Boolean | `false` | \ No newline at end of file +| disabled | 标签是禁用不可点击 | Boolean | `false` | diff --git a/packages/react-tabs/package.json b/packages/react-tabs/package.json index 5238248575..28a7d43871 100644 --- a/packages/react-tabs/package.json +++ b/packages/react-tabs/package.json @@ -44,6 +44,7 @@ "react-dom": ">=16.9.0" }, "dependencies": { + "@uiw/react-popover": "^4.13.7", "@uiw/utils": "^4.13.7" } } diff --git a/packages/react-tabs/src/index.tsx b/packages/react-tabs/src/index.tsx index 1639921ee3..959716cce7 100644 --- a/packages/react-tabs/src/index.tsx +++ b/packages/react-tabs/src/index.tsx @@ -1,7 +1,8 @@ -import React, { useEffect, useState, useRef } from 'react'; +import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'; import { IProps, HTMLDivProps } from '@uiw/utils'; import Pane from './Pane'; import './style/index.less'; +import Popover from '@uiw/react-popover'; export * from './Pane'; @@ -15,6 +16,14 @@ export interface TabsProps extends IProps, HTMLDivProps { onTabClick?: (key: string, item: React.ReactElement, e: React.MouseEvent) => void; } +type flowNavType = { + content: number; + nav: Array>; + flowLeft: number; + displayStart: number; + displayEnd: number; +}; + export default function Tabs(props: TabsProps) { const { prefixCls = 'w-tabs', @@ -25,11 +34,70 @@ export default function Tabs(props: TabsProps) { onTabClick, ...elementProps } = props; + const [activeKey, setActiveKey] = useState(props.activeKey); const [slideStyle, setSlideStyle] = useState({ width: 0, left: 0 }); const activeItem = useRef(); const cls = [prefixCls, className, type ? `${prefixCls}-${type}` : null].filter(Boolean).join(' ').trim(); + const [flowNav, flowNavSet] = useState({ + content: 0, + nav: [], + flowLeft: -1, + displayStart: 0, + displayEnd: 0, + }); + const [hiddenNav, hiddenNavSet] = useState>([]); + const deviation = 15; + + const [nodes, nodesSet] = useState(); + const divContentRef = useCallback((node) => { + if (node !== null) { + nodesSet(nodes); + node.addEventListener('scroll', (e: any) => { + const { clientWidth, scrollLeft } = e.target; + flowNav.displayStart = scrollLeft; + flowNav.displayEnd = clientWidth + scrollLeft; + flowNavSet({ ...flowNav }); + }); + flowNav.displayEnd = node.getBoundingClientRect().width; + flowNavSet({ ...flowNav }); + } + }, []); + + const divNavRef = useCallback((node, key: number) => { + if (node !== null) { + node.addEventListener('click', (e: any) => { + activeItem.current = node; + }); + divNavWidthChange(node.getBoundingClientRect().width, key); + } + }, []); + + const divNavWidthChange = (width: number, index: number) => { + let curWidth = 0; + flowNav.nav.slice(0, index + 1).forEach((nav) => (curWidth += nav.width)); + flowNav.nav[index] = { width, curWidth: Math.floor(curWidth), index }; + flowNavSet(flowNav); + }; + + useEffect(() => { + showHideenNav(); + }, [flowNav.displayEnd > flowNav.nav[flowNav.nav.length - 1]?.curWidth]); + + const showHideenNav = () => { + const hiddenNav: Array = []; + if (flowNav.nav.length > 0) { + flowNav.nav.forEach((item) => { + const curWidth = item.curWidth - deviation; + if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) { + hiddenNav.push(item.index); + } + }); + hiddenNavSet(hiddenNav); + } + }; + useEffect(() => setActiveKey(props.activeKey), [props.activeKey]); useEffect(() => calcSlideStyle(), [activeKey]); @@ -44,44 +112,29 @@ export default function Tabs(props: TabsProps) { return (
    -
    -
    - {React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { - if (!item) { - return null; - } - const divProps: HTMLDivProps = { - className: [ - `${prefixCls}-item`, - item.key === activeKey ? 'active' : null, - item.props.disabled ? 'disabled' : null, - ] - .filter(Boolean) - .join(' ') - .trim(), - children: item.props.label, - }; - if (!item.props.disabled) { - divProps.onClick = (e: React.MouseEvent) => { - setActiveKey(item.key as string); - onTabClick && onTabClick(item.key as string, item, e); - calcSlideStyle(); - }; - } - return ( -
    { - if (node && item.key === activeKey) { - activeItem.current = node; - } - }} - {...divProps} - /> - ); - })} +
    +
    +
    + {renderNav(children)} +
    + {hiddenNav.length > 0 && ( + + {renderNav(hiddenNav.map((idx) => (children as Array)[idx]))} +
    + } + > +
    + +
    + + )}
    {React.Children.map(children, (item: any) => { if (!item || activeKey !== item.key) { @@ -91,4 +144,31 @@ export default function Tabs(props: TabsProps) { })}
    ); + + function renderNav(children: React.ReactNode): React.ReactNode { + return React.Children.map(children as React.ReactElement[], (item: React.ReactElement, key: number) => { + if (!item) { + return null; + } + const divProps: HTMLDivProps = { + className: [ + `${prefixCls}-item`, + item.key === activeKey ? 'active' : null, + item.props.disabled ? 'disabled' : null, + ] + .filter(Boolean) + .join(' ') + .trim(), + children: item.props.label, + }; + if (!item.props.disabled) { + divProps.onClick = (e: React.MouseEvent) => { + setActiveKey(item.key as string); + onTabClick && onTabClick(item.key as string, item, e); + calcSlideStyle(); + }; + } + return
    divNavRef(ref, key)} {...divProps} />; + }); + } } diff --git a/packages/react-tabs/src/style/index.less b/packages/react-tabs/src/style/index.less index 09ab8a4feb..9012b74c93 100644 --- a/packages/react-tabs/src/style/index.less +++ b/packages/react-tabs/src/style/index.less @@ -3,10 +3,15 @@ .@{w-tabs} { &-bar { position: relative; + overflow-x: auto; } &-nav { position: relative; } + &-nav-hidden { + display: flex; + flex-direction: column; + } &-item { padding: 7px 10px; display: inline-block; @@ -26,6 +31,12 @@ color: rgba(0, 0, 0, 0.25); } } + &-flow-content { + margin-left: 5px; + padding: 0px 10px 0px 10px; + box-shadow: 1px 0px 0px #d9d9d9 inset; + cursor: pointer; + } } .@{w-tabs} { From 58f0273288ad09896d7f4718ec519a4661ab91e1 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 10:26:26 +0800 Subject: [PATCH 516/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E5=AD=97key=E4=B8=BA0=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 34 +++++++++++++++++++++--- packages/react-search-tree/src/index.tsx | 2 +- packages/react-tree/src/index.tsx | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 95ecb0a020..860d3fd4d3 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -58,9 +58,17 @@ const data = [ }, { label: '澳门', key: '3' }, ]; + +const datas =[ + { label: '上海市', key: 0 }, + { label: '北京市', key: 1 }, + { label: '成都市', key: 2 }, +] + const Demo = () => { const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }]) +const [values,valuesSet]=useState([{ label: '北京市', key: 1 }]) const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }]) const onChange=(selectd, selectedAll, isChecked)=>{ @@ -68,12 +76,18 @@ const onChange=(selectd, selectedAll, isChecked)=>{ valueSet(selectedAll) } +const onChanges=(selectd, selectedAll, isChecked)=>{ + console.log('SearchTree-> onChange',selectedAll, selectd, isChecked) + valuesSet(selectedAll) +} + const onChangeSinge=(selectd, selectedAll, isChecked)=>{ console.log('SearchTree-> onChange', selectd, selectedAll, isChecked) valueSingeSet(selectedAll) } return ( + <> @@ -87,8 +101,22 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ placeholder="请输入选择" /> - - + + + + + console.log('singe',searchValue)} + onChange={onChanges} + value={values} + options={datas} + placeholder="请输入选择" + /> + + { placeholder="请输入选择" /> - + ) } ReactDOM.render(, _mount_); diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index a394a30c4d..10036e2feb 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -72,7 +72,7 @@ function SingeTree(props: Omit { const { key, label } = evn; const cur = { key, label } as V; - props.onSelected?.([cur], cur, isChecked); + props.onSelected?.(isChecked ? [cur] : [], cur, isChecked); }; return ( diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index a9bb2a4229..87dad898db 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -193,7 +193,7 @@ export default function Tree(props: TreeProps) { let selKeys = [...(curSelectedKeys as TreeData['key'][])]; const findKey = selKeys.find((v) => v === item.key); let selected = false; - if (!findKey) { + if (!findKey && findKey !== 0) { selected = true; selKeys.push(item.key); } else { From 31d7d3e266e8bf46bbb1112e4561afd8c5334bc4 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 11:02:32 +0800 Subject: [PATCH 517/575] =?UTF-8?q?fix(Drawer):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E9=97=AE=E9=A2=98,Dropdown=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=20#620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index 9658824346..d2e24710ec 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 990; + z-index: 1001; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index bfc6957ef8..a0c9fb1039 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(990); + const zIndex = useRef(999); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From a879cfdd2bd049d77e7196575d95d5ca18434858 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 11:46:58 +0800 Subject: [PATCH 518/575] =?UTF-8?q?revert:=E6=92=A4=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index d2e24710ec..9658824346 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 1001; + z-index: 990; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index a0c9fb1039..bfc6957ef8 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(999); + const zIndex = useRef(990); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From d342a3af0144fd2b1ba97fc29589b2e2934b2560 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 13:20:28 +0800 Subject: [PATCH 519/575] =?UTF-8?q?fix(Drawer):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E9=97=AE=E9=A2=98,Dropdown=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=20#620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-modal/src/style/index.less | 2 +- packages/react-overlay-trigger/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-modal/src/style/index.less b/packages/react-modal/src/style/index.less index 9658824346..d2e24710ec 100644 --- a/packages/react-modal/src/style/index.less +++ b/packages/react-modal/src/style/index.less @@ -1,7 +1,7 @@ @modal: ~'w-modal'; .@{modal} { - z-index: 990; + z-index: 1001; &-inner { padding-bottom: 20px; background: #f9f9f9; diff --git a/packages/react-overlay-trigger/src/index.tsx b/packages/react-overlay-trigger/src/index.tsx index bfc6957ef8..a0c9fb1039 100644 --- a/packages/react-overlay-trigger/src/index.tsx +++ b/packages/react-overlay-trigger/src/index.tsx @@ -97,7 +97,7 @@ export default React.forwardRef((props, ...other } = props; - const zIndex = useRef(990); + const zIndex = useRef(999); const triggerRef = useRef(); const popupRef = useRef(); const timeoutRef = useRef([]); From 01883871f327167e6c3fe183d73517d4a61adbeb Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 15:48:24 +0800 Subject: [PATCH 520/575] =?UTF-8?q?feat(SearchTree):=20=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BC=98=E5=8C=96=20#629=20#631?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react-search-tree/src/SearchTagInput.tsx | 28 ++++++++++++++----- packages/react-search-tree/src/index.tsx | 4 ++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index ba7a20d55d..2af5714b5e 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -29,6 +29,7 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte loading?: boolean; placeholder?: string; emptyOption?: boolean | React.ReactNode; + selectCloseDrop?: boolean; } function SearchTagInput(props: SearchTagInputProps) { @@ -39,6 +40,7 @@ function SearchTagInput(props: SearchTagInputPro disabled = false, allowClear = false, loading = false, + selectCloseDrop = false, className, style, placeholder, @@ -74,7 +76,8 @@ function SearchTagInput(props: SearchTagInputPro const handleSelectChange = (selectedAll: Array, selectd?: V, isChecked: boolean = true) => { setSelectedOption(selectedAll); - onChange && onChange(selectedAll, selectd!, isChecked); + searchValueChange(''); + onChange?.(selectedAll, selectd!, isChecked); }; const removeSelectItem = (index: number) => { @@ -85,11 +88,16 @@ function SearchTagInput(props: SearchTagInputPro }; function handleInputChange(value: string) { - searchValueSet(value); - onSearch?.(value); + setInnerIsOpen(true); + searchValueChange(value); setSelectIconType(value ? 'loading' : ''); } + const searchValueChange = (value: string) => { + searchValueSet(value); + onSearch?.(value); + }; + // 清除选中的值 function resetSelectedValue(e: any) { e.stopPropagation(); @@ -112,18 +120,24 @@ function SearchTagInput(props: SearchTagInputPro const newProps = { ...content.props, - onSelected: handleSelectChange, + onSelected: (selectedAll: Array, selectd?: V, isChecked: boolean = true) => { + setInnerIsOpen(!selectCloseDrop); + handleSelectChange(selectedAll, selectd, isChecked); + }, values: selectedOption, options, }; return React.cloneElement(content as JSX.Element, newProps); - }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]); + }, [JSON.stringify(selectedOption), options, emptyOption]); return ( { + setInnerIsOpen(isOpen); + if (!isOpen) searchValueChange(''); + }} isOpen={innerIsOpen} menu={{newContent}} > diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 10036e2feb..1407b535ae 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -158,7 +158,9 @@ function SearchTree(props: SearchTreeProps) { Date: Tue, 8 Mar 2022 11:58:55 +0800 Subject: [PATCH 521/575] =?UTF-8?q?chore(Form):=20Select=20=E8=B7=9FInput?= =?UTF-8?q?=20=E5=9C=A8=E8=A1=A8=E5=8D=95=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E9=94=99=E8=AF=AF=E6=A0=B7=E5=BC=8F=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=20#622=20(#628)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-form/src/style/form-item.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-form/src/style/form-item.less b/packages/react-form/src/style/form-item.less index d2d0a0d151..1948d1b741 100644 --- a/packages/react-form/src/style/form-item.less +++ b/packages/react-form/src/style/form-item.less @@ -10,6 +10,10 @@ color: #dc3545; } .w-input-inner, + .w-select, + .w-select-default, + .w-select:hover, + .w-select-default:hover, .w-input-inner:hover, .w-input-inner:focus.w-input-inner:hover, .w-textarea, From fd0a096884c50e0891b1a285e7bd4ba22e1d36bd Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 8 Mar 2022 16:38:35 +0800 Subject: [PATCH 522/575] fix react-search-tree: remove remark --- packages/react-search-tree/src/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 1407b535ae..2a8cb74f83 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -159,7 +159,6 @@ function SearchTree(props: SearchTreeProps) { {...other} emptyOption={isEmpty} selectCloseDrop={!multiple} - // onSearch={debounce(selectedSearch, 300)} onSearch={selectedSearch} onChange={selectedChange} values={selectedValues} From d1d871c3c4a42dca2fc5f1774193fb971759f227 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 11:14:00 +0800 Subject: [PATCH 523/575] =?UTF-8?q?style(Tabs):=20=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 2 +- packages/react-tabs/src/style/index.less | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index ce38712022..ac17808d87 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -148,7 +148,7 @@ export default function SearchSelect(props: SearchSelectProps) { function renderSelectIcon(type: string) { let selectIconType; if (type === 'enter' && allowClear && selectedValue) { - console.log(123); + // console.log(123); selectIconType = 'close'; } else { selectIconType = ''; diff --git a/packages/react-tabs/src/style/index.less b/packages/react-tabs/src/style/index.less index 6c884d76fb..8429ed8166 100644 --- a/packages/react-tabs/src/style/index.less +++ b/packages/react-tabs/src/style/index.less @@ -11,10 +11,13 @@ } &-nav-hidden { display: flex; - overflow-x: scroll; - padding: 5px 30px 5px 5px; + overflow-y: auto; + padding: 5px 10px 5px 5px; max-height: 200px; flex-direction: column; + :hover { + background: #d9d9d9; + } } &-item { padding: 7px 10px; From e4ca65ad9dabce03260bb169659aae699733dd2f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 11:16:23 +0800 Subject: [PATCH 524/575] =?UTF-8?q?clean:=E5=88=A0=E9=99=A4=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index ac17808d87..0918b47db8 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -148,7 +148,6 @@ export default function SearchSelect(props: SearchSelectProps) { function renderSelectIcon(type: string) { let selectIconType; if (type === 'enter' && allowClear && selectedValue) { - // console.log(123); selectIconType = 'close'; } else { selectIconType = ''; From a0729dd5ebf280d405e453adc7f128173c74f800 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 15:30:15 +0800 Subject: [PATCH 525/575] =?UTF-8?q?chore:=20=E6=9B=B4=E6=94=B9'=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=97=AE=E9=A2=98'=E9=93=BE=E6=8E=A5=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/src/menu.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/menu.json b/website/src/menu.json index 8fc4359d9e..2dd1b80540 100755 --- a/website/src/menu.json +++ b/website/src/menu.json @@ -162,7 +162,7 @@ { "name": "提交问题", "icon": "issue", - "path": "https://github.com/uiwjs/uiw/issues/new" + "path": "https://github.com/uiwjs/uiw/issues/new/choose" }, { "name": "Github", From 5310ac1f52b680c2b56ada28f62c2f9893fb1403 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 16:03:25 +0800 Subject: [PATCH 526/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=E6=97=A0=E6=B3=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=88=9D=E5=A7=8Blable=E9=97=AE=E9=A2=98=20&=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 119 +++++++++++++++------ packages/react-search-select/src/index.tsx | 6 +- 2 files changed, 90 insertions(+), 35 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index cd5714ccef..c6473ab444 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -8,7 +8,7 @@ SearchSelect 搜索选择器 搜索选择器 ```jsx -import { SearchSelect } from 'uiw'; +import { SearchSelect, Row ,Col } from 'uiw'; // or import SearchSelect from '@uiw/react-search-select'; ``` @@ -18,7 +18,7 @@ import SearchSelect from '@uiw/react-search-select'; ```jsx import ReactDOM from 'react-dom'; -import { SearchSelect } from 'uiw'; +import { SearchSelect,Row,Col } from 'uiw'; const Demo = () => { const selectOption=[ @@ -34,7 +34,9 @@ const Demo = () => { const [option, setOption] = React.useState(selectOption); const [loading, setLoading] = React.useState(false); - const [value, setValue] = React.useState([{label: 'a8', value: 8}]); + const [values, setValues] = React.useState([{label: 'a7', value: 7},{label: 'a8', value: 8}]); + const [value, setValue] = React.useState([{label: 'a7', value: 7}]); + function handleSearch(e) { setLoading(true) setTimeout(() => { @@ -42,26 +44,52 @@ const Demo = () => { setLoading(false); }, 2000); } + return( - console.log('onSelect',value)} - loading={loading} - option={option} - onChange={(value) => { - console.log('value',value) - setValue(value) - }} - /> + + + console.log('onSelect',value)} + loading={loading} + option={option} + onChange={(value) => { + console.log('value', value) + setValues(value) + }} + /> + + + console.log('onSelect',value)} + loading={loading} + option={option} + onChange={(value) => { + console.log('value', value) + setValue(value) + }} + /> + + ); }; ReactDOM.render(, _mount_); @@ -77,19 +105,19 @@ import ReactDOM from 'react-dom'; import { Form, Row, Col, SearchSelect, Button, Notify } from 'uiw'; const Demo = () => { - const [option, setOption] = React.useState([]); + const [option, setOption] = React.useState([ + { label: 'a1', value: 1 }, + { label: 'a2', value: 2 }, + { label: 'a3', value: 3 }, + { label: 'a4', value: 4 }, + { label: 'a5', value: 5 }, + { label: 'a6', value: 6 }, + { label: 'a7', value: 7 }, + { label: 'a8', value: 8 }, + ]); const [loading, setLoading] = React.useState(false); function handleSearch(e) { console.log('handleSearch',e) - setLoading(true) - setTimeout(() => { - setOption([ - { label: 'a', value: 2 }, - { label: 'aa', value: 3 }, - { label: 'aaa', value: 4 }, - ]); - setLoading(false); - }, 2000); } return ( @@ -119,8 +147,30 @@ const Demo = () => { }} fields={{ selectField: { + initialValue:[{label: 'a7', value: 7},{label: 'a8', value: 8}], children: ( { + console.log('onChange',v) + }} + option={option} + loading={loading} + /> + ) + }, + selectSingle: { + initialValue:[{label: 'a7', value: 7}], + children: ( + { {({ fields, state, canSubmit }) => { return (
    - + {fields.selectField} + + {fields.selectSingle} + diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 0918b47db8..6fa085a181 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -63,7 +63,7 @@ export default function SearchSelect(props: SearchSelectProps) { const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedValue, setSelectedValue] = useState>([]); - const [selectedLabel, setSelectedLabel] = useState(''); + const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); const omitTagCount = useMemo( () => (maxTagCount && selectedValue.length > maxTagCount ? selectedValue.length - maxTagCount : 0), @@ -82,6 +82,7 @@ export default function SearchSelect(props: SearchSelectProps) { useEffect(() => { if (value !== undefined) { + // console.log('value', value[0]) selectedValueChange(value!); } }, [JSON.stringify(value)]); @@ -95,7 +96,6 @@ export default function SearchSelect(props: SearchSelectProps) { changeValue: ValueType | Array | SearchSelectOptionData | Array, ) { let opts: Array = []; - if (labelInValue) { if (Array.isArray(changeValue)) { opts = changeValue as Array; @@ -113,6 +113,8 @@ export default function SearchSelect(props: SearchSelectProps) { } } } + + if (!isMultiple && opts.length > 0) setSelectedLabel(opts[0].label || ''); setSelectedValue(opts); } From b4fbc9488ae73ac3d8d92df3754f46878ecd7a8f Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 17:25:09 +0800 Subject: [PATCH 527/575] =?UTF-8?q?feat(SearchSelect):=20=20=E5=92=8CSearc?= =?UTF-8?q?hTree=E7=BB=9F=E4=B8=80=E6=93=8D=E4=BD=9C=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 18 +++++++++++++----- packages/react-search-select/src/index.tsx | 19 ++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index c6473ab444..45acb84a30 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -40,9 +40,10 @@ const Demo = () => { function handleSearch(e) { setLoading(true) setTimeout(() => { - setOption(); + const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) + setOption([...filterOpion]); setLoading(false); - }, 2000); + }, 500); } return( @@ -105,7 +106,7 @@ import ReactDOM from 'react-dom'; import { Form, Row, Col, SearchSelect, Button, Notify } from 'uiw'; const Demo = () => { - const [option, setOption] = React.useState([ + const selectOption =[ { label: 'a1', value: 1 }, { label: 'a2', value: 2 }, { label: 'a3', value: 3 }, @@ -114,10 +115,17 @@ const Demo = () => { { label: 'a6', value: 6 }, { label: 'a7', value: 7 }, { label: 'a8', value: 8 }, - ]); + ]; + const [option, setOption] = React.useState(selectOption); const [loading, setLoading] = React.useState(false); + function handleSearch(e) { - console.log('handleSearch',e) + setLoading(true) + setTimeout(() => { + const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) + setOption([...filterOpion]); + setLoading(false); + }, 500); } return ( diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 6fa085a181..3e1f97297e 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -82,7 +82,6 @@ export default function SearchSelect(props: SearchSelectProps) { useEffect(() => { if (value !== undefined) { - // console.log('value', value[0]) selectedValueChange(value!); } }, [JSON.stringify(value)]); @@ -140,6 +139,7 @@ export default function SearchSelect(props: SearchSelectProps) { } function handleChange(resultValue: ValueType | Array, values: SearchSelectOptionData[]) { + setSelectedLabel(''); onSelect && onSelect(resultValue); handleSelectChange(resultValue, values); // 支持form组件 @@ -159,7 +159,7 @@ export default function SearchSelect(props: SearchSelectProps) { // handle change function handleInputChange(e: React.ChangeEvent) { const value = e.target.value; - setInnerIsOpen(!!value); + setInnerIsOpen(true); setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); showSearch && onSearch && onSearch(value); @@ -185,17 +185,22 @@ export default function SearchSelect(props: SearchSelectProps) { } } + function onVisibleChange(open: boolean) { + if (!open) setSelectedLabel(''); + if (!isMultiple && selectedValue.length > 0) { + setSelectedLabel(selectedValue[0].label); + } + setInnerIsOpen(open); + } + return ( 0 ? false : true} {...others} - onVisibleChange={(open) => { - if (!open && isMultiple) setSelectedLabel(''); - setInnerIsOpen(open); - }} + onVisibleChange={onVisibleChange} isOpen={innerIsOpen} menu={ Date: Wed, 9 Mar 2022 16:03:25 +0800 Subject: [PATCH 528/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=E6=97=A0=E6=B3=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=88=9D=E5=A7=8Blable=E9=97=AE=E9=A2=98=20&=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 119 +++++++++++++++------ packages/react-search-select/src/index.tsx | 6 +- 2 files changed, 90 insertions(+), 35 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index cd5714ccef..c6473ab444 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -8,7 +8,7 @@ SearchSelect 搜索选择器 搜索选择器 ```jsx -import { SearchSelect } from 'uiw'; +import { SearchSelect, Row ,Col } from 'uiw'; // or import SearchSelect from '@uiw/react-search-select'; ``` @@ -18,7 +18,7 @@ import SearchSelect from '@uiw/react-search-select'; ```jsx import ReactDOM from 'react-dom'; -import { SearchSelect } from 'uiw'; +import { SearchSelect,Row,Col } from 'uiw'; const Demo = () => { const selectOption=[ @@ -34,7 +34,9 @@ const Demo = () => { const [option, setOption] = React.useState(selectOption); const [loading, setLoading] = React.useState(false); - const [value, setValue] = React.useState([{label: 'a8', value: 8}]); + const [values, setValues] = React.useState([{label: 'a7', value: 7},{label: 'a8', value: 8}]); + const [value, setValue] = React.useState([{label: 'a7', value: 7}]); + function handleSearch(e) { setLoading(true) setTimeout(() => { @@ -42,26 +44,52 @@ const Demo = () => { setLoading(false); }, 2000); } + return( - console.log('onSelect',value)} - loading={loading} - option={option} - onChange={(value) => { - console.log('value',value) - setValue(value) - }} - /> + + + console.log('onSelect',value)} + loading={loading} + option={option} + onChange={(value) => { + console.log('value', value) + setValues(value) + }} + /> + + + console.log('onSelect',value)} + loading={loading} + option={option} + onChange={(value) => { + console.log('value', value) + setValue(value) + }} + /> + + ); }; ReactDOM.render(, _mount_); @@ -77,19 +105,19 @@ import ReactDOM from 'react-dom'; import { Form, Row, Col, SearchSelect, Button, Notify } from 'uiw'; const Demo = () => { - const [option, setOption] = React.useState([]); + const [option, setOption] = React.useState([ + { label: 'a1', value: 1 }, + { label: 'a2', value: 2 }, + { label: 'a3', value: 3 }, + { label: 'a4', value: 4 }, + { label: 'a5', value: 5 }, + { label: 'a6', value: 6 }, + { label: 'a7', value: 7 }, + { label: 'a8', value: 8 }, + ]); const [loading, setLoading] = React.useState(false); function handleSearch(e) { console.log('handleSearch',e) - setLoading(true) - setTimeout(() => { - setOption([ - { label: 'a', value: 2 }, - { label: 'aa', value: 3 }, - { label: 'aaa', value: 4 }, - ]); - setLoading(false); - }, 2000); } return ( @@ -119,8 +147,30 @@ const Demo = () => { }} fields={{ selectField: { + initialValue:[{label: 'a7', value: 7},{label: 'a8', value: 8}], children: ( { + console.log('onChange',v) + }} + option={option} + loading={loading} + /> + ) + }, + selectSingle: { + initialValue:[{label: 'a7', value: 7}], + children: ( + { {({ fields, state, canSubmit }) => { return (
    - + {fields.selectField} + + {fields.selectSingle} + diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 0918b47db8..6fa085a181 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -63,7 +63,7 @@ export default function SearchSelect(props: SearchSelectProps) { const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedValue, setSelectedValue] = useState>([]); - const [selectedLabel, setSelectedLabel] = useState(''); + const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); const omitTagCount = useMemo( () => (maxTagCount && selectedValue.length > maxTagCount ? selectedValue.length - maxTagCount : 0), @@ -82,6 +82,7 @@ export default function SearchSelect(props: SearchSelectProps) { useEffect(() => { if (value !== undefined) { + // console.log('value', value[0]) selectedValueChange(value!); } }, [JSON.stringify(value)]); @@ -95,7 +96,6 @@ export default function SearchSelect(props: SearchSelectProps) { changeValue: ValueType | Array | SearchSelectOptionData | Array, ) { let opts: Array = []; - if (labelInValue) { if (Array.isArray(changeValue)) { opts = changeValue as Array; @@ -113,6 +113,8 @@ export default function SearchSelect(props: SearchSelectProps) { } } } + + if (!isMultiple && opts.length > 0) setSelectedLabel(opts[0].label || ''); setSelectedValue(opts); } From c23780d310758bd7f211c10d54722ef9b581d682 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 9 Mar 2022 17:25:09 +0800 Subject: [PATCH 529/575] =?UTF-8?q?feat(SearchSelect):=20=20=E5=92=8CSearc?= =?UTF-8?q?hTree=E7=BB=9F=E4=B8=80=E6=93=8D=E4=BD=9C=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 18 +++++++++++++----- packages/react-search-select/src/index.tsx | 19 ++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index c6473ab444..45acb84a30 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -40,9 +40,10 @@ const Demo = () => { function handleSearch(e) { setLoading(true) setTimeout(() => { - setOption(); + const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) + setOption([...filterOpion]); setLoading(false); - }, 2000); + }, 500); } return( @@ -105,7 +106,7 @@ import ReactDOM from 'react-dom'; import { Form, Row, Col, SearchSelect, Button, Notify } from 'uiw'; const Demo = () => { - const [option, setOption] = React.useState([ + const selectOption =[ { label: 'a1', value: 1 }, { label: 'a2', value: 2 }, { label: 'a3', value: 3 }, @@ -114,10 +115,17 @@ const Demo = () => { { label: 'a6', value: 6 }, { label: 'a7', value: 7 }, { label: 'a8', value: 8 }, - ]); + ]; + const [option, setOption] = React.useState(selectOption); const [loading, setLoading] = React.useState(false); + function handleSearch(e) { - console.log('handleSearch',e) + setLoading(true) + setTimeout(() => { + const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) + setOption([...filterOpion]); + setLoading(false); + }, 500); } return ( diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 6fa085a181..3e1f97297e 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -82,7 +82,6 @@ export default function SearchSelect(props: SearchSelectProps) { useEffect(() => { if (value !== undefined) { - // console.log('value', value[0]) selectedValueChange(value!); } }, [JSON.stringify(value)]); @@ -140,6 +139,7 @@ export default function SearchSelect(props: SearchSelectProps) { } function handleChange(resultValue: ValueType | Array, values: SearchSelectOptionData[]) { + setSelectedLabel(''); onSelect && onSelect(resultValue); handleSelectChange(resultValue, values); // 支持form组件 @@ -159,7 +159,7 @@ export default function SearchSelect(props: SearchSelectProps) { // handle change function handleInputChange(e: React.ChangeEvent) { const value = e.target.value; - setInnerIsOpen(!!value); + setInnerIsOpen(true); setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); showSearch && onSearch && onSearch(value); @@ -185,17 +185,22 @@ export default function SearchSelect(props: SearchSelectProps) { } } + function onVisibleChange(open: boolean) { + if (!open) setSelectedLabel(''); + if (!isMultiple && selectedValue.length > 0) { + setSelectedLabel(selectedValue[0].label); + } + setInnerIsOpen(open); + } + return ( 0 ? false : true} {...others} - onVisibleChange={(open) => { - if (!open && isMultiple) setSelectedLabel(''); - setInnerIsOpen(open); - }} + onVisibleChange={onVisibleChange} isOpen={innerIsOpen} menu={ Date: Wed, 9 Mar 2022 18:53:41 +0800 Subject: [PATCH 530/575] =?UTF-8?q?docs(FileInput):=20=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E6=96=87=E6=A1=A3=20#642?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-file-input/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/react-file-input/README.md b/packages/react-file-input/README.md index e95a582132..946d594ad0 100644 --- a/packages/react-file-input/README.md +++ b/packages/react-file-input/README.md @@ -216,6 +216,9 @@ import { Form, Row, Col, Icon } from 'uiw'; ReactDOM.render(
    { + console.log('current',current) + }} fields={{ picture1: { label: '图片墙', @@ -264,6 +267,11 @@ ReactDOM.render( {fields.picture3} + + + + +
    
    From 3e24b0321e1fa998997b2bc3871d1ff1f35bce57 Mon Sep 17 00:00:00 2001
    From: zhouzheng 
    Date: Wed, 9 Mar 2022 20:08:37 +0800
    Subject: [PATCH 531/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?=
     =?UTF-8?q?=E6=95=B0=E5=AD=97key=E6=97=A0=E6=B3=95=E8=A2=AB=E9=80=89?=
     =?UTF-8?q?=E4=B8=AD=E9=97=AE=E9=A2=98&=E5=A2=9E=E5=8A=A0=E7=A4=BA?=
     =?UTF-8?q?=E4=BE=8B=E6=96=87=E6=A1=A3?=
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    ---
     packages/react-search-tree/README.md          | 34 +++++++++----------
     .../react-search-tree/src/SearchTagInput.tsx  |  2 +-
     packages/react-search-tree/src/index.tsx      | 10 ++++--
     packages/react-tree/src/index.tsx             |  2 +-
     4 files changed, 26 insertions(+), 22 deletions(-)
    
    diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md
    index 860d3fd4d3..73d32f3c33 100644
    --- a/packages/react-search-tree/README.md
    +++ b/packages/react-search-tree/README.md
    @@ -24,39 +24,39 @@ import {  SearchTree } from 'uiw';
     const data = [
       {
         label: '上海市',
    -    key: '1-0-0',
    +    key: 1,
         children:[
    -      { label: '黄浦区', key: '1-0-1' },
    -      { label: '卢湾区', key: '1-0-2' },
    +      { label: '黄浦区', key: 2 },
    +      { label: '卢湾区', key: 3 },
           {
             label: '徐汇区',
    -        key: '1-0-3',
    +        key: 4,
             children:[
    -          { label: '半淞园路街道', key: '1-1-0' },
    -          { label: '南京东路街道', key: '1-2-0' },
    -          { label: '外滩街道', key: '1-3-0' },
    +          { label: '半淞园路街道', key: 6 },
    +          { label: '南京东路街道', key: 7 },
    +          { label: '外滩街道', key: 8 },
             ]
           },
         ]
       },
       {
         label: '北京市',
    -    key: '2-0-0',
    +    key: 9,
         children:[
    -      { label: '东城区', key: '2-1-0' },
    -      { label: '西城区', key: '2-2-0' },
    +      { label: '东城区', key: 10 },
    +      { label: '西城区', key: 11 },
           {
             label: '崇文区',
    -        key: '2-3-0',
    +        key: 12,
             children:[
    -          { label: '东花市街道', key: '2-3-1' },
    -          { label: '体育馆路街道', key: '2-3-2' },
    -          { label: '前门街道', key: '2-3-3' },
    +          { label: '东花市街道', key: 13 },
    +          { label: '体育馆路街道', key: 14 },
    +          { label: '前门街道', key: 15 },
             ]
           },
         ]
       },
    -  { label: '澳门', key: '3' },
    +  { label: '澳门', key: 16 },
     ];
     
     const datas =[
    @@ -67,7 +67,7 @@ const datas =[
     
     const Demo = () => {
     
    -const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }])
    +const [value,valueSet]=useState([{ label: '黄浦区', key: 12 }])
     const [values,valuesSet]=useState([{ label: '北京市', key: 1 }])
     const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }])
     
    @@ -92,7 +92,7 @@ const onChangeSinge=(selectd, selectedAll,  isChecked)=>{
           
             
             console.log('multiple',searchValue)}
               onChange={onChange}
    diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx
    index 2af5714b5e..e9e12a5c92 100644
    --- a/packages/react-search-tree/src/SearchTagInput.tsx
    +++ b/packages/react-search-tree/src/SearchTagInput.tsx
    @@ -128,7 +128,7 @@ function SearchTagInput(props: SearchTagInputPro
           options,
         };
         return React.cloneElement(content as JSX.Element, newProps);
    -  }, [JSON.stringify(selectedOption), options, emptyOption]);
    +  }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]);
     
       return (
         ;
    +type SelectOtpion = Record;
     
     // type TreeCheckedsProps = TreeCheckedProps & Partial>
     function TreeCheckeds(
    @@ -22,9 +22,13 @@ function TreeCheckeds(
         keysSet(keys || []);
       }, [props.values]);
     
    -  const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => {
    +  const onSelected = (_: any, item: any, isChecked: boolean, evn: TreeData) => {
         const curSelectOption: SelectOtpion = getOptionsRecursion([evn], selectOption, isChecked);
    -    const option = Object.entries(curSelectOption).map(([key, label]) => ({ key, label } as V));
    +    let isNumberKey = false;
    +    if (typeof item === 'number') isNumberKey = true;
    +    const option = Object.entries(curSelectOption).map(
    +      ([key, label]) => ({ key: isNumberKey ? Number.parseInt(key) : key, label } as V),
    +    );
         props.onSelected?.(option, { key: evn.key, label: evn.label as string } as V, isChecked);
       };
     
    diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx
    index ef8c9bfe9a..e105ebcef2 100644
    --- a/packages/react-tree/src/index.tsx
    +++ b/packages/react-tree/src/index.tsx
    @@ -45,7 +45,7 @@ export interface TreeProps extends IProps, Omit {
         item: TreeData,
         evn: React.MouseEvent,
       ) => void;
    -  onChange?: (key: string | number, eys: (string | number | undefined)[]) => void;
    +  onChange?: (key: string | number | undefined, eys: (string | number | undefined)[]) => void;
       value?: TreeData['key'][];
     }
     
    
    From c90aab276e5bbd827db513e31075879a9730f6ed Mon Sep 17 00:00:00 2001
    From: zhouzheng 
    Date: Wed, 9 Mar 2022 20:08:37 +0800
    Subject: [PATCH 532/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?=
     =?UTF-8?q?=E6=95=B0=E5=AD=97key=E6=97=A0=E6=B3=95=E8=A2=AB=E9=80=89?=
     =?UTF-8?q?=E4=B8=AD=E9=97=AE=E9=A2=98&=E5=A2=9E=E5=8A=A0=E7=A4=BA?=
     =?UTF-8?q?=E4=BE=8B=E6=96=87=E6=A1=A3?=
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    ---
     packages/react-search-tree/README.md          | 34 +++++++++----------
     .../react-search-tree/src/SearchTagInput.tsx  |  2 +-
     packages/react-search-tree/src/index.tsx      | 10 ++++--
     packages/react-tree/src/index.tsx             |  2 +-
     4 files changed, 26 insertions(+), 22 deletions(-)
    
    diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md
    index 860d3fd4d3..73d32f3c33 100644
    --- a/packages/react-search-tree/README.md
    +++ b/packages/react-search-tree/README.md
    @@ -24,39 +24,39 @@ import {  SearchTree } from 'uiw';
     const data = [
       {
         label: '上海市',
    -    key: '1-0-0',
    +    key: 1,
         children:[
    -      { label: '黄浦区', key: '1-0-1' },
    -      { label: '卢湾区', key: '1-0-2' },
    +      { label: '黄浦区', key: 2 },
    +      { label: '卢湾区', key: 3 },
           {
             label: '徐汇区',
    -        key: '1-0-3',
    +        key: 4,
             children:[
    -          { label: '半淞园路街道', key: '1-1-0' },
    -          { label: '南京东路街道', key: '1-2-0' },
    -          { label: '外滩街道', key: '1-3-0' },
    +          { label: '半淞园路街道', key: 6 },
    +          { label: '南京东路街道', key: 7 },
    +          { label: '外滩街道', key: 8 },
             ]
           },
         ]
       },
       {
         label: '北京市',
    -    key: '2-0-0',
    +    key: 9,
         children:[
    -      { label: '东城区', key: '2-1-0' },
    -      { label: '西城区', key: '2-2-0' },
    +      { label: '东城区', key: 10 },
    +      { label: '西城区', key: 11 },
           {
             label: '崇文区',
    -        key: '2-3-0',
    +        key: 12,
             children:[
    -          { label: '东花市街道', key: '2-3-1' },
    -          { label: '体育馆路街道', key: '2-3-2' },
    -          { label: '前门街道', key: '2-3-3' },
    +          { label: '东花市街道', key: 13 },
    +          { label: '体育馆路街道', key: 14 },
    +          { label: '前门街道', key: 15 },
             ]
           },
         ]
       },
    -  { label: '澳门', key: '3' },
    +  { label: '澳门', key: 16 },
     ];
     
     const datas =[
    @@ -67,7 +67,7 @@ const datas =[
     
     const Demo = () => {
     
    -const [value,valueSet]=useState([{ label: '东花市街道', key: '2-3-1' }])
    +const [value,valueSet]=useState([{ label: '黄浦区', key: 12 }])
     const [values,valuesSet]=useState([{ label: '北京市', key: 1 }])
     const [valueSinge,valueSingeSet]=useState([{ label: '上海市', key: '1-0-0' }])
     
    @@ -92,7 +92,7 @@ const onChangeSinge=(selectd, selectedAll,  isChecked)=>{
           
             
             console.log('multiple',searchValue)}
               onChange={onChange}
    diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx
    index 2af5714b5e..e9e12a5c92 100644
    --- a/packages/react-search-tree/src/SearchTagInput.tsx
    +++ b/packages/react-search-tree/src/SearchTagInput.tsx
    @@ -128,7 +128,7 @@ function SearchTagInput(props: SearchTagInputPro
           options,
         };
         return React.cloneElement(content as JSX.Element, newProps);
    -  }, [JSON.stringify(selectedOption), options, emptyOption]);
    +  }, [JSON.parse(JSON.stringify(selectedOption)), options, emptyOption]);
     
       return (
         ;
    +type SelectOtpion = Record;
     
     // type TreeCheckedsProps = TreeCheckedProps & Partial>
     function TreeCheckeds(
    @@ -22,9 +22,13 @@ function TreeCheckeds(
         keysSet(keys || []);
       }, [props.values]);
     
    -  const onSelected = (_1: any, _2: any, isChecked: boolean, evn: TreeData) => {
    +  const onSelected = (_: any, item: any, isChecked: boolean, evn: TreeData) => {
         const curSelectOption: SelectOtpion = getOptionsRecursion([evn], selectOption, isChecked);
    -    const option = Object.entries(curSelectOption).map(([key, label]) => ({ key, label } as V));
    +    let isNumberKey = false;
    +    if (typeof item === 'number') isNumberKey = true;
    +    const option = Object.entries(curSelectOption).map(
    +      ([key, label]) => ({ key: isNumberKey ? Number.parseInt(key) : key, label } as V),
    +    );
         props.onSelected?.(option, { key: evn.key, label: evn.label as string } as V, isChecked);
       };
     
    diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx
    index ef8c9bfe9a..e105ebcef2 100644
    --- a/packages/react-tree/src/index.tsx
    +++ b/packages/react-tree/src/index.tsx
    @@ -45,7 +45,7 @@ export interface TreeProps extends IProps, Omit {
         item: TreeData,
         evn: React.MouseEvent,
       ) => void;
    -  onChange?: (key: string | number, eys: (string | number | undefined)[]) => void;
    +  onChange?: (key: string | number | undefined, eys: (string | number | undefined)[]) => void;
       value?: TreeData['key'][];
     }
     
    
    From fa492904ecf21222ea6509521d93dff924853028 Mon Sep 17 00:00:00 2001
    From: zhouzheng 
    Date: Wed, 9 Mar 2022 20:21:58 +0800
    Subject: [PATCH 533/575] =?UTF-8?q?fix(Tree):=20=E8=8A=82=E7=82=B9key?=
     =?UTF-8?q?=E4=B8=BA0=E6=97=B6children=E6=97=A0=E6=B3=95=E6=B8=B2=E6=9F=93?=
     =?UTF-8?q?=20#619?=
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    ---
     packages/react-tree/src/TreeNode.tsx | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/packages/react-tree/src/TreeNode.tsx b/packages/react-tree/src/TreeNode.tsx
    index 529fc54664..44955b934f 100644
    --- a/packages/react-tree/src/TreeNode.tsx
    +++ b/packages/react-tree/src/TreeNode.tsx
    @@ -49,7 +49,7 @@ export default function TreeNode(props: TreeNodeProps) {
       } = props;
       let isOpen = false;
     
    -  if (parent && parent.key) {
    +  if (parent && (parent.key || parent.key === 0)) {
         isOpen = !!(openKeys && openKeys.indexOf(parent.key) > -1);
       }
       const onExit = useCallback((node: HTMLElement) => {
    
    From f94765b63775d9fc17ab26ddb1f8938fceb0775e Mon Sep 17 00:00:00 2001
    From: zhouzheng 
    Date: Thu, 10 Mar 2022 09:51:27 +0800
    Subject: [PATCH 534/575] =?UTF-8?q?style(Progress):=20=E8=BF=9B=E5=BA=A6?=
     =?UTF-8?q?=E8=B5=B7=E5=A7=8B=E5=92=8C=E6=9C=AB=E5=B0=BE=E5=9C=86=E8=A7=92?=
     =?UTF-8?q?=E6=BA=A2=E5=87=BA?=
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    ---
     packages/react-progress/README.md           | 3 ++-
     packages/react-progress/src/style/line.less | 1 +
     2 files changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/packages/react-progress/README.md b/packages/react-progress/README.md
    index ef47a180b0..fd48e53805 100644
    --- a/packages/react-progress/README.md
    +++ b/packages/react-progress/README.md
    @@ -11,7 +11,7 @@ Progress 进度条
     import { Progress } from 'uiw';
     const { Line, Circle } = Progress;
     // or
    -import Progress from '@uiw/react-progress'; 
    +import Progress from '@uiw/react-progress';
     ```
     
     ### 基本用法
    @@ -176,6 +176,7 @@ class Demo extends React.Component {
             )}/>
              `已完成`}/>
              `${percent}℃`}/>
    +        
           
    ) } diff --git a/packages/react-progress/src/style/line.less b/packages/react-progress/src/style/line.less index 46cca1481d..9582302d45 100644 --- a/packages/react-progress/src/style/line.less +++ b/packages/react-progress/src/style/line.less @@ -65,6 +65,7 @@ width: 100%; border-radius: 100px; background-color: #e5e9f2; + overflow: hidden; } &-bg { height: 100%; From 2484e75f158b2af808ee071cd63aa4e1116d5b84 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 09:51:27 +0800 Subject: [PATCH 535/575] =?UTF-8?q?style(Progress):=20=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E8=B5=B7=E5=A7=8B=E5=92=8C=E6=9C=AB=E5=B0=BE=E5=9C=86=E8=A7=92?= =?UTF-8?q?=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-progress/README.md | 3 ++- packages/react-progress/src/style/line.less | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-progress/README.md b/packages/react-progress/README.md index ef47a180b0..fd48e53805 100644 --- a/packages/react-progress/README.md +++ b/packages/react-progress/README.md @@ -11,7 +11,7 @@ Progress 进度条 import { Progress } from 'uiw'; const { Line, Circle } = Progress; // or -import Progress from '@uiw/react-progress'; +import Progress from '@uiw/react-progress'; ``` ### 基本用法 @@ -176,6 +176,7 @@ class Demo extends React.Component { )}/> `已完成`}/> `${percent}℃`}/> +
    ) } diff --git a/packages/react-progress/src/style/line.less b/packages/react-progress/src/style/line.less index 46cca1481d..9582302d45 100644 --- a/packages/react-progress/src/style/line.less +++ b/packages/react-progress/src/style/line.less @@ -65,6 +65,7 @@ width: 100%; border-radius: 100px; background-color: #e5e9f2; + overflow: hidden; } &-bg { height: 100%; From 2f6bbd939ceb89b2e5941f6acfb88b1f1aa60d72 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 13:18:34 +0800 Subject: [PATCH 536/575] =?UTF-8?q?fix(SearchSelect):=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=B8=8D=E5=86=8D=E5=B1=95=E5=BC=80=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=80=89=E9=A1=B9&=E6=96=87=E6=A1=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 29 +++++++++------ packages/react-search-tree/README.md | 37 ++++++++++++------- .../react-search-tree/src/SearchTagInput.tsx | 8 ++-- packages/react-search-tree/src/index.tsx | 2 +- 4 files changed, 44 insertions(+), 32 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 3e1f97297e..5c7190df45 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -65,6 +65,7 @@ export default function SearchSelect(props: SearchSelectProps) { const [selectedValue, setSelectedValue] = useState>([]); const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); + const inputRef = useRef(null); const omitTagCount = useMemo( () => (maxTagCount && selectedValue.length > maxTagCount ? selectedValue.length - maxTagCount : 0), [selectedValue.length], @@ -149,7 +150,7 @@ export default function SearchSelect(props: SearchSelectProps) { // 渲染icon function renderSelectIcon(type: string) { let selectIconType; - if (type === 'enter' && allowClear && selectedValue) { + if (type === 'enter' && allowClear && (selectedValue.length > 0 || selectedLabel)) { selectIconType = 'close'; } else { selectIconType = ''; @@ -157,20 +158,19 @@ export default function SearchSelect(props: SearchSelectProps) { setSelectIconType(selectIconType); } // handle change - function handleInputChange(e: React.ChangeEvent) { - const value = e.target.value; + function handleInputChange(value: string) { setInnerIsOpen(true); setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); showSearch && onSearch && onSearch(value); - // handleSelectChange(value); } // 清除选中的值 - function resetSelectedValue() { - setInnerIsOpen(false); + function resetSelectedValue(e: React.MouseEvent) { + e.stopPropagation(); + inputRef.current?.focus(); setSelectedValue([]); - setSelectedLabel(''); - setSelectIconType(''); + handleInputChange(''); + setInnerIsOpen(false); handleSelectChange('', []); } function handleSelectChange(value: ValueType | Array, options: Array) { @@ -186,11 +186,11 @@ export default function SearchSelect(props: SearchSelectProps) { } function onVisibleChange(open: boolean) { + setInnerIsOpen(open); if (!open) setSelectedLabel(''); if (!isMultiple && selectedValue.length > 0) { setSelectedLabel(selectedValue[0].label); } - setInnerIsOpen(open); } return ( @@ -250,7 +250,10 @@ export default function SearchSelect(props: SearchSelectProps) { color="#393E48" {...tagProps} closable - onClose={() => handleItemsClick(index, item)} + onClose={(e) => { + e.stopPropagation(); + handleItemsClick(index, item); + }} > {item.label} @@ -266,9 +269,10 @@ export default function SearchSelect(props: SearchSelectProps) { className={`${prefixCls}-input-contents`} readOnly={!showSearch} size={size} + ref={inputRef} disabled={disabled} onKeyDown={inputKeyDown} - onChange={handleInputChange} + onChange={(e) => handleInputChange(e.target.value)} value={selectedLabel} placeholder={selectedValue.length ? '' : placeholder} /> @@ -281,8 +285,9 @@ export default function SearchSelect(props: SearchSelectProps) { handleInputChange(e.target.value)} value={selectedLabel} placeholder={placeholder} addonAfter={ diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 73d32f3c33..b1621a104d 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -61,7 +61,12 @@ const data = [ const datas =[ { label: '上海市', key: 0 }, - { label: '北京市', key: 1 }, + { + label: '北京市', key: 1, + children:[ + { label: '东城区', key: 10 }, + ] + }, { label: '成都市', key: 2 }, ] @@ -92,7 +97,7 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ console.log('multiple',searchValue)} onChange={onChange} @@ -104,9 +109,9 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ - console.log('singe',searchValue)} @@ -115,10 +120,9 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ options={datas} placeholder="请输入选择" /> - - + console.log('singe',searchValue)} @@ -127,7 +131,7 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ options={data} placeholder="请输入选择" /> - + ) @@ -145,7 +149,10 @@ import { SearchTree } from 'uiw'; const Demo = () => { return( <> - + 暂无数据..} @@ -247,7 +254,7 @@ const form=useRef() }} fields={{ searchTree: { - initialValue:[{ label: '东花市街道', key: '2-3-1' },{ label: '前门街道', key: '2-3-3' }], + initialValue:[ { label: '黄浦区', key: '1-0-1' }, { label: '卢湾区', key: '1-0-2' }], children: ( { return (
    - - {fields.searchTree} + +
    多选
    + {fields.searchTree}
    - - {fields.searchTreeSinge} + + + {fields.searchTreeSinge} diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index e9e12a5c92..edc6e30f12 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -25,7 +25,6 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte size?: 'large' | 'default' | 'small'; onChange: (selectedAll: Array, selectd: V, isChecked: boolean) => void; onSearch?: (seachValue: string) => void; - // mode?: 'single' | 'multiple'; loading?: boolean; placeholder?: string; emptyOption?: boolean | React.ReactNode; @@ -35,7 +34,6 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte function SearchTagInput(props: SearchTagInputProps) { const { prefixCls = 'w-search-tree', - mode = 'single', size = 'default', disabled = false, allowClear = false, @@ -51,11 +49,10 @@ function SearchTagInput(props: SearchTagInputPro onChange, onSearch, emptyOption, - ...others + // ...others } = props; const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); - // const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState>(values); const optionRef = useRef>(); @@ -101,9 +98,10 @@ function SearchTagInput(props: SearchTagInputPro // 清除选中的值 function resetSelectedValue(e: any) { e.stopPropagation(); + inputRef.current?.focus(); + handleInputChange(''); setInnerIsOpen(false); setSelectedOption([]); - handleInputChange(''); handleSelectChange([]); } diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 397cc8f9f2..cd9658379f 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -155,7 +155,7 @@ function SearchTree(props: SearchTreeProps) { let isEmpt = true; options.forEach((opt) => (isEmpt = isEmpt && !!opt.hideNode)); - isEmptySet(isEmpt); + isEmptySet(typeof emptyOption === 'boolean' && isEmpt ? isEmpt : emptyOption); }; return ( From 8c22baf40e04df05a9e13cb5b9a375dd8f99a423 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 13:18:34 +0800 Subject: [PATCH 537/575] =?UTF-8?q?fix(SearchSelect):=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=B8=8D=E5=86=8D=E5=B1=95=E5=BC=80=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=80=89=E9=A1=B9&=E6=96=87=E6=A1=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/src/index.tsx | 29 +++++++++------ packages/react-search-tree/README.md | 37 ++++++++++++------- .../react-search-tree/src/SearchTagInput.tsx | 8 ++-- packages/react-search-tree/src/index.tsx | 2 +- 4 files changed, 44 insertions(+), 32 deletions(-) diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 3e1f97297e..5c7190df45 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -65,6 +65,7 @@ export default function SearchSelect(props: SearchSelectProps) { const [selectedValue, setSelectedValue] = useState>([]); const [selectedLabel, setSelectedLabel] = useState(''); const [selectIconType, setSelectIconType] = useState(''); + const inputRef = useRef(null); const omitTagCount = useMemo( () => (maxTagCount && selectedValue.length > maxTagCount ? selectedValue.length - maxTagCount : 0), [selectedValue.length], @@ -149,7 +150,7 @@ export default function SearchSelect(props: SearchSelectProps) { // 渲染icon function renderSelectIcon(type: string) { let selectIconType; - if (type === 'enter' && allowClear && selectedValue) { + if (type === 'enter' && allowClear && (selectedValue.length > 0 || selectedLabel)) { selectIconType = 'close'; } else { selectIconType = ''; @@ -157,20 +158,19 @@ export default function SearchSelect(props: SearchSelectProps) { setSelectIconType(selectIconType); } // handle change - function handleInputChange(e: React.ChangeEvent) { - const value = e.target.value; + function handleInputChange(value: string) { setInnerIsOpen(true); setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); showSearch && onSearch && onSearch(value); - // handleSelectChange(value); } // 清除选中的值 - function resetSelectedValue() { - setInnerIsOpen(false); + function resetSelectedValue(e: React.MouseEvent) { + e.stopPropagation(); + inputRef.current?.focus(); setSelectedValue([]); - setSelectedLabel(''); - setSelectIconType(''); + handleInputChange(''); + setInnerIsOpen(false); handleSelectChange('', []); } function handleSelectChange(value: ValueType | Array, options: Array) { @@ -186,11 +186,11 @@ export default function SearchSelect(props: SearchSelectProps) { } function onVisibleChange(open: boolean) { + setInnerIsOpen(open); if (!open) setSelectedLabel(''); if (!isMultiple && selectedValue.length > 0) { setSelectedLabel(selectedValue[0].label); } - setInnerIsOpen(open); } return ( @@ -250,7 +250,10 @@ export default function SearchSelect(props: SearchSelectProps) { color="#393E48" {...tagProps} closable - onClose={() => handleItemsClick(index, item)} + onClose={(e) => { + e.stopPropagation(); + handleItemsClick(index, item); + }} > {item.label} @@ -266,9 +269,10 @@ export default function SearchSelect(props: SearchSelectProps) { className={`${prefixCls}-input-contents`} readOnly={!showSearch} size={size} + ref={inputRef} disabled={disabled} onKeyDown={inputKeyDown} - onChange={handleInputChange} + onChange={(e) => handleInputChange(e.target.value)} value={selectedLabel} placeholder={selectedValue.length ? '' : placeholder} /> @@ -281,8 +285,9 @@ export default function SearchSelect(props: SearchSelectProps) { handleInputChange(e.target.value)} value={selectedLabel} placeholder={placeholder} addonAfter={ diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index 73d32f3c33..b1621a104d 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -61,7 +61,12 @@ const data = [ const datas =[ { label: '上海市', key: 0 }, - { label: '北京市', key: 1 }, + { + label: '北京市', key: 1, + children:[ + { label: '东城区', key: 10 }, + ] + }, { label: '成都市', key: 2 }, ] @@ -92,7 +97,7 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ console.log('multiple',searchValue)} onChange={onChange} @@ -104,9 +109,9 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ - console.log('singe',searchValue)} @@ -115,10 +120,9 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ options={datas} placeholder="请输入选择" /> - - + console.log('singe',searchValue)} @@ -127,7 +131,7 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ options={data} placeholder="请输入选择" /> - + ) @@ -145,7 +149,10 @@ import { SearchTree } from 'uiw'; const Demo = () => { return( <> - + 暂无数据..} @@ -247,7 +254,7 @@ const form=useRef() }} fields={{ searchTree: { - initialValue:[{ label: '东花市街道', key: '2-3-1' },{ label: '前门街道', key: '2-3-3' }], + initialValue:[ { label: '黄浦区', key: '1-0-1' }, { label: '卢湾区', key: '1-0-2' }], children: ( { return (
    - - {fields.searchTree} + +
    多选
    + {fields.searchTree}
    - - {fields.searchTreeSinge} + + + {fields.searchTreeSinge} diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index e9e12a5c92..edc6e30f12 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -25,7 +25,6 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte size?: 'large' | 'default' | 'small'; onChange: (selectedAll: Array, selectd: V, isChecked: boolean) => void; onSearch?: (seachValue: string) => void; - // mode?: 'single' | 'multiple'; loading?: boolean; placeholder?: string; emptyOption?: boolean | React.ReactNode; @@ -35,7 +34,6 @@ export interface SearchTagInputProps extends IProps, DropdownProps, DropConte function SearchTagInput(props: SearchTagInputProps) { const { prefixCls = 'w-search-tree', - mode = 'single', size = 'default', disabled = false, allowClear = false, @@ -51,11 +49,10 @@ function SearchTagInput(props: SearchTagInputPro onChange, onSearch, emptyOption, - ...others + // ...others } = props; const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); - // const isMultiple = useMemo(() => mode === 'multiple', [mode]); const [innerIsOpen, setInnerIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState>(values); const optionRef = useRef>(); @@ -101,9 +98,10 @@ function SearchTagInput(props: SearchTagInputPro // 清除选中的值 function resetSelectedValue(e: any) { e.stopPropagation(); + inputRef.current?.focus(); + handleInputChange(''); setInnerIsOpen(false); setSelectedOption([]); - handleInputChange(''); handleSelectChange([]); } diff --git a/packages/react-search-tree/src/index.tsx b/packages/react-search-tree/src/index.tsx index 397cc8f9f2..cd9658379f 100644 --- a/packages/react-search-tree/src/index.tsx +++ b/packages/react-search-tree/src/index.tsx @@ -155,7 +155,7 @@ function SearchTree(props: SearchTreeProps) { let isEmpt = true; options.forEach((opt) => (isEmpt = isEmpt && !!opt.hideNode)); - isEmptySet(isEmpt); + isEmptySet(typeof emptyOption === 'boolean' && isEmpt ? isEmpt : emptyOption); }; return ( From 978175ac79990fa2e25cd3b247398eb131e4c93c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 14:57:35 +0800 Subject: [PATCH 538/575] =?UTF-8?q?fix(Popover):=20=E4=BF=AE=E5=A4=8Dchild?= =?UTF-8?q?ren=E4=B8=BAIcon=E5=BC=B9=E7=AA=97=E6=97=A0=E6=B3=95=E5=87=86?= =?UTF-8?q?=E7=A1=AE=E5=AE=9A=E4=BD=8D=E9=97=AE=E9=A2=98=20=20#639?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-popover/README.md | 29 ++++++++++++++++--- packages/react-popover/src/index.tsx | 6 +++- .../src/routes/components/popover/index.tsx | 4 +-- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/packages/react-popover/README.md b/packages/react-popover/README.md index 2b4f07e65f..43740df760 100644 --- a/packages/react-popover/README.md +++ b/packages/react-popover/README.md @@ -21,7 +21,7 @@ import Popover from '@uiw/react-popover'; ```jsx import React from 'react'; import ReactDOM from 'react-dom'; -import { Popover, Card, Button } from 'uiw'; +import { Popover, Card, Icon,Row,Col, Button } from 'uiw'; class Demo extends React.Component { constructor() { @@ -38,7 +38,7 @@ class Demo extends React.Component { } render() { return ( -
    + -
    +
    + 更多} style={{ width: 200 }}> +
    Are you sure you want to delete these items? You won't be able to recover them.
    +
    + + +
    + + } + > + +
    +
    +
    ) } } @@ -323,4 +344,4 @@ ReactDOM.render(, _mount_); | autoAdjustOverflow | 弹出层被遮挡时自动调整位置,继承 `` 组件属性 | Boolean | `false` | | onVisibleChange | 显示隐藏的回调,继承 `` 组件属性 | Function(isVisible:bool) | - | -更多属性请参考 [OverlayTrigger](#/components/overlay-trigger)。 \ No newline at end of file +更多属性请参考 [OverlayTrigger](#/components/overlay-trigger)。 diff --git a/packages/react-popover/src/index.tsx b/packages/react-popover/src/index.tsx index e2fce0fe4e..d10e8d4e59 100644 --- a/packages/react-popover/src/index.tsx +++ b/packages/react-popover/src/index.tsx @@ -45,7 +45,11 @@ export default class Popover extends React.Component {
    } > - {typeof this.props.children === 'object' ? this.props.children : {this.props.children}} + {typeof this.props.children === 'object' && (this.props.children as JSX.Element).type.name !== 'Icon' ? ( + this.props.children + ) : ( + {this.props.children} + )} ); } diff --git a/website/src/routes/components/popover/index.tsx b/website/src/routes/components/popover/index.tsx index 9065fea6c0..fe41c7ac5a 100755 --- a/website/src/routes/components/popover/index.tsx +++ b/website/src/routes/components/popover/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import { Popover, Button, Input, Card } from 'uiw'; +import { Popover, Button, Icon, Row, Col, Input, Card } from 'uiw'; import Markdown from '../../../components/Markdown'; export default function Page() { return ( { const md = await import('uiw/node_modules/@uiw/react-popover/README.md'); return md.default || md; From af445d6f3873f9b166bd346c98e1d09212ea90e4 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 15:11:33 +0800 Subject: [PATCH 539/575] =?UTF-8?q?docs(Popover):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-popover/README.md | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/react-popover/README.md b/packages/react-popover/README.md index 43740df760..01cdacbc20 100644 --- a/packages/react-popover/README.md +++ b/packages/react-popover/README.md @@ -38,7 +38,7 @@ class Demo extends React.Component { } render() { return ( - + -
    - 更多} style={{ width: 200 }}> -
    Are you sure you want to delete these items? You won't be able to recover them.
    -
    - - -
    - - } - > - -
    +
    + 更多} style={{ width: 200 }}> +
    Are you sure you want to delete these items? You won't be able to recover them.
    +
    + +
    + + } + > + +
    +
    ) } From b8142e0be3f1405b0ff344dcb7ec10cd9007764e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 10 Mar 2022 19:44:02 +0800 Subject: [PATCH 540/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?form=E5=9C=A8=E6=B2=A1=E6=9C=89initValue=E6=83=85=E5=86=B5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=B5=8B=E5=80=BC=E4=BA=86=E7=A9=BA=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 2 +- packages/react-search-select/src/index.tsx | 28 +++++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index 45acb84a30..514ccc2c9f 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -237,7 +237,7 @@ ReactDOM.render(, _mount_); | placeholder | 选择框默认文字 | String | - | - | | maxTagCount | 多选模式下展示tag的个数,默认所有 | number | - | - | | labelInValue | 开启会把 Select 的 value 类型从 `string/number` 变为 `{ value: string/number, label: string }` | Boolean | `false` | - | -| showSearch | 使单选模式可搜索 | Boolean | - | - | +| showSearch | 是否可搜索 | Boolean | - | - | | size | 选择框尺寸 | Enum{large, default, small } | `default` | - | | tagProps | 将参数传递给 [``](https://uiwjs.github.io/#/components/tag) 组件 | `TagProps` | `{}` | `4.13.0` | | onChange | 选中 option,或 input 的 value,调用此函数 | function(value:String \| Number \| String[] \| Number[] \| LabeledValue \| LabeledValue[]) | - | - | diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 5c7190df45..38df40020a 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -72,17 +72,21 @@ export default function SearchSelect(props: SearchSelectProps) { ); const divRef = useRef(null); + const valueVerify = (value: ValueType | Array | undefined) => { + return value !== undefined && value !== ''; + }; + const valueRef = useRef>(); valueRef.current = useMemo(() => selectedValue, [selectedValue]); useEffect(() => { - if (value === undefined && defaultValue !== undefined) { - selectedValueChange(defaultValue); + if (!valueVerify(value) && valueVerify(defaultValue)) { + selectedValueChange(defaultValue!); } }, []); useEffect(() => { - if (value !== undefined) { + if (valueVerify(value)) { selectedValueChange(value!); } }, [JSON.stringify(value)]); @@ -125,6 +129,11 @@ export default function SearchSelect(props: SearchSelectProps) { return values; } + const selectedLabelChange = (value: string) => { + setSelectedLabel(value); + showSearch && onSearch?.(value); + }; + function handleItemClick(item: SearchSelectOptionData) { setInnerIsOpen(false); const values = [item]; @@ -160,9 +169,10 @@ export default function SearchSelect(props: SearchSelectProps) { // handle change function handleInputChange(value: string) { setInnerIsOpen(true); - setSelectedLabel(value); setSelectIconType(showSearch && value ? 'loading' : ''); - showSearch && onSearch && onSearch(value); + // setSelectedLabel(value); + // showSearch && onSearch && onSearch(value); + selectedLabelChange(value); } // 清除选中的值 function resetSelectedValue(e: React.MouseEvent) { @@ -185,9 +195,10 @@ export default function SearchSelect(props: SearchSelectProps) { } } - function onVisibleChange(open: boolean) { - setInnerIsOpen(open); - if (!open) setSelectedLabel(''); + function onVisibleChange(isOpen: boolean) { + const selectedValue = valueRef.current as SearchSelectOptionData[]; + setInnerIsOpen(isOpen); + if (!isOpen) selectedLabelChange(''); if (!isMultiple && selectedValue.length > 0) { setSelectedLabel(selectedValue[0].label); } @@ -235,6 +246,7 @@ export default function SearchSelect(props: SearchSelectProps) { ref={divRef} onMouseOver={() => renderSelectIcon('enter')} onMouseLeave={() => renderSelectIcon('leave')} + onClick={() => inputRef.current?.focus()} style={{ width: '100%', maxWidth: 'none', ...style }} > {isMultiple ? ( From 490c716e46973b54bd82778bfb8cfffb49201b0c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 15 Mar 2022 11:27:13 +0800 Subject: [PATCH 541/575] =?UTF-8?q?feat(Transfer):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8F=8C=E6=A0=8F=E7=A9=BF=E6=A2=AD=E9=80=89=E6=8B=A9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 192 +++++++++++++++++ packages/react-transfer/package.json | 54 +++++ packages/react-transfer/src/index.tsx | 197 ++++++++++++++++++ packages/react-transfer/src/style/index.less | 33 +++ packages/react-transfer/tsconfig.json | 8 + packages/uiw/package.json | 3 +- packages/uiw/src/index.ts | 2 + website/src/menu.json | 1 + website/src/routers.tsx | 2 + .../src/routes/components/transfer/index.tsx | 14 ++ 10 files changed, 505 insertions(+), 1 deletion(-) create mode 100644 packages/react-transfer/README.md create mode 100644 packages/react-transfer/package.json create mode 100644 packages/react-transfer/src/index.tsx create mode 100644 packages/react-transfer/src/style/index.less create mode 100644 packages/react-transfer/tsconfig.json create mode 100644 website/src/routes/components/transfer/index.tsx diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md new file mode 100644 index 0000000000..3abcb351b7 --- /dev/null +++ b/packages/react-transfer/README.md @@ -0,0 +1,192 @@ +Transfer 双栏穿梭选择框控件 +=== + +选择一个或以上的选项后,点击左右的方向按钮,可以把选中的选项移动到另一栏为选中。在 v4.14.0+ 添加。 + +## 基础用法 + +最简单的用法。 + + +```jsx +import React from 'react'; +import { Transfer } from 'uiw'; + +function Demo() { + + const options = [ + { label: '武汉市', key: 1 }, + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + + const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }]) + + return ( + + { + valueSet(option) + }} + /> + + ); +} + +ReactDOM.render(, _mount_); +``` + +## 树形节点 + + +```jsx +import React from 'react'; +import { Transfer } from 'uiw'; + +function Demo() { +const options = [ + { + label: '武汉市', + key: 1, + children: [ + { label: '新洲区', key: 2, disabled: true }, + { label: '武昌区', key: 3 }, + { + label: '汉南区', + key: 4, + children: [ + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + }, + ] + } + ]; + + const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }]) + + return ( + + 树形节点 + { + valueSet(option) + }} + /> + + ); +} + +ReactDOM.render(, _mount_); +``` + +## Form中使用 + + +```jsx +import React from 'react'; +import { Transfer, Form } from 'uiw'; + +function Demo() { + + const options = [ + { label: '武汉市', key: 1 }, + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + + const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }]) + const form=React.useRef() + + const setValue=()=>{ + form.current.setFields({ + transfer: [ + { label: '汉南区1', key: 5 }, + { label: '汉南区3', key: 7 }, + ] + }) + } + + const resetValue=()=>{ + form.current.resetForm() + } + + return ( + { + if (error.filed) { + return { ...error.filed }; + } + return null; + }} + onSubmit={({initial, current}) => { + const errorObj = {}; + if (!current.searchTree) { + errorObj.searchTree = '默认需要选择内容,选择入内容'; + } + if(Object.keys(errorObj).length > 0) { + const err = new Error(); + err.filed = errorObj; + Notify.error({ title: '提交失败!', description: '请确认提交表单是否正确!' }); + throw err; + } + Notify.success({ + title: '提交成功!', + description: `表单提交成功,选择值为:${current.selectField},将自动填充初始化值!`, + }); + }} + fields={{ + transfer: { + initialValue:[{ label: '汉南区2', key: 6 },{ label: '汉南区3', key: 7 },], + children: ( + + ) + } + }} + > + {({ fields, state, canSubmit }) => { + return ( +
    + + {fields.transfer} + + + + + + + + + + +
    +                    {JSON.stringify(state.current, null, 2)}
    +                  
    + +
    +
    + ) + }} + + ); +} + +ReactDOM.render(, _mount_); +``` + +## Props + +| 参数 | 说明 | 类型 | 默认值 | +|--------- |-------- |--------- |-------- | +| bodyStyle | 选项区域样式 | Object | { height: 200px, overflow-y: auto } | +| onChange | 点击穿梭时回调 | (arrow, selectkeys) => void | - | +| value | 指定当前选中的条目 | [{label, key }] | - | +| options | 下拉数据源,可参考Tree下拉数据源 | [{ label, key, children: [{label, key}] }] | - | diff --git a/packages/react-transfer/package.json b/packages/react-transfer/package.json new file mode 100644 index 0000000000..5967894c02 --- /dev/null +++ b/packages/react-transfer/package.json @@ -0,0 +1,54 @@ +{ + "name": "@uiw/react-transfer", + "version": "4.13.9", + "description": "TreeChecked component", + "homepage": "https://uiwjs.github.io/#/components/transfer", + "repository": { + "type": "git", + "url": "https://github.com/uiwjs/uiw.git" + }, + "license": "MIT", + "main": "cjs/index.js", + "module": "esm/index.js", + "files": [ + "dist.css", + "cjs", + "esm", + "src" + ], + "publishConfig": { + "access": "public" + }, + "keywords": [ + "checked", + "design", + "uiw", + "uiw-react", + "react.js", + "react", + "react-component", + "component", + "components", + "ui", + "css", + "uikit", + "react-ui", + "framework", + "front-end", + "frontend" + ], + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + }, + "dependencies": { + "@uiw/react-card": "^4.13.9", + "@uiw/react-grid": "^4.13.9", + "@uiw/react-icon": "^4.13.9", + "@uiw/react-input": "^4.13.9", + "@uiw/react-tree": "^4.13.9", + "@uiw/react-tree-checked": "^4.13.9", + "@uiw/react-checkbox": "^4.13.9", + "@uiw/utils": "^4.13.9" + } +} diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx new file mode 100644 index 0000000000..cadb86c4b6 --- /dev/null +++ b/packages/react-transfer/src/index.tsx @@ -0,0 +1,197 @@ +import React, { useEffect, useState } from 'react'; +import { IProps } from '@uiw/utils'; +import Card from '@uiw/react-card'; +import Icon from '@uiw/react-icon'; +import Input from '@uiw/react-Input'; +import TreeChecked from '@uiw/react-tree-checked'; +import { TreeData } from '@uiw/react-tree'; +import './style/index.less'; + +export interface TransferOptionType { + key: string | number; + label: string; +} + +interface TransferProps extends IProps { + placeholder?: string; + bodyStyle?: React.CSSProperties; + + onChange?: (transfer: string, selectedAll: Array) => void; + onSearch?: (seachValue: string) => void; + showSearch?: boolean; + value?: Array; + options?: TreeData[]; + // emptyOption?: React.ReactNode; +} + +function Transfer(props: TransferProps) { + const { + placeholder, + options, + value, + showSearch = false, + + bodyStyle, + style, + className, + prefixCls = 'w-transfer', + } = props; + const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); + + const [searchValueLeft, searchValueLeftSet] = useState(''); + const [searchValueRight, searchValueRightSet] = useState(''); + const [selectedOptions, selectedOptionSet] = useState>(options || []); + const [selectOption, selectOptionSet] = useState>(new Map()); + const [leftSelectedKeys, leftSelectedKeySet] = useState>([]); + const [rightSelectedKeys, rightSelectedKeySet] = useState>([]); + const [rightOpions, rightOpionSet] = useState>([]); + + useEffect(() => { + leftSelectedKeySet([]); + rightSelectedKeySet([]); + + rightOpionSet(value || []); + value?.forEach((selectd) => selectOption.set(selectd.key, selectd.label)); + hiddenNode((child) => !!value?.find((selectd) => child.key === selectd.key)); + }, [JSON.stringify(value)]); + + const hiddenNode = (callBackfn: (child: TreeData) => boolean) => { + const hiddenNodeForSeach = (childrens: TreeData[]) => { + childrens.forEach((child: TreeData) => { + const isHide = callBackfn(child); // && parentIsHide; + if (!!child.children?.length) { + hiddenNodeForSeach(child.children); + const find = child.children.find((item) => !item.hideNode); + child.hideNode = isHide && !find; + } else { + child.hideNode = isHide; + } + }); + }; + hiddenNodeForSeach(selectedOptions); + selectedOptionSet([...selectedOptions]); + }; + + const leftTreeOnSelected = ( + selectedKeys: Array, + _1: any, + isChecked: boolean, + evn: TreeData, + ) => { + leftSelectedKeySet(selectedKeys); + const selectOptionTemp = getOptionsRecursion([evn], selectOption, isChecked); + selectOptionSet(selectOptionTemp); + }; + + const rightTreeOnSelected = ( + selectedKeys: Array, + _1: any, + isChecked: boolean, + evn: TreeData, + ) => { + rightSelectedKeySet(selectedKeys); + selectedKeys.forEach((key) => { + selectOption.delete(key!); + }); + selectOptionSet(selectOption); + }; + + const getOptionsRecursion = (childrens: TreeData[], selectOption: Map, isAdd: boolean) => { + const addOrDel = (key: string | number, label: string, isAdd: boolean) => { + if (isAdd) { + selectOption.set(key, label); + } else { + selectOption.delete(key); + } + }; + const iteratorParent = (child: TreeData) => { + // 向上迭代 + if (child.parent) { + const selectCount = child.parent.children.filter((child: TreeData) => !selectOption.get(child.key!)).length; + addOrDel(child.parent.key, child.parent.label, selectCount === 0); + iteratorParent(child.parent); + } + }; + + childrens.forEach((child: TreeData) => { + if (!!child.children?.length) { + selectOption = getOptionsRecursion(child.children, selectOption, isAdd); + } + addOrDel(child.key!, child.label?.toString()!, isAdd); + iteratorParent(child); + }); + return selectOption; + }; + + const transferClick = (transferType: string) => { + const option: Array = []; + selectOption.forEach((label, key) => option.push({ key, label })); + props.onChange?.(transferType, option); + }; + + const searchValueLeftChange = (vlaue: string) => { + searchValueLeftSet(vlaue); + }; + + const searchValueRightChange = (vlaue: string) => { + searchValueRightSet(vlaue); + }; + + return ( +
    + + {showSearch && ( + ) => searchValueLeftChange(e.target.value)} + /> + )} +
    + +
    +
    +
    + transferClick('left')} + type="down-square-o" + className={`${prefixCls}-arrow-left`} + style={{ transform: 'rotate(-90deg)', fontSize: 20 }} + /> + transferClick('right')} + type="down-square-o" + className={`${prefixCls}-arrow-right`} + style={{ transform: 'rotate(90deg)', fontSize: 20 }} + /> +
    + + {showSearch && ( + ) => searchValueRightChange(e.target.value)} + /> + )} +
    + +
    +
    +
    + ); +} + +export default Transfer; diff --git a/packages/react-transfer/src/style/index.less b/packages/react-transfer/src/style/index.less new file mode 100644 index 0000000000..4035ee68df --- /dev/null +++ b/packages/react-transfer/src/style/index.less @@ -0,0 +1,33 @@ +@w-transfer: ~'w-transfer'; + +.@{w-transfer} { + display: flex; + justify-content: space-between; + + &-card { + width: 50%; + } + + &-cheked-content { + height: 200px; + overflow-y: auto; + } + + &-arrow-content { + width: 50px; + height: 50px; + display: flex; + flex-direction: column; + align-self: center; + justify-content: space-between; + } + + &-arrow-left, + &-arrow-right { + &:hover { + cursor: pointer; + border-radius: 3px; + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 1px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + } +} diff --git a/packages/react-transfer/tsconfig.json b/packages/react-transfer/tsconfig.json new file mode 100644 index 0000000000..41a3f0ac82 --- /dev/null +++ b/packages/react-transfer/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig", + "include": ["src/**/*"], + "compilerOptions": { + "outDir": "./cjs", + "baseUrl": "." + } +} diff --git a/packages/uiw/package.json b/packages/uiw/package.json index 5099e1622f..41e372bebd 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -113,7 +113,8 @@ "@uiw/react-time-picker": "^4.13.9", "@uiw/react-tooltip": "^4.13.9", "@uiw/react-tree": "^4.13.9", - "@uiw/react-tree-checked": "^4.13.9" + "@uiw/react-tree-checked": "^4.13.9", + "@uiw/react-transfer": "^4.13.9" }, "browserslist": { "production": [ diff --git a/packages/uiw/src/index.ts b/packages/uiw/src/index.ts index 31f4b8acd1..8c34dd6119 100644 --- a/packages/uiw/src/index.ts +++ b/packages/uiw/src/index.ts @@ -56,6 +56,7 @@ export * from '@uiw/react-tooltip'; export * from '@uiw/react-tree'; export * from '@uiw/react-tree-checked'; export * from '@uiw/react-search-tree'; +export * from '@uiw/react-transfer'; export { default as Affix } from '@uiw/react-affix'; export { default as Alert } from '@uiw/react-alert'; @@ -114,3 +115,4 @@ export { default as Tooltip } from '@uiw/react-tooltip'; export { default as Tree } from '@uiw/react-tree'; export { default as TreeChecked } from '@uiw/react-tree-checked'; export { default as SearchTree } from '@uiw/react-search-tree'; +export { default as Transfer } from '@uiw/react-transfer'; diff --git a/website/src/menu.json b/website/src/menu.json index 2dd1b80540..f6acaae0d4 100755 --- a/website/src/menu.json +++ b/website/src/menu.json @@ -53,6 +53,7 @@ { "name": "SearchTree 搜索树形控件", "path": "search-tree" }, { "name": "Slider 滑块输入条", "path": "slider" }, { "name": "TreeChecked 树形选择控件", "path": "tree-checked" }, + { "name": "Transfer 穿梭框", "path": "transfer" }, { "name": "Textarea 多行文本输入框", "path": "textarea" }, { "name": "Color 颜色选择器", diff --git a/website/src/routers.tsx b/website/src/routers.tsx index b65a05e2e0..29c27c341e 100755 --- a/website/src/routers.tsx +++ b/website/src/routers.tsx @@ -64,6 +64,7 @@ const Notify = Loadable(lazy(() => import('./routes/components/notify'))); const Tree = Loadable(lazy(() => import('./routes/components/tree'))); const TreeChecked = Loadable(lazy(() => import('./routes/components/tree-checked'))); const SearchTree = Loadable(lazy(() => import('./routes/components/search-tree'))); +const Transfer = Loadable(lazy(() => import('./routes/components/transfer'))); const Tag = Loadable(lazy(() => import('./routes/components/tag'))); const Tabs = Loadable(lazy(() => import('./routes/components/tabs'))); const Tooltip = Loadable(lazy(() => import('./routes/components/tooltip'))); @@ -155,6 +156,7 @@ export const routes: RouteObject[] = [ { path: '/components/tree', element: }, { path: '/components/tree-checked', element: }, { path: '/components/search-tree', element: }, + { path: '/components/transfer', element: }, { path: '/components/tag', element: }, { path: '/components/tabs', element: }, { path: '/components/tooltip', element: }, diff --git a/website/src/routes/components/transfer/index.tsx b/website/src/routes/components/transfer/index.tsx new file mode 100644 index 0000000000..688d05a017 --- /dev/null +++ b/website/src/routes/components/transfer/index.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { Form, Button, TreeChecked, Transfer, Row, Col, Card, Icon } from 'uiw'; +import Markdown from '../../../components/Markdown'; + +export default () => ( + { + const md = await import('uiw/node_modules/@uiw/react-transfer/README.md'); + return md.default || md; + }} + /> +); From 3554a37ece9002920ee21b6c96ce36a109a5427b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 15 Mar 2022 16:18:33 +0800 Subject: [PATCH 542/575] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 1 + package.json | 13 +++---- packages/react-transfer/README.md | 52 ++++++++++++++++++++++++++- packages/react-transfer/src/index.tsx | 9 ++--- 4 files changed, 64 insertions(+), 11 deletions(-) create mode 120000 debug diff --git a/debug b/debug new file mode 120000 index 0000000000..907201643a --- /dev/null +++ b/debug @@ -0,0 +1 @@ +/Users/zhouzheng/debug \ No newline at end of file diff --git a/package.json b/package.json index 14b3c2bbc5..2995bbeee6 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,13 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", - "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", - "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", - "lib:css:watch": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm --watch", - "lib:watch": "lerna exec --scope @uiw/react-file-input -- tsbb watch & npm run lib:css:watch", - "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-file-input", + "debug":"./debug", + "lib": "lerna exec --scope @uiw/react-transfer -- tsbb build --target react", + "lib:css": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o esm", + "lib:css:dist": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o lib --combine=dist.css", + "lib:css:watch": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o esm --watch", + "lib:watch": "lerna exec --scope @uiw/react-transfer -- tsbb watch & npm run lib:css:watch", + "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-transfer", "lib:build": "npm run lib && npm run lib:css && npm run lib:css:dist", "//>>>>>>>>>>>>": "<<<<<<<<<<", "watch:other:lib": "lerna exec --parallel --scope @uiw/* --ignore @uiw/doc -- tsbb watch", diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index 3abcb351b7..49767b14f8 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -71,7 +71,6 @@ const options = [ return ( - 树形节点 , _mount_); ``` +## 搜索选项 + + +```jsx +import React from 'react'; +import { Transfer } from 'uiw'; + +function Demo() { +const options = [ + { + label: '武汉市', + key: 1, + children: [ + { label: '新洲区', key: 2, disabled: true }, + { label: '武昌区', key: 3 }, + { + label: '汉南区', + key: 4, + children: [ + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + }, + ] + } + ]; + + const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }]) + + return ( + + { + valueSet(option) + }} + /> + + ); +} + +ReactDOM.render(, _mount_); +``` + ## Form中使用 @@ -190,3 +237,6 @@ ReactDOM.render(, _mount_); | onChange | 点击穿梭时回调 | (arrow, selectkeys) => void | - | | value | 指定当前选中的条目 | [{label, key }] | - | | options | 下拉数据源,可参考Tree下拉数据源 | [{ label, key, children: [{label, key}] }] | - | +| showSearch | 启用搜索 | boolean | false | +| placeholder | 搜索输入框文字 | string | - | +| onSearch | 搜索时回调函数 | (arrow, searchValue, searchkeys) => void | - | diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index cadb86c4b6..f01ded9540 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -17,7 +17,7 @@ interface TransferProps extends IProps { bodyStyle?: React.CSSProperties; onChange?: (transfer: string, selectedAll: Array) => void; - onSearch?: (seachValue: string) => void; + onSearch?: (transfer: string, seachValue: string, searchkeys: any) => void; showSearch?: boolean; value?: Array; options?: TreeData[]; @@ -130,6 +130,7 @@ function Transfer(props: TransferProps) { }; const searchValueLeftChange = (vlaue: string) => { + console.log('vlaue', vlaue); searchValueLeftSet(vlaue); }; @@ -140,7 +141,7 @@ function Transfer(props: TransferProps) { return (
    @@ -175,13 +176,13 @@ function Transfer(props: TransferProps) { />
    {showSearch && ( ) => searchValueRightChange(e.target.value)} /> From 4dcb8120008107314e6a42cb6a571d795099aa57 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 15 Mar 2022 17:32:14 +0800 Subject: [PATCH 543/575] =?UTF-8?q?feat(Transfer):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debug | 1 - package.json | 1 - packages/react-transfer/README.md | 8 ++++-- packages/react-transfer/package.json | 4 +-- packages/react-transfer/src/index.tsx | 38 ++++++++++++++++++++------- 5 files changed, 37 insertions(+), 15 deletions(-) delete mode 120000 debug diff --git a/debug b/debug deleted file mode 120000 index 907201643a..0000000000 --- a/debug +++ /dev/null @@ -1 +0,0 @@ -/Users/zhouzheng/debug \ No newline at end of file diff --git a/package.json b/package.json index 2995bbeee6..bf2b592733 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "debug":"./debug", "lib": "lerna exec --scope @uiw/react-transfer -- tsbb build --target react", "lib:css": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o esm", "lib:css:dist": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o lib --combine=dist.css", diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index 49767b14f8..758f117fca 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -113,7 +113,11 @@ const options = [ } ]; - const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }]) + const [value,valueSet] = React.useState([ + { label: '武昌区', key: 3 }, + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + ]) return ( @@ -239,4 +243,4 @@ ReactDOM.render(, _mount_); | options | 下拉数据源,可参考Tree下拉数据源 | [{ label, key, children: [{label, key}] }] | - | | showSearch | 启用搜索 | boolean | false | | placeholder | 搜索输入框文字 | string | - | -| onSearch | 搜索时回调函数 | (arrow, searchValue, searchkeys) => void | - | +| onSearch | 搜索时回调函数 | (arrow, searchValue) => void | - | diff --git a/packages/react-transfer/package.json b/packages/react-transfer/package.json index 5967894c02..4b9d3a44cb 100644 --- a/packages/react-transfer/package.json +++ b/packages/react-transfer/package.json @@ -43,12 +43,12 @@ }, "dependencies": { "@uiw/react-card": "^4.13.9", + "@uiw/react-checkbox": "^4.13.9", "@uiw/react-grid": "^4.13.9", "@uiw/react-icon": "^4.13.9", - "@uiw/react-input": "^4.13.9", + "@uiw/react-input": "^4.13.12", "@uiw/react-tree": "^4.13.9", "@uiw/react-tree-checked": "^4.13.9", - "@uiw/react-checkbox": "^4.13.9", "@uiw/utils": "^4.13.9" } } diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index f01ded9540..bd0a85319f 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'; import { IProps } from '@uiw/utils'; import Card from '@uiw/react-card'; import Icon from '@uiw/react-icon'; -import Input from '@uiw/react-Input'; +import Input from '@uiw/react-input'; import TreeChecked from '@uiw/react-tree-checked'; import { TreeData } from '@uiw/react-tree'; import './style/index.less'; @@ -17,7 +17,7 @@ interface TransferProps extends IProps { bodyStyle?: React.CSSProperties; onChange?: (transfer: string, selectedAll: Array) => void; - onSearch?: (transfer: string, seachValue: string, searchkeys: any) => void; + onSearch?: (transfer: string, seachValue: string) => void; showSearch?: boolean; value?: Array; options?: TreeData[]; @@ -44,7 +44,7 @@ function Transfer(props: TransferProps) { const [selectOption, selectOptionSet] = useState>(new Map()); const [leftSelectedKeys, leftSelectedKeySet] = useState>([]); const [rightSelectedKeys, rightSelectedKeySet] = useState>([]); - const [rightOpions, rightOpionSet] = useState>([]); + const [rightOpions, rightOpionSet] = useState>([]); useEffect(() => { leftSelectedKeySet([]); @@ -86,7 +86,7 @@ function Transfer(props: TransferProps) { const rightTreeOnSelected = ( selectedKeys: Array, _1: any, - isChecked: boolean, + _2: boolean, evn: TreeData, ) => { rightSelectedKeySet(selectedKeys); @@ -129,13 +129,32 @@ function Transfer(props: TransferProps) { props.onChange?.(transferType, option); }; - const searchValueLeftChange = (vlaue: string) => { - console.log('vlaue', vlaue); - searchValueLeftSet(vlaue); + const searchValueLeftChange = (searchValue: string) => { + hiddenNode((child: TreeData) => { + let searchIsMatch = !(child.label as string).includes(searchValue.trim()); + if (!searchIsMatch) { + const isSekected = rightOpions.find((selected) => selected.key === child.key); + searchIsMatch = !!isSekected; + } + return searchIsMatch; + }); + + searchValueLeftSet(searchValue); + + props.onSearch?.('left', searchValue); }; - const searchValueRightChange = (vlaue: string) => { - searchValueRightSet(vlaue); + const searchValueRightChange = (searchValue: string) => { + searchValueRightSet(searchValue); + + rightOpions.forEach((option) => { + const isHide = !(option.label as string).includes(searchValue.trim()); + option.hideNode = isHide; + }); + console.log('rightOpions', rightOpions); + rightOpionSet(rightOpions); + + props.onSearch?.('right', searchValue); }; return ( @@ -154,6 +173,7 @@ function Transfer(props: TransferProps) { )}
    Date: Tue, 15 Mar 2022 17:40:08 +0800 Subject: [PATCH 544/575] =?UTF-8?q?chore:=20=E4=BE=9D=E8=B5=96=E6=92=A4?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bf2b592733..14b3c2bbc5 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "homepage": "https://uiwjs.github.io", "private": true, "scripts": { - "lib": "lerna exec --scope @uiw/react-transfer -- tsbb build --target react", - "lib:css": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o esm", - "lib:css:dist": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o lib --combine=dist.css", - "lib:css:watch": "lerna exec --scope @uiw/react-transfer -- compile-less -d src -o esm --watch", - "lib:watch": "lerna exec --scope @uiw/react-transfer -- tsbb watch & npm run lib:css:watch", - "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-transfer", + "lib": "lerna exec --scope @uiw/react-file-input -- tsbb build --target react", + "lib:css": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm", + "lib:css:dist": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o lib --combine=dist.css", + "lib:css:watch": "lerna exec --scope @uiw/react-file-input -- compile-less -d src -o esm --watch", + "lib:watch": "lerna exec --scope @uiw/react-file-input -- tsbb watch & npm run lib:css:watch", + "lib:bootstrap": "lerna bootstrap --hoist --scope @uiw/react-file-input", "lib:build": "npm run lib && npm run lib:css && npm run lib:css:dist", "//>>>>>>>>>>>>": "<<<<<<<<<<", "watch:other:lib": "lerna exec --parallel --scope @uiw/* --ignore @uiw/doc -- tsbb watch", From ff1791f1689c0fc35049e41125e1cc8d19be0676 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Mar 2022 10:21:44 +0800 Subject: [PATCH 545/575] =?UTF-8?q?chore=EF=BC=9Atransfer=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 5 +++++ .github/workflows/npm.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 32a0c1a4ba..eed40112f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -348,6 +348,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-tree-checked/package.json + - name: 📦 @uiw/react-transfer publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-transfer/package.json - name: 📦 @uiw/utils publish to NPM uses: JS-DevTools/npm-publish@v1 with: diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 38a6e51577..3abd32ed25 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -417,6 +417,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-tree-checked/package.json + - name: 📦 @uiw/react-transfer publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-transfer/package.json - name: 📦 @uiw/utils publish to NPM uses: JS-DevTools/npm-publish@v1 with: From 2a983cbb783f514717eb5472e537023ff46cd65b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Mar 2022 10:30:11 +0800 Subject: [PATCH 546/575] =?UTF-8?q?fix(Transfer):=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=B8=BA=E5=A4=9A=E5=B1=82tree=E6=97=B6=E6=80=BB=E6=95=B0?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 4 ++++ packages/react-transfer/src/index.tsx | 17 ++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index 758f117fca..944b38657f 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -1,6 +1,10 @@ Transfer 双栏穿梭选择框控件 === +[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-transfer/file/README.md) +[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-transfer.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-transfer) +[![npm version](https://img.shields.io/npm/v/@uiw/react-transfer.svg?label=@uiw/react-transfer)](https://npmjs.com/@uiw/react-transfer) + 选择一个或以上的选项后,点击左右的方向按钮,可以把选中的选项移动到另一栏为选中。在 v4.14.0+ 添加。 ## 基础用法 diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index bd0a85319f..03e8d04438 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useEffect, useRef, useState } from 'react'; import { IProps } from '@uiw/utils'; import Card from '@uiw/react-card'; import Icon from '@uiw/react-icon'; @@ -41,6 +41,7 @@ function Transfer(props: TransferProps) { const [searchValueLeft, searchValueLeftSet] = useState(''); const [searchValueRight, searchValueRightSet] = useState(''); const [selectedOptions, selectedOptionSet] = useState>(options || []); + const selectedOptionsShowCount = useRef(0); const [selectOption, selectOptionSet] = useState>(new Map()); const [leftSelectedKeys, leftSelectedKeySet] = useState>([]); const [rightSelectedKeys, rightSelectedKeySet] = useState>([]); @@ -56,6 +57,7 @@ function Transfer(props: TransferProps) { }, [JSON.stringify(value)]); const hiddenNode = (callBackfn: (child: TreeData) => boolean) => { + selectedOptionsShowCount.current = 0; const hiddenNodeForSeach = (childrens: TreeData[]) => { childrens.forEach((child: TreeData) => { const isHide = callBackfn(child); // && parentIsHide; @@ -65,6 +67,9 @@ function Transfer(props: TransferProps) { child.hideNode = isHide && !find; } else { child.hideNode = isHide; + if (!child.hideNode) { + selectedOptionsShowCount.current++; + } } }); }; @@ -83,12 +88,7 @@ function Transfer(props: TransferProps) { selectOptionSet(selectOptionTemp); }; - const rightTreeOnSelected = ( - selectedKeys: Array, - _1: any, - _2: boolean, - evn: TreeData, - ) => { + const rightTreeOnSelected = (selectedKeys: Array) => { rightSelectedKeySet(selectedKeys); selectedKeys.forEach((key) => { selectOption.delete(key!); @@ -105,7 +105,6 @@ function Transfer(props: TransferProps) { } }; const iteratorParent = (child: TreeData) => { - // 向上迭代 if (child.parent) { const selectCount = child.parent.children.filter((child: TreeData) => !selectOption.get(child.key!)).length; addOrDel(child.parent.key, child.parent.label, selectCount === 0); @@ -161,7 +160,7 @@ function Transfer(props: TransferProps) {
    {showSearch && ( From 4d860c3d3d615d4611bbad11bfdbd27b0ba1ddb7 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Mar 2022 10:47:49 +0800 Subject: [PATCH 547/575] =?UTF-8?q?docs(Transfer):=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8E=E8=8F=9C=E5=8D=95=E7=BB=9F=E4=B8=80=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index 944b38657f..eb13f57c90 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -1,4 +1,4 @@ -Transfer 双栏穿梭选择框控件 +Transfer 穿梭框 === [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-transfer/file/README.md) From cb675964fd4240ec98d8defce2b0330bf185822b Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Mar 2022 11:22:15 +0800 Subject: [PATCH 548/575] =?UTF-8?q?docs(Steps)=EF=BC=9A=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-steps/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-steps/README.md b/packages/react-steps/README.md index 1de3c2a9c2..405d48456f 100644 --- a/packages/react-steps/README.md +++ b/packages/react-steps/README.md @@ -191,7 +191,7 @@ ReactDOM.render(, _mount_); ```jsx import React from 'react'; import ReactDOM from 'react-dom'; -import { Steps } from 'uiw'; +import { Steps, Row, Col } from 'uiw'; function Demo() { return ( @@ -221,7 +221,7 @@ ReactDOM.render(, _mount_); ## Props -### Steps +### Steps | 参数 | 说明 | 类型 | 默认值 | |--------- |-------- |---------- |-------- | From 55516d037e42a60f882f5d70b5fd2c1a51ce19ab Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 16 Mar 2022 12:05:03 +0800 Subject: [PATCH 549/575] =?UTF-8?q?style(Transfer):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A9=BF=E6=A2=AD=E7=AE=AD=E5=A4=B4=E8=BE=B9=E6=A1=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 23 ++++++++++---------- packages/react-transfer/src/style/index.less | 9 ++++---- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index 03e8d04438..06ea89b213 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -156,6 +156,15 @@ function Transfer(props: TransferProps) { props.onSearch?.('right', searchValue); }; + const Arrow = (props: { click: () => void; style: React.CSSProperties }) => ( + props.click()} + type="down-square-o" + className={`${prefixCls}-arrow`} + style={{ fontSize: 20, stroke: '#e9e9e9', fill: '#333', ...props.style }} + /> + ); + return (
    - transferClick('left')} - type="down-square-o" - className={`${prefixCls}-arrow-left`} - style={{ transform: 'rotate(-90deg)', fontSize: 20 }} - /> - transferClick('right')} - type="down-square-o" - className={`${prefixCls}-arrow-right`} - style={{ transform: 'rotate(90deg)', fontSize: 20 }} - /> + transferClick('left')} style={{ transform: 'rotate(90deg)' }} /> + transferClick('right')} style={{ transform: 'rotate(-90deg)' }} />
    Date: Wed, 16 Mar 2022 15:54:49 +0800 Subject: [PATCH 550/575] =?UTF-8?q?feat(Transfer):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=A0=8F=E5=85=A8=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 36 +++++++++++ packages/react-transfer/src/index.tsx | 88 +++++++++++++++++++++++++-- 2 files changed, 118 insertions(+), 6 deletions(-) diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index eb13f57c90..80f0287448 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -43,6 +43,41 @@ function Demo() { ReactDOM.render(, _mount_); ``` +## 全部选择 + + +```jsx +import React from 'react'; +import { Transfer } from 'uiw'; + +function Demo() { + + const options = [ + { label: '武汉市', key: 1 }, + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + + const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }, { label: '汉南区1', key: 5 }]) + + return ( + + { + valueSet(option) + }} + /> + + ); +} + +ReactDOM.render(, _mount_); +``` + ## 树形节点 @@ -248,3 +283,4 @@ ReactDOM.render(, _mount_); | showSearch | 启用搜索 | boolean | false | | placeholder | 搜索输入框文字 | string | - | | onSearch | 搜索时回调函数 | (arrow, searchValue) => void | - | +| selectedAll | 启用全部勾选 | boolean | false | diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index 06ea89b213..d925235a0b 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -6,12 +6,19 @@ import Input from '@uiw/react-input'; import TreeChecked from '@uiw/react-tree-checked'; import { TreeData } from '@uiw/react-tree'; import './style/index.less'; +import Checkbox from '@uiw/react-checkbox'; export interface TransferOptionType { key: string | number; label: string; } +enum CheckedStatus { + UnChecked = 0, + AllChecked = 1, + Indeterminate = 2, +} + interface TransferProps extends IProps { placeholder?: string; bodyStyle?: React.CSSProperties; @@ -19,6 +26,7 @@ interface TransferProps extends IProps { onChange?: (transfer: string, selectedAll: Array) => void; onSearch?: (transfer: string, seachValue: string) => void; showSearch?: boolean; + selectedAll?: boolean; value?: Array; options?: TreeData[]; // emptyOption?: React.ReactNode; @@ -30,6 +38,7 @@ function Transfer(props: TransferProps) { options, value, showSearch = false, + selectedAll = false, bodyStyle, style, @@ -46,12 +55,17 @@ function Transfer(props: TransferProps) { const [leftSelectedKeys, leftSelectedKeySet] = useState>([]); const [rightSelectedKeys, rightSelectedKeySet] = useState>([]); const [rightOpions, rightOpionSet] = useState>([]); + const [selectAllChecked, selectAllCheckedSet] = useState<{ left: CheckedStatus; right: CheckedStatus }>({ + left: CheckedStatus.UnChecked, + right: CheckedStatus.UnChecked, + }); useEffect(() => { leftSelectedKeySet([]); rightSelectedKeySet([]); rightOpionSet(value || []); + value?.forEach((selectd) => selectOption.set(selectd.key, selectd.label)); hiddenNode((child) => !!value?.find((selectd) => child.key === selectd.key)); }, [JSON.stringify(value)]); @@ -63,7 +77,7 @@ function Transfer(props: TransferProps) { const isHide = callBackfn(child); // && parentIsHide; if (!!child.children?.length) { hiddenNodeForSeach(child.children); - const find = child.children.find((item) => !item.hideNode); + const find = child.children.find((item: TreeData) => !item.hideNode); child.hideNode = isHide && !find; } else { child.hideNode = isHide; @@ -83,12 +97,16 @@ function Transfer(props: TransferProps) { isChecked: boolean, evn: TreeData, ) => { + selectedAllActive(selectedKeys, 'left'); + leftSelectedKeySet(selectedKeys); const selectOptionTemp = getOptionsRecursion([evn], selectOption, isChecked); selectOptionSet(selectOptionTemp); }; const rightTreeOnSelected = (selectedKeys: Array) => { + selectedAllActive(selectedKeys, 'right'); + rightSelectedKeySet(selectedKeys); selectedKeys.forEach((key) => { selectOption.delete(key!); @@ -96,6 +114,21 @@ function Transfer(props: TransferProps) { selectOptionSet(selectOption); }; + function selectedAllActive(selectedKeys: (string | number | undefined)[], key: 'left' | 'right') { + let selectedAll = true; + rightOpions.forEach((selected) => { + const find = selectedKeys.find((key) => key === selected.key); + selectedAll = selectedAll && !!find; + }); + selectAllChecked[key] = selectedAll + ? CheckedStatus.AllChecked + : selectedKeys.length + ? CheckedStatus.Indeterminate + : CheckedStatus.UnChecked; + + selectAllCheckedSet(selectAllChecked); + } + const getOptionsRecursion = (childrens: TreeData[], selectOption: Map, isAdd: boolean) => { const addOrDel = (key: string | number, label: string, isAdd: boolean) => { if (isAdd) { @@ -123,6 +156,9 @@ function Transfer(props: TransferProps) { }; const transferClick = (transferType: string) => { + selectAllChecked.right = CheckedStatus.UnChecked; + selectAllCheckedSet(selectAllChecked); + const option: Array = []; selectOption.forEach((label, key) => option.push({ key, label })); props.onChange?.(transferType, option); @@ -150,12 +186,28 @@ function Transfer(props: TransferProps) { const isHide = !(option.label as string).includes(searchValue.trim()); option.hideNode = isHide; }); - console.log('rightOpions', rightOpions); rightOpionSet(rightOpions); props.onSearch?.('right', searchValue); }; + const selectAllCheckedChange = (e: React.ChangeEvent) => { + const isChecked = e.target.checked; + + selectAllChecked.right = isChecked ? 1 : 0; + if (isChecked) { + const keys = rightOpions.map((selected) => { + selectOption.delete(selected.key!); + return selected.key; + }); + rightSelectedKeySet(keys); + } else { + rightSelectedKeySet([]); + } + selectOptionSet(selectOption); + selectAllCheckedSet(selectAllChecked); + }; + const Arrow = (props: { click: () => void; style: React.CSSProperties }) => ( props.click()} @@ -169,7 +221,18 @@ function Transfer(props: TransferProps) {
    + {/* */} + + {leftSelectedKeys.length}/{selectedOptionsShowCount.current} + +
    + } className={`${prefixCls}-card`} > {showSearch && ( @@ -190,13 +253,26 @@ function Transfer(props: TransferProps) {
    - transferClick('left')} style={{ transform: 'rotate(90deg)' }} /> - transferClick('right')} style={{ transform: 'rotate(-90deg)' }} /> + transferClick('left')} style={{ transform: 'rotate(-90deg)' }} /> + transferClick('right')} style={{ transform: 'rotate(90deg)' }} />
    + {selectedAll && ( + + )} + + {rightSelectedKeys.length}/{rightOpions.length} + +
    + } > {showSearch && ( Date: Wed, 16 Mar 2022 15:57:46 +0800 Subject: [PATCH 551/575] =?UTF-8?q?style:=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index a444a90c2b..d925235a0b 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -253,8 +253,8 @@ function Transfer(props: TransferProps) {
    - transferClick('left')} style={{ transform: 'rotate(90deg)' }} /> - transferClick('right')} style={{ transform: 'rotate(-90deg)' }} /> + transferClick('left')} style={{ transform: 'rotate(-90deg)' }} /> + transferClick('right')} style={{ transform: 'rotate(90deg)' }} />
    Date: Wed, 16 Mar 2022 18:38:31 +0800 Subject: [PATCH 552/575] =?UTF-8?q?faeat(Transfer):=20=E6=B7=BB=E5=8A=A0Tr?= =?UTF-8?q?ee=E8=8A=82=E7=82=B9=E5=A4=9A=E9=80=89=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 23 ++++- packages/react-transfer/src/index.tsx | 131 +++++++++++++++----------- 2 files changed, 92 insertions(+), 62 deletions(-) diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index 80f0287448..c0967e5d75 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -53,11 +53,24 @@ import { Transfer } from 'uiw'; function Demo() { const options = [ - { label: '武汉市', key: 1 }, - { label: '汉南区1', key: 5 }, - { label: '汉南区2', key: 6 }, - { label: '汉南区3', key: 7 }, - ] + { + label: '武汉市', + key: 1, + children: [ + { label: '新洲区', key: 2, disabled: true }, + { label: '武昌区', key: 3 }, + { + label: '汉南区', + key: 4, + children: [ + { label: '汉南区1', key: 5 }, + { label: '汉南区2', key: 6 }, + { label: '汉南区3', key: 7 }, + ] + }, + ] + } + ]; const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }, { label: '汉南区1', key: 5 }]) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index d925235a0b..a485b4d060 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -52,6 +52,7 @@ function Transfer(props: TransferProps) { const [selectedOptions, selectedOptionSet] = useState>(options || []); const selectedOptionsShowCount = useRef(0); const [selectOption, selectOptionSet] = useState>(new Map()); + const [leftSelectOption, leftSelectOptionSet] = useState>(new Map()); const [leftSelectedKeys, leftSelectedKeySet] = useState>([]); const [rightSelectedKeys, rightSelectedKeySet] = useState>([]); const [rightOpions, rightOpionSet] = useState>([]); @@ -81,9 +82,9 @@ function Transfer(props: TransferProps) { child.hideNode = isHide && !find; } else { child.hideNode = isHide; - if (!child.hideNode) { - selectedOptionsShowCount.current++; - } + } + if (!child.hideNode) { + selectedOptionsShowCount.current++; } }); }; @@ -91,44 +92,6 @@ function Transfer(props: TransferProps) { selectedOptionSet([...selectedOptions]); }; - const leftTreeOnSelected = ( - selectedKeys: Array, - _1: any, - isChecked: boolean, - evn: TreeData, - ) => { - selectedAllActive(selectedKeys, 'left'); - - leftSelectedKeySet(selectedKeys); - const selectOptionTemp = getOptionsRecursion([evn], selectOption, isChecked); - selectOptionSet(selectOptionTemp); - }; - - const rightTreeOnSelected = (selectedKeys: Array) => { - selectedAllActive(selectedKeys, 'right'); - - rightSelectedKeySet(selectedKeys); - selectedKeys.forEach((key) => { - selectOption.delete(key!); - }); - selectOptionSet(selectOption); - }; - - function selectedAllActive(selectedKeys: (string | number | undefined)[], key: 'left' | 'right') { - let selectedAll = true; - rightOpions.forEach((selected) => { - const find = selectedKeys.find((key) => key === selected.key); - selectedAll = selectedAll && !!find; - }); - selectAllChecked[key] = selectedAll - ? CheckedStatus.AllChecked - : selectedKeys.length - ? CheckedStatus.Indeterminate - : CheckedStatus.UnChecked; - - selectAllCheckedSet(selectAllChecked); - } - const getOptionsRecursion = (childrens: TreeData[], selectOption: Map, isAdd: boolean) => { const addOrDel = (key: string | number, label: string, isAdd: boolean) => { if (isAdd) { @@ -155,12 +118,37 @@ function Transfer(props: TransferProps) { return selectOption; }; - const transferClick = (transferType: string) => { - selectAllChecked.right = CheckedStatus.UnChecked; - selectAllCheckedSet(selectAllChecked); + const leftTreeOnSelected = ( + selectedKeys: Array, + _1: any, + isChecked: boolean, + evn: TreeData, + ) => { + leftSelectedKeySet(selectedKeys); + const selectOptionTemp = getOptionsRecursion([evn], leftSelectOption, isChecked); + leftSelectOptionSet(selectOptionTemp); + }; + + const rightTreeOnSelected = (selectedKeys: Array) => { + rightSelectedKeySet(selectedKeys); + }; + const transferClick = (transferType: 'left' | 'right') => { + let selectOptionTemp = selectOption; + if (transferType === 'left') { + leftSelectOption.forEach((value, key) => { + selectOptionTemp.set(key, value); + }); + } else { + rightSelectedKeys.forEach((key) => { + selectOption.delete(key!); + }); + } + + selectOptionSet(selectOptionTemp); + // leftSelectOptionSet(selectOptionTemp); const option: Array = []; - selectOption.forEach((label, key) => option.push({ key, label })); + selectOptionTemp.forEach((label, key) => option.push({ key, label })); props.onChange?.(transferType, option); }; @@ -191,14 +179,41 @@ function Transfer(props: TransferProps) { props.onSearch?.('right', searchValue); }; - const selectAllCheckedChange = (e: React.ChangeEvent) => { + const selectAllLeftChange = (e: React.ChangeEvent) => { + const isChecked = e.target.checked; + + selectAllChecked.left = isChecked ? 1 : 0; + if (isChecked) { + const keys: Array = []; + const selectedOptionsRecursion = (selectedOptions: Array) => { + selectedOptions.forEach((child) => { + if (child.children?.length) { + selectedOptionsRecursion(child.children); + } else { + if (!child.hideNode) { + selectOption.set(child.key!, child.label as string); + keys.push(child.key!); + } + } + }); + }; + selectedOptionsRecursion(selectedOptions); + leftSelectedKeySet(keys); + } else { + leftSelectedKeySet([]); + } + selectOptionSet(selectOption); + selectAllCheckedSet(selectAllChecked); + }; + + const selectAllRightChange = (e: React.ChangeEvent) => { const isChecked = e.target.checked; selectAllChecked.right = isChecked ? 1 : 0; if (isChecked) { - const keys = rightOpions.map((selected) => { - selectOption.delete(selected.key!); - return selected.key; + const keys = rightOpions.map((child) => { + selectOption.delete(child.key!); + return child.key; }); rightSelectedKeySet(keys); } else { @@ -223,11 +238,13 @@ function Transfer(props: TransferProps) { bodyStyle={{ padding: 5 }} title={
    - {/* */} + {selectedAll && ( + = selectedOptionsShowCount.current && !!leftSelectedKeys.length} + onChange={selectAllLeftChange} + /> + )} {leftSelectedKeys.length}/{selectedOptionsShowCount.current} @@ -263,9 +280,9 @@ function Transfer(props: TransferProps) {
    {selectedAll && ( )} From ded38f26be7b4e856151399e20adc8b52630bf78 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 17 Mar 2022 10:39:18 +0800 Subject: [PATCH 553/575] =?UTF-8?q?style(Transfer):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index a485b4d060..b54cf4c94b 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -270,8 +270,14 @@ function Transfer(props: TransferProps) {
    - transferClick('left')} style={{ transform: 'rotate(-90deg)' }} /> - transferClick('right')} style={{ transform: 'rotate(90deg)' }} /> + transferClick('left')} + style={{ transform: 'rotate(-90deg)', background: leftSelectedKeys.length > 0 ? '#393E48' : 'none' }} + /> + transferClick('right')} + style={{ transform: 'rotate(90deg)', background: rightSelectedKeys.length > 0 ? '#393E48' : 'none' }} + />
    Date: Thu, 17 Mar 2022 10:47:23 +0800 Subject: [PATCH 554/575] =?UTF-8?q?fix(Transfer):=20=E6=BD=9C=E5=9C=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index b54cf4c94b..76a109053e 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -146,7 +146,7 @@ function Transfer(props: TransferProps) { } selectOptionSet(selectOptionTemp); - // leftSelectOptionSet(selectOptionTemp); + leftSelectOptionSet(selectOptionTemp); const option: Array = []; selectOptionTemp.forEach((label, key) => option.push({ key, label })); props.onChange?.(transferType, option); From 2324defcae035107cb1c2e9527e8594ed5b3903c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 17 Mar 2022 11:08:38 +0800 Subject: [PATCH 555/575] =?UTF-8?q?fix(Transfer):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=BD=9C=E5=9C=A8BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index 76a109053e..a4c5cfc7ab 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -139,14 +139,13 @@ function Transfer(props: TransferProps) { leftSelectOption.forEach((value, key) => { selectOptionTemp.set(key, value); }); + leftSelectOptionSet(selectOptionTemp); } else { rightSelectedKeys.forEach((key) => { selectOption.delete(key!); }); } - selectOptionSet(selectOptionTemp); - leftSelectOptionSet(selectOptionTemp); const option: Array = []; selectOptionTemp.forEach((label, key) => option.push({ key, label })); props.onChange?.(transferType, option); From 4b39e45ecf343b8cce1c103490925b7b722095fc Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 17 Mar 2022 11:58:14 +0800 Subject: [PATCH 556/575] =?UTF-8?q?style(Tree):=20Tree=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=AD=90=E8=8A=82=E7=82=B9=E6=97=B6=E5=B1=95=E5=BC=80=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E4=B8=8D=E5=86=8D=E5=8D=A0=E4=BD=8D=20#641?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 12 ++++++------ packages/react-tree/src/TreeNode.tsx | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index a4c5cfc7ab..cad5a1cf0b 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -234,7 +234,7 @@ function Transfer(props: TransferProps) { return (
    {selectedAll && ( @@ -244,9 +244,9 @@ function Transfer(props: TransferProps) { onChange={selectAllLeftChange} /> )} - + +
    } className={`${prefixCls}-card`} @@ -279,7 +279,7 @@ function Transfer(props: TransferProps) { />
    @@ -290,9 +290,9 @@ function Transfer(props: TransferProps) { onChange={selectAllRightChange} /> )} - + +
    } > diff --git a/packages/react-tree/src/TreeNode.tsx b/packages/react-tree/src/TreeNode.tsx index 44955b934f..36c0e24ddb 100644 --- a/packages/react-tree/src/TreeNode.tsx +++ b/packages/react-tree/src/TreeNode.tsx @@ -107,7 +107,11 @@ export default function TreeNode(props: TreeNodeProps) { return (
  • - onItemClick(item, evn)}> + onItemClick(item, evn)} + > Date: Thu, 17 Mar 2022 14:28:33 +0800 Subject: [PATCH 557/575] =?UTF-8?q?fix(Tree):=20=E8=A2=AB=E9=9A=90?= =?UTF-8?q?=E8=97=8F(hideNode)=E7=9A=84=E5=AD=90=E8=8A=82=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E5=8B=BE=E9=80=89=E7=88=B6=E8=8A=82=E7=82=B9=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/README.md | 4 ++-- packages/react-transfer/src/index.tsx | 13 +++++++------ packages/react-tree/src/index.tsx | 4 +++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/react-transfer/README.md b/packages/react-transfer/README.md index c0967e5d75..46af532111 100644 --- a/packages/react-transfer/README.md +++ b/packages/react-transfer/README.md @@ -57,7 +57,7 @@ function Demo() { label: '武汉市', key: 1, children: [ - { label: '新洲区', key: 2, disabled: true }, + { label: '新洲区', key: 2 }, { label: '武昌区', key: 3 }, { label: '汉南区', @@ -72,7 +72,7 @@ function Demo() { } ]; - const [value,valueSet] = React.useState([{ label: '武汉市', key: 1 }, { label: '汉南区1', key: 5 }]) + const [value,valueSet] = React.useState([{ label: '武昌区', key: 3 }, { label: '汉南区1', key: 5 }]) return ( diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index cad5a1cf0b..c4ee86195b 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -102,7 +102,9 @@ function Transfer(props: TransferProps) { }; const iteratorParent = (child: TreeData) => { if (child.parent) { - const selectCount = child.parent.children.filter((child: TreeData) => !selectOption.get(child.key!)).length; + const selectCount = child.parent.children.filter( + (child: TreeData) => !selectOption.get(child.key!) && !child.hideNode, + ).length; addOrDel(child.parent.key, child.parent.label, selectCount === 0); iteratorParent(child.parent); } @@ -188,11 +190,10 @@ function Transfer(props: TransferProps) { selectedOptions.forEach((child) => { if (child.children?.length) { selectedOptionsRecursion(child.children); - } else { - if (!child.hideNode) { - selectOption.set(child.key!, child.label as string); - keys.push(child.key!); - } + } + if (!child.hideNode) { + selectOption.set(child.key!, child.label as string); + keys.push(child.key!); } }); }; diff --git a/packages/react-tree/src/index.tsx b/packages/react-tree/src/index.tsx index e105ebcef2..8d4ddfe62b 100644 --- a/packages/react-tree/src/index.tsx +++ b/packages/react-tree/src/index.tsx @@ -78,7 +78,9 @@ export const getChildKeys = ( depth?: number, ): TreeData['key'][] => { childs.forEach((item) => { - result.push(item.key as string | number); + if (!item.hideNode) { + result.push(item.key as string | number); + } if (typeof depth === 'number' && !(depth - 1)) return; if (item.children && item.children.length > 0) { From e27fbe6ce833efae257eb4c397a28433d365e916 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 17 Mar 2022 16:59:36 +0800 Subject: [PATCH 558/575] =?UTF-8?q?fix(Transfer):=20=E4=BF=AE=E5=A4=8DMap?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E5=BC=95=E7=94=A8=E6=8B=B7=E8=B4=9D=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/src/index.tsx | 37 +++++++++++++-------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index c4ee86195b..6e507dcb2f 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -36,7 +36,7 @@ function Transfer(props: TransferProps) { const { placeholder, options, - value, + value = [], showSearch = false, selectedAll = false, @@ -62,13 +62,12 @@ function Transfer(props: TransferProps) { }); useEffect(() => { - leftSelectedKeySet([]); - rightSelectedKeySet([]); + if (value) { + rightOpionSet(value || []); - rightOpionSet(value || []); - - value?.forEach((selectd) => selectOption.set(selectd.key, selectd.label)); - hiddenNode((child) => !!value?.find((selectd) => child.key === selectd.key)); + value?.forEach((selectd) => selectOption.set(selectd.key, selectd.label)); + hiddenNode((child) => !!value?.find((selectd) => child.key === selectd.key)); + } }, [JSON.stringify(value)]); const hiddenNode = (callBackfn: (child: TreeData) => boolean) => { @@ -136,20 +135,22 @@ function Transfer(props: TransferProps) { }; const transferClick = (transferType: 'left' | 'right') => { - let selectOptionTemp = selectOption; if (transferType === 'left') { leftSelectOption.forEach((value, key) => { - selectOptionTemp.set(key, value); + selectOption.set(key, value); }); - leftSelectOptionSet(selectOptionTemp); + leftSelectOptionSet(new Map()); + leftSelectedKeySet([]); } else { rightSelectedKeys.forEach((key) => { selectOption.delete(key!); }); + rightSelectedKeySet([]); } - selectOptionSet(selectOptionTemp); + + selectOptionSet(selectOption); const option: Array = []; - selectOptionTemp.forEach((label, key) => option.push({ key, label })); + selectOption.forEach((label, key) => option.push({ key, label })); props.onChange?.(transferType, option); }; @@ -192,17 +193,19 @@ function Transfer(props: TransferProps) { selectedOptionsRecursion(child.children); } if (!child.hideNode) { - selectOption.set(child.key!, child.label as string); + leftSelectOption.set(child.key!, child.label as string); keys.push(child.key!); } }); }; selectedOptionsRecursion(selectedOptions); + + leftSelectOptionSet(leftSelectOption); leftSelectedKeySet(keys); } else { leftSelectedKeySet([]); + leftSelectOptionSet(new Map()); } - selectOptionSet(selectOption); selectAllCheckedSet(selectAllChecked); }; @@ -211,15 +214,11 @@ function Transfer(props: TransferProps) { selectAllChecked.right = isChecked ? 1 : 0; if (isChecked) { - const keys = rightOpions.map((child) => { - selectOption.delete(child.key!); - return child.key; - }); + const keys = rightOpions.map((child) => child.key); rightSelectedKeySet(keys); } else { rightSelectedKeySet([]); } - selectOptionSet(selectOption); selectAllCheckedSet(selectAllChecked); }; From 946c721bdfe63e4b590aea917f26e1a21e804471 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 10:06:27 +0800 Subject: [PATCH 559/575] =?UTF-8?q?fix(SearchSelect):=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20#652?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 14 +++++++------- packages/react-search-select/src/index.tsx | 5 +++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index 514ccc2c9f..a54d6b638a 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -51,7 +51,7 @@ const Demo = () => { { { > {({ fields, state, canSubmit }) => { return ( -
    - - {fields.selectField} +
    + + {fields.selectField} - - {fields.selectSingle} + + {fields.selectSingle} diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index 38df40020a..d3737d8c29 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -209,6 +209,7 @@ export default function SearchSelect(props: SearchSelectProps) { className={cls} trigger="click" style={{ marginTop: 5 }} + overlayStyl={{ width: 100 }} disabled={option && option.length > 0 ? false : true} {...others} onVisibleChange={onVisibleChange} @@ -219,9 +220,9 @@ export default function SearchSelect(props: SearchSelectProps) { style={{ minHeight: 25, maxHeight: 280, - minWidth: 200, + minWidth: style?.width ?? 200, overflowY: 'scroll', - width: divRef.current ? divRef.current.offsetWidth : 'auto', + width: style?.width, }} > {!option || option.length === 0 ? ( From f43c041f016eb94e84cd4c7a32f366f383d813f6 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 17:22:16 +0800 Subject: [PATCH 560/575] =?UTF-8?q?faeat(Carousel):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=B5=B0=E9=A9=AC=E7=81=AF=E7=BB=84=E4=BB=B6Carousel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 138 ++++++++++++++++++ packages/react-carousel/package.json | 47 ++++++ packages/react-carousel/src/index.tsx | 103 +++++++++++++ packages/react-carousel/src/style/index.less | 13 ++ packages/react-carousel/tsconfig.json | 8 + packages/uiw/package.json | 1 + packages/uiw/src/index.ts | 4 +- website/src/menu.json | 1 + website/src/routers.tsx | 2 + .../src/routes/components/carousel/index.tsx | 16 ++ 10 files changed, 332 insertions(+), 1 deletion(-) create mode 100644 packages/react-carousel/README.md create mode 100644 packages/react-carousel/package.json create mode 100644 packages/react-carousel/src/index.tsx create mode 100644 packages/react-carousel/src/style/index.less create mode 100644 packages/react-carousel/tsconfig.json create mode 100755 website/src/routes/components/carousel/index.tsx diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md new file mode 100644 index 0000000000..b498addc25 --- /dev/null +++ b/packages/react-carousel/README.md @@ -0,0 +1,138 @@ +Carousel 走马灯 +=== + +[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-carousel/file/README.md) +[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-carousel.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-carousel) +[![npm version](https://img.shields.io/npm/v/@uiw/react-carousel.svg?label=@uiw/react-carousel)](https://npmjs.com/@uiw/react-carousel) + +选择一个或以上的选项后,点击左右的方向按钮,可以把选中的选项移动到另一栏为选中。在 v4.15.0+ 添加。 + +## 基础用法 + +最简单的用法。 + + +```jsx +import React from 'react'; +import { Carousel } from 'uiw'; + +function Demo() { + return ( + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + ); +} + +ReactDOM.render(, _mount_); +``` + +## 控制播放频率 + +palyTime设置每帧停留时间,scrollTime设置切换帧的速度 + + +```jsx +import React from 'react'; +import { Carousel } from 'uiw'; + +function Demo() { + return ( + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + ); +} + +ReactDOM.render(, _mount_); +``` + +## 切换到指定帧 + +手动切换到指定帧的位置 + + +```jsx +import React from 'react'; +import { Carousel } from 'uiw'; + +function Demo() { + const ref=React.useRef() + const [autoPlay,autoPlaySet]=React.useState(true) + +return ( + + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + + + + +
    + ); +} + +ReactDOM.render(, _mount_); +``` + +## Props + +## API + +| 参数 | 说明 | 类型 | 默认值 | +|--------- |-------- |--------- |-------- | +| width | 宽度 | number | 400 | +| height | 高度 | number | 200 | +| position | 设置初始帧位置 | number | 0 | +| palyTime | 每帧停留时间(ms) | number | 2000 | +| scrollTime | 滚动动画的速度(ms) | number | 200 | +| autoPlay | 是否自定播放 | boolean | true | + + +### ref +```ts + // 跳转到指定帧 + gotoSlide: (slideNumber: number) => void; + // 上一针 + prevSlide: () => void; + // 下一帧 + nextSlide: () => void; + // 暂停播放 + stopPlay: () => void; +``` + + diff --git a/packages/react-carousel/package.json b/packages/react-carousel/package.json new file mode 100644 index 0000000000..30611080e2 --- /dev/null +++ b/packages/react-carousel/package.json @@ -0,0 +1,47 @@ +{ + "name": "@uiw/react-carousel", + "version": "4.14.2", + "description": "TreeChecked component", + "homepage": "https://uiwjs.github.io/#/components/carousel", + "repository": { + "type": "git", + "url": "https://github.com/uiwjs/uiw.git" + }, + "license": "MIT", + "main": "cjs/index.js", + "module": "esm/index.js", + "files": [ + "dist.css", + "cjs", + "esm", + "src" + ], + "publishConfig": { + "access": "public" + }, + "keywords": [ + "checked", + "design", + "uiw", + "uiw-react", + "react.js", + "react", + "react-component", + "component", + "components", + "ui", + "css", + "uikit", + "react-ui", + "framework", + "front-end", + "frontend" + ], + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + }, + "dependencies": { + "@uiw/utils": "^4.14.2" + } +} diff --git a/packages/react-carousel/src/index.tsx b/packages/react-carousel/src/index.tsx new file mode 100644 index 0000000000..72e70c44d5 --- /dev/null +++ b/packages/react-carousel/src/index.tsx @@ -0,0 +1,103 @@ +import React, { useEffect, useMemo, useRef, useState } from 'react'; +import { IProps, HTMLDivProps } from '@uiw/utils'; +import './style/index.less'; + +export interface CarouselProps extends IProps, HTMLDivProps { + width?: number; + height?: number; + position?: number; + palyTime?: number; + scrollTime?: number; + autoPlay?: boolean; +} + +export interface CarouselRef { + gotoSlide: (slide: number, dontAnimate?: boolean) => void; + prevSlide: () => void; + nextSlide: () => void; + stopPlay: () => void; +} + +function Carousel(props: CarouselProps, ref: CarouselRef) { + const { + position = 0, + width = 400, + height = 200, + palyTime = 2000, + scrollTime = 200, + autoPlay = true, + + prefixCls = 'w-carousel', + className, + style, + } = props; + + const cls = useMemo(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]); + + const [currentPosition, currentPositionSet] = useState(position); + const positionRef = useRef(currentPosition); + const childCount = React.Children.count(props.children); + const stopPlay = useRef(() => {}); + + React.useImperativeHandle( + ref, + () => ({ + gotoSlide, + prevSlide: () => gotoSlide(positionRef.current - 1), + nextSlide: () => gotoSlide(positionRef.current + 1), + stopPlay: () => stopPlay.current(), + }), + [ref], + ); + + const gotoSlide = (slidNumber: number) => { + stopPlay.current(); + const maxSlid = childCount - 1; + let slidNumberTemp = slidNumber > maxSlid ? maxSlid : slidNumber; + slidNumberTemp = slidNumber < 0 ? 0 : slidNumberTemp; + positionRef.current = slidNumberTemp; + currentPositionSet(slidNumberTemp); + play(); + }; + + const play = (ms: number = palyTime) => { + if (autoPlay) { + const time = setInterval(() => { + positionRef.current++; + if (positionRef.current >= childCount) { + positionRef.current = 0; + } + currentPositionSet(positionRef.current); + }, ms); + stopPlay.current = () => { + clearInterval(time); + }; + } + }; + + useEffect(() => { + play(); + return () => { + stopPlay.current(); + }; + }, [autoPlay]); + + return ( +
    +
    + {React.Children.map(props.children, (child) => { + return
    {child}
    ; + })} +
    +
    + ); +} + +export default React.forwardRef(Carousel); diff --git a/packages/react-carousel/src/style/index.less b/packages/react-carousel/src/style/index.less new file mode 100644 index 0000000000..a940dec0e6 --- /dev/null +++ b/packages/react-carousel/src/style/index.less @@ -0,0 +1,13 @@ +@w-carousel: ~'w-carousel'; + +.@{w-carousel} { + overflow: hidden; + + &-content { + height: 200px; + // transform: translate3d(); + display: flex; + flex-direction: row; + transition: 0.6s ease-in-out; + } +} diff --git a/packages/react-carousel/tsconfig.json b/packages/react-carousel/tsconfig.json new file mode 100644 index 0000000000..41a3f0ac82 --- /dev/null +++ b/packages/react-carousel/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig", + "include": ["src/**/*"], + "compilerOptions": { + "outDir": "./cjs", + "baseUrl": "." + } +} diff --git a/packages/uiw/package.json b/packages/uiw/package.json index d152fc8f0f..adc4a2e487 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -67,6 +67,7 @@ "@uiw/react-button-group": "^4.14.2", "@uiw/react-calendar": "^4.14.2", "@uiw/react-card": "^4.14.2", + "@uiw/react-carousel": "^4.14.2", "@uiw/react-checkbox": "^4.14.2", "@uiw/react-collapse": "^4.14.2", "@uiw/react-copy-to-clipboard": "^4.14.2", diff --git a/packages/uiw/src/index.ts b/packages/uiw/src/index.ts index 8c34dd6119..9430c4ba5f 100644 --- a/packages/uiw/src/index.ts +++ b/packages/uiw/src/index.ts @@ -9,6 +9,7 @@ export * from '@uiw/react-button'; export * from '@uiw/react-button-group'; export * from '@uiw/react-calendar'; export * from '@uiw/react-card'; +export * from '@uiw/react-carousel'; export * from '@uiw/react-checkbox'; export * from '@uiw/react-collapse'; export * from '@uiw/react-copy-to-clipboard'; @@ -68,7 +69,8 @@ export { default as Breadcrumb } from '@uiw/react-breadcrumb'; export { default as Button } from '@uiw/react-button'; export { default as ButtonGroup } from '@uiw/react-button-group'; export { default as Calendar } from '@uiw/react-calendar'; -export { default as Card } from '@uiw/react-card'; +export { default as Carousel } from '@uiw/react-carousel'; +export { default as Card } from '@uiw/react-calendar'; export { default as Checkbox } from '@uiw/react-checkbox'; export { default as Collapse } from '@uiw/react-collapse'; export { default as CopyToClipboard } from '@uiw/react-copy-to-clipboard'; diff --git a/website/src/menu.json b/website/src/menu.json index f6acaae0d4..78cea3bdbd 100755 --- a/website/src/menu.json +++ b/website/src/menu.json @@ -70,6 +70,7 @@ { "name": "Avatar 头像", "path": "avatar" }, { "name": "Badge 标记", "path": "badge" }, { "name": "Card 卡片", "path": "card" }, + { "name": "Carousel 走马灯", "path": "carousel" }, { "name": "Collapse 折叠面板", "path": "collapse" }, { "name": "Descriptions 描述列表", "path": "descriptions" }, { "name": "Tag 标签", "path": "tag" }, diff --git a/website/src/routers.tsx b/website/src/routers.tsx index 29c27c341e..cb02b2ba70 100755 --- a/website/src/routers.tsx +++ b/website/src/routers.tsx @@ -34,6 +34,7 @@ const Checkbox = Loadable(lazy(() => import('./routes/components/checkbox'))); const CopyToClipboard = Loadable(lazy(() => import('./routes/components/copy-to-clipboard'))); const Collapse = Loadable(lazy(() => import('./routes/components/collapse'))); const Card = Loadable(lazy(() => import('./routes/components/card'))); +const Carousel = Loadable(lazy(() => import('./routes/components/carousel'))); const Descriptions = Loadable(lazy(() => import('./routes/components/descriptions'))); const Loader = Loadable(lazy(() => import('./routes/components/loader'))); const Icon = Loadable(lazy(() => import('./routes/components/icon'))); @@ -126,6 +127,7 @@ export const routes: RouteObject[] = [ { path: '/components/copy-to-clipboard', element: }, { path: '/components/collapse', element: }, { path: '/components/card', element: }, + { path: '/components/carousel', element: }, { path: '/components/descriptions', element: }, { path: '/components/loader', element: }, { path: '/components/icon', element: }, diff --git a/website/src/routes/components/carousel/index.tsx b/website/src/routes/components/carousel/index.tsx new file mode 100755 index 0000000000..7497a0ed9a --- /dev/null +++ b/website/src/routes/components/carousel/index.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Carousel, Row, Col } from 'uiw'; +import Markdown from '../../../components/Markdown'; + +export default function Page() { + return ( + { + const md = await import('uiw/node_modules/@uiw/react-carousel/README.md'); + return md.default || md; + }} + /> + ); +} From c96af8b7051a4e0c98f2dced4bd102b696e79ce2 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 17:23:05 +0800 Subject: [PATCH 561/575] =?UTF-8?q?clean:=E5=88=A0=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E5=8C=85=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-transfer/package.json | 1 - website/src/routes/components/transfer/index.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-transfer/package.json b/packages/react-transfer/package.json index 0d8cca6396..0c86cc9ca6 100644 --- a/packages/react-transfer/package.json +++ b/packages/react-transfer/package.json @@ -44,7 +44,6 @@ "dependencies": { "@uiw/react-card": "^4.14.2", "@uiw/react-checkbox": "^4.14.2", - "@uiw/react-grid": "^4.14.2", "@uiw/react-icon": "^4.14.2", "@uiw/react-input": "^4.14.2", "@uiw/react-tree": "^4.14.2", diff --git a/website/src/routes/components/transfer/index.tsx b/website/src/routes/components/transfer/index.tsx index 688d05a017..e481270814 100644 --- a/website/src/routes/components/transfer/index.tsx +++ b/website/src/routes/components/transfer/index.tsx @@ -4,7 +4,7 @@ import Markdown from '../../../components/Markdown'; export default () => ( { const md = await import('uiw/node_modules/@uiw/react-transfer/README.md'); From ba90c6c6daeaf3d3a72607453fd32aef003eb287 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 17:27:53 +0800 Subject: [PATCH 562/575] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 5 +++++ .github/workflows/npm.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eed40112f6..165f56ce17 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -123,6 +123,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-card/package.json + - name: 📦 @uiw/react-carousel publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-carousel/package.json - name: 📦 @uiw/react-checkbox publish to NPM uses: JS-DevTools/npm-publish@v1 with: diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 3abd32ed25..5ebd7a38c1 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -192,6 +192,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-card/package.json + - name: 📦 @uiw/react-carousel publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-carousel/package.json - name: 📦 @uiw/react-checkbox publish to NPM uses: JS-DevTools/npm-publish@v1 with: From e3dcb665af68140d08dcf4ab7031508f3a6b185a Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 17:48:11 +0800 Subject: [PATCH 563/575] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 82 ++++++++++++++-------------- packages/react-carousel/package.json | 4 +- packages/uiw/src/index.ts | 2 +- 3 files changed, 45 insertions(+), 43 deletions(-) diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md index b498addc25..34f2b964c3 100644 --- a/packages/react-carousel/README.md +++ b/packages/react-carousel/README.md @@ -18,21 +18,21 @@ import { Carousel } from 'uiw'; function Demo() { return ( - -
    - 1 -
    -
    - 2 -
    -
    - 3 -
    -
    - 4 -
    -
    - ); + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + ); } ReactDOM.render(, _mount_); @@ -49,21 +49,21 @@ import { Carousel } from 'uiw'; function Demo() { return ( - -
    - 1 -
    -
    - 2 -
    -
    - 3 -
    -
    - 4 -
    -
    - ); + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + ); } ReactDOM.render(, _mount_); @@ -79,12 +79,13 @@ import React from 'react'; import { Carousel } from 'uiw'; function Demo() { + const ref=React.useRef() const [autoPlay,autoPlaySet]=React.useState(true) -return ( - - + return ( + +
    1
    @@ -97,14 +98,14 @@ return (
    4
    -
    - - - - -
    +
    + + + + +
    ); -} + } ReactDOM.render(, _mount_); ``` @@ -124,6 +125,7 @@ ReactDOM.render(, _mount_); ### ref + ```ts // 跳转到指定帧 gotoSlide: (slideNumber: number) => void; diff --git a/packages/react-carousel/package.json b/packages/react-carousel/package.json index 30611080e2..99482d7e71 100644 --- a/packages/react-carousel/package.json +++ b/packages/react-carousel/package.json @@ -1,7 +1,7 @@ { "name": "@uiw/react-carousel", "version": "4.14.2", - "description": "TreeChecked component", + "description": "Carousel component", "homepage": "https://uiwjs.github.io/#/components/carousel", "repository": { "type": "git", @@ -20,7 +20,7 @@ "access": "public" }, "keywords": [ - "checked", + "carousel", "design", "uiw", "uiw-react", diff --git a/packages/uiw/src/index.ts b/packages/uiw/src/index.ts index 9430c4ba5f..1940b672e7 100644 --- a/packages/uiw/src/index.ts +++ b/packages/uiw/src/index.ts @@ -69,8 +69,8 @@ export { default as Breadcrumb } from '@uiw/react-breadcrumb'; export { default as Button } from '@uiw/react-button'; export { default as ButtonGroup } from '@uiw/react-button-group'; export { default as Calendar } from '@uiw/react-calendar'; +export { default as Card } from '@uiw/react-card'; export { default as Carousel } from '@uiw/react-carousel'; -export { default as Card } from '@uiw/react-calendar'; export { default as Checkbox } from '@uiw/react-checkbox'; export { default as Collapse } from '@uiw/react-collapse'; export { default as CopyToClipboard } from '@uiw/react-copy-to-clipboard'; From 0e908faa21a484572cb3e9c248b639a1c24980cd Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Fri, 18 Mar 2022 18:02:51 +0800 Subject: [PATCH 564/575] =?UTF-8?q?docs:=20=E6=96=87=E5=AD=97=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md index 34f2b964c3..a8df0173d9 100644 --- a/packages/react-carousel/README.md +++ b/packages/react-carousel/README.md @@ -5,7 +5,7 @@ Carousel 走马灯 [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-carousel.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-carousel) [![npm version](https://img.shields.io/npm/v/@uiw/react-carousel.svg?label=@uiw/react-carousel)](https://npmjs.com/@uiw/react-carousel) -选择一个或以上的选项后,点击左右的方向按钮,可以把选中的选项移动到另一栏为选中。在 v4.15.0+ 添加。 +滚动播放。在 v4.15.0+ 添加。 ## 基础用法 @@ -121,7 +121,7 @@ ReactDOM.render(, _mount_); | position | 设置初始帧位置 | number | 0 | | palyTime | 每帧停留时间(ms) | number | 2000 | | scrollTime | 滚动动画的速度(ms) | number | 200 | -| autoPlay | 是否自定播放 | boolean | true | +| autoPlay | 是否自动播放 | boolean | true | ### ref From b67eee359e374a76032a0d059da04d68635660fe Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 21 Mar 2022 10:34:07 +0800 Subject: [PATCH 565/575] =?UTF-8?q?fix(SearchSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=90=8E=E4=BB=BB=E7=84=B6=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-select/README.md | 65 ++++++++++++++++++- packages/react-search-select/src/index.tsx | 12 +++- .../react-search-select/src/style/index.less | 9 +++ packages/react-tag/src/index.tsx | 2 +- 4 files changed, 84 insertions(+), 4 deletions(-) diff --git a/packages/react-search-select/README.md b/packages/react-search-select/README.md index a54d6b638a..f2b382c511 100644 --- a/packages/react-search-select/README.md +++ b/packages/react-search-select/README.md @@ -37,7 +37,7 @@ const Demo = () => { const [values, setValues] = React.useState([{label: 'a7', value: 7},{label: 'a8', value: 8}]); const [value, setValue] = React.useState([{label: 'a7', value: 7}]); - function handleSearch(e) { +function handleSearch(e) { setLoading(true) setTimeout(() => { const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) @@ -96,6 +96,69 @@ const Demo = () => { ReactDOM.render(, _mount_); ``` +## 限制选项个数 + + +```jsx +import ReactDOM from 'react-dom'; +import { SearchSelect,Row,Col } from 'uiw'; + +const Demo = () => { + const selectOption=[ + { label: 'a1', value: 1 }, + { label: 'a2', value: 2 }, + { label: 'a3', value: 3 }, + { label: 'a4', value: 4 }, + { label: 'a5', value: 5 }, + { label: 'a6', value: 6 }, + { label: 'a7', value: 7 }, + { label: 'a8', value: 8 }, + ] + + const [option, setOption] = React.useState(selectOption); + const [loading, setLoading] = React.useState(false); + const [values, setValues] = React.useState([{label: 'a7', value: 7}]); + const [disabled, setDisabled] = React.useState(false); + const maxTagCount = 2 + + function handleSearch(e) { + setLoading(true) + setTimeout(() => { + const filterOpion= selectOption.filter(item=>!!item.label.includes(e.trim())) + setOption([...filterOpion]); + setLoading(false); + }, 500); + } + + return( + + console.log('onSelect',value)} + loading={loading} + option={option} + onChange={(value) => { + if(value?.length >= maxTagCount) + setDisabled(true) + setValues(value) + }} + /> + + ); +}; +ReactDOM.render(, _mount_); +``` + + ### 在表单中使用 在 [`
    `](#/components/form) 表单中应用 `` 组件。 diff --git a/packages/react-search-select/src/index.tsx b/packages/react-search-select/src/index.tsx index d3737d8c29..0ed6241a3b 100644 --- a/packages/react-search-select/src/index.tsx +++ b/packages/react-search-select/src/index.tsx @@ -85,6 +85,12 @@ export default function SearchSelect(props: SearchSelectProps) { } }, []); + useEffect(() => { + if (disabled) { + setInnerIsOpen(false); + } + }, [disabled]); + useEffect(() => { if (valueVerify(value)) { selectedValueChange(value!); @@ -210,7 +216,7 @@ export default function SearchSelect(props: SearchSelectProps) { trigger="click" style={{ marginTop: 5 }} overlayStyl={{ width: 100 }} - disabled={option && option.length > 0 ? false : true} + disabled={disabled} {...others} onVisibleChange={onVisibleChange} isOpen={innerIsOpen} @@ -263,6 +269,7 @@ export default function SearchSelect(props: SearchSelectProps) { color="#393E48" {...tagProps} closable + disabled={disabled} onClose={(e) => { e.stopPropagation(); handleItemsClick(index, item); @@ -290,7 +297,7 @@ export default function SearchSelect(props: SearchSelectProps) { placeholder={selectedValue.length ? '' : placeholder} />
    - {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( + {!disabled && (selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( )}
    @@ -304,6 +311,7 @@ export default function SearchSelect(props: SearchSelectProps) { value={selectedLabel} placeholder={placeholder} addonAfter={ + !disabled && (selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( { return ( {title || children} - {closable ? ( + {!disabled && closable ? ( From 789627ad8c02cbb917abb72c5103fdd33705e11d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 21 Mar 2022 15:12:01 +0800 Subject: [PATCH 566/575] =?UTF-8?q?feat(Carousel)=EF=BC=9A=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=95=88=E6=9E=9C=E6=80=BB=E6=98=AF=E4=BB=8E=E5=B7=A6?= =?UTF-8?q?=E5=90=91=E5=8F=B3=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 10 +++++- packages/react-carousel/src/index.tsx | 51 ++++++++++++++++++++------- 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md index 5998d3ad87..2bcfd71a00 100644 --- a/packages/react-carousel/README.md +++ b/packages/react-carousel/README.md @@ -91,7 +91,13 @@ function Demo() { return ( - + console.log('after',current)} + beforeChange={(current)=>console.log('before',current)} + >
    1
    @@ -128,6 +134,8 @@ ReactDOM.render(, _mount_); | palyTime | 每帧停留时间(ms) | number | 2000 | | scrollTime | 滚动动画的速度(ms) | number | 200 | | autoPlay | 是否自动播放 | boolean | true | +| afterChange | 切换面板的回调 | (current) => void | - | +| beforeChange | 切换面板的回调 | (current) => void | - | ### ref diff --git a/packages/react-carousel/src/index.tsx b/packages/react-carousel/src/index.tsx index 72e70c44d5..a1ed801f85 100644 --- a/packages/react-carousel/src/index.tsx +++ b/packages/react-carousel/src/index.tsx @@ -9,6 +9,8 @@ export interface CarouselProps extends IProps, HTMLDivProps { palyTime?: number; scrollTime?: number; autoPlay?: boolean; + afterChange?: (current: number) => void; + beforeChange?: (current: number) => void; } export interface CarouselRef { @@ -18,7 +20,7 @@ export interface CarouselRef { stopPlay: () => void; } -function Carousel(props: CarouselProps, ref: CarouselRef) { +function Carousel(props: CarouselProps, ref: CarouselRef | any) { const { position = 0, width = 400, @@ -26,6 +28,8 @@ function Carousel(props: CarouselProps, ref: CarouselRef) { palyTime = 2000, scrollTime = 200, autoPlay = true, + afterChange, + beforeChange, prefixCls = 'w-carousel', className, @@ -35,9 +39,10 @@ function Carousel(props: CarouselProps, ref: CarouselRef) { const cls = useMemo(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]); const [currentPosition, currentPositionSet] = useState(position); + const [transitionInner, transitionInnerSet] = useState(`${scrollTime * 0.001}s ease-in-out`); const positionRef = useRef(currentPosition); - const childCount = React.Children.count(props.children); - const stopPlay = useRef(() => {}); + const childCount = React.Children.count(props.children) + 1; + const stopPlay = useRef({ stop: () => {}, after: afterChange, before: beforeChange }); React.useImperativeHandle( ref, @@ -45,13 +50,13 @@ function Carousel(props: CarouselProps, ref: CarouselRef) { gotoSlide, prevSlide: () => gotoSlide(positionRef.current - 1), nextSlide: () => gotoSlide(positionRef.current + 1), - stopPlay: () => stopPlay.current(), + stopPlay: () => stopPlay.current.stop(), }), [ref], ); const gotoSlide = (slidNumber: number) => { - stopPlay.current(); + stopPlay.current.stop(); const maxSlid = childCount - 1; let slidNumberTemp = slidNumber > maxSlid ? maxSlid : slidNumber; slidNumberTemp = slidNumber < 0 ? 0 : slidNumberTemp; @@ -63,13 +68,15 @@ function Carousel(props: CarouselProps, ref: CarouselRef) { const play = (ms: number = palyTime) => { if (autoPlay) { const time = setInterval(() => { + stopPlay.current.after?.(positionRef.current); positionRef.current++; if (positionRef.current >= childCount) { positionRef.current = 0; } currentPositionSet(positionRef.current); + stopPlay.current.before?.(positionRef.current); }, ms); - stopPlay.current = () => { + stopPlay.current.stop = () => { clearInterval(time); }; } @@ -78,10 +85,31 @@ function Carousel(props: CarouselProps, ref: CarouselRef) { useEffect(() => { play(); return () => { - stopPlay.current(); + stopPlay.current.stop(); }; }, [autoPlay]); + useEffect(() => { + let time: NodeJS.Timeout; + if (childCount === currentPosition + 1) { + time = setTimeout(() => { + stopPlay.current.before = () => { + transitionInnerSet(`${scrollTime * 0.001}s ease-in-out`); + stopPlay.current.before = props.beforeChange; + }; + transitionInnerSet('none'); + gotoSlide(0); + }, scrollTime); + } + return () => { + clearTimeout(time); + }; + }, [currentPosition]); + + const childrens = React.Children.map(props.children, (child) => { + return
    {child}
    ; + }); + return (
    - {React.Children.map(props.children, (child) => { - return
    {child}
    ; - })} + {childrens} +
    {childrens?.[0]}
    ); } -export default React.forwardRef(Carousel); +export default React.forwardRef(Carousel as any); From 0b0eff8df4af98982364dc15d7d4047addcdf129 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 21 Mar 2022 15:16:42 +0800 Subject: [PATCH 567/575] =?UTF-8?q?docs=EF=BC=9A=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md index 2bcfd71a00..1811f9ba69 100644 --- a/packages/react-carousel/README.md +++ b/packages/react-carousel/README.md @@ -134,8 +134,8 @@ ReactDOM.render(, _mount_); | palyTime | 每帧停留时间(ms) | number | 2000 | | scrollTime | 滚动动画的速度(ms) | number | 200 | | autoPlay | 是否自动播放 | boolean | true | -| afterChange | 切换面板的回调 | (current) => void | - | -| beforeChange | 切换面板的回调 | (current) => void | - | +| afterChange | 切换面板前的回调 | (current) => void | - | +| beforeChange | 切换面板后的回调 | (current) => void | - | ### ref From 3e0e6dc0c6152f1c202bf2e579b52baf4889703d Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Mon, 21 Mar 2022 17:12:48 +0800 Subject: [PATCH 568/575] =?UTF-8?q?fix(Carousel)=EF=BC=9A=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0ref=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-carousel/src/index.tsx b/packages/react-carousel/src/index.tsx index a1ed801f85..9425ecbde9 100644 --- a/packages/react-carousel/src/index.tsx +++ b/packages/react-carousel/src/index.tsx @@ -20,7 +20,7 @@ export interface CarouselRef { stopPlay: () => void; } -function Carousel(props: CarouselProps, ref: CarouselRef | any) { +function Carousel(props: CarouselProps, ref: React.ForwardedRef) { const { position = 0, width = 400, @@ -127,4 +127,4 @@ function Carousel(props: CarouselProps, ref: CarouselRef | any) { ); } -export default React.forwardRef(Carousel as any); +export default React.forwardRef(Carousel); From c4ac2491c253e9ef5b4ccb26b6fad059de26095c Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 22 Mar 2022 10:10:29 +0800 Subject: [PATCH 569/575] =?UTF-8?q?fix(SearchTree):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=90=8E=E5=8F=AF=E4=BB=A5=E5=88=A0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-search-tree/README.md | 36 +++++++++++++++++++ .../react-search-tree/src/SearchTagInput.tsx | 20 +++++++---- .../react-search-tree/src/style/index.less | 4 +++ 3 files changed, 54 insertions(+), 6 deletions(-) diff --git a/packages/react-search-tree/README.md b/packages/react-search-tree/README.md index b1621a104d..39a2c256ed 100644 --- a/packages/react-search-tree/README.md +++ b/packages/react-search-tree/README.md @@ -139,6 +139,42 @@ const onChangeSinge=(selectd, selectedAll, isChecked)=>{ ReactDOM.render(, _mount_); ``` +### 禁用 + + +```jsx +import React, { useState, useEffect, useRef } from 'react'; +import ReactDOM from 'react-dom'; +import { SearchTree } from 'uiw'; + +const data = [ + { label: '上海市', key: 0 }, + { + label: '北京市', key: 1, + children:[ + { label: '东城区', key: 10 }, + ] + }, + { label: '成都市', key: 2 }, +] + +const Demo = () => { + + return( + + ) +} + +ReactDOM.render(, _mount_); +``` + ## 自定义空选项 diff --git a/packages/react-search-tree/src/SearchTagInput.tsx b/packages/react-search-tree/src/SearchTagInput.tsx index edc6e30f12..43375e66ed 100644 --- a/packages/react-search-tree/src/SearchTagInput.tsx +++ b/packages/react-search-tree/src/SearchTagInput.tsx @@ -136,6 +136,7 @@ function SearchTagInput(props: SearchTagInputPro setInnerIsOpen(isOpen); if (!isOpen) searchValueChange(''); }} + disabled={disabled} isOpen={innerIsOpen} menu={{newContent}} > @@ -154,6 +155,7 @@ function SearchTagInput(props: SearchTagInputPro className={`${prefixCls}-tag`} key={index} closable + disabled={disabled} color="#393E48" onClose={(e) => { e.stopPropagation(); @@ -166,7 +168,7 @@ function SearchTagInput(props: SearchTagInputPro })} (props: SearchTagInputPro placeholder={selectedOption.length ? '' : placeholder} />
    - - {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( - - )} - + {!disabled && ( + + {(selectIconType === 'close' || (selectIconType === 'loading' && loading)) && ( + + )} + + )}
  • diff --git a/packages/react-search-tree/src/style/index.less b/packages/react-search-tree/src/style/index.less index 81e81bc2dc..ed513df04a 100644 --- a/packages/react-search-tree/src/style/index.less +++ b/packages/react-search-tree/src/style/index.less @@ -2,6 +2,10 @@ .@{w-search-tree} { &-input-contents { + flex: 1; + min-width: 30px; + top: 1px; + input { box-shadow: none; padding: 0px; From 6bf560fd1f2988524dcb2088bc843a0152d76967 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 22 Mar 2022 11:48:34 +0800 Subject: [PATCH 570/575] =?UTF-8?q?fix(FileInput):=20=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=8E=9F=E7=94=9Finput=20file=E6=8F=90=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E5=AD=97=20#700?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-file-input/src/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-file-input/src/style/index.less b/packages/react-file-input/src/style/index.less index f07d62b2bf..7a626f89d2 100644 --- a/packages/react-file-input/src/style/index.less +++ b/packages/react-file-input/src/style/index.less @@ -5,7 +5,7 @@ &::-webkit-file-upload-button { background: transparent; border: 0; - color: red; + color: #0000; position: absolute; left: -300px; } From cbf5255cfb2f694d441b93a6fcd94bb5b78ff876 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 22 Mar 2022 14:54:00 +0800 Subject: [PATCH 571/575] =?UTF-8?q?fix(Popover):=20children=E4=B8=BAIcon?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-popover/README.md | 22 +++++++++++++--------- packages/react-popover/src/index.tsx | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/react-popover/README.md b/packages/react-popover/README.md index 01cdacbc20..7460f49174 100644 --- a/packages/react-popover/README.md +++ b/packages/react-popover/README.md @@ -28,13 +28,15 @@ class Demo extends React.Component { super(); this.state = { isOpen: false, + isOpen1: false, } } - onClick() { - this.setState({ isOpen: false }); + onClick(field) { + this.setState({ [field]: false }); } - handleVisibleChange(isOpen) { - this.setState({ isOpen }); + + handleVisibleChange(field, isOpen) { + this.setState({ [field]:isOpen }); } render() { return ( @@ -43,15 +45,15 @@ class Demo extends React.Component { trigger="click" placement="top" isOpen={this.state.isOpen} - onVisibleChange={this.handleVisibleChange.bind(this)} + onVisibleChange={this.handleVisibleChange.bind(this, 'isOpen')} content={ 更多} style={{ width: 200 }}>
    Are you sure you want to delete these items? You won't be able to recover them.
    - -
    @@ -64,14 +66,16 @@ class Demo extends React.Component { 更多} style={{ width: 200 }}>
    Are you sure you want to delete these items? You won't be able to recover them.
    - -
    diff --git a/packages/react-popover/src/index.tsx b/packages/react-popover/src/index.tsx index d10e8d4e59..2550b26384 100644 --- a/packages/react-popover/src/index.tsx +++ b/packages/react-popover/src/index.tsx @@ -48,7 +48,7 @@ export default class Popover extends React.Component { {typeof this.props.children === 'object' && (this.props.children as JSX.Element).type.name !== 'Icon' ? ( this.props.children ) : ( - {this.props.children} + {this.props.children} )} ); From 4f955425c79f8e5612e73b8e4b711340887f9da5 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Tue, 22 Mar 2022 15:44:53 +0800 Subject: [PATCH 572/575] =?UTF-8?q?feat(Carousel):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=AB=96=E5=90=91=E6=BB=9A=E5=8A=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-carousel/README.md | 47 +++++++++++++------- packages/react-carousel/src/index.tsx | 25 ++++++++--- packages/react-carousel/src/style/index.less | 3 -- 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/packages/react-carousel/README.md b/packages/react-carousel/README.md index 1811f9ba69..61a3114f79 100644 --- a/packages/react-carousel/README.md +++ b/packages/react-carousel/README.md @@ -24,20 +24,37 @@ import { Carousel } from 'uiw'; function Demo() { return ( - -
    - 1 -
    -
    - 2 -
    -
    - 3 -
    -
    - 4 -
    -
    +
    + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    + + +
    + 1 +
    +
    + 2 +
    +
    + 3 +
    +
    + 4 +
    +
    +
    ); } @@ -136,7 +153,7 @@ ReactDOM.render(, _mount_); | autoPlay | 是否自动播放 | boolean | true | | afterChange | 切换面板前的回调 | (current) => void | - | | beforeChange | 切换面板后的回调 | (current) => void | - | - +| direction | 滚动方位`horizontal`横向,`vertical`竖向 | horizontal \| vertical | horizontal | ### ref diff --git a/packages/react-carousel/src/index.tsx b/packages/react-carousel/src/index.tsx index 9425ecbde9..20d84e06ae 100644 --- a/packages/react-carousel/src/index.tsx +++ b/packages/react-carousel/src/index.tsx @@ -9,6 +9,7 @@ export interface CarouselProps extends IProps, HTMLDivProps { palyTime?: number; scrollTime?: number; autoPlay?: boolean; + direction?: 'horizontal' | 'vertical'; afterChange?: (current: number) => void; beforeChange?: (current: number) => void; } @@ -23,6 +24,7 @@ export interface CarouselRef { function Carousel(props: CarouselProps, ref: React.ForwardedRef) { const { position = 0, + direction = 'horizontal', width = 400, height = 200, palyTime = 2000, @@ -110,15 +112,28 @@ function Carousel(props: CarouselProps, ref: React.ForwardedRef) { return
    {child}
    ; }); + const innerStyle = useMemo(() => { + const style = { transform: '', display: '' }; + switch (direction) { + case 'horizontal': + style.transform = `translate3d(${-(currentPosition * width)}px, 0px, 0px)`; + style.display = 'flex'; + break; + case 'vertical': + style.transform = `translate3d(0px, ${-(currentPosition * height)}px, 0px)`; + style.display = 'block'; + break; + default: + break; + } + return style; + }, [direction, currentPosition, width, height]); + return (
    {childrens}
    {childrens?.[0]}
    diff --git a/packages/react-carousel/src/style/index.less b/packages/react-carousel/src/style/index.less index a940dec0e6..2b262e83e2 100644 --- a/packages/react-carousel/src/style/index.less +++ b/packages/react-carousel/src/style/index.less @@ -5,9 +5,6 @@ &-content { height: 200px; - // transform: translate3d(); - display: flex; - flex-direction: row; transition: 0.6s ease-in-out; } } From 4d5ee8542d3b71e19a60eb0b0e17b4991ff9f437 Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Wed, 23 Mar 2022 11:17:27 +0800 Subject: [PATCH 573/575] =?UTF-8?q?upd(DateInput):=20=E6=B7=BB=E5=8A=A0aut?= =?UTF-8?q?oClose=E8=87=AA=E5=8A=A8=E9=9A=90=E8=97=8F=E5=BC=B9=E5=B1=82API?= =?UTF-8?q?=20=20#660?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-date-input/README.md | 94 ++++++++++++++++--------- packages/react-date-input/src/index.tsx | 8 +++ 2 files changed, 70 insertions(+), 32 deletions(-) diff --git a/packages/react-date-input/README.md b/packages/react-date-input/README.md index 2575f24030..0f3e28d111 100644 --- a/packages/react-date-input/README.md +++ b/packages/react-date-input/README.md @@ -26,40 +26,41 @@ function Demo () { const [dataRange,dataRangeSet] =React.useState(['2022-02-25 15:06:24','2022-02-27 14:47:32']) - function onChange(selectedDate,dataRange) { + function onChange(selectedDate,dataRange) { console.log('selectedDate',selectedDate,dataRange) } - return ( -
    - - - - - - - - - - - - - -
    - ) + + return ( +
    + + + + + + + + + + + + + +
    + ) } ReactDOM.render(, _mount_); ``` @@ -196,6 +197,34 @@ class Demo extends React.Component { ReactDOM.render(, _mount_); ``` +## 自动隐藏弹层 + + +```jsx +import React from 'react'; +import ReactDOM from 'react-dom'; +import { DateInput } from 'uiw'; + +class Demo extends React.Component { + onChange(selectedDate) { + console.log('selectedDate:', selectedDate); + } + render() { + return ( +
    + +
    + ) + } +} +ReactDOM.render(, _mount_); +``` + ## Props | 参数 | 说明 | 类型 | 默认值 | @@ -208,6 +237,7 @@ ReactDOM.render(, _mount_); | popoverProps | 将参数传递给 [``](#/components/popover) 组件 | Object | - | | datePickerProps | 将参数传递给 [``](#/components/date-picker) 组件 | Object | - | | disabled | 组件 [``](#/components/input) 的属性,禁用日历 | Boolean | - | +| autoClose | 是否自动关闭弹层 | Boolean | false | 组件 `DateInput` 继承 `` 组件,更多属性文档请参考 [``](#/components/input)。 diff --git a/packages/react-date-input/src/index.tsx b/packages/react-date-input/src/index.tsx index 75ae01dac8..f97025b0be 100644 --- a/packages/react-date-input/src/index.tsx +++ b/packages/react-date-input/src/index.tsx @@ -15,6 +15,7 @@ export interface DateInputProps extends IProps, Omit void; + autoClose?: boolean; } export default function DateInput(props: DateInputProps) { @@ -24,6 +25,7 @@ export default function DateInput(props: DateInputProps) { popoverProps, datePickerProps, allowClear = true, + autoClose = false, format = 'YYYY/MM/DD', onChange, ...inputProps @@ -40,6 +42,7 @@ export default function DateInput(props: DateInputProps) { }, [props.value]); function handleChange(cdate?: Date) { + autoClose && setIsOpen(false); setDate(cdate); onChange && onChange(cdate); } @@ -48,11 +51,16 @@ export default function DateInput(props: DateInputProps) { handleChange(undefined)} type="close" /> ); } + + const [isOpen, setIsOpen] = useState(false); + return ( setIsOpen(open)} {...popoverProps} content={ Date: Thu, 24 Mar 2022 10:08:20 +0800 Subject: [PATCH 574/575] =?UTF-8?q?fix(Descriptions):=20=E9=9D=9E=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E4=B8=8D=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-descriptions/src/index.tsx | 2 +- packages/react-descriptions/src/style/index.less | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-descriptions/src/index.tsx b/packages/react-descriptions/src/index.tsx index 861a748395..e53e8f5b50 100644 --- a/packages/react-descriptions/src/index.tsx +++ b/packages/react-descriptions/src/index.tsx @@ -84,7 +84,7 @@ function InternalDescriptions(props: DescriptionsProps, ref: React.ForwardedRef<
    {title && } - + {childs.map((child, index) => ( {child} diff --git a/packages/react-descriptions/src/style/index.less b/packages/react-descriptions/src/style/index.less index 91578bc580..e9658ba472 100644 --- a/packages/react-descriptions/src/style/index.less +++ b/packages/react-descriptions/src/style/index.less @@ -20,6 +20,9 @@ font-size: 16px; line-height: 1.5; } + &-tbody { + word-wrap: break-word; + } & &-row:nth-child(2n) { background-color: transparent; } From 1fddfa566a1c8be0bf757f368417c4e75d23680e Mon Sep 17 00:00:00 2001 From: zhouzheng Date: Thu, 24 Mar 2022 17:45:41 +0800 Subject: [PATCH 575/575] =?UTF-8?q?feat(Cascader):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=BA=A7=E8=81=94=E9=80=89=E6=8B=A9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 5 + .github/workflows/npm.yml | 5 + packages/react-cascader/README.md | 77 +++++++++++++ packages/react-cascader/package.json | 54 +++++++++ packages/react-cascader/src/index.tsx | 109 ++++++++++++++++++ packages/react-cascader/src/style/index.less | 75 ++++++++++++ packages/react-cascader/tsconfig.json | 8 ++ packages/uiw/package.json | 1 + packages/uiw/src/index.ts | 2 + website/src/menu.json | 1 + website/src/routers.tsx | 2 + .../src/routes/components/cascader/index.tsx | 14 +++ 12 files changed, 353 insertions(+) create mode 100644 packages/react-cascader/README.md create mode 100644 packages/react-cascader/package.json create mode 100644 packages/react-cascader/src/index.tsx create mode 100644 packages/react-cascader/src/style/index.less create mode 100644 packages/react-cascader/tsconfig.json create mode 100644 website/src/routes/components/cascader/index.tsx diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 165f56ce17..a790486275 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -128,6 +128,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-carousel/package.json + - name: 📦 @uiw/react-cascader publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-cascader/package.json - name: 📦 @uiw/react-checkbox publish to NPM uses: JS-DevTools/npm-publish@v1 with: diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 5ebd7a38c1..2ede65f3cf 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -197,6 +197,11 @@ jobs: with: token: ${{ secrets.NPM_TOKEN }} package: ./packages/react-carousel/package.json + - name: 📦 @uiw/react-cascader publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./packages/react-cascader/package.json - name: 📦 @uiw/react-checkbox publish to NPM uses: JS-DevTools/npm-publish@v1 with: diff --git a/packages/react-cascader/README.md b/packages/react-cascader/README.md new file mode 100644 index 0000000000..d789bdf826 --- /dev/null +++ b/packages/react-cascader/README.md @@ -0,0 +1,77 @@ +Cascader 级联选择 +=== + +[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-cascader/file/README.md) +[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-cascader.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-cascader) +[![npm version](https://img.shields.io/npm/v/@uiw/react-cascader.svg?label=@uiw/react-cascader)](https://npmjs.com/@uiw/react-cascader) + +级联选择框。v4.16.0中添加 + +```jsx +import { Cascader } from 'uiw'; +// or +import Cascader from '@uiw/react-cascader'; +``` + +## 基础示例 + + +```jsx +import ReactDOM from 'react-dom'; +import { Cascader } from 'uiw'; + +const Demo = () => { + + const options = [ + { + value: 'zhejiang', + label: 'Zhejiang', + children: [ + { + value: 'hangzhou', + label: 'Hangzhou', + children: [ + { + value: 'xihu', + label: 'West Lake', + }, + ], + }, + ], + }, + { + value: 'jiangsu', + label: 'Jiangsu', + children: [ + { + value: 'nanjing', + label: 'Nanjing', + children: [ + { + value: 'zhonghuamen', + label: 'Zhong Hua Men', + }, + ], + }, + ], + }, +]; + + return( +
    + console.log(value,seleteds)}/> +
    + ) +}; +ReactDOM.render(, _mount_); +``` + +## Props + +| 参数 | 说明 | 类型 | 默认值 | 版本 | +| ---- | ---- | ---- | ---- | ---- | +| allowClear | 支持清除 | Boolean | `false` | - | +| placeholder | 选择框默认文字 | String | - | - | +| option | 选项菜单 | { value: String \| Number, label: React.ReactNode, children: Array} | - | - | +| value | 指定当前选中的条目,多选时为一个数组 | String[] \| Number[] | - | - | +| onChange | 选中选项调用此函数 | function(value, selectedOptions) | - | - | diff --git a/packages/react-cascader/package.json b/packages/react-cascader/package.json new file mode 100644 index 0000000000..70260c347a --- /dev/null +++ b/packages/react-cascader/package.json @@ -0,0 +1,54 @@ +{ + "name": "@uiw/react-cascader", + "version": "4.15.1", + "description": "Cascader component", + "author": "Kenny Wong ", + "homepage": "https://uiwjs.github.io/#/components/cascader", + "repository": { + "type": "git", + "url": "https://github.com/uiwjs/uiw.git" + }, + "license": "MIT", + "main": "cjs/index.js", + "module": "esm/index.js", + "files": [ + "dist.css", + "cjs", + "esm", + "src" + ], + "publishConfig": { + "access": "public" + }, + "keywords": [ + "cascader", + "design", + "uiw", + "uiw-react", + "react.js", + "react", + "react-component", + "component", + "components", + "ui", + "css", + "uikit", + "react-ui", + "framework", + "front-end", + "frontend" + ], + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + }, + "dependencies": { + "@uiw/react-dropdown": "^4.15.1", + "@uiw/react-icon": "^4.15.1", + "@uiw/react-input": "^4.15.1", + "@uiw/react-loader": "^4.15.1", + "@uiw/react-menu": "^4.15.1", + "@uiw/react-tag": "^4.15.1", + "@uiw/utils": "^4.15.1" + } +} diff --git a/packages/react-cascader/src/index.tsx b/packages/react-cascader/src/index.tsx new file mode 100644 index 0000000000..c72a6cb285 --- /dev/null +++ b/packages/react-cascader/src/index.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect, useMemo } from 'react'; +import Input from '@uiw/react-input'; +import { IProps } from '@uiw/utils'; +import Dropdown, { DropdownProps } from '@uiw/react-dropdown'; +import Menu from '@uiw/react-menu'; +import Icon from '@uiw/react-icon'; + +type ValueType = Array; +type optionType = { value: string | number; label: React.ReactNode; children?: Array }; + +export interface CascaderProps extends IProps, DropdownProps { + option?: Array; + value?: ValueType; + onChange?: (value: ValueType, selectedOptions: Array) => void; + allowClear?: boolean; + placeholder?: string; + isOpen?: boolean; +} + +function Cascader(props: CascaderProps) { + const { placeholder, prefixCls = 'w-search-select', className, style = { width: 200 }, option = [], others } = props; + + const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); + const [innerIsOpen, setInnerIsOpen] = useState(false); + const [selectedValue, setSelectedValue] = useState>([]); + + function onVisibleChange(isOpen: boolean) { + setInnerIsOpen(isOpen); + } + + const handleItemClick = (optionsItem: optionType, level: number) => { + selectedValue.splice(level, selectedValue.length - level, optionsItem); + setSelectedValue([...selectedValue]); + + handelChange(); + }; + + const handelChange = () => { + const value = selectedValue.map((item) => item.value); + props.onChange?.(value, selectedValue); + }; + + const widths = (style?.width as number) * 0.6 || undefined; + + const OptionIter = (option: Array, level: number = 0) => { + if (!option) return; + + return ( + + {!option || option.length === 0 ? ( +
    {'没有数据'}
    + ) : ( + option.map((item, index) => { + const active = selectedValue[level]?.value === item.value; + return ( + : undefined} + onClick={() => handleItemClick(item, level)} + /> + ); + }) + )} +
    + ) as JSX.Element; + }; + + const inputValue = useMemo(() => { + return selectedValue.map((item) => item.label).join(' / '); + }, [selectedValue.length]); + + return ( + + {new Array(selectedValue.length + 1) + .fill(0) + .map((_, index) => { + const options = index ? selectedValue[index - 1]?.children! : option; + return OptionIter(options, index); + }) + .filter((m) => !!m)} + + } + > + {}} placeholder={placeholder} style={{ width: style?.width }} /> + + ); +} + +export default Cascader; diff --git a/packages/react-cascader/src/style/index.less b/packages/react-cascader/src/style/index.less new file mode 100644 index 0000000000..6941205df5 --- /dev/null +++ b/packages/react-cascader/src/style/index.less @@ -0,0 +1,75 @@ +@w-search-select: ~'w-search-select'; + +.@{w-search-select} { + &-input-contents { + input { + box-shadow: none; + padding: 0px; + min-width: 50px; + height: 22px; + } + + .w-input-inner { + &:hover { + box-shadow: none !important; + } + + &:focus { + box-shadow: none !important; + } + + &.disabled { + box-shadow: none; + background: #dddddd; + opacity: 0.75; + color: #a5a5a5; + cursor: not-allowed; + resize: none; + } + } + } + + &-inner { + display: flex; + justify-content: space-between; + outline: none; + border: none; + align-items: center; + border-radius: 3px; + box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), + inset 0 1px 1px rgba(16, 22, 26, 0.2); + box-sizing: border-box; + background: #fff; + min-height: 30px; + margin: 0 !important; + padding: 3px 10px 3px 10px; + vertical-align: middle; + line-height: 30px; + color: #393e48; + font-weight: 400; + font-size: inherit; + transition: box-shadow 0.3s cubic-bezier(0.4, 1, 0.75, 0.9); + appearance: none; + + &:focus { + box-shadow: 0 0 0 1px #393e48, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:focus&:hover { + box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 3px rgba(57, 62, 72, 0.17), inset 0 1px 1px rgba(16, 22, 26, 0.2); + } + + &:disabled { + box-shadow: none; + background: #dddddd; + opacity: 0.75; + color: #a5a5a5; + cursor: not-allowed; + resize: none; + } + } +} diff --git a/packages/react-cascader/tsconfig.json b/packages/react-cascader/tsconfig.json new file mode 100644 index 0000000000..41a3f0ac82 --- /dev/null +++ b/packages/react-cascader/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig", + "include": ["src/**/*"], + "compilerOptions": { + "outDir": "./cjs", + "baseUrl": "." + } +} diff --git a/packages/uiw/package.json b/packages/uiw/package.json index 39f113e046..7949a3e8b8 100644 --- a/packages/uiw/package.json +++ b/packages/uiw/package.json @@ -68,6 +68,7 @@ "@uiw/react-calendar": "^4.15.1", "@uiw/react-card": "^4.15.1", "@uiw/react-carousel": "^4.15.1", + "@uiw/react-cascader": "^4.15.1", "@uiw/react-checkbox": "^4.15.1", "@uiw/react-collapse": "^4.15.1", "@uiw/react-copy-to-clipboard": "^4.15.1", diff --git a/packages/uiw/src/index.ts b/packages/uiw/src/index.ts index 1940b672e7..12f56d1dfb 100644 --- a/packages/uiw/src/index.ts +++ b/packages/uiw/src/index.ts @@ -10,6 +10,7 @@ export * from '@uiw/react-button-group'; export * from '@uiw/react-calendar'; export * from '@uiw/react-card'; export * from '@uiw/react-carousel'; +export * from '@uiw/react-cascader'; export * from '@uiw/react-checkbox'; export * from '@uiw/react-collapse'; export * from '@uiw/react-copy-to-clipboard'; @@ -69,6 +70,7 @@ export { default as Breadcrumb } from '@uiw/react-breadcrumb'; export { default as Button } from '@uiw/react-button'; export { default as ButtonGroup } from '@uiw/react-button-group'; export { default as Calendar } from '@uiw/react-calendar'; +export { default as Cascader } from '@uiw/react-cascader'; export { default as Card } from '@uiw/react-card'; export { default as Carousel } from '@uiw/react-carousel'; export { default as Checkbox } from '@uiw/react-checkbox'; diff --git a/website/src/menu.json b/website/src/menu.json index 78cea3bdbd..650641b915 100755 --- a/website/src/menu.json +++ b/website/src/menu.json @@ -43,6 +43,7 @@ { "name": "Form 表单", "path": "form" }, { "name": "Radio 单选框", "path": "radio" }, { "name": "Checkbox 多选框", "path": "checkbox" }, + { "name": "Cascader 级联选择", "path": "cascader" }, { "name": "Input 输入框", "path": "input" }, { "name": "FileInput 上传输入框", "path": "file-input" }, { "name": "PinCode PIN码", "path": "pin-code" }, diff --git a/website/src/routers.tsx b/website/src/routers.tsx index cb02b2ba70..2bfc10dc15 100755 --- a/website/src/routers.tsx +++ b/website/src/routers.tsx @@ -30,6 +30,7 @@ const ResetCss = Loadable(lazy(() => import('./routes/components/reset-css'))); const Avatar = Loadable(lazy(() => import('./routes/components/avatar'))); const Affix = Loadable(lazy(() => import('./routes/components/affix'))); const Calendar = Loadable(lazy(() => import('./routes/components/calendar'))); +const Cascader = Loadable(lazy(() => import('./routes/components/cascader'))); const Checkbox = Loadable(lazy(() => import('./routes/components/checkbox'))); const CopyToClipboard = Loadable(lazy(() => import('./routes/components/copy-to-clipboard'))); const Collapse = Loadable(lazy(() => import('./routes/components/collapse'))); @@ -128,6 +129,7 @@ export const routes: RouteObject[] = [ { path: '/components/collapse', element: }, { path: '/components/card', element: }, { path: '/components/carousel', element: }, + { path: '/components/cascader', element: }, { path: '/components/descriptions', element: }, { path: '/components/loader', element: }, { path: '/components/icon', element: }, diff --git a/website/src/routes/components/cascader/index.tsx b/website/src/routes/components/cascader/index.tsx new file mode 100644 index 0000000000..f60de94cd7 --- /dev/null +++ b/website/src/routes/components/cascader/index.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { Form, Row, Col, Cascader } from 'uiw'; +import Markdown from '../../../components/Markdown'; + +export default () => ( + { + const md = await import('uiw/node_modules/@uiw/react-cascader/README.md'); + return md.default || md; + }} + /> +);
    {title}