Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Stepper): new stepper #518

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/web/plugin-tdoc/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {

// 统一换成 common 文档内容
if (name && source.includes(':: BASE_DOC ::')) {
const docPath = path.resolve(__dirname, `../../../src/_common/docs/mobile/api/${name}.md`);
const docPath = path.resolve(__dirname, `../../../src/_common/docs/mobile/api_v2/${name}.md`);
if (fs.existsSync(docPath)) {
const baseDoc = fs.readFileSync(docPath, 'utf-8');
source = source.replace(':: BASE_DOC ::', baseDoc);
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 67 files
+11 −1 .stylelintrc
+28 −0 docs/mobile/api_v2/action-sheet.md
+28 −0 docs/mobile/api_v2/avatar.md
+23 −0 docs/mobile/api_v2/back-top.md
+19 −0 docs/mobile/api_v2/badge.md
+37 −0 docs/mobile/api_v2/button.md
+31 −0 docs/mobile/api_v2/calendar.md
+19 −0 docs/mobile/api_v2/cascader.md
+27 −0 docs/mobile/api_v2/cell.md
+35 −0 docs/mobile/api_v2/checkbox.md
+21 −0 docs/mobile/api_v2/collapse.md
+15 −0 docs/mobile/api_v2/count-down.md
+23 −0 docs/mobile/api_v2/date-time-picker.md
+25 −0 docs/mobile/api_v2/dialog.md
+23 −0 docs/mobile/api_v2/divider.md
+15 −0 docs/mobile/api_v2/drawer.md
+38 −0 docs/mobile/api_v2/dropdown-menu.md
+19 −0 docs/mobile/api_v2/fab.md
+19 −0 docs/mobile/api_v2/grid.md
+7 −0 docs/mobile/api_v2/icon.md
+19 −0 docs/mobile/api_v2/image-viewer.md
+51 −0 docs/mobile/api_v2/image.md
+11 −0 docs/mobile/api_v2/indexes.md
+35 −0 docs/mobile/api_v2/input.md
+21 −0 docs/mobile/api_v2/list.md
+43 −0 docs/mobile/api_v2/loading.md
+21 −0 docs/mobile/api_v2/message.md
+20 −0 docs/mobile/api_v2/navbar.md
+36 −0 docs/mobile/api_v2/notice-bar.md
+11 −0 docs/mobile/api_v2/overlay.md
+19 −0 docs/mobile/api_v2/picker.md
+41 −0 docs/mobile/api_v2/popup.md
+33 −0 docs/mobile/api_v2/progress.md
+23 −0 docs/mobile/api_v2/pull-down-refresh.md
+17 −0 docs/mobile/api_v2/radio.md
+39 −0 docs/mobile/api_v2/rate.md
+17 −0 docs/mobile/api_v2/result.md
+17 −0 docs/mobile/api_v2/search.md
+31 −0 docs/mobile/api_v2/skeleton.md
+39 −0 docs/mobile/api_v2/slider.md
+35 −0 docs/mobile/api_v2/stepper.md
+35 −0 docs/mobile/api_v2/steps.md
+21 −0 docs/mobile/api_v2/sticky.md
+53 −0 docs/mobile/api_v2/swipe-cell.md
+23 −0 docs/mobile/api_v2/swiper.md
+23 −0 docs/mobile/api_v2/switch.md
+29 −0 docs/mobile/api_v2/tab-bar.md
+41 −0 docs/mobile/api_v2/tabs.md
+45 −0 docs/mobile/api_v2/tag.md
+37 −0 docs/mobile/api_v2/textarea.md
+35 −0 docs/mobile/api_v2/toast.md
+15 −0 docs/mobile/api_v2/upload.md
+1 −4 docs/web/api/image.md
+1 −1 docs/web/api/link.md
+4 −2 docs/web/api/table.md
+16 −3 js/date-picker/format.ts
+1 −1 js/global-config/locale/ja_JP.ts
+1 −1 js/global-config/locale/ko_KR.ts
+227 −0 js/global-config/locale/zh_TW.ts
+3 −0 style/mobile/components/_index.less
+135 −0 style/mobile/components/stepper/v2/_index.less
+19 −0 style/mobile/components/stepper/v2/_var.less
+9 −4 style/web/components/color-picker/_index.less
+1 −0 style/web/components/dialog/_index.less
+1 −2 style/web/components/loading/_index.less
+11 −1 style/web/components/table/_index.less
+5 −5 style/web/components/tooltip/_index.less
36 changes: 30 additions & 6 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,35 @@ export type FormSubmitEvent = Event;
export interface Styles {
[css: string]: string | number;
}
/** 通用全局类型 */

export interface UploadDisplayDragEvents {
onDrop?: (event: DragEvent) => void;
onDragenter?: (event: DragEvent) => void;
onDragover?: (event: DragEvent) => void;
onDragleave?: (event: DragEvent) => void;
}

export type ImageEvent = Event;

/**
* 通用全局类型
* */
export type PlainObject = { [key: string]: any };

export type OptionData = {
label?: string;
value?: string | number;
} & { [key: string]: any };

export type TreeOptionData = {
children?: Array<TreeOptionData>;
} & OptionData;
} & PlainObject;

export type TreeOptionData<T = string | number> = {
children?: Array<TreeOptionData<T>>;
/** option label content */
label?: string | TNode;
/** option search text */
text?: string;
/** option value */
value?: T;
} & PlainObject;

export type SizeEnum = 'small' | 'medium' | 'large';

Expand Down Expand Up @@ -85,3 +104,8 @@ export interface TScroll {
*/
type: 'lazy' | 'virtual';
}

/**
* @deprecated use TScroll instead
*/
export type InfinityScroll = TScroll;
Loading