@pisell/materials 1.0.960 → 1.0.962
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 +144 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +30 -39
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +35 -44
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +18 -5
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/page/index.js +4 -2
- package/es/components/pisellWalletPassCard/index.js +80 -62
- package/es/components/pisellWalletPassCard/index.less +95 -33
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/index.js +1 -1
- package/es/components/tabs/index.js +9 -0
- package/es/components/virtualInput/index.js +0 -1
- package/es/components/walletCard/index.js +61 -6
- package/es/components/walletCard/index.less +62 -2
- package/es/locales/en-US.js +6 -11
- package/es/locales/zh-CN.js +6 -11
- package/es/locales/zh-TW.js +6 -11
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +20 -10
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/page/index.js +3 -2
- package/lib/components/pisellWalletPassCard/index.js +62 -31
- package/lib/components/pisellWalletPassCard/index.less +95 -33
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +5 -0
- package/lib/components/virtualInput/index.js +0 -8
- package/lib/components/walletCard/index.js +57 -4
- package/lib/components/walletCard/index.less +62 -2
- package/lib/locales/en-US.js +3 -11
- package/lib/locales/zh-CN.js +3 -11
- package/lib/locales/zh-TW.js +3 -11
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/appVersionControl/index.d.ts +0 -4
- 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 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/drag-sort-tree/index.d.ts +0 -3
- package/es/components/filter/types.d.ts +0 -46
- package/es/components/hardwareErrorTip/demo.d.ts +0 -3
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
- package/es/components/hardwareErrorTip/index.d.ts +0 -19
- package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -27
- package/es/components/hardwareErrorTip/types.d.ts +0 -28
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/page/index.d.ts +0 -5
- 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/pisellCamera/index.d.ts +0 -4
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellText/components/Editable/index.d.ts +0 -29
- package/es/components/pisellText/index.d.ts +0 -9
- 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/pisellWalletPassCard/index.d.ts +0 -140
- 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/Actions/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/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/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/select/index.d.ts +0 -9
- package/es/components/sortableList/index.d.ts +0 -11
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Actions/index.d.ts +0 -17
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -167
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/index.d.ts +0 -4
- package/es/components/table/serve.d.ts +0 -13
- package/es/components/table/types.d.ts +0 -270
- package/es/components/tabs/index.d.ts +0 -16
- package/es/components/translation/index.d.ts +0 -15
- package/es/components/versionModal/index.d.ts +0 -24
- 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/components/walletCard/index.d.ts +0 -71
- package/es/index.d.ts +0 -146
- package/es/locales/en-US.d.ts +0 -342
- package/es/locales/zh-CN.d.ts +0 -337
- package/es/locales/zh-TW.d.ts +0 -337
- package/lib/components/appVersionControl/index.d.ts +0 -4
- 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 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/drag-sort-tree/index.d.ts +0 -3
- package/lib/components/filter/types.d.ts +0 -46
- package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
- package/lib/components/hardwareErrorTip/index.d.ts +0 -19
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -27
- package/lib/components/hardwareErrorTip/types.d.ts +0 -28
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/page/index.d.ts +0 -5
- 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/pisellCamera/index.d.ts +0 -4
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellText/components/Editable/index.d.ts +0 -29
- package/lib/components/pisellText/index.d.ts +0 -9
- 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/pisellWalletPassCard/index.d.ts +0 -140
- 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/Actions/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/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/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/sortableList/index.d.ts +0 -11
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Actions/index.d.ts +0 -17
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -167
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/table/serve.d.ts +0 -13
- package/lib/components/table/types.d.ts +0 -270
- package/lib/components/tabs/index.d.ts +0 -16
- package/lib/components/translation/index.d.ts +0 -15
- package/lib/components/versionModal/index.d.ts +0 -24
- 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/components/walletCard/index.d.ts +0 -71
- package/lib/index.d.ts +0 -146
- package/lib/locales/en-US.d.ts +0 -342
- package/lib/locales/zh-CN.d.ts +0 -337
- package/lib/locales/zh-TW.d.ts +0 -337
|
@@ -9,6 +9,35 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
display: flex;
|
|
11
11
|
cursor: pointer;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pisell-wallet-add-holder-mask {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 16px;
|
|
27
|
+
|
|
28
|
+
&-text {
|
|
29
|
+
color: #fff;
|
|
30
|
+
text-align: center;
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
line-height: 24px;
|
|
35
|
+
white-space: pre-line;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-button {
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
}
|
|
12
41
|
}
|
|
13
42
|
|
|
14
43
|
// 卡片内容区域
|
|
@@ -35,6 +64,12 @@
|
|
|
35
64
|
color: #fff;
|
|
36
65
|
}
|
|
37
66
|
}
|
|
67
|
+
|
|
68
|
+
.pisell-wallet-card-header-holder-name {
|
|
69
|
+
color: var(--Gray-900, #101828);
|
|
70
|
+
border: 1px solid var(--Gray-100, #f2f4f7);
|
|
71
|
+
background: var(--Gray-100, #f2f4f7);
|
|
72
|
+
}
|
|
38
73
|
}
|
|
39
74
|
|
|
40
75
|
// 亮色主题
|
|
@@ -54,6 +89,12 @@
|
|
|
54
89
|
color: #101828;
|
|
55
90
|
}
|
|
56
91
|
}
|
|
92
|
+
|
|
93
|
+
.pisell-wallet-card-header-holder-name {
|
|
94
|
+
color: #fff;
|
|
95
|
+
border: 1px solid var(--Gray-600, #475467);
|
|
96
|
+
background: var(--Gray-600, #475467);
|
|
97
|
+
}
|
|
57
98
|
}
|
|
58
99
|
}
|
|
59
100
|
|
|
@@ -66,6 +107,25 @@
|
|
|
66
107
|
display: flex;
|
|
67
108
|
justify-content: space-between;
|
|
68
109
|
align-items: flex-start;
|
|
110
|
+
min-height: 100px;
|
|
111
|
+
|
|
112
|
+
.pisell-wallet-card-header-holder-name {
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
display: inline-block;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
white-space: nowrap;
|
|
118
|
+
padding: 2px 8px;
|
|
119
|
+
border-radius: 16px;
|
|
120
|
+
height: 22px;
|
|
121
|
+
min-width: 50px;
|
|
122
|
+
text-align: center;
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
line-height: 16px;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
font-weight: 500;
|
|
128
|
+
}
|
|
69
129
|
|
|
70
130
|
// 头部左侧
|
|
71
131
|
.pisell-wallet-card-header-left {
|
|
@@ -78,7 +138,7 @@
|
|
|
78
138
|
display: flex;
|
|
79
139
|
align-items: center;
|
|
80
140
|
gap: 10px;
|
|
81
|
-
margin-bottom:
|
|
141
|
+
margin-bottom: 4px;
|
|
82
142
|
|
|
83
143
|
// 卡片名称文本
|
|
84
144
|
.pisell-wallet-card-header-level-text {
|
|
@@ -157,7 +217,7 @@
|
|
|
157
217
|
|
|
158
218
|
// 卡片内容列表
|
|
159
219
|
.pisell-wallet-card-list {
|
|
160
|
-
margin-top:
|
|
220
|
+
margin-top: unset;
|
|
161
221
|
height: 50px;
|
|
162
222
|
box-sizing: border-box;
|
|
163
223
|
display: flex;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -399,15 +399,7 @@ var en_US_default = {
|
|
|
399
399
|
"pisell-upload-camera-capture": "Capture",
|
|
400
400
|
"pisell-upload-camera-retake": "Retake",
|
|
401
401
|
"pisell-upload-camera-use": "Use photo",
|
|
402
|
-
//
|
|
403
|
-
"
|
|
404
|
-
"
|
|
405
|
-
"pisell-list-load-more": "Load More",
|
|
406
|
-
"pisell-list-view-less": "View Less",
|
|
407
|
-
"pisell-list-pagination-total": (start, end, total) => `Showing ${start}-${end} of ${total} items`,
|
|
408
|
-
"pisell-list-scroll-down": "Scroll Down",
|
|
409
|
-
"pisell-list-scroll-right": "Scroll Right",
|
|
410
|
-
"pisell-list-pagination-page-of": (current, total) => `Page ${current} of ${total}`,
|
|
411
|
-
"pisell-list-pagination-previous": "Previous",
|
|
412
|
-
"pisell-list-pagination-next": "Next"
|
|
402
|
+
// 钱包卡片组件
|
|
403
|
+
"pisell2.wallet-card.add-holder-tip": "To ensure your benefits, please\r\nassign a holder to activate this card.",
|
|
404
|
+
"pisell2.wallet-card.add-holder-button-text": "Set Holder"
|
|
413
405
|
};
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -390,15 +390,7 @@ var zh_CN_default = {
|
|
|
390
390
|
"pisell-upload-camera-capture": "拍摄/拍照",
|
|
391
391
|
"pisell-upload-camera-retake": "重拍",
|
|
392
392
|
"pisell-upload-camera-use": "使用照片",
|
|
393
|
-
//
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
"pisell-list-load-more": "查看更多",
|
|
397
|
-
"pisell-list-view-less": "查看更少",
|
|
398
|
-
"pisell-list-pagination-total": (start, end, total) => `显示第 ${start}-${end} 条,共 ${total} 条`,
|
|
399
|
-
"pisell-list-scroll-down": "向下滚动",
|
|
400
|
-
"pisell-list-scroll-right": "向右滚动",
|
|
401
|
-
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 页 共 ${total} 页`,
|
|
402
|
-
"pisell-list-pagination-previous": "上一页",
|
|
403
|
-
"pisell-list-pagination-next": "下一页"
|
|
393
|
+
// 钱包卡片组件
|
|
394
|
+
"pisell2.wallet-card.add-holder-tip": "为确保您的权益,此卡\r\n需指定使用人后方可激活使用。",
|
|
395
|
+
"pisell2.wallet-card.add-holder-button-text": "添加持有人"
|
|
404
396
|
};
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -391,15 +391,7 @@ var zh_TW_default = {
|
|
|
391
391
|
"pisell-upload-camera-capture": "拍攝/拍照",
|
|
392
392
|
"pisell-upload-camera-retake": "重拍",
|
|
393
393
|
"pisell-upload-camera-use": "使用照片",
|
|
394
|
-
//
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"pisell-list-load-more": "查看更多",
|
|
398
|
-
"pisell-list-view-less": "查看更少",
|
|
399
|
-
"pisell-list-pagination-total": (start, end, total) => `顯示第 ${start}-${end} 條,共 ${total} 條`,
|
|
400
|
-
"pisell-list-scroll-down": "向下滾動",
|
|
401
|
-
"pisell-list-scroll-right": "向右滾動",
|
|
402
|
-
"pisell-list-pagination-page-of": (current, total) => `第 ${current} 頁 共 ${total} 頁`,
|
|
403
|
-
"pisell-list-pagination-previous": "上一頁",
|
|
404
|
-
"pisell-list-pagination-next": "下一頁"
|
|
394
|
+
// 钱包卡片组件
|
|
395
|
+
"pisell2.wallet-card.add-holder-tip": "為確保您的權益,此卡\r\n需指定使用人後方可激活使用。",
|
|
396
|
+
"pisell2.wallet-card.add-holder-button-text": "添加使用人"
|
|
405
397
|
};
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.962",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@use-gesture/react": "^10.3.1",
|
|
60
60
|
"@zxing/library": "0.21.2",
|
|
61
61
|
"ahooks": "^3.7.6",
|
|
62
|
-
"antd": "
|
|
62
|
+
"antd": "*",
|
|
63
63
|
"antd-img-crop": "^4.23.0",
|
|
64
64
|
"classnames": "^2.3.2",
|
|
65
65
|
"crypto-js": "^4.2.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,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from './type';
|
|
3
|
-
export interface TableRef {
|
|
4
|
-
refreshCurrentPage: () => void;
|
|
5
|
-
refreshData: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<DataSourceTableProps & React.RefAttributes<TableRef>>;
|
|
8
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface BaseFilterItem {
|
|
3
|
-
name?: string;
|
|
4
|
-
value: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
isHidden: boolean;
|
|
8
|
-
isCustom?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface FilterProps {
|
|
11
|
-
componentId: string;
|
|
12
|
-
filterBy: Record<string, any>;
|
|
13
|
-
quickFilterMaxLength?: number;
|
|
14
|
-
sortButtonShow?: boolean;
|
|
15
|
-
mode?: 'simple' | 'complex';
|
|
16
|
-
items: BaseFilterItem[];
|
|
17
|
-
handleValuesChange: (changedFields: any, allFields: any) => void;
|
|
18
|
-
show: boolean;
|
|
19
|
-
search: {
|
|
20
|
-
show: boolean;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
key: string;
|
|
23
|
-
};
|
|
24
|
-
getInitialValues?: () => Record<string, any>;
|
|
25
|
-
}
|
|
26
|
-
declare const Filter: (props: FilterProps) => JSX.Element;
|
|
27
|
-
export default Filter;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
declare const useDrawerState: (operationContent?: {
|
|
5
|
-
[key: string]: React.ReactNode;
|
|
6
|
-
} | undefined) => {
|
|
7
|
-
drawerVisible: boolean;
|
|
8
|
-
setDrawerVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
openDrawer: (item: OperationItem) => void;
|
|
10
|
-
closeDrawer: () => void;
|
|
11
|
-
drawerContent: React.ReactNode;
|
|
12
|
-
Container: {
|
|
13
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
14
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
15
|
-
destroy: () => void;
|
|
16
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
17
|
-
};
|
|
18
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
19
|
-
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
-
};
|
|
22
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
23
|
-
destroy: () => void;
|
|
24
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
25
|
-
};
|
|
26
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
27
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
28
|
-
destroy: () => void;
|
|
29
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
30
|
-
};
|
|
31
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
32
|
-
destroy: () => void;
|
|
33
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
34
|
-
};
|
|
35
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
36
|
-
} | typeof Drawer;
|
|
37
|
-
containerProps: {};
|
|
38
|
-
};
|
|
39
|
-
export default useDrawerState;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
getInitialValues: () => Record<string, any>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 处理table的props
|
|
16
|
-
* 转换title
|
|
17
|
-
* @param props
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
|
-
currentComponentId: any;
|
|
22
|
-
title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
23
|
-
pagination: {
|
|
24
|
-
total: number;
|
|
25
|
-
current: number;
|
|
26
|
-
pageSize: number;
|
|
27
|
-
size: string;
|
|
28
|
-
showSizeChanger: boolean;
|
|
29
|
-
};
|
|
30
|
-
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
32
|
-
buttons: any[] | null;
|
|
33
|
-
filter: {
|
|
34
|
-
dom: any;
|
|
35
|
-
items: any;
|
|
36
|
-
} | null;
|
|
37
|
-
onRow: (record: any) => any;
|
|
38
|
-
actionButtons: any[] | null;
|
|
39
|
-
__id?: string | undefined;
|
|
40
|
-
currentSettingKey?: string | undefined;
|
|
41
|
-
titleButtons?: {
|
|
42
|
-
show: boolean;
|
|
43
|
-
maxCount: number;
|
|
44
|
-
items: OperationItem[];
|
|
45
|
-
} | undefined;
|
|
46
|
-
tableButtons?: {
|
|
47
|
-
show: boolean;
|
|
48
|
-
maxCount: number;
|
|
49
|
-
items: OperationItem[];
|
|
50
|
-
} | undefined;
|
|
51
|
-
operation?: {
|
|
52
|
-
show: boolean;
|
|
53
|
-
title: string;
|
|
54
|
-
width: number;
|
|
55
|
-
align: "center" | "left" | "right";
|
|
56
|
-
fixed: false | "left" | "right";
|
|
57
|
-
type: "button" | "link";
|
|
58
|
-
items: OperationItem[];
|
|
59
|
-
} | undefined;
|
|
60
|
-
operationContent?: {
|
|
61
|
-
[key: string]: React.ReactNode;
|
|
62
|
-
} | undefined;
|
|
63
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
64
|
-
search?: {
|
|
65
|
-
show: boolean;
|
|
66
|
-
placeholder: string;
|
|
67
|
-
} | undefined;
|
|
68
|
-
__designMode: string;
|
|
69
|
-
componentId: string;
|
|
70
|
-
clickToDetail?: {
|
|
71
|
-
show: boolean;
|
|
72
|
-
useCustomAction: boolean;
|
|
73
|
-
actionType: string;
|
|
74
|
-
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "middle" | "large";
|
|
76
|
-
openTitle: string;
|
|
77
|
-
key: string;
|
|
78
|
-
} | undefined;
|
|
79
|
-
filterBy?: Record<string, any> | undefined;
|
|
80
|
-
sortBy: string;
|
|
81
|
-
tabs?: {
|
|
82
|
-
show: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
items: {
|
|
85
|
-
name: string;
|
|
86
|
-
filterBy: Record<string, any>;
|
|
87
|
-
sortBy: string;
|
|
88
|
-
}[];
|
|
89
|
-
} | undefined;
|
|
90
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
91
|
-
onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
|
|
92
|
-
extraParams?: {
|
|
93
|
-
list?: Record<string, any> | undefined;
|
|
94
|
-
get?: Record<string, any> | undefined;
|
|
95
|
-
update?: Record<string, any> | undefined;
|
|
96
|
-
create?: Record<string, any> | undefined;
|
|
97
|
-
destroy?: Record<string, any> | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
localSettings?: import("../../../table/types").LocalSettingsType | undefined;
|
|
100
|
-
};
|
|
101
|
-
export default useTableProps;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps, currentSettingHash: string) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
getInitialValues: () => Record<string, any>;
|
|
32
|
-
};
|
|
33
|
-
export default useTableQuery;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { LocalSettingsType } from '../../table/types';
|
|
4
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
-
export declare type OperationItem = {
|
|
6
|
-
label?: string;
|
|
7
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
-
openTitle: string;
|
|
10
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
-
key: string;
|
|
12
|
-
buttonProps?: any;
|
|
13
|
-
onClick?: (record: any) => void;
|
|
14
|
-
afterClose?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface DataSourceTableProps {
|
|
17
|
-
__id?: string;
|
|
18
|
-
currentComponentId?: string;
|
|
19
|
-
currentSettingKey?: string;
|
|
20
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
-
titleButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
tableButtons?: {
|
|
28
|
-
show: boolean;
|
|
29
|
-
maxCount: number;
|
|
30
|
-
items: OperationItem[];
|
|
31
|
-
};
|
|
32
|
-
buttons?: any[];
|
|
33
|
-
operation?: {
|
|
34
|
-
show: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
width: number;
|
|
37
|
-
align: 'left' | 'center' | 'right';
|
|
38
|
-
fixed: 'left' | 'right' | false;
|
|
39
|
-
type: 'link' | 'button';
|
|
40
|
-
items: OperationItem[];
|
|
41
|
-
};
|
|
42
|
-
operationContent?: {
|
|
43
|
-
[key: string]: React.ReactNode;
|
|
44
|
-
};
|
|
45
|
-
dataSource: DataSourceType;
|
|
46
|
-
columns: ColumnType<any>[];
|
|
47
|
-
filter: any;
|
|
48
|
-
search?: {
|
|
49
|
-
show: boolean;
|
|
50
|
-
placeholder: string;
|
|
51
|
-
};
|
|
52
|
-
__designMode: string;
|
|
53
|
-
componentId: string;
|
|
54
|
-
clickToDetail?: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
useCustomAction: boolean;
|
|
57
|
-
actionType: string;
|
|
58
|
-
openMode: 'modal' | 'drawer';
|
|
59
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
-
openTitle: string;
|
|
61
|
-
key: string;
|
|
62
|
-
};
|
|
63
|
-
onRow?: any;
|
|
64
|
-
filterBy?: Record<string, any>;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
tabs?: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
name: string;
|
|
71
|
-
filterBy: Record<string, any>;
|
|
72
|
-
sortBy: string;
|
|
73
|
-
}[];
|
|
74
|
-
};
|
|
75
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
-
onDeleteFinish?: (record: Record<string, any>) => void;
|
|
77
|
-
extraParams?: {
|
|
78
|
-
list?: Record<string, any>;
|
|
79
|
-
get?: Record<string, any>;
|
|
80
|
-
update?: Record<string, any>;
|
|
81
|
-
create?: Record<string, any>;
|
|
82
|
-
destroy?: Record<string, any>;
|
|
83
|
-
};
|
|
84
|
-
localSettings?: LocalSettingsType;
|
|
85
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
countryCode?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
10
|
-
renderMode: ModeType;
|
|
11
|
-
value?: PhoneValue;
|
|
12
|
-
onChange?: (value: PhoneValue) => void;
|
|
13
|
-
returnFormat?: 'string' | 'object';
|
|
14
|
-
inputRef?: any;
|
|
15
|
-
}
|
|
16
|
-
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
17
|
-
export default MobileNumberInputWithMode;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
'zh-CN': string;
|
|
10
|
-
'zh-HK': string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
};
|
|
8
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
9
|
-
renderMode: ModeType;
|
|
10
|
-
value?: PhoneValue;
|
|
11
|
-
onChange?: (value: PhoneValue) => void;
|
|
12
|
-
returnFormat?: 'string' | 'object';
|
|
13
|
-
inputRef?: any;
|
|
14
|
-
}
|
|
15
|
-
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
16
|
-
export default PhoneNumberInputWithMode;
|