@pisell/materials 6.8.9 → 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 +21 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { getExpandConfig, DEFAULT_ITEMS } from "../../constants";
|
|
2
|
+
/**
|
|
3
|
+
* 默认层级配置
|
|
4
|
+
*/
|
|
5
|
+
export var DEFAULT_LEVEL_CONFIG = {
|
|
6
|
+
level1: {
|
|
7
|
+
superTabsBg: '#ffffff00',
|
|
8
|
+
cardWidth: 100,
|
|
9
|
+
cardHeight: 40,
|
|
10
|
+
paddingLeft: 0
|
|
11
|
+
},
|
|
12
|
+
level2: {
|
|
13
|
+
superTabsBg: '#ffffff00',
|
|
14
|
+
cardWidth: 120,
|
|
15
|
+
cardHeight: 40,
|
|
16
|
+
paddingLeft: 20
|
|
17
|
+
},
|
|
18
|
+
level3: {
|
|
19
|
+
superTabsBg: '#ffffff00',
|
|
20
|
+
cardWidth: 120,
|
|
21
|
+
cardHeight: 40,
|
|
22
|
+
paddingLeft: 40
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 获取层级对应的添加项配置
|
|
28
|
+
*/
|
|
29
|
+
export var LEVEL_ADD_ITEMS = {
|
|
30
|
+
level1: ['all'],
|
|
31
|
+
level2: ['expand', 'all'],
|
|
32
|
+
level3: ['expand', 'all']
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellTabbar 工具函数
|
|
3
|
+
*/
|
|
4
|
+
import { TabbarDataSource } from '../../../types';
|
|
5
|
+
/**
|
|
6
|
+
* 向数据源添加特殊项(如 all、search、expand 按钮)
|
|
7
|
+
*
|
|
8
|
+
* @param dataSource - 原始数据源
|
|
9
|
+
* @param keys - 要添加的特殊项 key 数组
|
|
10
|
+
* @returns 添加了特殊项的新数据源
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const newData = addDataSourceItemsByKey(categoryData, ['expand', 'all']);
|
|
15
|
+
* // 返回: [expandItem, allItem, ...categoryData]
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const addDataSourceItemsByKey: (dataSource: TabbarDataSource[], keys: ('all' | 'search' | 'expand')[]) => TabbarDataSource[];
|
|
19
|
+
/**
|
|
20
|
+
* 获取默认激活的 key 数组
|
|
21
|
+
*
|
|
22
|
+
* @param dataSource - 数据源
|
|
23
|
+
* @param rowKey - 用作唯一标识的字段名
|
|
24
|
+
* @returns 默认激活的 key 数组(多层级)
|
|
25
|
+
*
|
|
26
|
+
* @description
|
|
27
|
+
* 默认选中第一项,如果第一项有子级,同时选中第一个子级
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const defaultKeys = getDefaultActiveKey(categoryData, 'id');
|
|
32
|
+
* // 返回: [1, 0] (第一层级的第一项ID,第二层级的第一项ID)
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const getDefaultActiveKey: (dataSource: TabbarDataSource[], rowKey: string) => (string | number)[];
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { getText } from "../../../../../locales";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* PisellTabbar 工具函数
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 默认的特殊项配置
|
|
15
|
+
*/
|
|
16
|
+
var defaultItems = {
|
|
17
|
+
all: {
|
|
18
|
+
id: '0',
|
|
19
|
+
shop_id: 9,
|
|
20
|
+
parent_id: 0,
|
|
21
|
+
name: getText('pisell-tabbar-all'),
|
|
22
|
+
slug: 'all',
|
|
23
|
+
icon: ''
|
|
24
|
+
},
|
|
25
|
+
search: {
|
|
26
|
+
id: -1,
|
|
27
|
+
shop_id: 9,
|
|
28
|
+
parent_id: 0,
|
|
29
|
+
name: 'Search',
|
|
30
|
+
slug: 'Search',
|
|
31
|
+
key: 'search',
|
|
32
|
+
icon: '',
|
|
33
|
+
customClick: true
|
|
34
|
+
},
|
|
35
|
+
expand: {
|
|
36
|
+
id: -2,
|
|
37
|
+
shop_id: 9,
|
|
38
|
+
parent_id: 0,
|
|
39
|
+
key: 'expand',
|
|
40
|
+
icon: 'pisell2-expand-01',
|
|
41
|
+
name: 'Expand',
|
|
42
|
+
slug: 'expand',
|
|
43
|
+
customClick: true
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 向数据源添加特殊项(如 all、search、expand 按钮)
|
|
49
|
+
*
|
|
50
|
+
* @param dataSource - 原始数据源
|
|
51
|
+
* @param keys - 要添加的特殊项 key 数组
|
|
52
|
+
* @returns 添加了特殊项的新数据源
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* const newData = addDataSourceItemsByKey(categoryData, ['expand', 'all']);
|
|
57
|
+
* // 返回: [expandItem, allItem, ...categoryData]
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export var addDataSourceItemsByKey = function addDataSourceItemsByKey(dataSource, keys) {
|
|
61
|
+
return [].concat(_toConsumableArray(keys.map(function (key) {
|
|
62
|
+
return defaultItems[key];
|
|
63
|
+
})), _toConsumableArray(dataSource));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* 获取默认激活的 key 数组
|
|
68
|
+
*
|
|
69
|
+
* @param dataSource - 数据源
|
|
70
|
+
* @param rowKey - 用作唯一标识的字段名
|
|
71
|
+
* @returns 默认激活的 key 数组(多层级)
|
|
72
|
+
*
|
|
73
|
+
* @description
|
|
74
|
+
* 默认选中第一项,如果第一项有子级,同时选中第一个子级
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```tsx
|
|
78
|
+
* const defaultKeys = getDefaultActiveKey(categoryData, 'id');
|
|
79
|
+
* // 返回: [1, 0] (第一层级的第一项ID,第二层级的第一项ID)
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export var getDefaultActiveKey = function getDefaultActiveKey(dataSource, rowKey) {
|
|
83
|
+
var _activeKey = ['0'];
|
|
84
|
+
|
|
85
|
+
// if (dataSource.length) {
|
|
86
|
+
// // 添加第一层级的第一项
|
|
87
|
+
// _activeKey.push(dataSource[0][rowKey as keyof TabbarDataSource] as string | number);
|
|
88
|
+
|
|
89
|
+
// // 如果第一项有子级,添加第二层级的第一项
|
|
90
|
+
// if (dataSource[0].children?.length) {
|
|
91
|
+
// _activeKey.push(0);
|
|
92
|
+
// }
|
|
93
|
+
// }
|
|
94
|
+
|
|
95
|
+
return _activeKey;
|
|
96
|
+
};
|
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
* PisellTabbar 工具函数
|
|
3
3
|
*/
|
|
4
4
|
import { TabbarDataSource } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* 默认的特殊项配置
|
|
7
|
+
*/
|
|
8
|
+
export declare const defaultItems: {
|
|
9
|
+
all: {
|
|
10
|
+
id: number;
|
|
11
|
+
shop_id: number;
|
|
12
|
+
parent_id: number;
|
|
13
|
+
name: any;
|
|
14
|
+
slug: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
search: {
|
|
18
|
+
id: number;
|
|
19
|
+
shop_id: number;
|
|
20
|
+
parent_id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
key: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
customClick: boolean;
|
|
26
|
+
};
|
|
27
|
+
expand: {
|
|
28
|
+
id: number;
|
|
29
|
+
shop_id: number;
|
|
30
|
+
parent_id: number;
|
|
31
|
+
key: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
name: string;
|
|
34
|
+
slug: string;
|
|
35
|
+
customClick: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
5
38
|
/**
|
|
6
39
|
* 向数据源添加特殊项(如 all、search、expand 按钮)
|
|
7
40
|
*
|
|
@@ -4,6 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { getText } from "../../../locales";
|
|
7
8
|
/**
|
|
8
9
|
* PisellTabbar 工具函数
|
|
9
10
|
*/
|
|
@@ -11,12 +12,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
12
|
/**
|
|
12
13
|
* 默认的特殊项配置
|
|
13
14
|
*/
|
|
14
|
-
var defaultItems = {
|
|
15
|
+
export var defaultItems = {
|
|
15
16
|
all: {
|
|
16
17
|
id: 0,
|
|
17
18
|
shop_id: 9,
|
|
18
19
|
parent_id: 0,
|
|
19
|
-
name: '
|
|
20
|
+
name: getText('pisell-tabbar-all'),
|
|
20
21
|
slug: 'All',
|
|
21
22
|
icon: ''
|
|
22
23
|
},
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
package/es/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export { default as VirtualInput } from './components/virtualInput';
|
|
|
153
153
|
export { default as AutoResizeText } from './components/auto-resize-text';
|
|
154
154
|
export { default as PisellBasicGrid } from './components/PisellBasicGrid';
|
|
155
155
|
export type { PisellBasicGridProps } from './components/PisellBasicGrid';
|
|
156
|
-
export { PisellScrollView } from './components/PisellScrollView';
|
|
156
|
+
export { default as PisellScrollView } from './components/PisellScrollView';
|
|
157
157
|
export type { PisellScrollViewProps } from './components/PisellScrollView';
|
|
158
158
|
export { default as PisellSuperTabs } from './components/PisellSuperTabs';
|
|
159
159
|
export type { PisellSuperTabsProps, TabDataItem, } from './components/PisellSuperTabs';
|
|
@@ -165,5 +165,6 @@ export type { MultilevelCardProps } from './components/PisellCards/components/Mu
|
|
|
165
165
|
export { default as PisellImageCard } from './components/PisellCards/components/PisellImageCard';
|
|
166
166
|
export type { PisellImageCardProps, ImageDataSource, ImageFillMode, } from './components/PisellCards/components/PisellImageCard';
|
|
167
167
|
export { default as PisellTabbar } from './components/PisellTabbar';
|
|
168
|
+
export { default as PisellTabbarTemplate1 } from './components/PisellTabbar/template/Template1';
|
|
168
169
|
export type { PisellTabbarProps, TabbarDataSource, LevelType, } from './components/PisellTabbar';
|
|
169
170
|
export { default as PisellTabbar2 } from './components/PisellTabbar2';
|
package/es/index.js
CHANGED
|
@@ -148,11 +148,12 @@ export { default as Keyboard } from "./components/keyboard";
|
|
|
148
148
|
export { default as VirtualInput } from "./components/virtualInput";
|
|
149
149
|
export { default as AutoResizeText } from "./components/auto-resize-text";
|
|
150
150
|
export { default as PisellBasicGrid } from "./components/PisellBasicGrid";
|
|
151
|
-
export { PisellScrollView } from "./components/PisellScrollView";
|
|
151
|
+
export { default as PisellScrollView } from "./components/PisellScrollView";
|
|
152
152
|
export { default as PisellSuperTabs } from "./components/PisellSuperTabs";
|
|
153
153
|
export { default as TextCard } from "./components/PisellCards/components/TextCard";
|
|
154
154
|
export { default as GraphicTextCard } from "./components/PisellCards/components/GraphicTextCard";
|
|
155
155
|
export { default as MultilevelCard } from "./components/PisellCards/components/MultilevelCard";
|
|
156
156
|
export { default as PisellImageCard } from "./components/PisellCards/components/PisellImageCard";
|
|
157
157
|
export { default as PisellTabbar } from "./components/PisellTabbar";
|
|
158
|
+
export { default as PisellTabbarTemplate1 } from "./components/PisellTabbar/template/Template1";
|
|
158
159
|
export { default as PisellTabbar2 } from "./components/PisellTabbar2";
|
|
@@ -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;
|