@pisell/materials 1.0.663 → 1.0.664
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 +6 -6
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +13 -13
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/es/components/dataSourceComponents/fields/Input/WithMode.d.ts +6 -20
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +204 -463
- package/es/components/dataSourceComponents/fields/Input/index.d.ts +22 -0
- package/es/components/dataSourceComponents/fields/Input/index.js +6 -19
- package/es/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +10 -9
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/es/components/pisellScan/index.js +3 -17
- package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/es/components/productCard/index.d.ts +5 -0
- package/es/index.d.ts +139 -0
- package/es/locales/en-US.js +1 -1
- package/es/locales/zh-CN.js +2 -2
- package/es/locales/zh-TW.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/lib/components/dataSourceComponents/fields/Input/WithMode.d.ts +6 -20
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +101 -317
- package/lib/components/dataSourceComponents/fields/Input/index.d.ts +22 -0
- package/lib/components/dataSourceComponents/fields/Input/index.js +3 -13
- package/lib/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +10 -9
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/lib/components/pisellScan/index.js +3 -9
- package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/lib/components/productCard/index.d.ts +5 -0
- package/lib/index.d.ts +139 -0
- package/lib/locales/en-US.js +1 -9
- package/lib/locales/zh-CN.js +2 -10
- package/lib/locales/zh-TW.js +1 -9
- package/lowcode/form-item-input/meta.ts +5 -97
- package/lowcode/form-item-input/snippets.ts +1 -0
- package/package.json +3 -3
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version, } from 'antd';
|
|
2
|
+
export { default as AppVersionControl } from './components/appVersionControl';
|
|
3
|
+
export { default as AutoComplete } from './components/auto-complete';
|
|
4
|
+
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
5
|
+
export { default as Badge } from './components/badge';
|
|
6
|
+
export { default as BatchEditor } from './components/batch-editor';
|
|
7
|
+
export { default as Button } from './components/button';
|
|
8
|
+
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
9
|
+
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
10
|
+
export { default as Calendar } from './components/calendar';
|
|
11
|
+
export { default as CardMetricItem } from './components/cardMetricItem';
|
|
12
|
+
export { default as CardPro } from './components/cardPro';
|
|
13
|
+
export { default as Cascader } from './components/cascader';
|
|
14
|
+
export { default as Checkbox } from './components/checkbox';
|
|
15
|
+
export { default as ClassicLayout } from './components/classicLayout';
|
|
16
|
+
export { default as Collapse } from './components/collapse';
|
|
17
|
+
export { default as Component } from './components/component';
|
|
18
|
+
export { default as ConfigProvider } from './components/config-provider';
|
|
19
|
+
export { default as CropPhoto } from './components/cropPhoto';
|
|
20
|
+
export { default as CustomSelect } from './components/customSelect';
|
|
21
|
+
export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
|
|
22
|
+
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
|
23
|
+
export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
|
|
24
|
+
export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
|
|
25
|
+
export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
|
|
26
|
+
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
27
|
+
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
28
|
+
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
29
|
+
export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
|
|
30
|
+
export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
|
|
31
|
+
export { default as FormItemCheckbox } from './components/dataSourceComponents/fields/Checkbox';
|
|
32
|
+
export { default as FormItemColorPicker } from './components/dataSourceComponents/fields/ColorPicker';
|
|
33
|
+
export { default as FormItemDatePicker } from './components/dataSourceComponents/fields/DatePicker';
|
|
34
|
+
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
35
|
+
export { default as FormItemInput } from './components/dataSourceComponents/fields/Input';
|
|
36
|
+
export { default as FormItemInputNumber } from './components/dataSourceComponents/fields/InputNumber';
|
|
37
|
+
export { default as FormItemRadio } from './components/dataSourceComponents/fields/Radio';
|
|
38
|
+
export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
|
|
39
|
+
export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
|
|
40
|
+
export { default as FormItemTranslation } from './components/dataSourceComponents/fields/Translation';
|
|
41
|
+
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
42
|
+
export { default as DatePicker } from './components/date-picker';
|
|
43
|
+
export { default as Div } from './components/div';
|
|
44
|
+
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
45
|
+
export { default as Drawer } from './components/drawer';
|
|
46
|
+
export { default as Dropdown } from './components/dropdown';
|
|
47
|
+
export { default as Filter } from './components/filter';
|
|
48
|
+
export { default as Form } from './components/form';
|
|
49
|
+
export { default as Icon } from './components/icon';
|
|
50
|
+
export { default as IconSelect } from './components/iconSelect';
|
|
51
|
+
export { default as Iconfont } from './components/iconfont';
|
|
52
|
+
export { default as Image } from './components/image';
|
|
53
|
+
export { default as Input } from './components/input';
|
|
54
|
+
export { default as InputNumberRange } from './components/input-number-range';
|
|
55
|
+
export { default as List } from './components/list';
|
|
56
|
+
export { default as loginAndRegister } from './components/login-and-register';
|
|
57
|
+
export { default as LowCodePage } from './components/lowCodePage';
|
|
58
|
+
export { default as Modal } from './components/modal';
|
|
59
|
+
export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
|
|
60
|
+
export { default as Page } from './components/page';
|
|
61
|
+
export { default as PageHeader } from './components/page-header';
|
|
62
|
+
export { default as PickerView } from './components/picker-view';
|
|
63
|
+
export { default as PisellConfigProvider } from './components/pisell-config-provider';
|
|
64
|
+
export { default as PisellContext, globalConfig, } from './components/pisell-config-provider/context';
|
|
65
|
+
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
66
|
+
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
67
|
+
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
68
|
+
export { default as PisellAlert } from './components/pisellAlert';
|
|
69
|
+
export { default as PisellAnchor } from './components/pisellAnchor';
|
|
70
|
+
export { default as PisellAvatar } from './components/pisellAvatar';
|
|
71
|
+
export { default as PisellCard } from './components/pisellCard';
|
|
72
|
+
export { default as PisellCardList } from './components/pisellCardList';
|
|
73
|
+
export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
|
|
74
|
+
export { default as PisellContainer } from './components/pisellContainer';
|
|
75
|
+
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
76
|
+
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
77
|
+
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
78
|
+
export { default as PisellDraggable } from './components/pisellDraggable';
|
|
79
|
+
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
80
|
+
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
81
|
+
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
82
|
+
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
83
|
+
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
84
|
+
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
85
|
+
export { default as PisellInput } from './components/pisellInput';
|
|
86
|
+
export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
|
|
87
|
+
export { default as PisellLayout } from './components/pisellLayout';
|
|
88
|
+
export { default as PisellContent } from './components/pisellLayout/content';
|
|
89
|
+
export { default as PisellFooter } from './components/pisellLayout/footer';
|
|
90
|
+
export { default as PisellHeader } from './components/pisellLayout/header';
|
|
91
|
+
export { default as PisellSider } from './components/pisellLayout/sider';
|
|
92
|
+
export { default as PisellList01 } from './components/pisellList01';
|
|
93
|
+
export { default as PisellLoading } from './components/pisellLoading';
|
|
94
|
+
export { default as PisellMenu } from './components/pisellMenu';
|
|
95
|
+
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
96
|
+
export { default as PisellModal } from './components/pisellModal';
|
|
97
|
+
export { default as PisellQrcode } from './components/pisellQrcode';
|
|
98
|
+
export { default as PisellRow } from './components/pisellRow';
|
|
99
|
+
export { default as PisellScan } from './components/pisellScan';
|
|
100
|
+
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
101
|
+
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
102
|
+
export { default as PisellTags } from './components/pisellTags';
|
|
103
|
+
export { default as PisellText } from './components/pisellText';
|
|
104
|
+
export { default as PisellToast } from './components/pisellToast';
|
|
105
|
+
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
106
|
+
export { default as PisellUpload } from './components/pisellUpload';
|
|
107
|
+
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
108
|
+
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
109
|
+
export { default as ProductCard } from './components/productCard';
|
|
110
|
+
export { default as ProfileMenu } from './components/profileMenu';
|
|
111
|
+
export { default as QRCode } from './components/qrcode';
|
|
112
|
+
export { default as Radio } from './components/radio';
|
|
113
|
+
export { default as RecordView } from './components/record-view';
|
|
114
|
+
export { default as SectionFooters } from './components/section-footers';
|
|
115
|
+
export { default as Segmented } from './components/segmented';
|
|
116
|
+
export { default as Select } from './components/select';
|
|
117
|
+
export { default as SelectTime } from './components/select-time';
|
|
118
|
+
export { default as Skeleton } from './components/skeleton';
|
|
119
|
+
export { default as Slider } from './components/slider';
|
|
120
|
+
export { default as Sort } from './components/sort';
|
|
121
|
+
export { default as SortableList } from './components/sortableList';
|
|
122
|
+
export { default as Table } from './components/table';
|
|
123
|
+
export { default as Tabs } from './components/tabs';
|
|
124
|
+
export { default as TimePicker } from './components/time-picker';
|
|
125
|
+
export { default as Translation } from './components/translation';
|
|
126
|
+
export { default as TreeSelect } from './components/tree-select';
|
|
127
|
+
export { default as Typography } from './components/typography';
|
|
128
|
+
export { default as Upload } from './components/upload';
|
|
129
|
+
export { default as PublishVersionModal } from './components/versionModal';
|
|
130
|
+
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
131
|
+
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
132
|
+
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
133
|
+
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
134
|
+
export { default as WalletCard } from './components/walletCard';
|
|
135
|
+
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
136
|
+
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
137
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
138
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
139
|
+
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
package/lib/locales/en-US.js
CHANGED
|
@@ -276,13 +276,5 @@ var en_US_default = {
|
|
|
276
276
|
"pisell-data-source-form-app-identifier-pattern": "Can only contain lowercase letters, numbers, hyphens, dots, and underscores",
|
|
277
277
|
"pisell-data-source-form-app-identifier-start-with-letter": "Must start with a letter",
|
|
278
278
|
"pisell-data-source-form-app-identifier-special-ends": "Cannot end with a hyphen, dot, or underscore",
|
|
279
|
-
"pisell-data-source-form-app-identifier-consecutive-special": "Cannot contain consecutive hyphens, dots, or underscores"
|
|
280
|
-
// 扫描相关文案
|
|
281
|
-
"scan.qrcode": "Scan QR Code",
|
|
282
|
-
"scan.barcode": "Scan Barcode",
|
|
283
|
-
"scan.all": "Scan QR Code/Barcode",
|
|
284
|
-
"scan.back": "Back",
|
|
285
|
-
"scan.fromAlbum": "From Album",
|
|
286
|
-
"scan.qrcodeOnlyError": "Only QR code scanning is supported, please try again",
|
|
287
|
-
"scan.barcodeOnlyError": "Only barcode scanning is supported, please try again"
|
|
279
|
+
"pisell-data-source-form-app-identifier-consecutive-special": "Cannot contain consecutive hyphens, dots, or underscores"
|
|
288
280
|
};
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -48,7 +48,7 @@ var zh_CN_default = {
|
|
|
48
48
|
"table-action-filter-other-filter": "筛选",
|
|
49
49
|
"table-action-filter-other-filter-tip": () => "在列表中选择筛选条件进行筛选操作,并显示相应的结果。",
|
|
50
50
|
"table-action-group-by-title": "分组条件",
|
|
51
|
-
"table-action-group-by-title-tip": "
|
|
51
|
+
"table-action-group-by-title-tip": "请从下拉菜单中选择要分组的字段,以便更好地组织和浏览数据。",
|
|
52
52
|
"table-action-column-title": "表头设置",
|
|
53
53
|
"table-column-group-records": "条记录",
|
|
54
54
|
"table-column-group-lock-tip": "固定列不可移动顺序",
|
|
@@ -272,13 +272,5 @@ var zh_CN_default = {
|
|
|
272
272
|
"pisell-data-source-form-app-identifier-pattern": "只能包含小写字母、数字、连字符、点和下划线",
|
|
273
273
|
"pisell-data-source-form-app-identifier-start-with-letter": "必须以字母开头",
|
|
274
274
|
"pisell-data-source-form-app-identifier-special-ends": "不能以连字符、点或下划线结尾",
|
|
275
|
-
"pisell-data-source-form-app-identifier-consecutive-special": "不能包含连续的连字符、点或下划线"
|
|
276
|
-
// 扫描相关文案
|
|
277
|
-
"scan.qrcode": "扫描二维码",
|
|
278
|
-
"scan.barcode": "扫描条形码",
|
|
279
|
-
"scan.all": "扫描二维码/条形码",
|
|
280
|
-
"scan.back": "返回",
|
|
281
|
-
"scan.fromAlbum": "从相册选择",
|
|
282
|
-
"scan.qrcodeOnlyError": "仅支持扫描二维码,请重新扫描",
|
|
283
|
-
"scan.barcodeOnlyError": "仅支持扫描条形码,请重新扫描"
|
|
275
|
+
"pisell-data-source-form-app-identifier-consecutive-special": "不能包含连续的连字符、点或下划线"
|
|
284
276
|
};
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -274,13 +274,5 @@ var zh_TW_default = {
|
|
|
274
274
|
"pisell-data-source-form-app-identifier-pattern": "只能包含小寫字母、數字、連字符、點和下劃線",
|
|
275
275
|
"pisell-data-source-form-app-identifier-start-with-letter": "必須以字母開頭",
|
|
276
276
|
"pisell-data-source-form-app-identifier-special-ends": "不能以連字符、點或下劃線結尾",
|
|
277
|
-
"pisell-data-source-form-app-identifier-consecutive-special": "不能包含連續的連字符、點或下劃線"
|
|
278
|
-
// 扫码相关
|
|
279
|
-
"scan.qrcode": "掃描二維碼",
|
|
280
|
-
"scan.barcode": "掃描條形碼",
|
|
281
|
-
"scan.all": "掃描二維碼/條形碼",
|
|
282
|
-
"scan.back": "返回",
|
|
283
|
-
"scan.fromAlbum": "從相冊選擇",
|
|
284
|
-
"scan.qrcodeOnlyError": "僅支持掃描二維碼,請重新掃描",
|
|
285
|
-
"scan.barcodeOnlyError": "僅支持掃描條形碼,請重新掃描"
|
|
277
|
+
"pisell-data-source-form-app-identifier-consecutive-special": "不能包含連續的連字符、點或下劃線"
|
|
286
278
|
};
|
|
@@ -6,61 +6,6 @@ import {
|
|
|
6
6
|
getFormItemValidateGroup,
|
|
7
7
|
} from '../_utils/defaultSchema';
|
|
8
8
|
|
|
9
|
-
// 添加扫码相关的配置组
|
|
10
|
-
const getScanCodeGroup = () => {
|
|
11
|
-
return {
|
|
12
|
-
title: '扫码设置',
|
|
13
|
-
display: 'accordion',
|
|
14
|
-
type: 'group',
|
|
15
|
-
items: [
|
|
16
|
-
{
|
|
17
|
-
name: 'allowScan',
|
|
18
|
-
title: {
|
|
19
|
-
label: '启用扫码',
|
|
20
|
-
tip: '是否启用扫码功能',
|
|
21
|
-
},
|
|
22
|
-
propType: 'bool',
|
|
23
|
-
setter: 'BoolSetter',
|
|
24
|
-
defaultValue: false,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'scanCodeType',
|
|
28
|
-
title: {
|
|
29
|
-
label: '扫码类型',
|
|
30
|
-
tip: '设置支持的扫码类型',
|
|
31
|
-
},
|
|
32
|
-
propType: {
|
|
33
|
-
type: 'oneOf',
|
|
34
|
-
value: ['all', 'qrcode', 'barcode'],
|
|
35
|
-
},
|
|
36
|
-
setter: {
|
|
37
|
-
componentName: 'RadioGroupSetter',
|
|
38
|
-
props: {
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
title: '全部',
|
|
42
|
-
value: 'all',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
title: '仅二维码',
|
|
46
|
-
value: 'qrcode',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: '仅条形码',
|
|
50
|
-
value: 'barcode',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
defaultValue: 'all',
|
|
56
|
-
condition: (target: any) => {
|
|
57
|
-
return target.getProps().getPropValue('allowScan') === true;
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
9
|
export default {
|
|
65
10
|
snippets,
|
|
66
11
|
componentName: 'FormItemInput',
|
|
@@ -110,53 +55,16 @@ export default {
|
|
|
110
55
|
setter: 'StringSetter',
|
|
111
56
|
},
|
|
112
57
|
{
|
|
113
|
-
name: '
|
|
114
|
-
title: {
|
|
115
|
-
label: '启用扫码',
|
|
116
|
-
tip: '是否启用扫码功能',
|
|
117
|
-
},
|
|
58
|
+
name: 'allowClear',
|
|
59
|
+
title: { label: '支持清除', tip: '是否允许清除' },
|
|
118
60
|
propType: 'bool',
|
|
119
61
|
setter: 'BoolSetter',
|
|
120
|
-
defaultValue: true,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'scanCodeType',
|
|
124
|
-
title: {
|
|
125
|
-
label: '扫码类型',
|
|
126
|
-
tip: '设置支持的扫码类型',
|
|
127
|
-
},
|
|
128
|
-
propType: {
|
|
129
|
-
type: 'oneOf',
|
|
130
|
-
value: ['all', 'qrcode', 'barcode'],
|
|
131
|
-
},
|
|
132
|
-
setter: {
|
|
133
|
-
componentName: 'RadioGroupSetter',
|
|
134
|
-
props: {
|
|
135
|
-
options: [
|
|
136
|
-
{
|
|
137
|
-
title: '全部',
|
|
138
|
-
value: 'all',
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
title: '仅二维码',
|
|
142
|
-
value: 'qrcode',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
title: '仅条形码',
|
|
146
|
-
value: 'barcode',
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
defaultValue: 'all',
|
|
152
|
-
condition: (target: any) => {
|
|
153
|
-
return target.getProps().getPropValue('allowScan') === true;
|
|
154
|
-
},
|
|
155
62
|
},
|
|
156
63
|
{
|
|
157
|
-
name: '
|
|
158
|
-
title: { label: '
|
|
64
|
+
name: 'enableQRScanner',
|
|
65
|
+
title: { label: '启用扫码', tip: '是否启用扫码功能(仅在移动设备上有效)' },
|
|
159
66
|
propType: 'bool',
|
|
67
|
+
defaultValue: false,
|
|
160
68
|
setter: 'BoolSetter',
|
|
161
69
|
},
|
|
162
70
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.664",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"react-window": "^1.8.10",
|
|
74
74
|
"styled-components": "^6.0.0-rc.3",
|
|
75
75
|
"@pisell/date-picker": "1.0.115",
|
|
76
|
-
"@pisell/
|
|
77
|
-
"@pisell/
|
|
76
|
+
"@pisell/icon": "0.0.10",
|
|
77
|
+
"@pisell/utils": "1.0.43"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "^18.0.0",
|