@pisell/materials 1.0.206 → 1.0.207
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 +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/DragSortList/index.d.ts +1 -1
- package/es/components/MultipleContainersSortList/index.d.ts +1 -1
- package/es/components/Pagination/index.d.ts +2 -2
- package/es/components/Pagination/index.js +14 -9
- package/es/components/auto-complete/index.d.ts +5 -1
- package/es/components/calendar/index.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/config-provider/index.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/div/index.d.ts +1 -1
- package/es/components/div/index.js +2 -6
- package/es/components/drawer/index.d.ts +0 -1
- package/es/components/drawer/index.js +4 -42
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/es/components/filter/components/items/index.d.ts +6 -6
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/es/components/filter/components/items/text/index.d.ts +2 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/form/index.d.ts +1 -1
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +1 -14
- package/es/components/qrcode/index.d.ts +2 -2
- package/es/components/radio/index.d.ts +1 -1
- package/es/components/record-view/index.less +0 -2
- package/es/components/select/index.d.ts +5 -2
- package/es/components/select/index.js +2 -60
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/table/Actions/Sort/index.d.ts +12 -0
- package/es/components/table/Actions/Sort/index.js +59 -0
- package/es/components/table/Actions/Sort/index.less +0 -0
- package/es/components/table/Actions/index.d.ts +2 -2
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.d.ts +2 -2
- package/es/components/table/Header/index.d.ts +2 -2
- package/es/components/table/Summary/index.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Show/index.js +1 -2
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +3 -3
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.js +1 -2
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/index.d.ts +3 -3
- package/es/components/table/Table/fields/index.d.ts +57 -57
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.js +5 -7
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/index.d.ts +3 -3
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.js +1 -2
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/index.d.ts +3 -3
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.js +1 -2
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/index.d.ts +3 -3
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +3 -3
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Edit/index.js +3 -8
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.js +1 -2
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/index.d.ts +3 -3
- package/es/components/table/Table/index.js +4 -5
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/es/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/es/components/table/TableFilter/numberFilter.js +4 -5
- package/es/components/table/TableFilter/selectFilter.js +2 -3
- package/es/components/table/TableFilter/stringFilter.js +3 -4
- package/es/components/table/model.d.ts +1 -1
- package/es/components/table/model.js +29 -1
- package/es/components/tabs/index.d.ts +2 -5
- package/es/components/tabs/index.js +8 -51
- package/es/components/time-picker/index.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/index.d.ts +1 -5
- package/es/index.js +5 -6
- package/es/utils/hoc.d.ts +4 -4
- package/es/utils/hoc.js +8 -9
- package/es/utils/miniRedux.d.ts +1 -1
- package/lib/components/DragSortList/index.d.ts +1 -1
- package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/Pagination/index.js +8 -9
- package/lib/components/auto-complete/index.d.ts +5 -1
- package/lib/components/calendar/index.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/div/index.d.ts +1 -1
- package/lib/components/div/index.js +2 -2
- package/lib/components/drawer/index.d.ts +0 -1
- package/lib/components/drawer/index.js +1 -37
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/lib/components/filter/components/items/index.d.ts +6 -6
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/index.d.ts +2 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +1 -13
- package/lib/components/qrcode/index.d.ts +2 -2
- package/lib/components/radio/index.d.ts +1 -1
- package/lib/components/record-view/index.less +0 -2
- package/lib/components/select/index.d.ts +5 -2
- package/lib/components/select/index.js +1 -67
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +12 -0
- package/lib/components/table/Actions/Sort/index.js +86 -0
- package/lib/components/table/Actions/Sort/index.less +0 -0
- package/lib/components/table/Actions/index.d.ts +2 -2
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/BasicTable/index.d.ts +2 -2
- package/lib/components/table/Header/index.d.ts +2 -2
- package/lib/components/table/Summary/index.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Show/index.js +1 -2
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/index.d.ts +3 -3
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.js +1 -2
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/index.d.ts +3 -3
- package/lib/components/table/Table/fields/index.d.ts +57 -57
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.js +5 -7
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/index.d.ts +3 -3
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.js +1 -2
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/index.d.ts +3 -3
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.js +1 -2
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/index.d.ts +3 -3
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +3 -3
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Edit/index.js +1 -2
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.js +1 -2
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/index.d.ts +3 -3
- package/lib/components/table/Table/index.js +2 -3
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/lib/components/table/TableFilter/SortIcon.d.ts +2 -2
- package/lib/components/table/TableFilter/numberFilter.js +4 -5
- package/lib/components/table/TableFilter/selectFilter.js +2 -3
- package/lib/components/table/TableFilter/stringFilter.js +3 -4
- package/lib/components/table/model.d.ts +1 -1
- package/lib/components/table/model.js +34 -1
- package/lib/components/tabs/index.d.ts +2 -5
- package/lib/components/tabs/index.js +1 -50
- package/lib/components/time-picker/index.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +2 -14
- package/lib/utils/hoc.d.ts +4 -4
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/miniRedux.d.ts +1 -1
- package/package.json +3 -3
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/classicLayout/index.d.ts +0 -4
- package/es/components/classicLayout/index.js +0 -25
- package/es/components/classicLayout/index.less +0 -22
- package/es/components/component/index.d.ts +0 -11
- package/es/components/component/index.js +0 -10
- package/es/components/drawer/index.less +0 -34
- package/es/components/list/index.d.ts +0 -7
- package/es/components/list/index.js +0 -104
- package/es/components/list/index.less +0 -38
- package/es/components/select/index.less +0 -11
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/es/components/sort/components/InlineMenu/index.js +0 -87
- package/es/components/sort/components/InlineMenu/index.less +0 -20
- package/es/components/sort/index.d.ts +0 -18
- package/es/components/sort/index.js +0 -113
- package/es/components/sort/index.less +0 -10
- package/es/components/table/Table/fields/utils/index.d.ts +0 -1
- package/es/components/table/Table/fields/utils/index.js +0 -29
- package/es/components/tabs/index.less +0 -60
- package/es/locales/en-US.d.ts +0 -21
- package/es/locales/en-US.js +0 -22
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -21
- package/es/locales/zh-CN.d.ts +0 -21
- package/es/locales/zh-CN.js +0 -22
- package/es/locales/zh-TW.d.ts +0 -21
- package/es/locales/zh-TW.js +0 -22
- package/es/utils/locale.d.ts +0 -1
- package/es/utils/locale.js +0 -5
- package/es/utils/platform.d.ts +0 -1
- package/es/utils/platform.js +0 -8
- package/lib/components/classicLayout/index.d.ts +0 -4
- package/lib/components/classicLayout/index.js +0 -59
- package/lib/components/classicLayout/index.less +0 -22
- package/lib/components/component/index.d.ts +0 -11
- package/lib/components/component/index.js +0 -29
- package/lib/components/drawer/index.less +0 -34
- package/lib/components/list/index.d.ts +0 -7
- package/lib/components/list/index.js +0 -134
- package/lib/components/list/index.less +0 -38
- package/lib/components/select/index.less +0 -11
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/lib/components/sort/components/InlineMenu/index.js +0 -89
- package/lib/components/sort/components/InlineMenu/index.less +0 -20
- package/lib/components/sort/index.d.ts +0 -18
- package/lib/components/sort/index.js +0 -147
- package/lib/components/sort/index.less +0 -10
- package/lib/components/table/Table/fields/utils/index.d.ts +0 -1
- package/lib/components/table/Table/fields/utils/index.js +0 -46
- package/lib/components/tabs/index.less +0 -60
- package/lib/locales/en-US.d.ts +0 -21
- package/lib/locales/en-US.js +0 -44
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -58
- package/lib/locales/zh-CN.d.ts +0 -21
- package/lib/locales/zh-CN.js +0 -44
- package/lib/locales/zh-TW.d.ts +0 -21
- package/lib/locales/zh-TW.js +0 -44
- package/lib/utils/locale.d.ts +0 -1
- package/lib/utils/locale.js +0 -32
- package/lib/utils/platform.d.ts +0 -1
- package/lib/utils/platform.js +0 -36
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-tabs-tabpane {
|
|
5
|
-
padding: 0 !important;
|
|
6
|
-
}
|
|
7
|
-
&-tab-bar-wrap {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
flex: none;
|
|
11
|
-
}
|
|
12
|
-
&-tab-bar-wrap-top,
|
|
13
|
-
&-tab-bar-wrap-bottom {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
}
|
|
17
|
-
&-tab-bar-item {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
padding: 16px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
&-tab-bar-icon-wrap {
|
|
26
|
-
width: 50px;
|
|
27
|
-
height: 50px;
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
|
-
border-radius: 99px;
|
|
32
|
-
background: #f2f2f7;
|
|
33
|
-
margin-bottom: 6px;
|
|
34
|
-
color: #ACACAC;
|
|
35
|
-
transition: background 200ms ease-in-out, border-color 200ms ease-in-out;
|
|
36
|
-
border: 1px solid #f2f2f7;
|
|
37
|
-
&:hover {
|
|
38
|
-
border-color: #d5d7da;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&-tab-bar-label {
|
|
42
|
-
color: #0d1619;
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
font-style: normal;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
line-height: 20px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-tab-bar-item-active &-tab-bar-icon-wrap {
|
|
50
|
-
background: var(--primary-600, #7F56D9);
|
|
51
|
-
color: #fff;
|
|
52
|
-
}
|
|
53
|
-
&-tab-bar-item-active > &-tab-bar-label {
|
|
54
|
-
color: var(--primary-600, #7F56D9);
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
font-style: normal;
|
|
57
|
-
font-weight: 400;
|
|
58
|
-
line-height: 20px; /* 142.857% */
|
|
59
|
-
}
|
|
60
|
-
}
|
package/es/locales/en-US.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"table-filter-search": string;
|
|
3
|
-
"table-filter-clear": string;
|
|
4
|
-
"table-filter-filter": string;
|
|
5
|
-
"table-filter-min": string;
|
|
6
|
-
"table-filter-max": string;
|
|
7
|
-
"table-pagination-previous": string;
|
|
8
|
-
"table-pagination-next": string;
|
|
9
|
-
"table-pagination-total": (current: string, total: string) => string;
|
|
10
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/es/locales/en-US.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"table-filter-search": "Search",
|
|
3
|
-
"table-filter-clear": "Clear",
|
|
4
|
-
"table-filter-filter": "Filter",
|
|
5
|
-
"table-filter-min": "Min",
|
|
6
|
-
"table-filter-max": "Max",
|
|
7
|
-
"table-pagination-previous": "Previous",
|
|
8
|
-
"table-pagination-next": "Next",
|
|
9
|
-
"table-pagination-total": function tablePaginationTotal(current, total) {
|
|
10
|
-
return "Page ".concat(current, " of ").concat(total);
|
|
11
|
-
},
|
|
12
|
-
'select-dropdown-render-select-all': 'Select all',
|
|
13
|
-
'sort-button-text': 'Sort',
|
|
14
|
-
'sort-oldest-to-newest': 'Oldest to newest',
|
|
15
|
-
'sort-newest-to-oldest': 'Newest to oldest',
|
|
16
|
-
'sort-a-z': 'A to Z',
|
|
17
|
-
'sort-z-a': 'Z to A',
|
|
18
|
-
'sort-from-morning-to-night': 'From morning to night',
|
|
19
|
-
'sort-from-evening-to-morning': 'From evening to morning',
|
|
20
|
-
'sort-0-9': '0 ~ 9',
|
|
21
|
-
'sort-9-0': '9 ~ 0'
|
|
22
|
-
};
|
package/es/locales/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getText: (id: string) => any;
|
package/es/locales/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import zhCN from "./zh-CN";
|
|
2
|
-
import enUS from "./en-US";
|
|
3
|
-
import zhTW from "./zh-TW";
|
|
4
|
-
import { getCurrentLocale } from "../utils/locale";
|
|
5
|
-
var langMap = {
|
|
6
|
-
"zh-CN": zhCN,
|
|
7
|
-
"en-US": enUS,
|
|
8
|
-
"zh-TW": zhTW
|
|
9
|
-
};
|
|
10
|
-
export var getText = function getText(id) {
|
|
11
|
-
if (!id) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
var locale = getCurrentLocale();
|
|
15
|
-
if (!locale) {
|
|
16
|
-
localStorage.setItem("umi_locale", "en-US");
|
|
17
|
-
locale = "en-US";
|
|
18
|
-
}
|
|
19
|
-
//@ts-ignore
|
|
20
|
-
return langMap[locale][id] || id;
|
|
21
|
-
};
|
package/es/locales/zh-CN.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/es/locales/zh-CN.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'table-filter-search': '搜索',
|
|
3
|
-
'table-filter-clear': '清除',
|
|
4
|
-
'table-filter-filter': '筛选',
|
|
5
|
-
'table-filter-min': '最小',
|
|
6
|
-
'table-filter-max': '最大',
|
|
7
|
-
'table-pagination-previous': '上一页',
|
|
8
|
-
'table-pagination-next': '下一页',
|
|
9
|
-
'table-pagination-total': function tablePaginationTotal(current, total) {
|
|
10
|
-
return "\u7B2C".concat(current, "\u9875 \u5171").concat(total, "\u9875");
|
|
11
|
-
},
|
|
12
|
-
'select-dropdown-render-select-all': '全选',
|
|
13
|
-
'sort-button-text': '排序',
|
|
14
|
-
'sort-oldest-to-newest': '从旧到新',
|
|
15
|
-
'sort-newest-to-oldest': '从新到旧',
|
|
16
|
-
'sort-a-z': 'A 到 Z',
|
|
17
|
-
'sort-z-a': 'Z 到 A',
|
|
18
|
-
'sort-from-morning-to-night': '从早到晚',
|
|
19
|
-
'sort-from-evening-to-morning': '从晚到早',
|
|
20
|
-
'sort-0-9': '0 ~ 9',
|
|
21
|
-
'sort-9-0': '9 ~ 0'
|
|
22
|
-
};
|
package/es/locales/zh-TW.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/es/locales/zh-TW.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'table-filter-search': '搜索',
|
|
3
|
-
'table-filter-clear': '清除',
|
|
4
|
-
'table-filter-filter': '篩選',
|
|
5
|
-
'table-filter-min': '最小',
|
|
6
|
-
'table-filter-max': '最大',
|
|
7
|
-
'table-pagination-previous': '上一頁',
|
|
8
|
-
'table-pagination-next': '下一頁',
|
|
9
|
-
'table-pagination-total': function tablePaginationTotal(current, total) {
|
|
10
|
-
return "\u7B2C".concat(current, "\u9801 \u5171").concat(total, "\u9801");
|
|
11
|
-
},
|
|
12
|
-
'select-dropdown-render-select-all': '全選',
|
|
13
|
-
'sort-button-text': '排序',
|
|
14
|
-
'sort-oldest-to-newest': '從舊到新',
|
|
15
|
-
'sort-newest-to-oldest': '從新到舊',
|
|
16
|
-
'sort-a-z': 'A 到 Z',
|
|
17
|
-
'sort-z-a': 'Z 到 A',
|
|
18
|
-
'sort-from-morning-to-night': '從早到晚',
|
|
19
|
-
'sort-from-evening-to-morning': '從晚到早',
|
|
20
|
-
'sort-0-9': '0 ~ 9',
|
|
21
|
-
'sort-9-0': '9 ~ 0'
|
|
22
|
-
};
|
package/es/utils/locale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentLocale: () => string;
|
package/es/utils/locale.js
DELETED
package/es/utils/platform.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isMobile: () => boolean;
|
package/es/utils/platform.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/classicLayout/index.tsx
|
|
30
|
-
var classicLayout_exports = {};
|
|
31
|
-
__export(classicLayout_exports, {
|
|
32
|
-
default: () => classicLayout_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(classicLayout_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_index = require("./index.less");
|
|
38
|
-
var prefix = "pisell-lowcode-";
|
|
39
|
-
var ClassicLayout = (props) => {
|
|
40
|
-
const { header, content, footer, style, fixedHeader, fixedFooter } = props;
|
|
41
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}claseic-layout`, style }, /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
-
"header",
|
|
43
|
-
{
|
|
44
|
-
className: (0, import_classnames.default)({
|
|
45
|
-
[`${prefix}claseic-layout-fixed-header`]: fixedHeader
|
|
46
|
-
})
|
|
47
|
-
},
|
|
48
|
-
header
|
|
49
|
-
), content, /* @__PURE__ */ import_react.default.createElement(
|
|
50
|
-
"footer",
|
|
51
|
-
{
|
|
52
|
-
className: (0, import_classnames.default)({
|
|
53
|
-
[`${prefix}claseic-layout-fixed-footer`]: fixedFooter
|
|
54
|
-
})
|
|
55
|
-
},
|
|
56
|
-
footer
|
|
57
|
-
));
|
|
58
|
-
};
|
|
59
|
-
var classicLayout_default = ClassicLayout;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-claseic-layout {
|
|
5
|
-
position: relative;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
&-claseic-layout-fixed-header {
|
|
11
|
-
position: sticky;
|
|
12
|
-
top: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
&-claseic-layout-fixed-footer {
|
|
17
|
-
position: sticky;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ComponentProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* 低代码组件壳子 目前不做任何处理直接返回 如需容器包裹自行处理
|
|
7
|
-
* @param props
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
declare const Component: (props: ComponentProps) => React.ReactNode;
|
|
11
|
-
export default Component;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/component/index.tsx
|
|
20
|
-
var component_exports = {};
|
|
21
|
-
__export(component_exports, {
|
|
22
|
-
default: () => component_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(component_exports);
|
|
25
|
-
var Component = (props) => {
|
|
26
|
-
const { children } = props;
|
|
27
|
-
return children;
|
|
28
|
-
};
|
|
29
|
-
var component_default = Component;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-drawer-outside-wrap {
|
|
5
|
-
position: absolute;
|
|
6
|
-
padding: 10px;
|
|
7
|
-
background-color: transparent;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
}
|
|
11
|
-
&-drawer-outside-wrap-right {
|
|
12
|
-
left: -82px;
|
|
13
|
-
}
|
|
14
|
-
&-drawer-outside-action-wrap {
|
|
15
|
-
width: 56px;
|
|
16
|
-
height: 56px;
|
|
17
|
-
border-radius: 99px;
|
|
18
|
-
background: var(--base-white, #fff);
|
|
19
|
-
transition: background 300ms ease;
|
|
20
|
-
box-shadow: 0px 4px 8px 0px rgba(13, 22, 25, 0.02),
|
|
21
|
-
0px 12px 20px 0px rgba(0, 0, 0, 0.16);
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
margin-bottom: 20px;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
&:hover {
|
|
28
|
-
background: #e8e8ee;
|
|
29
|
-
}
|
|
30
|
-
.anticon {
|
|
31
|
-
font-size: 20px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/list/index.tsx
|
|
30
|
-
var list_exports = {};
|
|
31
|
-
__export(list_exports, {
|
|
32
|
-
default: () => list_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(list_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_antd = require("antd");
|
|
38
|
-
var import_utils = require("@pisell/utils");
|
|
39
|
-
var import_react_infinite_scroll_component = __toESM(require("react-infinite-scroll-component"));
|
|
40
|
-
var import_icons = require("@ant-design/icons");
|
|
41
|
-
var import_ahooks = require("ahooks");
|
|
42
|
-
var import_Pagination = __toESM(require("../Pagination"));
|
|
43
|
-
var import_index = require("./index.less");
|
|
44
|
-
var prefix = "pisell-lowcode-";
|
|
45
|
-
var downArrow = /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}list-arrow-wrap ${prefix}list-arrow-down` }, /* @__PURE__ */ import_react.default.createElement(import_icons.DoubleRightOutlined, { style: { transform: "rotate(90deg)" } }));
|
|
46
|
-
var upArrow = /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}list-arrow-wrap ${prefix}list-arrow-up` }, /* @__PURE__ */ import_react.default.createElement(import_icons.DoubleRightOutlined, { style: { transform: "rotate(-90deg)" } }));
|
|
47
|
-
var List = (props) => {
|
|
48
|
-
const {
|
|
49
|
-
className,
|
|
50
|
-
paginationType,
|
|
51
|
-
pagination,
|
|
52
|
-
footer,
|
|
53
|
-
header,
|
|
54
|
-
listHeight,
|
|
55
|
-
loadMoreData,
|
|
56
|
-
arrow,
|
|
57
|
-
...others
|
|
58
|
-
} = props;
|
|
59
|
-
const listRef = (0, import_react.useRef)(null);
|
|
60
|
-
const scrollListId = (0, import_react.useMemo)(() => {
|
|
61
|
-
return `scrollableDiv-${(0, import_utils.getUniqueId)()}`;
|
|
62
|
-
}, []);
|
|
63
|
-
const position = (0, import_ahooks.useScroll)(listRef);
|
|
64
|
-
const isShowDownArrow = (0, import_react.useMemo)(() => {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
return arrow && (listRef == null ? void 0 : listRef.current) && ((position == null ? void 0 : position.top) || 0) + ((_a = listRef == null ? void 0 : listRef.current) == null ? void 0 : _a.clientHeight) < ((_b = listRef.current) == null ? void 0 : _b.scrollHeight);
|
|
67
|
-
}, [position, arrow]);
|
|
68
|
-
const isShowUpArrow = (0, import_react.useMemo)(() => {
|
|
69
|
-
return arrow && ((position == null ? void 0 : position.top) || 0) > 0;
|
|
70
|
-
}, [position, arrow]);
|
|
71
|
-
const _footer = (0, import_react.useMemo)(() => {
|
|
72
|
-
if (!(pagination && paginationType === "default") && !footer) {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, pagination && paginationType === "default" && /* @__PURE__ */ import_react.default.createElement(import_Pagination.default, { showLessItems: true, ...pagination }), footer);
|
|
76
|
-
}, [pagination, footer]);
|
|
77
|
-
const list = (0, import_react.useMemo)(() => {
|
|
78
|
-
var _a, _b;
|
|
79
|
-
if (paginationType === "scroll") {
|
|
80
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}scroll-list-wrap` }, header && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}scroll-header-wrap` }, header), /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
id: scrollListId,
|
|
84
|
-
ref: listRef,
|
|
85
|
-
style: {
|
|
86
|
-
height: listHeight || 400,
|
|
87
|
-
overflow: "auto"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
isShowUpArrow && upArrow,
|
|
91
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
92
|
-
import_react_infinite_scroll_component.default,
|
|
93
|
-
{
|
|
94
|
-
dataLength: props.dataSource.length,
|
|
95
|
-
next: loadMoreData,
|
|
96
|
-
hasMore: props.dataSource.length < ((pagination == null ? void 0 : pagination.total) || 999999),
|
|
97
|
-
loader: props.dataSource.length > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
-
import_antd.Skeleton,
|
|
99
|
-
{
|
|
100
|
-
avatar: true,
|
|
101
|
-
paragraph: { rows: 1 },
|
|
102
|
-
active: true,
|
|
103
|
-
className: `${prefix}scroll-skeleton`
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
scrollableTarget: scrollListId
|
|
107
|
-
},
|
|
108
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
109
|
-
import_antd.List,
|
|
110
|
-
{
|
|
111
|
-
...others,
|
|
112
|
-
className: (0, import_classnames.default)(className, {
|
|
113
|
-
[`${prefix}list-one-line-wrap`]: (_a = props == null ? void 0 : props.grid) == null ? void 0 : _a.oneLine
|
|
114
|
-
})
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
),
|
|
118
|
-
isShowDownArrow && downArrow
|
|
119
|
-
), _footer && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}scroll-footer-wrap` }, _footer));
|
|
120
|
-
}
|
|
121
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
122
|
-
import_antd.List,
|
|
123
|
-
{
|
|
124
|
-
...props,
|
|
125
|
-
className: (0, import_classnames.default)(className, {
|
|
126
|
-
[`${prefix}list-one-line-wrap`]: (_b = props == null ? void 0 : props.grid) == null ? void 0 : _b.oneLine
|
|
127
|
-
})
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
}, [props, _footer, isShowDownArrow, isShowUpArrow]);
|
|
131
|
-
return list;
|
|
132
|
-
};
|
|
133
|
-
List.Item = import_antd.List.Item;
|
|
134
|
-
var list_default = List;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-list-one-line-wrap {
|
|
5
|
-
.pisell-lowcode-row {
|
|
6
|
-
flex-flow: row nowrap;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
& > div {
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
&-scroll-list-wrap {
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
&-list-arrow-wrap {
|
|
17
|
-
width: 40px;
|
|
18
|
-
height: 40px;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
background: rgba(0, 0, 0, 0.05);
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
color: #0B5FDB;
|
|
25
|
-
}
|
|
26
|
-
&-list-arrow-down {
|
|
27
|
-
position: absolute;
|
|
28
|
-
bottom: 20px;
|
|
29
|
-
left: 50%;
|
|
30
|
-
transform: rotateX(-50%);
|
|
31
|
-
}
|
|
32
|
-
&-list-arrow-up {
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 20px;
|
|
35
|
-
left: 50%;
|
|
36
|
-
transform: rotateX(-50%);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MenuProps } from "antd";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
interface InlineMenuProps {
|
|
5
|
-
items: any[];
|
|
6
|
-
value?: [string, string];
|
|
7
|
-
onChange?: (val: string, detail: Parameters<Required<MenuProps>["onClick"]>[0]) => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 内嵌展示的菜单 只支持两级
|
|
11
|
-
* @param props
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
declare const InlineMenu: (props: InlineMenuProps) => React.JSX.Element;
|
|
15
|
-
export default InlineMenu;
|