@pisell/materials 1.0.967 → 1.0.969
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 +7 -7
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +26 -39
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +26 -39
- package/es/components/PisellProcedure/PisellProcedure.d.ts +27 -0
- package/es/components/PisellProcedure/PisellProcedure.js +345 -0
- package/es/components/PisellProcedure/PisellProcedure.less +376 -0
- package/es/components/PisellProcedure/components/ProcedureAction.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureAction.js +93 -0
- package/es/components/PisellProcedure/components/ProcedureContent.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureContent.js +47 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.js +86 -0
- package/es/components/PisellProcedure/components/ProcedureSummary.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureSummary.js +99 -0
- package/es/components/PisellProcedure/hooks/useResponsive.d.ts +6 -0
- package/es/components/PisellProcedure/hooks/useResponsive.js +56 -0
- package/es/components/PisellProcedure/index.d.ts +4 -0
- package/es/components/PisellProcedure/index.js +8 -0
- package/es/components/PisellProcedure/types.d.ts +303 -0
- package/es/components/PisellProcedure/types.js +1 -0
- package/es/components/PisellSteps/PisellSteps.d.ts +22 -0
- package/es/components/PisellSteps/PisellSteps.js +200 -0
- package/es/components/PisellSteps/PisellSteps.less +457 -0
- package/es/components/PisellSteps/index.d.ts +3 -0
- package/es/components/PisellSteps/index.js +5 -0
- package/es/components/PisellSteps/types.d.ts +181 -0
- package/es/components/PisellSteps/types.js +1 -0
- package/es/components/Template/[ComponentName].d.ts +0 -0
- package/es/components/Template/[ComponentName].js +1 -0
- package/es/components/Template/[ComponentName].less +1 -0
- package/es/components/Template/index.d.ts +0 -0
- package/es/components/Template/index.js +1 -0
- package/es/components/Template/types.d.ts +0 -0
- package/es/components/Template/types.js +0 -0
- package/es/components/auto-complete-number/index.d.ts +1 -0
- package/es/components/badge/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/classicLayout/index.d.ts +1 -0
- package/es/components/colorPicker/index.d.ts +1 -0
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -2
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +25 -10
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +17 -17
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/dropdown/index.d.ts +1 -0
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/pisellCard/index.d.ts +1 -0
- package/es/components/pisellCardList/index.d.ts +107 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellGoodPassCard/index.d.ts +50 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.d.ts +148 -0
- package/es/components/pisellWalletPassCard/index.js +4 -3
- package/es/components/productCard/components/Divider/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/es/components/productCard/index.d.ts +7 -0
- package/es/components/radio/index.d.ts +1 -0
- package/es/components/segmented/index.d.ts +1 -0
- package/es/components/select-time/RightPanel/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/slider/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/es/components/table/Summary/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/components/walletCard/Guide/index.d.ts +1 -0
- package/es/components/walletCard/index.d.ts +79 -0
- package/es/components/walletCard/index.js +5 -4
- package/es/index.d.ts +150 -0
- package/es/index.js +2 -0
- package/lib/components/PisellProcedure/PisellProcedure.d.ts +27 -0
- package/lib/components/PisellProcedure/PisellProcedure.js +264 -0
- package/lib/components/PisellProcedure/PisellProcedure.less +376 -0
- package/lib/components/PisellProcedure/components/ProcedureAction.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureAction.js +86 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.js +60 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +115 -0
- package/lib/components/PisellProcedure/components/ProcedureSummary.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureSummary.js +96 -0
- package/lib/components/PisellProcedure/hooks/useResponsive.d.ts +6 -0
- package/lib/components/PisellProcedure/hooks/useResponsive.js +63 -0
- package/lib/components/PisellProcedure/index.d.ts +4 -0
- package/lib/components/PisellProcedure/index.js +42 -0
- package/lib/components/PisellProcedure/types.d.ts +303 -0
- package/lib/components/PisellProcedure/types.js +17 -0
- package/lib/components/PisellSteps/PisellSteps.d.ts +22 -0
- package/lib/components/PisellSteps/PisellSteps.js +169 -0
- package/lib/components/PisellSteps/PisellSteps.less +457 -0
- package/lib/components/PisellSteps/index.d.ts +3 -0
- package/lib/components/PisellSteps/index.js +41 -0
- package/lib/components/PisellSteps/types.d.ts +181 -0
- package/lib/components/PisellSteps/types.js +17 -0
- package/lib/components/Template/[ComponentName].d.ts +0 -0
- package/lib/components/Template/[ComponentName].js +0 -0
- package/lib/components/Template/[ComponentName].less +1 -0
- package/lib/components/Template/index.d.ts +0 -0
- package/lib/components/Template/index.js +0 -0
- package/lib/components/Template/types.d.ts +0 -0
- package/lib/components/Template/types.js +0 -0
- package/lib/components/auto-complete-number/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/classicLayout/index.d.ts +1 -0
- package/lib/components/colorPicker/index.d.ts +1 -0
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +3 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +7 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +17 -17
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/pisellCard/index.d.ts +1 -0
- package/lib/components/pisellCardList/index.d.ts +107 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +148 -0
- package/lib/components/pisellWalletPassCard/index.js +4 -3
- package/lib/components/productCard/components/Divider/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/lib/components/productCard/index.d.ts +7 -0
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +1 -0
- package/lib/components/select-time/RightPanel/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/lib/components/table/Summary/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/Guide/index.d.ts +1 -0
- package/lib/components/walletCard/index.d.ts +79 -0
- package/lib/components/walletCard/index.js +5 -4
- package/lib/index.d.ts +150 -0
- package/lib/index.js +6 -0
- package/lowcode/data-source-form/meta.ts +18 -1
- package/lowcode/pisell-procedure/meta.ts +483 -0
- package/lowcode/pisell-procedure/snippets.ts +230 -0
- package/lowcode/pisell-steps/meta.ts +307 -0
- package/lowcode/pisell-steps/snippets.ts +160 -0
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PisellSteps/PisellSteps.tsx
|
|
30
|
+
var PisellSteps_exports = {};
|
|
31
|
+
__export(PisellSteps_exports, {
|
|
32
|
+
default: () => PisellSteps_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PisellSteps_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_PisellSteps = require("./PisellSteps.less");
|
|
39
|
+
var PisellSteps = ({
|
|
40
|
+
current = 0,
|
|
41
|
+
items = [],
|
|
42
|
+
type = "default",
|
|
43
|
+
size = "default",
|
|
44
|
+
direction = "horizontal",
|
|
45
|
+
status = "process",
|
|
46
|
+
progressDot = false,
|
|
47
|
+
labelPlacement = "horizontal",
|
|
48
|
+
percent,
|
|
49
|
+
responsive = true,
|
|
50
|
+
onChange,
|
|
51
|
+
className,
|
|
52
|
+
style,
|
|
53
|
+
connectorStyle,
|
|
54
|
+
showConnector = true,
|
|
55
|
+
iconPosition = "top",
|
|
56
|
+
...restProps
|
|
57
|
+
}) => {
|
|
58
|
+
const computedItems = (0, import_react.useMemo)(() => {
|
|
59
|
+
return items.map((item, index) => {
|
|
60
|
+
let itemStatus = item.status || "wait";
|
|
61
|
+
if (!item.status) {
|
|
62
|
+
if (index < current) {
|
|
63
|
+
itemStatus = "finish";
|
|
64
|
+
} else if (index === current) {
|
|
65
|
+
itemStatus = status;
|
|
66
|
+
} else {
|
|
67
|
+
itemStatus = "wait";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...item,
|
|
72
|
+
status: itemStatus
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}, [items, current, status]);
|
|
76
|
+
const handleStepClick = (0, import_react.useCallback)(
|
|
77
|
+
(index) => {
|
|
78
|
+
var _a;
|
|
79
|
+
const targetItem = items[index];
|
|
80
|
+
if (targetItem == null ? void 0 : targetItem.disabled) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (index < current) {
|
|
84
|
+
onChange == null ? void 0 : onChange(index);
|
|
85
|
+
}
|
|
86
|
+
(_a = targetItem == null ? void 0 : targetItem.onClick) == null ? void 0 : _a.call(targetItem);
|
|
87
|
+
},
|
|
88
|
+
[items, current, onChange]
|
|
89
|
+
);
|
|
90
|
+
const antdItems = (0, import_react.useMemo)(() => {
|
|
91
|
+
return computedItems.map((item) => ({
|
|
92
|
+
title: item.title,
|
|
93
|
+
subTitle: item.subTitle,
|
|
94
|
+
description: item.description,
|
|
95
|
+
status: item.status,
|
|
96
|
+
icon: item.icon,
|
|
97
|
+
disabled: item.disabled,
|
|
98
|
+
className: (0, import_classnames.default)(item.className, {
|
|
99
|
+
"pisell-steps-item-clickable": !item.disabled && item.status === "finish"
|
|
100
|
+
}),
|
|
101
|
+
style: item.style
|
|
102
|
+
}));
|
|
103
|
+
}, [computedItems]);
|
|
104
|
+
const mergedStyle = (0, import_react.useMemo)(() => {
|
|
105
|
+
const baseStyle = {
|
|
106
|
+
...style
|
|
107
|
+
};
|
|
108
|
+
if (connectorStyle) {
|
|
109
|
+
Object.entries(connectorStyle).forEach(([key, value]) => {
|
|
110
|
+
const cssVarKey = `--pisell-step-connector-${key.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
|
|
111
|
+
baseStyle[cssVarKey] = value;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return baseStyle;
|
|
115
|
+
}, [style, connectorStyle]);
|
|
116
|
+
const mergedClassName = (0, import_react.useMemo)(() => {
|
|
117
|
+
return (0, import_classnames.default)(
|
|
118
|
+
"pisell-steps",
|
|
119
|
+
`pisell-steps-${type}`,
|
|
120
|
+
`pisell-steps-${size}`,
|
|
121
|
+
`pisell-steps-${direction}`,
|
|
122
|
+
{
|
|
123
|
+
"pisell-steps-dot": progressDot,
|
|
124
|
+
"pisell-steps-responsive": responsive,
|
|
125
|
+
"pisell-steps-no-connector": !showConnector,
|
|
126
|
+
"pisell-steps-label-vertical": labelPlacement === "vertical",
|
|
127
|
+
"pisell-steps-icon-bottom": iconPosition === "bottom"
|
|
128
|
+
},
|
|
129
|
+
className
|
|
130
|
+
);
|
|
131
|
+
}, [
|
|
132
|
+
type,
|
|
133
|
+
size,
|
|
134
|
+
direction,
|
|
135
|
+
progressDot,
|
|
136
|
+
responsive,
|
|
137
|
+
showConnector,
|
|
138
|
+
labelPlacement,
|
|
139
|
+
iconPosition,
|
|
140
|
+
className
|
|
141
|
+
]);
|
|
142
|
+
const renderProgressDot = (0, import_react.useMemo)(() => {
|
|
143
|
+
if (typeof progressDot === "function") {
|
|
144
|
+
return progressDot;
|
|
145
|
+
}
|
|
146
|
+
return progressDot;
|
|
147
|
+
}, [progressDot]);
|
|
148
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
149
|
+
import_antd.Steps,
|
|
150
|
+
{
|
|
151
|
+
...restProps,
|
|
152
|
+
type,
|
|
153
|
+
current,
|
|
154
|
+
items: antdItems,
|
|
155
|
+
size,
|
|
156
|
+
direction,
|
|
157
|
+
status,
|
|
158
|
+
progressDot: renderProgressDot,
|
|
159
|
+
labelPlacement,
|
|
160
|
+
percent,
|
|
161
|
+
responsive,
|
|
162
|
+
onChange: handleStepClick,
|
|
163
|
+
className: mergedClassName,
|
|
164
|
+
style: mergedStyle
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
};
|
|
168
|
+
PisellSteps.displayName = "PisellSteps";
|
|
169
|
+
var PisellSteps_default = PisellSteps;
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
// PisellSteps 步骤条组件样式
|
|
2
|
+
// 基于 Ant Design Steps 进行样式增强和主题定制
|
|
3
|
+
|
|
4
|
+
// ==================== CSS 变量定义 ====================
|
|
5
|
+
.pisell-steps {
|
|
6
|
+
// 尺寸相关
|
|
7
|
+
--pisell-step-icon-size: 32px;
|
|
8
|
+
--pisell-step-icon-size-small: 24px;
|
|
9
|
+
--pisell-step-title-font-size: 16px;
|
|
10
|
+
--pisell-step-title-font-size-small: 14px;
|
|
11
|
+
--pisell-step-description-font-size: 14px;
|
|
12
|
+
--pisell-step-description-font-size-small: 12px;
|
|
13
|
+
--pisell-step-title-line-height: 24px;
|
|
14
|
+
--pisell-step-title-line-height-small: 20px;
|
|
15
|
+
--pisell-step-description-line-height: 22px;
|
|
16
|
+
--pisell-step-description-line-height-small: 18px;
|
|
17
|
+
|
|
18
|
+
// 状态颜色(根据设计图的 Pisell 主题色)
|
|
19
|
+
--pisell-step-finish-color: #7f56d9; // Primary/600
|
|
20
|
+
--pisell-step-finish-bg: #f4ebff; // Primary/100
|
|
21
|
+
--pisell-step-process-color: #7f56d9; // Primary/600
|
|
22
|
+
--pisell-step-process-bg: #7f56d9; // Primary/600
|
|
23
|
+
--pisell-step-wait-color: rgba(0, 0, 0, 0.45);
|
|
24
|
+
--pisell-step-wait-bg: rgba(0, 0, 0, 0.06);
|
|
25
|
+
--pisell-step-wait-border: rgba(0, 0, 0, 0.25);
|
|
26
|
+
--pisell-step-error-color: #ff4d4f;
|
|
27
|
+
--pisell-step-error-bg: #fff;
|
|
28
|
+
|
|
29
|
+
// 文本颜色
|
|
30
|
+
--pisell-step-text-color: rgba(0, 0, 0, 0.88);
|
|
31
|
+
--pisell-step-text-color-secondary: rgba(0, 0, 0, 0.45);
|
|
32
|
+
|
|
33
|
+
// 间距
|
|
34
|
+
--pisell-step-margin: 16px;
|
|
35
|
+
--pisell-step-margin-xs: 8px;
|
|
36
|
+
--pisell-step-padding-xs: 4px;
|
|
37
|
+
--pisell-step-padding-sm: 12px;
|
|
38
|
+
|
|
39
|
+
// 圆点尺寸
|
|
40
|
+
--pisell-step-dot-size: 8px;
|
|
41
|
+
--pisell-step-dot-size-small: 6px;
|
|
42
|
+
--pisell-step-dot-size-active: 10px;
|
|
43
|
+
--pisell-step-dot-size-active-small: 8px;
|
|
44
|
+
|
|
45
|
+
// 连接器
|
|
46
|
+
--pisell-step-connector-color-finish: var(--pisell-step-finish-color);
|
|
47
|
+
--pisell-step-connector-color-wait: rgba(0, 0, 0, 0.25);
|
|
48
|
+
|
|
49
|
+
// 基础样式
|
|
50
|
+
width: 100%;
|
|
51
|
+
|
|
52
|
+
// ==================== 完成状态样式 ====================
|
|
53
|
+
:global {
|
|
54
|
+
.ant-steps-item-finish {
|
|
55
|
+
.ant-steps-item-icon {
|
|
56
|
+
background-color: var(--pisell-step-finish-bg);
|
|
57
|
+
border-color: var(--pisell-step-finish-color);
|
|
58
|
+
|
|
59
|
+
.ant-steps-icon {
|
|
60
|
+
color: var(--pisell-step-finish-color);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ant-steps-item-title {
|
|
65
|
+
color: var(--pisell-step-text-color);
|
|
66
|
+
font-size: var(--pisell-step-title-font-size);
|
|
67
|
+
line-height: var(--pisell-step-title-line-height);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-steps-item-description {
|
|
71
|
+
color: var(--pisell-step-text-color-secondary);
|
|
72
|
+
font-size: var(--pisell-step-description-font-size);
|
|
73
|
+
line-height: var(--pisell-step-description-line-height);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
77
|
+
background-color: var(--pisell-step-connector-color-finish);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ==================== 进行中状态样式 ====================
|
|
82
|
+
.ant-steps-item-process {
|
|
83
|
+
.ant-steps-item-icon {
|
|
84
|
+
background-color: var(--pisell-step-process-bg);
|
|
85
|
+
border-color: var(--pisell-step-process-color);
|
|
86
|
+
|
|
87
|
+
.ant-steps-icon {
|
|
88
|
+
color: #ffffff;
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ant-steps-item-title {
|
|
94
|
+
color: var(--pisell-step-text-color);
|
|
95
|
+
font-size: var(--pisell-step-title-font-size);
|
|
96
|
+
line-height: var(--pisell-step-title-line-height);
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ant-steps-item-description {
|
|
101
|
+
color: var(--pisell-step-text-color);
|
|
102
|
+
font-size: var(--pisell-step-description-font-size);
|
|
103
|
+
line-height: var(--pisell-step-description-line-height);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// ==================== 等待状态样式 ====================
|
|
108
|
+
.ant-steps-item-wait {
|
|
109
|
+
.ant-steps-item-icon {
|
|
110
|
+
background-color: var(--pisell-step-wait-bg);
|
|
111
|
+
border-color: var(--pisell-step-wait-border);
|
|
112
|
+
|
|
113
|
+
.ant-steps-icon {
|
|
114
|
+
color: var(--pisell-step-wait-color);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ant-steps-item-title {
|
|
119
|
+
color: var(--pisell-step-wait-color);
|
|
120
|
+
font-size: var(--pisell-step-title-font-size);
|
|
121
|
+
line-height: var(--pisell-step-title-line-height);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ant-steps-item-description {
|
|
125
|
+
color: var(--pisell-step-wait-color);
|
|
126
|
+
font-size: var(--pisell-step-description-font-size);
|
|
127
|
+
line-height: var(--pisell-step-description-line-height);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
131
|
+
background-color: var(--pisell-step-connector-color-wait);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ==================== 错误状态样式 ====================
|
|
136
|
+
.ant-steps-item-error {
|
|
137
|
+
.ant-steps-item-icon {
|
|
138
|
+
background-color: var(--pisell-step-error-bg);
|
|
139
|
+
border-color: var(--pisell-step-error-color);
|
|
140
|
+
|
|
141
|
+
.ant-steps-icon {
|
|
142
|
+
color: var(--pisell-step-error-color);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ant-steps-item-title {
|
|
147
|
+
color: var(--pisell-step-error-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ant-steps-item-description {
|
|
151
|
+
color: var(--pisell-step-error-color);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
155
|
+
background-color: var(--pisell-step-error-color);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ==================== 小尺寸样式 ====================
|
|
162
|
+
.pisell-steps-small {
|
|
163
|
+
:global {
|
|
164
|
+
.ant-steps-item-icon {
|
|
165
|
+
width: var(--pisell-step-icon-size-small);
|
|
166
|
+
height: var(--pisell-step-icon-size-small);
|
|
167
|
+
line-height: var(--pisell-step-icon-size-small);
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ant-steps-item-title {
|
|
172
|
+
font-size: var(--pisell-step-title-font-size-small) !important;
|
|
173
|
+
line-height: var(--pisell-step-title-line-height-small) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ant-steps-item-description {
|
|
177
|
+
font-size: var(--pisell-step-description-font-size-small) !important;
|
|
178
|
+
line-height: var(--pisell-step-description-line-height-small) !important;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// ==================== 圆点样式 ====================
|
|
184
|
+
.pisell-steps-dot {
|
|
185
|
+
:global {
|
|
186
|
+
.ant-steps-item-icon {
|
|
187
|
+
width: var(--pisell-step-dot-size);
|
|
188
|
+
height: var(--pisell-step-dot-size);
|
|
189
|
+
border: none;
|
|
190
|
+
|
|
191
|
+
.ant-steps-icon-dot {
|
|
192
|
+
width: var(--pisell-step-dot-size);
|
|
193
|
+
height: var(--pisell-step-dot-size);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 进行中的圆点稍大
|
|
198
|
+
.ant-steps-item-process .ant-steps-item-icon {
|
|
199
|
+
width: var(--pisell-step-dot-size-active);
|
|
200
|
+
height: var(--pisell-step-dot-size-active);
|
|
201
|
+
|
|
202
|
+
.ant-steps-icon-dot {
|
|
203
|
+
width: var(--pisell-step-dot-size-active);
|
|
204
|
+
height: var(--pisell-step-dot-size-active);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// 圆点样式下的文本居中
|
|
209
|
+
.ant-steps-item-content {
|
|
210
|
+
text-align: center;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// 小尺寸圆点
|
|
215
|
+
&.pisell-steps-small {
|
|
216
|
+
:global {
|
|
217
|
+
.ant-steps-item-icon {
|
|
218
|
+
width: var(--pisell-step-dot-size-small);
|
|
219
|
+
height: var(--pisell-step-dot-size-small);
|
|
220
|
+
|
|
221
|
+
.ant-steps-icon-dot {
|
|
222
|
+
width: var(--pisell-step-dot-size-small);
|
|
223
|
+
height: var(--pisell-step-dot-size-small);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ant-steps-item-process .ant-steps-item-icon {
|
|
228
|
+
width: var(--pisell-step-dot-size-active-small);
|
|
229
|
+
height: var(--pisell-step-dot-size-active-small);
|
|
230
|
+
|
|
231
|
+
.ant-steps-icon-dot {
|
|
232
|
+
width: var(--pisell-step-dot-size-active-small);
|
|
233
|
+
height: var(--pisell-step-dot-size-active-small);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// ==================== 隐藏连接器 ====================
|
|
241
|
+
.pisell-steps-no-connector {
|
|
242
|
+
:global {
|
|
243
|
+
.ant-steps-item-tail {
|
|
244
|
+
display: none !important;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// ==================== 响应式样式 ====================
|
|
250
|
+
.pisell-steps-responsive {
|
|
251
|
+
&.pisell-steps-horizontal {
|
|
252
|
+
@media (max-width: 768px) {
|
|
253
|
+
overflow-x: auto;
|
|
254
|
+
overflow-y: hidden;
|
|
255
|
+
|
|
256
|
+
:global {
|
|
257
|
+
.ant-steps-item {
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
min-width: 120px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@media (max-width: 480px) {
|
|
265
|
+
:global {
|
|
266
|
+
.ant-steps-item {
|
|
267
|
+
min-width: 100px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ant-steps-item-title {
|
|
271
|
+
font-size: 14px !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ant-steps-item-description {
|
|
275
|
+
font-size: 12px !important;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// ==================== 竖向标签布局 ====================
|
|
283
|
+
.pisell-steps-label-vertical {
|
|
284
|
+
:global {
|
|
285
|
+
.ant-steps-item-content {
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
align-items: center;
|
|
289
|
+
text-align: center;
|
|
290
|
+
|
|
291
|
+
.ant-steps-item-title {
|
|
292
|
+
padding-top: var(--pisell-step-margin-xs);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// ==================== 图标底部对齐 ====================
|
|
299
|
+
.pisell-steps-icon-bottom {
|
|
300
|
+
&.pisell-steps-vertical {
|
|
301
|
+
:global {
|
|
302
|
+
.ant-steps-item-icon {
|
|
303
|
+
order: 2;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ant-steps-item-content {
|
|
307
|
+
order: 1;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// ==================== 导航类型样式 ====================
|
|
314
|
+
.pisell-steps-navigation {
|
|
315
|
+
:global {
|
|
316
|
+
.ant-steps-item {
|
|
317
|
+
padding-left: 0;
|
|
318
|
+
overflow: visible;
|
|
319
|
+
|
|
320
|
+
&::before {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ant-steps-item-container {
|
|
325
|
+
padding: var(--pisell-step-padding-xs) var(--pisell-step-margin);
|
|
326
|
+
background-color: #fafafa;
|
|
327
|
+
border-radius: 4px;
|
|
328
|
+
transition: all 0.3s ease;
|
|
329
|
+
|
|
330
|
+
&:hover {
|
|
331
|
+
background-color: #f0f0f0;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&.ant-steps-item-active .ant-steps-item-container {
|
|
336
|
+
background-color: var(--pisell-step-finish-bg);
|
|
337
|
+
box-shadow: 0 2px 4px rgba(127, 86, 217, 0.1);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.ant-steps-item-finish .ant-steps-item-container:hover {
|
|
341
|
+
background-color: var(--pisell-step-finish-bg);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// ==================== 行内类型样式 ====================
|
|
348
|
+
.pisell-steps-inline {
|
|
349
|
+
:global {
|
|
350
|
+
.ant-steps {
|
|
351
|
+
display: inline-flex;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ant-steps-item {
|
|
355
|
+
display: inline-flex;
|
|
356
|
+
padding-inline-start: 0;
|
|
357
|
+
|
|
358
|
+
.ant-steps-item-icon {
|
|
359
|
+
margin-right: var(--pisell-step-margin-xs);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ant-steps-item-content {
|
|
363
|
+
display: inline-block;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// ==================== 可点击步骤样式 ====================
|
|
370
|
+
.pisell-steps {
|
|
371
|
+
:global {
|
|
372
|
+
|
|
373
|
+
// 已完成的步骤可点击
|
|
374
|
+
.ant-steps-item-finish:not(.ant-steps-item-disabled) {
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
|
|
377
|
+
.ant-steps-item-container {
|
|
378
|
+
transition: all 0.3s ease;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&:hover {
|
|
382
|
+
.ant-steps-item-icon {
|
|
383
|
+
border-color: var(--pisell-step-process-color);
|
|
384
|
+
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.1);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ant-steps-item-title {
|
|
388
|
+
color: var(--pisell-step-process-color);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// 激活状态
|
|
393
|
+
&:active {
|
|
394
|
+
.ant-steps-item-icon {
|
|
395
|
+
transform: scale(0.95);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// 添加可点击样式类
|
|
401
|
+
.pisell-steps-item-clickable {
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// 禁用状态
|
|
406
|
+
.ant-steps-item-disabled {
|
|
407
|
+
cursor: not-allowed;
|
|
408
|
+
opacity: 0.5;
|
|
409
|
+
|
|
410
|
+
.ant-steps-item-container {
|
|
411
|
+
pointer-events: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&:hover {
|
|
415
|
+
|
|
416
|
+
.ant-steps-item-icon,
|
|
417
|
+
.ant-steps-item-title {
|
|
418
|
+
border-color: inherit;
|
|
419
|
+
color: inherit;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// ==================== 动画效果 ====================
|
|
427
|
+
.pisell-steps {
|
|
428
|
+
:global {
|
|
429
|
+
.ant-steps-item {
|
|
430
|
+
transition: all 0.3s ease;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.ant-steps-item-icon {
|
|
434
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ant-steps-item-title,
|
|
438
|
+
.ant-steps-item-description {
|
|
439
|
+
transition: color 0.3s ease;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ant-steps-item-tail::after {
|
|
443
|
+
transition: background-color 0.3s ease;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// ==================== 打印样式优化 ====================
|
|
449
|
+
@media print {
|
|
450
|
+
.pisell-steps {
|
|
451
|
+
:global {
|
|
452
|
+
.ant-steps-item-icon {
|
|
453
|
+
box-shadow: none !important;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PisellSteps/index.tsx
|
|
30
|
+
var PisellSteps_exports = {};
|
|
31
|
+
__export(PisellSteps_exports, {
|
|
32
|
+
PisellSteps: () => import_PisellSteps2.default,
|
|
33
|
+
default: () => import_PisellSteps.default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(PisellSteps_exports);
|
|
36
|
+
var import_PisellSteps = __toESM(require("./PisellSteps"));
|
|
37
|
+
var import_PisellSteps2 = __toESM(require("./PisellSteps"));
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
PisellSteps
|
|
41
|
+
});
|