@wangtaizong/components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # EverUI
2
+
3
+ 前端业务组件库项目
4
+
5
+ 框架:react + vite + storybook
6
+
7
+ [story文档 ](https://storybook.js.org/docs/react/addons/addons-api#addonssetconfigconfig)
8
+
9
+ ### 开发
10
+ ```
11
+ yarn storybook
12
+ ```
13
+
14
+ ### 打包
15
+ ```
16
+ yarn build
17
+ ```
18
+
19
+ ### 发布npm
20
+ ```
21
+ npm publish
22
+ ```
23
+ [npm线上地址](https://www.npmjs.com/package/@youdao-ead-fe/yodao-ui)
24
+
25
+
26
+ ### 使用组件库
27
+ ```
28
+ npm install @youdao-ead-fe/yodao-ui
29
+
30
+ // 在输入文件如_app.js中引入style
31
+ import '@youdao-ead-fe/yodao-ui/style'
32
+
33
+ // 在目标页面中
34
+ import {MutipleSelector} from @youdao-ead-fe/yodao-ui
35
+ ```
36
+
37
+
38
+
39
+ ### 发布到github
40
+ 使用[@storybook/storybook-deployer文档](https://github.com/storybook-eol/storybook-deployer)发布到github
41
+
42
+ ```
43
+ yarn build-storybook
44
+
45
+ // 在storybook-static 文件夹中添加.nojekyll文件
46
+
47
+ yarn deploy-storybook -- --existing-output-dir=storybook-static
48
+ ```
49
+
50
+ [线上地址](https://MingwieJin.github.io/EverUI/)
51
+
52
+
@@ -0,0 +1,7 @@
1
+ declare const EmptyDataList: (props: {
2
+ onReset?: VoidFunction;
3
+ onSearch?: boolean;
4
+ emptyText?: string;
5
+ searchText?: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default EmptyDataList;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ interface DateCellProps {
3
+ cellValue: number;
4
+ selectableRef?: never;
5
+ isSelecting?: boolean;
6
+ children?: React.ReactChild;
7
+ selectedColor?: string;
8
+ selectedAges: number[];
9
+ showMinorColor?: boolean;
10
+ startAge: boolean;
11
+ endAge: boolean;
12
+ oneAge: boolean;
13
+ disableItems?: (current: number) => boolean;
14
+ }
15
+ declare const _default: React.ComponentType<DateCellProps & Partial<Pick<import("react-selectable-fast").TSelectableItemProps, "isSelected">>>;
16
+ export default _default;
@@ -0,0 +1,40 @@
1
+ interface MutipleSelectorProps {
2
+ /**
3
+ * Components name
4
+ */
5
+ componentsName?: string;
6
+ /**
7
+ * value
8
+ */
9
+ value?: number[];
10
+ /**
11
+ * Function for value change
12
+ */
13
+ onChange?: (value: number[]) => void;
14
+ /**
15
+ * Can be edit or not
16
+ */
17
+ isEditMode?: boolean;
18
+ /**
19
+ * Disable items
20
+ */
21
+ disableItems?: (current: number) => boolean;
22
+ /**
23
+ * Title for selected area
24
+ */
25
+ selectedTitle?: string;
26
+ /**
27
+ * Container width
28
+ */
29
+ containerWidth?: number;
30
+ /**
31
+ * Container height
32
+ */
33
+ containerHeight?: number;
34
+ /**
35
+ * Options for component
36
+ */
37
+ defaultOptions: (number)[];
38
+ }
39
+ declare const MutipleSelector: ({ componentsName, value, isEditMode, onChange, disableItems, selectedTitle, containerWidth, containerHeight, defaultOptions, }: MutipleSelectorProps) => import("react/jsx-runtime").JSX.Element;
40
+ export default MutipleSelector;
@@ -0,0 +1,3 @@
1
+ import EmptyDataList from './components/emptyTable/EmptyDataList';
2
+ import MutipleSelector from './components/multipleSelector/MutipleSelector';
3
+ export { EmptyDataList, MutipleSelector };