@pisell/materials 6.8.8 → 6.8.10
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.js +16 -16
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/es/components/PisellProcedure/PisellProcedure.stories.js +1611 -0
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/es/components/PisellScrollView/PisellScrollView.stories.js +772 -0
- package/es/components/PisellScrollView/hooks/useScrollEvents.js +18 -3
- package/es/components/PisellScrollView/index.d.ts +2 -1
- package/es/components/PisellScrollView/index.js +2 -1
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/es/components/PisellSteps/PisellSteps.stories.js +851 -0
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +6 -10
- package/es/components/PisellSuperTabs/PisellSuperTabs.js +28 -8
- package/es/components/PisellSuperTabs/types.d.ts +1 -0
- package/es/components/PisellTabbar/PisellTabbar.d.ts +2 -19
- package/es/components/PisellTabbar/PisellTabbar.js +2 -1
- package/es/components/PisellTabbar/constants.d.ts +4 -4
- package/es/components/PisellTabbar/constants.js +5 -5
- package/es/components/PisellTabbar/index.d.ts +2 -0
- package/es/components/PisellTabbar/index.js +2 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +426 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/template/Template1/constants.js +33 -0
- package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/es/components/PisellTabbar/template/Template1/index.js +7 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.js +96 -0
- package/es/components/PisellTabbar/utils/index.d.ts +33 -0
- package/es/components/PisellTabbar/utils/index.js +3 -2
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/lib/components/PisellProcedure/PisellProcedure.stories.js +925 -0
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/lib/components/PisellScrollView/PisellScrollView.stories.js +535 -0
- package/lib/components/PisellScrollView/hooks/useScrollEvents.js +13 -3
- package/lib/components/PisellScrollView/index.d.ts +2 -1
- package/lib/components/PisellScrollView/index.js +2 -5
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/lib/components/PisellSteps/PisellSteps.stories.js +570 -0
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +6 -10
- package/lib/components/PisellSuperTabs/PisellSuperTabs.js +25 -6
- package/lib/components/PisellSuperTabs/types.d.ts +1 -0
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +2 -19
- package/lib/components/PisellTabbar/PisellTabbar.js +2 -1
- package/lib/components/PisellTabbar/constants.d.ts +4 -4
- package/lib/components/PisellTabbar/constants.js +5 -5
- package/lib/components/PisellTabbar/index.d.ts +2 -0
- package/lib/components/PisellTabbar/index.js +6 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +437 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/template/Template1/constants.js +60 -0
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/lib/components/PisellTabbar/template/Template1/index.js +36 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.js +68 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +33 -0
- package/lib/components/PisellTabbar/utils/index.js +4 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -2
- package/package.json +23 -4
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import PisellProcedure from './PisellProcedure';
|
|
3
|
+
/**
|
|
4
|
+
* PisellProcedure 流程容器组件
|
|
5
|
+
*
|
|
6
|
+
* 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
|
|
7
|
+
* 包含头部区域(步骤条)、主体区域(内容区+信息区)、底部区域(操作按钮)
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof PisellProcedure>;
|
|
10
|
+
export default meta;
|
|
11
|
+
declare type Story = StoryObj<typeof PisellProcedure>;
|
|
12
|
+
/**
|
|
13
|
+
* 基础用法
|
|
14
|
+
* @description 默认流程容器,包含头部、主体、底部三个区域
|
|
15
|
+
*/
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
/**
|
|
18
|
+
* 页面模式
|
|
19
|
+
* @description 默认模式,支持响应式和移动端适配
|
|
20
|
+
*/
|
|
21
|
+
export declare const PageMode: Story;
|
|
22
|
+
/**
|
|
23
|
+
* 弹窗模式
|
|
24
|
+
* @description 用于弹窗场景,不应用移动端适配
|
|
25
|
+
*/
|
|
26
|
+
export declare const ModalMode: Story;
|
|
27
|
+
/**
|
|
28
|
+
* 步骤控制
|
|
29
|
+
* @description 使用 onStepsChange 监听步骤变化
|
|
30
|
+
*/
|
|
31
|
+
export declare const StepControl: Story;
|
|
32
|
+
/**
|
|
33
|
+
* 步骤拦截
|
|
34
|
+
* @description 通过 onNext/onPrev 返回 false 阻止步骤切换
|
|
35
|
+
*/
|
|
36
|
+
export declare const StepIntercept: Story;
|
|
37
|
+
/**
|
|
38
|
+
* 无侧边栏
|
|
39
|
+
*/
|
|
40
|
+
export declare const WithoutSidebar: Story;
|
|
41
|
+
/**
|
|
42
|
+
* 无头部
|
|
43
|
+
*/
|
|
44
|
+
export declare const WithoutHeader: Story;
|
|
45
|
+
/**
|
|
46
|
+
* 无底部
|
|
47
|
+
*/
|
|
48
|
+
export declare const WithoutFooter: Story;
|
|
49
|
+
/**
|
|
50
|
+
* 最小配置
|
|
51
|
+
* @description 仅显示主体内容
|
|
52
|
+
*/
|
|
53
|
+
export declare const MinimalConfig: Story;
|
|
54
|
+
/**
|
|
55
|
+
* 头部插槽顺序 - 默认
|
|
56
|
+
* @description left 在左,right 在右
|
|
57
|
+
*/
|
|
58
|
+
export declare const HeaderSlotDefault: Story;
|
|
59
|
+
/**
|
|
60
|
+
* 头部插槽顺序 - 反转
|
|
61
|
+
* @description left 在右,right 在左
|
|
62
|
+
*/
|
|
63
|
+
export declare const HeaderSlotReverse: Story;
|
|
64
|
+
/**
|
|
65
|
+
* 隐藏步骤条
|
|
66
|
+
* @description 仅显示头部插槽,不显示步骤条
|
|
67
|
+
*/
|
|
68
|
+
export declare const HideSteps: Story;
|
|
69
|
+
/**
|
|
70
|
+
* 第一步显示返回按钮
|
|
71
|
+
* @description 通过 showBackOnFirstStep 控制
|
|
72
|
+
*/
|
|
73
|
+
export declare const ShowBackOnFirstStep: Story;
|
|
74
|
+
/**
|
|
75
|
+
* 返回确认弹窗
|
|
76
|
+
* @description 点击返回时弹出确认弹窗
|
|
77
|
+
*/
|
|
78
|
+
export declare const BackConfirmModal: Story;
|
|
79
|
+
/**
|
|
80
|
+
* 关闭确认弹窗
|
|
81
|
+
* @description 点击关闭时弹出确认弹窗
|
|
82
|
+
*/
|
|
83
|
+
export declare const CloseConfirmModal: Story;
|
|
84
|
+
/**
|
|
85
|
+
* 主体布局 - 比例布局
|
|
86
|
+
* @description 使用比例分配内容区和侧边栏宽度
|
|
87
|
+
*/
|
|
88
|
+
export declare const BodyRatioLayout: Story;
|
|
89
|
+
/**
|
|
90
|
+
* 主体布局 - 固定宽度
|
|
91
|
+
* @description 侧边栏使用固定宽度
|
|
92
|
+
*/
|
|
93
|
+
export declare const BodyFixedLayout: Story;
|
|
94
|
+
/**
|
|
95
|
+
* 主体布局 - 垂直布局
|
|
96
|
+
* @description 内容区和侧边栏上下排列
|
|
97
|
+
*/
|
|
98
|
+
export declare const BodyVerticalLayout: Story;
|
|
99
|
+
/**
|
|
100
|
+
* 主体布局 - 内容顺序反转
|
|
101
|
+
* @description 侧边栏在左/上,内容区在右/下
|
|
102
|
+
*/
|
|
103
|
+
export declare const BodyContentOrderReverse: Story;
|
|
104
|
+
/**
|
|
105
|
+
* 底部位置 - 悬浮在侧边栏
|
|
106
|
+
* @description 默认位置,底部悬浮在侧边栏区域
|
|
107
|
+
*/
|
|
108
|
+
export declare const FooterFloatSidebar: Story;
|
|
109
|
+
/**
|
|
110
|
+
* 底部位置 - 固定在整体底部
|
|
111
|
+
*/
|
|
112
|
+
export declare const FooterFixedBottom: Story;
|
|
113
|
+
/**
|
|
114
|
+
* 底部位置 - 悬浮在整体区域
|
|
115
|
+
* @description 移动端默认使用此模式
|
|
116
|
+
*/
|
|
117
|
+
export declare const FooterFloatAll: Story;
|
|
118
|
+
/**
|
|
119
|
+
* 底部位置 - 悬浮在内容区
|
|
120
|
+
*/
|
|
121
|
+
export declare const FooterFloatContent: Story;
|
|
122
|
+
/**
|
|
123
|
+
* 底部位置 - 内嵌在内容区底部
|
|
124
|
+
*/
|
|
125
|
+
export declare const FooterFixedContentBottom: Story;
|
|
126
|
+
/**
|
|
127
|
+
* 底部位置 - 内嵌在侧边栏底部
|
|
128
|
+
*/
|
|
129
|
+
export declare const FooterFixedSidebarBottom: Story;
|
|
130
|
+
/**
|
|
131
|
+
* 移动端总结按钮
|
|
132
|
+
* @description 移动端显示总结按钮,点击可查看侧边栏内容
|
|
133
|
+
*/
|
|
134
|
+
export declare const MobileSummaryButton: Story;
|
|
135
|
+
/**
|
|
136
|
+
* 溢出收纳功能
|
|
137
|
+
* @description 当宽度不足时,按钮会被收纳到 More 菜单中
|
|
138
|
+
*/
|
|
139
|
+
export declare const OverflowActions: Story;
|
|
140
|
+
/**
|
|
141
|
+
* 禁用溢出收纳
|
|
142
|
+
* @description 不启用溢出收纳,按钮会换行显示
|
|
143
|
+
*/
|
|
144
|
+
export declare const DisableOverflow: Story;
|
|
145
|
+
/**
|
|
146
|
+
* 完整示例 - 购物流程
|
|
147
|
+
* @description 模拟真实的购物流程
|
|
148
|
+
*/
|
|
149
|
+
export declare const ShoppingFlow: Story;
|
|
150
|
+
/**
|
|
151
|
+
* 完整示例 - 注册流程
|
|
152
|
+
* @description 模拟用户注册流程
|
|
153
|
+
*/
|
|
154
|
+
export declare const RegistrationFlow: Story;
|
|
155
|
+
/**
|
|
156
|
+
* 完整示例 - 表单向导
|
|
157
|
+
* @description 多步表单向导
|
|
158
|
+
*/
|
|
159
|
+
export declare const FormWizard: Story;
|
|
160
|
+
/**
|
|
161
|
+
* 交互测试 - 组件渲染
|
|
162
|
+
*/
|
|
163
|
+
export declare const InteractionTest: Story;
|