@pisell/materials 6.5.5 → 6.5.7
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +41 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +45 -30
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/cardPro/index.js +10 -3
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +22 -11
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +199 -19
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.js +66 -0
- package/es/components/dataSourceComponents/fields/Upload/index.less +35 -3
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -12
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/pisellCamera/index.d.ts +4 -0
- package/es/components/pisellCamera/index.js +228 -0
- package/es/components/pisellCamera/index.less +131 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/walletCard/index.d.ts +4 -0
- package/es/components/walletCard/index.js +29 -3
- package/es/components/walletCard/index.less +27 -0
- package/es/locales/en-US.js +94 -66
- package/es/locales/zh-CN.js +95 -67
- package/es/locales/zh-TW.js +95 -67
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +9 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +168 -5
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.js +95 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.less +35 -3
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -12
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/pisellCamera/index.d.ts +4 -0
- package/lib/components/pisellCamera/index.js +222 -0
- package/lib/components/pisellCamera/index.less +131 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/walletCard/index.d.ts +4 -0
- package/lib/components/walletCard/index.js +27 -3
- package/lib/components/walletCard/index.less +27 -0
- package/lib/locales/en-US.js +25 -1
- package/lib/locales/zh-CN.js +25 -1
- package/lib/locales/zh-TW.js +25 -1
- package/lowcode/auto-resize-text/meta.ts +35 -9419
- package/lowcode/data-source-table/meta.ts +119 -66
- package/lowcode/form-item-upload/meta.ts +20 -5
- package/lowcode/pisell-upload/meta.ts +8 -0
- package/lowcode/wallet-card/meta.ts +81 -63
- package/package.json +3 -2
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/es/components/auto-resize-text/index.d.ts +0 -6
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/es/components/virtualInput/index.d.ts +0 -24
- package/es/locales/en-US.d.ts +0 -286
- package/es/locales/zh-CN.d.ts +0 -281
- package/es/locales/zh-TW.d.ts +0 -281
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/lib/components/auto-resize-text/index.d.ts +0 -6
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
- package/lib/components/virtualInput/index.d.ts +0 -24
- package/lib/locales/en-US.d.ts +0 -286
- package/lib/locales/zh-CN.d.ts +0 -281
- package/lib/locales/zh-TW.d.ts +0 -281
|
@@ -6,23 +6,23 @@ export default {
|
|
|
6
6
|
title: {
|
|
7
7
|
type: 'i18n',
|
|
8
8
|
'en-US': 'Wallet Card',
|
|
9
|
-
'zh-CN': '钱包卡片'
|
|
9
|
+
'zh-CN': '钱包卡片',
|
|
10
10
|
},
|
|
11
11
|
category: {
|
|
12
12
|
type: 'i18n',
|
|
13
13
|
'en-US': 'General',
|
|
14
|
-
'zh-CN': '通用'
|
|
14
|
+
'zh-CN': '通用',
|
|
15
15
|
},
|
|
16
|
-
docUrl:
|
|
17
|
-
screenshot:
|
|
18
|
-
devMode:
|
|
16
|
+
docUrl: '',
|
|
17
|
+
screenshot: '',
|
|
18
|
+
devMode: 'proCode',
|
|
19
19
|
npm: {
|
|
20
|
-
package:
|
|
21
|
-
version:
|
|
22
|
-
exportName:
|
|
23
|
-
main:
|
|
20
|
+
package: '@pisell/materials',
|
|
21
|
+
version: '1.0.1',
|
|
22
|
+
exportName: 'WalletCard',
|
|
23
|
+
main: 'src/index.tsx',
|
|
24
24
|
destructuring: true,
|
|
25
|
-
subName:
|
|
25
|
+
subName: '',
|
|
26
26
|
},
|
|
27
27
|
props: [
|
|
28
28
|
{
|
|
@@ -31,13 +31,13 @@ export default {
|
|
|
31
31
|
label: {
|
|
32
32
|
type: 'i18n',
|
|
33
33
|
'en-US': 'Display Status',
|
|
34
|
-
'zh-CN': '展示状态'
|
|
34
|
+
'zh-CN': '展示状态',
|
|
35
35
|
},
|
|
36
36
|
tip: {
|
|
37
37
|
type: 'i18n',
|
|
38
38
|
'en-US': 'Login status of the card. Values: true | false',
|
|
39
|
-
'zh-CN': '卡片的登录状态。取值: true | false'
|
|
40
|
-
}
|
|
39
|
+
'zh-CN': '卡片的登录状态。取值: true | false',
|
|
40
|
+
},
|
|
41
41
|
},
|
|
42
42
|
setter: {
|
|
43
43
|
componentName: 'RadioGroupSetter',
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
{ title: '已登录', value: true },
|
|
47
47
|
{ title: '未登录', value: false },
|
|
48
48
|
],
|
|
49
|
-
optionType: 'button'
|
|
49
|
+
optionType: 'button',
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
defaultValue: true,
|
|
@@ -57,13 +57,13 @@ export default {
|
|
|
57
57
|
label: {
|
|
58
58
|
type: 'i18n',
|
|
59
59
|
'en-US': 'Display Mode',
|
|
60
|
-
'zh-CN': '展示模式'
|
|
60
|
+
'zh-CN': '展示模式',
|
|
61
61
|
},
|
|
62
62
|
tip: {
|
|
63
63
|
type: 'i18n',
|
|
64
64
|
'en-US': 'Display mode. Values: light | dark',
|
|
65
|
-
'zh-CN': '展示模式。取值: light | dark'
|
|
66
|
-
}
|
|
65
|
+
'zh-CN': '展示模式。取值: light | dark',
|
|
66
|
+
},
|
|
67
67
|
},
|
|
68
68
|
setter: {
|
|
69
69
|
componentName: 'RadioGroupSetter',
|
|
@@ -82,13 +82,13 @@ export default {
|
|
|
82
82
|
label: {
|
|
83
83
|
type: 'i18n',
|
|
84
84
|
'en-US': 'Card Style',
|
|
85
|
-
'zh-CN': '卡片样式'
|
|
85
|
+
'zh-CN': '卡片样式',
|
|
86
86
|
},
|
|
87
87
|
tip: {
|
|
88
88
|
type: 'i18n',
|
|
89
89
|
'en-US': 'Card style. Values: normal | full',
|
|
90
|
-
'zh-CN': '卡片样式。取值: normal | full'
|
|
91
|
-
}
|
|
90
|
+
'zh-CN': '卡片样式。取值: normal | full',
|
|
91
|
+
},
|
|
92
92
|
},
|
|
93
93
|
setter: {
|
|
94
94
|
componentName: 'RadioGroupSetter',
|
|
@@ -107,13 +107,13 @@ export default {
|
|
|
107
107
|
label: {
|
|
108
108
|
type: 'i18n',
|
|
109
109
|
'en-US': 'Code Position',
|
|
110
|
-
'zh-CN': '码位置'
|
|
110
|
+
'zh-CN': '码位置',
|
|
111
111
|
},
|
|
112
112
|
tip: {
|
|
113
113
|
type: 'i18n',
|
|
114
114
|
'en-US': 'Code position. Values: bottom | top',
|
|
115
|
-
'zh-CN': '码位置。取值: bottom | top'
|
|
116
|
-
}
|
|
115
|
+
'zh-CN': '码位置。取值: bottom | top',
|
|
116
|
+
},
|
|
117
117
|
},
|
|
118
118
|
setter: {
|
|
119
119
|
componentName: 'RadioGroupSetter',
|
|
@@ -134,102 +134,120 @@ export default {
|
|
|
134
134
|
label: {
|
|
135
135
|
type: 'i18n',
|
|
136
136
|
'en-US': 'Card Information Display',
|
|
137
|
-
'zh-CN': '卡片信息显示'
|
|
138
|
-
}
|
|
137
|
+
'zh-CN': '卡片信息显示',
|
|
138
|
+
},
|
|
139
139
|
},
|
|
140
140
|
items: [
|
|
141
141
|
{
|
|
142
|
-
name:
|
|
142
|
+
name: 'showIcon',
|
|
143
143
|
title: {
|
|
144
144
|
label: {
|
|
145
145
|
type: 'i18n',
|
|
146
146
|
'en-US': 'Icon',
|
|
147
|
-
'zh-CN': '图标'
|
|
147
|
+
'zh-CN': '图标',
|
|
148
148
|
},
|
|
149
149
|
tip: {
|
|
150
150
|
type: 'i18n',
|
|
151
151
|
'en-US': 'Whether to display icon. Type: boolean',
|
|
152
|
-
'zh-CN': '是否显示图标。类型: boolean'
|
|
153
|
-
}
|
|
152
|
+
'zh-CN': '是否显示图标。类型: boolean',
|
|
153
|
+
},
|
|
154
154
|
},
|
|
155
|
-
setter:
|
|
156
|
-
defaultValue: true
|
|
155
|
+
setter: 'BoolSetter',
|
|
156
|
+
defaultValue: true,
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
name:
|
|
159
|
+
name: 'showWalletName',
|
|
160
160
|
title: {
|
|
161
161
|
label: {
|
|
162
162
|
type: 'i18n',
|
|
163
163
|
'en-US': 'Wallet name',
|
|
164
|
-
'zh-CN': '钱包名称'
|
|
164
|
+
'zh-CN': '钱包名称',
|
|
165
165
|
},
|
|
166
166
|
tip: {
|
|
167
167
|
type: 'i18n',
|
|
168
168
|
'en-US': 'Whether to display wallet name. Type: boolean',
|
|
169
|
-
'zh-CN': '是否显示钱包名称。类型: boolean'
|
|
170
|
-
}
|
|
169
|
+
'zh-CN': '是否显示钱包名称。类型: boolean',
|
|
170
|
+
},
|
|
171
171
|
},
|
|
172
|
-
setter:
|
|
173
|
-
defaultValue: true
|
|
172
|
+
setter: 'BoolSetter',
|
|
173
|
+
defaultValue: true,
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
name:
|
|
176
|
+
name: 'showShopName',
|
|
177
177
|
title: {
|
|
178
178
|
label: {
|
|
179
179
|
type: 'i18n',
|
|
180
180
|
'en-US': 'Store name',
|
|
181
|
-
'zh-CN': '店铺名称'
|
|
181
|
+
'zh-CN': '店铺名称',
|
|
182
182
|
},
|
|
183
183
|
tip: {
|
|
184
184
|
type: 'i18n',
|
|
185
185
|
'en-US': 'Whether to display store name. Type: boolean',
|
|
186
|
-
'zh-CN': '是否显示店铺名称。类型: boolean'
|
|
187
|
-
}
|
|
186
|
+
'zh-CN': '是否显示店铺名称。类型: boolean',
|
|
187
|
+
},
|
|
188
188
|
},
|
|
189
|
-
setter:
|
|
190
|
-
defaultValue: true
|
|
189
|
+
setter: 'BoolSetter',
|
|
190
|
+
defaultValue: true,
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
name:
|
|
193
|
+
name: 'showCardNo',
|
|
194
194
|
title: {
|
|
195
195
|
label: {
|
|
196
196
|
type: 'i18n',
|
|
197
197
|
'en-US': 'Card number',
|
|
198
|
-
'zh-CN': '卡号'
|
|
198
|
+
'zh-CN': '卡号',
|
|
199
199
|
},
|
|
200
200
|
tip: {
|
|
201
201
|
type: 'i18n',
|
|
202
202
|
'en-US': 'Whether to display card number. Type: boolean',
|
|
203
|
-
'zh-CN': '是否显示卡号。类型: boolean'
|
|
204
|
-
}
|
|
203
|
+
'zh-CN': '是否显示卡号。类型: boolean',
|
|
204
|
+
},
|
|
205
205
|
},
|
|
206
|
-
setter:
|
|
207
|
-
defaultValue: true
|
|
206
|
+
setter: 'BoolSetter',
|
|
207
|
+
defaultValue: true,
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
name:
|
|
210
|
+
name: 'showCode',
|
|
211
211
|
title: {
|
|
212
212
|
label: {
|
|
213
213
|
type: 'i18n',
|
|
214
214
|
'en-US': 'QR code/Barcode',
|
|
215
|
-
'zh-CN': '二维码/条码图标'
|
|
215
|
+
'zh-CN': '二维码/条码图标',
|
|
216
216
|
},
|
|
217
217
|
tip: {
|
|
218
218
|
type: 'i18n',
|
|
219
219
|
'en-US': 'Whether to display QR code/barcode. Type: boolean',
|
|
220
|
-
'zh-CN': '是否显示二维码/条形码图标。类型: boolean'
|
|
221
|
-
}
|
|
220
|
+
'zh-CN': '是否显示二维码/条形码图标。类型: boolean',
|
|
221
|
+
},
|
|
222
222
|
},
|
|
223
|
-
setter:
|
|
224
|
-
defaultValue: true
|
|
225
|
-
}
|
|
226
|
-
|
|
223
|
+
setter: 'BoolSetter',
|
|
224
|
+
defaultValue: true,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'showViewPin',
|
|
228
|
+
title: {
|
|
229
|
+
label: {
|
|
230
|
+
type: 'i18n',
|
|
231
|
+
'en-US': 'View PIN',
|
|
232
|
+
'zh-CN': '查看PIN',
|
|
233
|
+
},
|
|
234
|
+
tip: {
|
|
235
|
+
type: 'i18n',
|
|
236
|
+
'en-US':
|
|
237
|
+
'If open, you need to configure the "onViewPinClick" event. Type: boolean',
|
|
238
|
+
'zh-CN': '如果打开需要配置"onViewPinClick"事件。类型: boolean',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
setter: 'BoolSetter',
|
|
242
|
+
defaultValue: false,
|
|
243
|
+
},
|
|
244
|
+
],
|
|
227
245
|
},
|
|
228
246
|
{
|
|
229
247
|
name: 'guest',
|
|
230
248
|
type: 'group',
|
|
231
249
|
display: 'accordion',
|
|
232
|
-
title:
|
|
250
|
+
title: '未登录信息展示',
|
|
233
251
|
items: [
|
|
234
252
|
{
|
|
235
253
|
name: 'title',
|
|
@@ -249,7 +267,7 @@ export default {
|
|
|
249
267
|
name: 'align',
|
|
250
268
|
title: {
|
|
251
269
|
label: '对齐方式',
|
|
252
|
-
tip: '内容区域文字对齐方式 left | center'
|
|
270
|
+
tip: '内容区域文字对齐方式 left | center',
|
|
253
271
|
},
|
|
254
272
|
setter: {
|
|
255
273
|
componentName: 'RadioGroupSetter',
|
|
@@ -268,16 +286,16 @@ export default {
|
|
|
268
286
|
propType: 'string',
|
|
269
287
|
defaultValue: 'Sign Up Now',
|
|
270
288
|
setter: 'PisellI18nSetter',
|
|
271
|
-
}
|
|
272
|
-
]
|
|
273
|
-
}
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
274
292
|
],
|
|
275
293
|
configure: {
|
|
276
294
|
component: { isContainer: false },
|
|
277
295
|
supports: {
|
|
278
296
|
style: true,
|
|
279
297
|
className: true,
|
|
280
|
-
events: ['onClick', 'onCodeClick'],
|
|
298
|
+
events: ['onClick', 'onCodeClick', 'onViewPinClick'],
|
|
281
299
|
},
|
|
282
300
|
},
|
|
283
301
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "father dev",
|
|
6
6
|
"build": "father build",
|
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
"react-window": "^1.8.10",
|
|
82
82
|
"styled-components": "^6.0.0-rc.3",
|
|
83
83
|
"swiper": "^8.4.7",
|
|
84
|
+
"antd-mobile": "^5.38.1",
|
|
84
85
|
"vod-js-sdk-v6": "^1.4.11",
|
|
85
|
-
"
|
|
86
|
+
"react-camera-pro": "1.4.0"
|
|
86
87
|
},
|
|
87
88
|
"peerDependencies": {
|
|
88
89
|
"react": "^18.0.0",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare type Options = {
|
|
2
|
-
mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
|
|
3
|
-
minFontSizePx?: number | undefined;
|
|
4
|
-
maxFontSizePx?: number | undefined;
|
|
5
|
-
fontSizePrecisionPx?: number | undefined;
|
|
6
|
-
scrollToEnd?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
9
|
-
innerEl: HTMLElement;
|
|
10
|
-
containerEl: HTMLElement;
|
|
11
|
-
}): void;
|
|
12
|
-
declare type DisconnectableFunction = {
|
|
13
|
-
(): void;
|
|
14
|
-
disconnect: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
17
|
-
innerEl: HTMLElement;
|
|
18
|
-
containerEl: HTMLElement;
|
|
19
|
-
}): DisconnectableFunction;
|
|
20
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
|
|
2
|
-
import { Options } from './auto-text-size-standalone';
|
|
3
|
-
export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
|
|
4
|
-
as?: keyof ReactHTML | React.ComponentType<any>;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
import { ValueProps, SortType } from '../types';
|
|
3
|
-
declare type IdType = string | number;
|
|
4
|
-
declare type TreeItemProps = {
|
|
5
|
-
id: string | number;
|
|
6
|
-
key: string | number;
|
|
7
|
-
item: ValueProps | any;
|
|
8
|
-
depth: number;
|
|
9
|
-
lists: any[];
|
|
10
|
-
childrenProps?: SortType;
|
|
11
|
-
sensors?: any;
|
|
12
|
-
expandedKeys?: IdType[];
|
|
13
|
-
setExpandedKeys?: any;
|
|
14
|
-
onSelectKeys?: (ids: IdType) => void;
|
|
15
|
-
onChange?: (value: any[]) => void;
|
|
16
|
-
};
|
|
17
|
-
declare const TreeItem: (props: TreeItemProps) => JSX.Element;
|
|
18
|
-
export default TreeItem;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IconFontProps extends IconComponentProps {
|
|
4
|
-
type: string;
|
|
5
|
-
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const IconFont: React.FC<IconFontProps>;
|
|
8
|
-
export default IconFont;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type ItemValue = string | number;
|
|
4
|
-
export interface Item {
|
|
5
|
-
value: ItemValue;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
type: 'text' | 'primary';
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
size?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface KeyboardProps {
|
|
13
|
-
id?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
onChange?: (value?: ItemValue) => void;
|
|
17
|
-
items?: Item[];
|
|
18
|
-
rightItems?: Item[];
|
|
19
|
-
keydown?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
22
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PisellContextType {
|
|
3
|
-
platform: 'h5' | 'pc' | 'ipad';
|
|
4
|
-
/** 货币符号 */
|
|
5
|
-
symbol?: string;
|
|
6
|
-
/** 当前语言环境 */
|
|
7
|
-
locale?: string;
|
|
8
|
-
/** 获取货币符号 */
|
|
9
|
-
getSymbolic?: () => string;
|
|
10
|
-
}
|
|
11
|
-
export declare const PisellContext: import("react").Context<PisellContextType>;
|
|
12
|
-
/**
|
|
13
|
-
* provider外获取当前全局配置
|
|
14
|
-
*/
|
|
15
|
-
declare class GlobalConfig {
|
|
16
|
-
private config;
|
|
17
|
-
constructor();
|
|
18
|
-
setConfig(config: PisellContextType): void;
|
|
19
|
-
getConfig(): PisellContextType;
|
|
20
|
-
}
|
|
21
|
-
export declare const globalConfig: GlobalConfig;
|
|
22
|
-
export default PisellContext;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from './context';
|
|
3
|
-
interface PisellConfigProviderType {
|
|
4
|
-
platform?: PisellContextType['platform'];
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** 货币符号 */
|
|
7
|
-
symbol?: string;
|
|
8
|
-
/** 当前语言环境 */
|
|
9
|
-
locale?: string;
|
|
10
|
-
getSymbolic?: () => string;
|
|
11
|
-
}
|
|
12
|
-
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
13
|
-
export default PisellConfigProvider;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const defaultConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
isShowMainText: boolean;
|
|
13
|
-
mainTextColor: string;
|
|
14
|
-
isShowSubText: boolean;
|
|
15
|
-
subTextColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
isShowMainText: boolean;
|
|
28
|
-
mainTextColor: string;
|
|
29
|
-
isShowSubText: boolean;
|
|
30
|
-
subTextColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface PisellAdjustPriceProps {
|
|
2
|
-
value?: number;
|
|
3
|
-
originValue: number;
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
onChange?: (val: number) => void;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
containerBackgroundColor?: string;
|
|
9
|
-
buttonBackgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
resetButtonBackgroundColor?: string;
|
|
12
|
-
resetButtonTextColor?: string;
|
|
13
|
-
isDoneButtonFollowTheme?: boolean;
|
|
14
|
-
doneButtonBackgroundColor?: string;
|
|
15
|
-
doneButtonTextColor?: string;
|
|
16
|
-
isShowMainText?: boolean;
|
|
17
|
-
mainTextColor?: string;
|
|
18
|
-
isShowSubText?: boolean;
|
|
19
|
-
subTextColor?: string;
|
|
20
|
-
resetText?: string;
|
|
21
|
-
doneText?: string;
|
|
22
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface PisellCheckboxGroupOption {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
declare type PisellCheckboxGroupValue = string | string[] | any;
|
|
12
|
-
export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
-
platform?: PisellContextType['platform'];
|
|
14
|
-
direction?: 'horizontal' | 'vertical';
|
|
15
|
-
fullWidth?: boolean;
|
|
16
|
-
gap?: number;
|
|
17
|
-
padding?: number;
|
|
18
|
-
options: PisellCheckboxGroupOption[];
|
|
19
|
-
onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
|
|
20
|
-
value?: PisellCheckboxGroupValue;
|
|
21
|
-
renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
|
|
22
|
-
rowKey?: string;
|
|
23
|
-
mode?: 'multiple' | 'single';
|
|
24
|
-
iconPosition?: 'left' | 'right' | 'hide';
|
|
25
|
-
optionClassName?: string;
|
|
26
|
-
optionActiveClassName?: string;
|
|
27
|
-
onChangeDebounce?: boolean;
|
|
28
|
-
onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
|
|
29
|
-
showActiveBackground?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @title: PisellCheckboxGroup
|
|
33
|
-
* @description: 选中组件
|
|
34
|
-
* @param {PisellCheckboxGroupProps} props
|
|
35
|
-
* @return {*}
|
|
36
|
-
* @Author: zhiwei.Wang
|
|
37
|
-
* @Date: 2024-08-16 10:34
|
|
38
|
-
*/
|
|
39
|
-
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
|
|
40
|
-
export default PisellCheckboxGroup;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellQRScannerProps {
|
|
4
|
-
/** 是否可见 */
|
|
5
|
-
visible: boolean;
|
|
6
|
-
/** 是否显示上传图片按钮 */
|
|
7
|
-
showUpload?: boolean;
|
|
8
|
-
/** 关闭回调 */
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
/** 扫码成功回调 */
|
|
11
|
-
onScan: (value: string) => void;
|
|
12
|
-
/**
|
|
13
|
-
* 样式属性,可选
|
|
14
|
-
* 注意: 不应传入renderMode等不必要属性
|
|
15
|
-
*/
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
/** 类名,可选 */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 二维码扫描组件
|
|
22
|
-
*/
|
|
23
|
-
declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
|
|
24
|
-
export default PisellQRScanner;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from '../../../pisell-config-provider/context';
|
|
3
|
-
export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
-
/** 平台 */
|
|
5
|
-
platform?: PisellContextType['platform'];
|
|
6
|
-
/** 当前数值 */
|
|
7
|
-
value?: number | string;
|
|
8
|
-
/** 小数点后位数 默认是小数点后2位 */
|
|
9
|
-
precision?: number;
|
|
10
|
-
/** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
|
|
11
|
-
showCurrencySymbol?: boolean;
|
|
12
|
-
/** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
|
|
13
|
-
useThousandsSeparator?: boolean;
|
|
14
|
-
/** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
|
|
15
|
-
hideDecimalForWholeNumbers?: boolean;
|
|
16
|
-
/** 货币符号 */
|
|
17
|
-
symbol?: string;
|
|
18
|
-
}
|
|
19
|
-
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
20
|
-
export default Amount;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellToastProps {
|
|
4
|
-
/** 提示内容 */
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 是否展示action */
|
|
9
|
-
showAction?: boolean;
|
|
10
|
-
/** action文案 */
|
|
11
|
-
actionText?: string;
|
|
12
|
-
/** 关闭时触发的回调函数 */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
-
export { useToast } from './squareToast';
|
|
17
|
-
export default PisellToast;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { clear, show, success, info, loading, fail, hide } from './methods';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ToastInstance {
|
|
4
|
-
show: typeof show;
|
|
5
|
-
clear: typeof clear;
|
|
6
|
-
success: typeof success;
|
|
7
|
-
info: typeof info;
|
|
8
|
-
loading: typeof loading;
|
|
9
|
-
fail: typeof fail;
|
|
10
|
-
error: typeof fail;
|
|
11
|
-
hide: typeof hide;
|
|
12
|
-
}
|
|
13
|
-
declare const Toast: ToastInstance;
|
|
14
|
-
export declare const useToast: () => ToastInstance;
|
|
15
|
-
export default Toast;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ToastProps } from './toast';
|
|
3
|
-
interface ToastInstance {
|
|
4
|
-
close: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
7
|
-
declare const clear: () => void;
|
|
8
|
-
declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
9
|
-
declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
10
|
-
declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
11
|
-
declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
|
|
12
|
-
declare const hide: () => void;
|
|
13
|
-
export { show, clear, success, info, loading, fail, hide };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { Root } from 'react-dom/client';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
declare type ImperativeProps = {
|
|
5
|
-
open?: boolean;
|
|
6
|
-
onCancel?: () => void;
|
|
7
|
-
afterClose?: () => void;
|
|
8
|
-
};
|
|
9
|
-
declare type TargetElement = ReactElement<ImperativeProps>;
|
|
10
|
-
export declare type ImperativeHandler = {
|
|
11
|
-
close: () => void;
|
|
12
|
-
replace: (element: TargetElement) => void;
|
|
13
|
-
isRendered?: () => boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare type UnmountType = () => Promise<void>;
|
|
16
|
-
export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
|
|
17
|
-
declare const MARK = "__pisell_react_root__";
|
|
18
|
-
declare type ContainerType = (Element | DocumentFragment) & {
|
|
19
|
-
[MARK]?: Root;
|
|
20
|
-
};
|
|
21
|
-
export declare function render(node: React.ReactElement, container: ContainerType): void;
|
|
22
|
-
export declare function unmount(container: ContainerType): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated 设置 React 渲染函数以兼容使用。
|
|
25
|
-
*/
|
|
26
|
-
export declare function unstableSetRender(render?: RenderType): RenderType;
|
|
27
|
-
export declare function renderToBody(element: ReactElement): UnmountType;
|
|
28
|
-
export declare function renderImperatively(element: TargetElement): ImperativeHandler;
|
|
29
|
-
export {};
|