@pisell/materials 1.0.1 → 1.0.3
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 +93 -0
- package/build/lowcode/assets-dev.json +93 -0
- package/build/lowcode/assets-prod.json +93 -0
- package/build/lowcode/designer.html +303 -0
- package/build/lowcode/index.html +305 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +9 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +35 -0
- package/build/lowcode/preview.js +304 -0
- package/build/lowcode/render/default/view.js +22 -0
- package/build/lowcode/view.js +22 -0
- package/es/components/auto-complete/index.d.ts +3 -0
- package/es/components/auto-complete/index.js +4 -0
- package/es/components/button/index.d.ts +3 -0
- package/es/components/button/index.js +15 -0
- package/es/components/calendar/index.d.ts +3 -0
- package/es/components/calendar/index.js +4 -0
- package/es/components/cascader/index.d.ts +3 -0
- package/es/components/cascader/index.js +4 -0
- package/es/components/checkbox/index.d.ts +3 -0
- package/es/components/checkbox/index.js +5 -0
- package/es/components/config-provider/index.d.ts +4 -0
- package/es/components/config-provider/index.js +30 -0
- package/es/components/date-picker/index.d.ts +3 -0
- package/es/components/date-picker/index.js +7 -0
- package/es/components/drawer/index.d.ts +2 -0
- package/es/components/drawer/index.js +13 -0
- package/es/components/dropdown/index.d.ts +3 -0
- package/es/components/dropdown/index.js +13 -0
- package/es/components/form/index.d.ts +8 -0
- package/es/components/form/index.js +132 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.js +40 -0
- package/es/components/input/index.d.ts +3 -0
- package/es/components/input/index.js +12 -0
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/modal/index.js +18 -0
- package/es/components/radio/index.d.ts +3 -0
- package/es/components/radio/index.js +5 -0
- package/es/components/select/index.d.ts +3 -0
- package/es/components/select/index.js +4 -0
- package/es/components/skeleton/index.d.ts +3 -0
- package/es/components/skeleton/index.js +5 -0
- package/es/components/slider/index.d.ts +3 -0
- package/es/components/slider/index.js +16 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/index.d.ts +11 -0
- package/es/components/tabs/index.js +93 -0
- package/es/components/time-picker/index.d.ts +3 -0
- package/es/components/time-picker/index.js +4 -0
- package/es/components/tree-select/index.d.ts +2 -0
- package/es/components/tree-select/index.js +6 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/index.js +4 -0
- package/es/index.d.ts +63 -0
- package/es/index.js +85 -0
- package/es/utils/hoc.d.ts +17 -0
- package/es/utils/hoc.js +80 -0
- package/es/utils/warning.d.ts +1 -0
- package/es/utils/warning.js +6 -0
- package/lib/components/auto-complete/index.d.ts +3 -0
- package/lib/components/auto-complete/index.js +28 -0
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/index.js +45 -0
- package/lib/components/calendar/index.d.ts +3 -0
- package/lib/components/calendar/index.js +32 -0
- package/lib/components/cascader/index.d.ts +3 -0
- package/lib/components/cascader/index.js +28 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/checkbox/index.js +29 -0
- package/lib/components/config-provider/index.d.ts +4 -0
- package/lib/components/config-provider/index.js +54 -0
- package/lib/components/date-picker/index.d.ts +3 -0
- package/lib/components/date-picker/index.js +41 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/index.js +45 -0
- package/lib/components/dropdown/index.d.ts +3 -0
- package/lib/components/dropdown/index.js +45 -0
- package/lib/components/form/index.d.ts +8 -0
- package/lib/components/form/index.js +114 -0
- package/lib/components/icon/index.d.ts +12 -0
- package/lib/components/icon/index.js +52 -0
- package/lib/components/input/index.d.ts +3 -0
- package/lib/components/input/index.js +38 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/index.js +50 -0
- package/lib/components/radio/index.d.ts +3 -0
- package/lib/components/radio/index.js +29 -0
- package/lib/components/select/index.d.ts +3 -0
- package/lib/components/select/index.js +28 -0
- package/lib/components/skeleton/index.d.ts +3 -0
- package/lib/components/skeleton/index.js +29 -0
- package/lib/components/slider/index.d.ts +3 -0
- package/lib/components/slider/index.js +47 -0
- package/lib/components/table/index.d.ts +3 -0
- package/lib/components/table/index.js +41 -0
- package/lib/components/tabs/index.d.ts +11 -0
- package/lib/components/tabs/index.js +92 -0
- package/lib/components/time-picker/index.d.ts +3 -0
- package/lib/components/time-picker/index.js +31 -0
- package/lib/components/tree-select/index.d.ts +2 -0
- package/lib/components/tree-select/index.js +40 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/index.js +28 -0
- package/lib/index.d.ts +63 -0
- package/lib/index.js +225 -0
- package/lib/utils/hoc.d.ts +17 -0
- package/lib/utils/hoc.js +101 -0
- package/lib/utils/warning.d.ts +1 -0
- package/lib/utils/warning.js +31 -0
- package/lowcode/_setters/antd-icon-setter/index.tsx +285 -0
- package/lowcode/_setters/antd-icon-setter/style.less +69 -0
- package/lowcode/_setters/index.tsx +1 -0
- package/lowcode/_utils/hoc.tsx +93 -0
- package/lowcode/_utils/transform-meta.ts +343 -0
- package/lowcode/_utils/utils.ts +6 -0
- package/lowcode/affix/__screenshots__/affix-1.jpg +0 -0
- package/lowcode/affix/meta.ts +68 -0
- package/lowcode/affix/snippets.ts +20 -0
- package/lowcode/alert/__screenshots__/alert-1.png +0 -0
- package/lowcode/alert/__screenshots__/alert-2.png +0 -0
- package/lowcode/alert/__screenshots__/alert-3.png +0 -0
- package/lowcode/alert/__screenshots__/alert-4.png +0 -0
- package/lowcode/alert/meta.ts +102 -0
- package/lowcode/alert/snippets.ts +54 -0
- package/lowcode/anchor/__screenshots__/anchor-1.png +0 -0
- package/lowcode/anchor/snippets.ts +30 -0
- package/lowcode/anchor.link/meta.ts +29 -0
- package/lowcode/anchor.link/snippets.ts +1 -0
- package/lowcode/auto-complete/__screenshots__/auto-complete-1.png +0 -0
- package/lowcode/auto-complete/meta.ts +453 -0
- package/lowcode/auto-complete/snippets.ts +26 -0
- package/lowcode/avatar/__screenshots__/avatar-1.jpg +0 -0
- package/lowcode/avatar/meta.ts +82 -0
- package/lowcode/avatar/snippets.ts +12 -0
- package/lowcode/badge/__screenshots__/badge-1.png +0 -0
- package/lowcode/badge/meta.ts +94 -0
- package/lowcode/badge/snippets.ts +12 -0
- package/lowcode/breadcrumb/__screenshots__/breadcrumb-1.jpg +0 -0
- package/lowcode/breadcrumb/meta.ts +136 -0
- package/lowcode/breadcrumb/snippets.ts +44 -0
- package/lowcode/button/__screenshots__/button-1.png +0 -0
- package/lowcode/button/__screenshots__/button-2.png +0 -0
- package/lowcode/button/__screenshots__/button-3.png +0 -0
- package/lowcode/button/__screenshots__/button-4.png +0 -0
- package/lowcode/button/__screenshots__/button-5.png +0 -0
- package/lowcode/button/__screenshots__/button-6.png +0 -0
- package/lowcode/button/meta.ts +510 -0
- package/lowcode/button/snippets.ts +68 -0
- package/lowcode/calendar/__screenshots__/calendar-1.jpg +0 -0
- package/lowcode/calendar/meta.ts +133 -0
- package/lowcode/calendar/snippets.ts +10 -0
- package/lowcode/card/__screenshots__/card-1.png +0 -0
- package/lowcode/card/meta.ts +97 -0
- package/lowcode/card/snippets.ts +12 -0
- package/lowcode/carousel/__screenshots__/carousel-1.jpg +0 -0
- package/lowcode/carousel/meta.ts +148 -0
- package/lowcode/carousel/snippets.ts +23 -0
- package/lowcode/cascader/__screenshots__/cascader-1.png +0 -0
- package/lowcode/cascader/meta.ts +175 -0
- package/lowcode/cascader/snippets.ts +46 -0
- package/lowcode/checkbox/__screenshots__/checkbox-1.png +0 -0
- package/lowcode/checkbox/meta.ts +85 -0
- package/lowcode/checkbox/snippets.ts +35 -0
- package/lowcode/checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
- package/lowcode/checkbox.group/meta.ts +150 -0
- package/lowcode/collapse/__screenshots__/collapse-1.png +0 -0
- package/lowcode/collapse/meta.ts +221 -0
- package/lowcode/collapse/snippets.ts +28 -0
- package/lowcode/collapse.pane/meta.ts +84 -0
- package/lowcode/config-provider/__screenshots__/config-provider-1.jpg +0 -0
- package/lowcode/config-provider/meta.ts +140 -0
- package/lowcode/config-provider/snippets.ts +10 -0
- package/lowcode/date-picker/__screenshots__/date-picker-1.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-2.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-3.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-4.png +0 -0
- package/lowcode/date-picker/__screenshots__/date-picker-5.png +0 -0
- package/lowcode/date-picker/meta.ts +281 -0
- package/lowcode/date-picker/snippets.ts +50 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-1.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-2.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-3.png +0 -0
- package/lowcode/date-picker.range-picker/__screenshots__/date-picker-range-picker-4.png +0 -0
- package/lowcode/date-picker.range-picker/meta.ts +356 -0
- package/lowcode/date-picker.range-picker/snippets.ts +44 -0
- package/lowcode/descriptions/__screenshots__/descriptions-1.jpg +0 -0
- package/lowcode/descriptions/meta.ts +230 -0
- package/lowcode/descriptions/snippets.ts +18 -0
- package/lowcode/descriptions.item/meta.ts +37 -0
- package/lowcode/directory-tree/meta.ts +2747 -0
- package/lowcode/divider/__screenshots__/divider-1.png +0 -0
- package/lowcode/divider/__screenshots__/divider-2.png +0 -0
- package/lowcode/divider/meta.ts +70 -0
- package/lowcode/divider/snippets.ts +27 -0
- package/lowcode/drawer/__screenshots__/drawer-1.png +0 -0
- package/lowcode/drawer/__screenshots__/drawer-2.png +0 -0
- package/lowcode/drawer/meta.ts +420 -0
- package/lowcode/drawer/snippets.ts +40 -0
- package/lowcode/dropdown/__screenshots__/dropdown-1.png +0 -0
- package/lowcode/dropdown/meta.ts +143 -0
- package/lowcode/dropdown/snippets.ts +73 -0
- package/lowcode/empty/__screenshots__/empty-1.png +0 -0
- package/lowcode/empty/meta.ts +40 -0
- package/lowcode/empty/snippets.ts +10 -0
- package/lowcode/form/__screenshots__/form-1.png +0 -0
- package/lowcode/form/meta.ts +380 -0
- package/lowcode/form/snippets.ts +511 -0
- package/lowcode/form.item/__screenshots__/form-item-1.jpg +0 -0
- package/lowcode/form.item/meta.ts +348 -0
- package/lowcode/form.item/snippets.ts +12 -0
- package/lowcode/form.list/meta.ts +42 -0
- package/lowcode/form.list/snippets.ts +11 -0
- package/lowcode/grid.col/meta.ts +116 -0
- package/lowcode/grid.col/snippets.ts +1 -0
- package/lowcode/grid.row/__screenshots__/1-1-1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-1.png +0 -0
- package/lowcode/grid.row/__screenshots__/1-3.png +0 -0
- package/lowcode/grid.row/meta.ts +118 -0
- package/lowcode/grid.row/snippets.ts +108 -0
- package/lowcode/icon/__screenshots__/icon-1.jpg +0 -0
- package/lowcode/icon/meta.ts +74 -0
- package/lowcode/icon/snippets.ts +13 -0
- package/lowcode/image/__screenshots__/image-1.png +0 -0
- package/lowcode/image/meta.ts +53 -0
- package/lowcode/image/snippets.ts +14 -0
- package/lowcode/input/__screenshots__/input-1.png +0 -0
- package/lowcode/input/meta.ts +190 -0
- package/lowcode/input/snippets.ts +12 -0
- package/lowcode/input-number/__screenshots__/input-number-1.png +0 -0
- package/lowcode/input-number/meta.ts +213 -0
- package/lowcode/input-number/snippets.ts +12 -0
- package/lowcode/input.group/__screenshots__/input-group-1.jpg +0 -0
- package/lowcode/input.group/meta.ts +53 -0
- package/lowcode/input.group/snippets.ts +24 -0
- package/lowcode/input.password/__screenshots__/input-password-1.png +0 -0
- package/lowcode/input.password/meta.ts +192 -0
- package/lowcode/input.password/snippets.ts +12 -0
- package/lowcode/input.search/__screenshots__/input-search-1.png +0 -0
- package/lowcode/input.search/meta.ts +206 -0
- package/lowcode/input.search/snippets.ts +12 -0
- package/lowcode/input.text-area/__screenshots__/input-text-area-1.png +0 -0
- package/lowcode/input.text-area/meta.ts +210 -0
- package/lowcode/input.text-area/snippets.ts +16 -0
- package/lowcode/list/__screenshots__/list-1.png +0 -0
- package/lowcode/list/meta.ts +499 -0
- package/lowcode/list/snippets.ts +201 -0
- package/lowcode/list.item/meta.ts +58 -0
- package/lowcode/list.item.meta/meta.ts +49 -0
- package/lowcode/login/meta.ts +56 -0
- package/lowcode/mentions/__screenshots__/mentions-1.png +0 -0
- package/lowcode/mentions/meta.ts +159 -0
- package/lowcode/mentions/snippets.ts +10 -0
- package/lowcode/menu/__screenshots__/menu-1.jpg +0 -0
- package/lowcode/menu/meta.ts +248 -0
- package/lowcode/menu/snippets.ts +22 -0
- package/lowcode/menu/utils.ts +97 -0
- package/lowcode/menu.item/meta.ts +63 -0
- package/lowcode/menu.item/snippets.ts +1 -0
- package/lowcode/menu.item-group/__screenshots__/menu-item-group-1.png +0 -0
- package/lowcode/menu.item-group/meta.ts +110 -0
- package/lowcode/menu.item-group/snippets.ts +1 -0
- package/lowcode/menu.sub-menu/meta.ts +131 -0
- package/lowcode/menu.sub-menu/snippets.ts +1 -0
- package/lowcode/modal/__screenshots__/modal-1.png +0 -0
- package/lowcode/modal/__screenshots__/modal-2.png +0 -0
- package/lowcode/modal/meta.ts +270 -0
- package/lowcode/modal/snippets.ts +33 -0
- package/lowcode/page-header/__screenshots__/page-header-1.jpg +0 -0
- package/lowcode/page-header/meta.ts +157 -0
- package/lowcode/page-header/snippets.ts +13 -0
- package/lowcode/pagination/__screenshots__/pagination-1.jpg +0 -0
- package/lowcode/pagination/meta.ts +231 -0
- package/lowcode/pagination/snippets.ts +14 -0
- package/lowcode/popconfirm/__screenshots__/popconfirm-1.jpg +0 -0
- package/lowcode/popconfirm/meta.ts +121 -0
- package/lowcode/popconfirm/snippets.ts +21 -0
- package/lowcode/popover/__screenshots__/popover-1.jpg +0 -0
- package/lowcode/popover/meta.ts +332 -0
- package/lowcode/popover/snippets.ts +10 -0
- package/lowcode/progress/__screenshots__/progress-1.png +0 -0
- package/lowcode/progress/__screenshots__/progress-2.png +0 -0
- package/lowcode/progress/meta.ts +142 -0
- package/lowcode/progress/snippets.ts +24 -0
- package/lowcode/radio/__screenshots__/radio-1.png +0 -0
- package/lowcode/radio/meta.ts +69 -0
- package/lowcode/radio/snippets.ts +35 -0
- package/lowcode/radio.group/__screenshots__/radio-group-1.png +0 -0
- package/lowcode/radio.group/meta.ts +213 -0
- package/lowcode/rate/__screenshots__/rate-1.png +0 -0
- package/lowcode/rate/meta.ts +132 -0
- package/lowcode/rate/snippets.ts +12 -0
- package/lowcode/result/__screenshots__/result-1.png +0 -0
- package/lowcode/result/meta.ts +53 -0
- package/lowcode/result/snippets.ts +14 -0
- package/lowcode/select/__screenshots__/select-1.png +0 -0
- package/lowcode/select/meta.ts +427 -0
- package/lowcode/select/snippets.ts +28 -0
- package/lowcode/skeleton/__screenshots__/skeleton-1.png +0 -0
- package/lowcode/skeleton/meta.ts +63 -0
- package/lowcode/skeleton/snippets.ts +13 -0
- package/lowcode/slider/__screenshots__/slider-1.png +0 -0
- package/lowcode/slider/meta.ts +218 -0
- package/lowcode/slider/snippets.ts +12 -0
- package/lowcode/slot/meta.ts +61 -0
- package/lowcode/slot/view.tsx +58 -0
- package/lowcode/space/__screenshots__/space-1.png +0 -0
- package/lowcode/space/meta.ts +65 -0
- package/lowcode/space/snippets.ts +24 -0
- package/lowcode/spin/__screenshots__/spin-1.png +0 -0
- package/lowcode/spin/meta.ts +60 -0
- package/lowcode/spin/snippets.ts +13 -0
- package/lowcode/statistic/__screenshots__/statistic-1.png +0 -0
- package/lowcode/statistic/meta.ts +67 -0
- package/lowcode/statistic/snippets.ts +13 -0
- package/lowcode/steps/__screenshots__/steps-1.png +0 -0
- package/lowcode/steps/meta.ts +281 -0
- package/lowcode/steps/snippets.ts +36 -0
- package/lowcode/steps.step/meta.ts +54 -0
- package/lowcode/steps.step/snippets.ts +1 -0
- package/lowcode/switch/__screenshots__/switch-1.png +0 -0
- package/lowcode/switch/meta.ts +122 -0
- package/lowcode/switch/snippets.ts +12 -0
- package/lowcode/table/__screenshots__/table-1.png +0 -0
- package/lowcode/table/meta.ts +847 -0
- package/lowcode/table/snippets.ts +43 -0
- package/lowcode/tabs/__screenshots__/tabs-1.jpg +0 -0
- package/lowcode/tabs/__screenshots__/tabs-2.jpg +0 -0
- package/lowcode/tabs/__screenshots__/tabs-3.jpg +0 -0
- package/lowcode/tabs/meta.ts +415 -0
- package/lowcode/tabs/snippets.ts +86 -0
- package/lowcode/tabs.tab-pane/meta.ts +78 -0
- package/lowcode/tag/__screenshots__/tag-1.png +0 -0
- package/lowcode/tag/meta.ts +69 -0
- package/lowcode/tag/snippets.ts +13 -0
- package/lowcode/time-picker/__screenshots__/time-picker-1.png +0 -0
- package/lowcode/time-picker/meta.ts +224 -0
- package/lowcode/time-picker/snippets.ts +10 -0
- package/lowcode/timeline/__screenshots__/timeline-1.jpg +0 -0
- package/lowcode/timeline/meta.ts +189 -0
- package/lowcode/timeline/snippets.ts +21 -0
- package/lowcode/timeline.item/__screenshots__/timeline-1.jpg +0 -0
- package/lowcode/timeline.item/meta.ts +53 -0
- package/lowcode/timeline.item/snippets.ts +10 -0
- package/lowcode/tooltip/__screenshots__/tooltip-1.jpg +0 -0
- package/lowcode/tooltip/meta.ts +306 -0
- package/lowcode/tooltip/snippets.ts +12 -0
- package/lowcode/transfer/__screenshots__/transfer-1.png +0 -0
- package/lowcode/transfer/meta.ts +304 -0
- package/lowcode/transfer/snippets.ts +42 -0
- package/lowcode/tree/__screenshots__/tree-1.jpg +0 -0
- package/lowcode/tree/meta.ts +377 -0
- package/lowcode/tree/snippets.ts +30 -0
- package/lowcode/tree-select/__screenshots__/tree-select-1.png +0 -0
- package/lowcode/tree-select/meta.ts +314 -0
- package/lowcode/tree-select/snippets.ts +34 -0
- package/lowcode/typography.link/__screenshots__/typography-link-1.png +0 -0
- package/lowcode/typography.link/meta.ts +44 -0
- package/lowcode/typography.link/snippets.ts +14 -0
- package/lowcode/typography.paragraph/__screenshots__/typography-paragraph-1.png +0 -0
- package/lowcode/typography.paragraph/meta.ts +129 -0
- package/lowcode/typography.paragraph/snippets.ts +14 -0
- package/lowcode/typography.text/__screenshots__/typography-text-1.png +0 -0
- package/lowcode/typography.text/__screenshots__/typography-text-2.png +0 -0
- package/lowcode/typography.text/__screenshots__/typography-text-3.png +0 -0
- package/lowcode/typography.text/meta.ts +200 -0
- package/lowcode/typography.text/snippets.ts +34 -0
- package/lowcode/typography.title/__screenshots__/typography-title-1.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-2.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-3.png +0 -0
- package/lowcode/typography.title/__screenshots__/typography-title-4.png +0 -0
- package/lowcode/typography.title/meta.ts +130 -0
- package/lowcode/typography.title/snippets.ts +46 -0
- package/lowcode/upload/__screenshots__/upload-1.png +0 -0
- package/lowcode/upload/meta.ts +439 -0
- package/lowcode/upload/snippets.ts +16 -0
- package/package.json +37 -3
- package/.fatherrc.ts +0 -7
- package/CHANGELOG.md +0 -7
- package/tsconfig.json +0 -14
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'Table',
|
|
6
|
+
title: '表格',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "Table",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '数据源',
|
|
22
|
+
display: 'block',
|
|
23
|
+
type: 'group',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: 'dataSource',
|
|
27
|
+
title: { label: '表格数据', tip: 'dataSource | 表格数据' },
|
|
28
|
+
propType: 'object',
|
|
29
|
+
setter: 'JsonSetter',
|
|
30
|
+
supportVariable: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'loading',
|
|
34
|
+
title: { label: '加载中', tip: 'loading | 是否加载中' },
|
|
35
|
+
propType: 'bool',
|
|
36
|
+
setter: 'BoolSetter',
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
supportVariable: true,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'rowKey',
|
|
42
|
+
title: {
|
|
43
|
+
label: '行Key',
|
|
44
|
+
tip: 'rowKey | 表格行 key 的取值,可以是字符串或一个函数',
|
|
45
|
+
},
|
|
46
|
+
propType: { type: 'oneOfType', value: ['string', 'func'] },
|
|
47
|
+
setter: [
|
|
48
|
+
'StringSetter',
|
|
49
|
+
{
|
|
50
|
+
componentName: 'FunctionSetter',
|
|
51
|
+
props: {
|
|
52
|
+
template:
|
|
53
|
+
'getRowKey(record,index,${extParams}){\n// 通过函数获取表格行 key\nreturn record.id;\n}',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
'VariableSetter',
|
|
57
|
+
],
|
|
58
|
+
defaultValue: 'id',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'columns',
|
|
64
|
+
title: { label: '表格列', tip: '表格列的配置描述,具体项见下表' },
|
|
65
|
+
setter: {
|
|
66
|
+
componentName: 'ArraySetter',
|
|
67
|
+
props: {
|
|
68
|
+
itemSetter: {
|
|
69
|
+
componentName: 'ObjectSetter',
|
|
70
|
+
props: {
|
|
71
|
+
config: {
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
name: 'title',
|
|
75
|
+
title: { label: '列标题', tip: 'title | 列标题' },
|
|
76
|
+
propType: { type: 'oneOfType', value: ['string', 'func'] },
|
|
77
|
+
setter: [
|
|
78
|
+
'StringSetter',
|
|
79
|
+
{
|
|
80
|
+
componentName: 'SlotSetter',
|
|
81
|
+
title: '列标题插槽',
|
|
82
|
+
initialValue: {
|
|
83
|
+
type: 'JSSlot',
|
|
84
|
+
params: ['options'],
|
|
85
|
+
value: [],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'dataIndex',
|
|
92
|
+
title: { label: '数据字段', tip: 'dataIndex | 数据字段' },
|
|
93
|
+
propType: 'string',
|
|
94
|
+
setter: 'StringSetter',
|
|
95
|
+
isRequired: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'key',
|
|
99
|
+
title: { label: 'React key', tip: 'key | React需要的key' },
|
|
100
|
+
propType: 'string',
|
|
101
|
+
setter: 'StringSetter',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'align',
|
|
105
|
+
title: { label: '对齐方式', tip: 'align | 对齐方式' },
|
|
106
|
+
propType: {
|
|
107
|
+
type: 'oneOf',
|
|
108
|
+
value: ['left', 'right', 'center'],
|
|
109
|
+
},
|
|
110
|
+
defaultValue: 'left',
|
|
111
|
+
setter: [
|
|
112
|
+
{
|
|
113
|
+
componentName: 'RadioGroupSetter',
|
|
114
|
+
props: {
|
|
115
|
+
options: [
|
|
116
|
+
{
|
|
117
|
+
title: 'left',
|
|
118
|
+
value: 'left',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: 'right',
|
|
122
|
+
value: 'right',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: 'center',
|
|
126
|
+
value: 'center',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
'VariableSetter',
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'fixed',
|
|
136
|
+
title: { label: '列是否固定', tip: 'fixed | 列是否固定' },
|
|
137
|
+
description: '(IE 下无效)列是否固定,可选 true (等效于 left) left right',
|
|
138
|
+
defaultValue: '',
|
|
139
|
+
propType: {
|
|
140
|
+
type: 'oneOf',
|
|
141
|
+
value: ['', 'left', 'right'],
|
|
142
|
+
},
|
|
143
|
+
setter: [
|
|
144
|
+
{
|
|
145
|
+
componentName: 'RadioGroupSetter',
|
|
146
|
+
props: {
|
|
147
|
+
options: [
|
|
148
|
+
{
|
|
149
|
+
title: '不固定',
|
|
150
|
+
value: '',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: '固定在左侧',
|
|
154
|
+
value: 'left',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: '固定在右侧',
|
|
158
|
+
value: 'right',
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
'VariableSetter',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'className',
|
|
168
|
+
title: {
|
|
169
|
+
label: '列样式类名',
|
|
170
|
+
tip: 'className | 列样式类名',
|
|
171
|
+
},
|
|
172
|
+
propType: 'string',
|
|
173
|
+
setter: 'StringSetter',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'width',
|
|
177
|
+
title: { label: '宽度', tip: 'width | 宽度' },
|
|
178
|
+
propType: {
|
|
179
|
+
type: 'oneOfType',
|
|
180
|
+
value: ['number', 'string'],
|
|
181
|
+
},
|
|
182
|
+
setter: ['NumberSetter', 'StringSetter', 'VariableSetter'],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'sorter',
|
|
186
|
+
title: {
|
|
187
|
+
label: '排序规则',
|
|
188
|
+
tip: 'sorter | 排序函数,本地排序使用一个函数,需要服务端排序可设为 true',
|
|
189
|
+
},
|
|
190
|
+
propType: { type: 'oneOfType', value: ['bool', 'func'] },
|
|
191
|
+
setter: ['BoolSetter', 'FunctionSetter', 'VariableSetter'],
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'hidden',
|
|
195
|
+
title: {
|
|
196
|
+
label: '是否隐藏',
|
|
197
|
+
tip: 'hidden | 是否隐藏当前列',
|
|
198
|
+
},
|
|
199
|
+
propType: 'bool',
|
|
200
|
+
setter: 'BoolSetter',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'filters',
|
|
204
|
+
title: {
|
|
205
|
+
label: '筛选菜单项',
|
|
206
|
+
tip: 'filters | 表头的筛选菜单项',
|
|
207
|
+
},
|
|
208
|
+
propType: 'object',
|
|
209
|
+
setter: 'JsonSetter',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'render',
|
|
213
|
+
title: {
|
|
214
|
+
label: '自定义渲染',
|
|
215
|
+
tip:
|
|
216
|
+
'render | 插槽内的物料表达式可通过this.record获取当前行数据,this.index获取索引',
|
|
217
|
+
},
|
|
218
|
+
propType: 'func',
|
|
219
|
+
setter: [
|
|
220
|
+
{
|
|
221
|
+
componentName: 'SlotSetter',
|
|
222
|
+
title: '单元格插槽',
|
|
223
|
+
initialValue: {
|
|
224
|
+
type: 'JSSlot',
|
|
225
|
+
params: ['text', 'record', 'index'],
|
|
226
|
+
value: [],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
'VariableSetter',
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
initialValue: { title: '标题' },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
title: '外观',
|
|
242
|
+
display: 'block',
|
|
243
|
+
type: 'group',
|
|
244
|
+
items: [
|
|
245
|
+
{
|
|
246
|
+
name: 'showHeader',
|
|
247
|
+
title: { label: '显示表头', tip: 'showHeader | 是否显示表头' },
|
|
248
|
+
propType: 'bool',
|
|
249
|
+
setter: 'BoolSetter',
|
|
250
|
+
defaultValue: true,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'bordered',
|
|
254
|
+
title: {
|
|
255
|
+
label: '显示边框',
|
|
256
|
+
tip: 'bordered | 是否展示外边框和列边框',
|
|
257
|
+
},
|
|
258
|
+
propType: 'bool',
|
|
259
|
+
setter: 'BoolSetter',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'size',
|
|
263
|
+
title: { label: '表格大小', tip: 'size | 表格大小' },
|
|
264
|
+
propType: {
|
|
265
|
+
type: 'oneOf',
|
|
266
|
+
value: ['default', 'middle', 'small'],
|
|
267
|
+
},
|
|
268
|
+
setter: [
|
|
269
|
+
{
|
|
270
|
+
componentName: 'RadioGroupSetter',
|
|
271
|
+
props: {
|
|
272
|
+
options: [
|
|
273
|
+
{
|
|
274
|
+
title: '默认',
|
|
275
|
+
value: 'default',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
title: '中',
|
|
279
|
+
value: 'middle',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
title: '小',
|
|
283
|
+
value: 'small',
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
'VariableSetter',
|
|
289
|
+
],
|
|
290
|
+
defaultValue: 'default',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'tableLayout',
|
|
294
|
+
title: { label: '表格布局', tip: 'tableLayout | 表格布局' },
|
|
295
|
+
defaultValue: '',
|
|
296
|
+
propType: {
|
|
297
|
+
type: 'oneOf',
|
|
298
|
+
value: ['', 'auto', 'fixed'],
|
|
299
|
+
},
|
|
300
|
+
setter: [
|
|
301
|
+
{
|
|
302
|
+
componentName: 'RadioGroupSetter',
|
|
303
|
+
props: {
|
|
304
|
+
options: [
|
|
305
|
+
{
|
|
306
|
+
title: '默认',
|
|
307
|
+
value: '',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
title: '自动',
|
|
311
|
+
value: 'auto',
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
title: '固定',
|
|
315
|
+
value: 'fixed',
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
'VariableSetter',
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
title: '分页',
|
|
327
|
+
display: 'block',
|
|
328
|
+
type: 'group',
|
|
329
|
+
items: [
|
|
330
|
+
{
|
|
331
|
+
name: 'pagination',
|
|
332
|
+
title: { label: '显示分页', tip: 'pagination | 显示分页' },
|
|
333
|
+
propType: 'object',
|
|
334
|
+
setter: 'BoolSetter',
|
|
335
|
+
extraProps: {
|
|
336
|
+
setValue: (target, value) => {
|
|
337
|
+
if (value) {
|
|
338
|
+
target.parent.setPropValue('pagination', {
|
|
339
|
+
pageSize: 10,
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
name: 'pagination.pageSize',
|
|
347
|
+
title: { label: '每页条数', tip: 'pagination.pageSize | 每页条数' },
|
|
348
|
+
propType: 'number',
|
|
349
|
+
setter: 'NumberSetter',
|
|
350
|
+
condition: {
|
|
351
|
+
type: 'JSFunction',
|
|
352
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: 'pagination.total',
|
|
357
|
+
title: { label: '数据总数', tip: 'pagination.total | 数据总数' },
|
|
358
|
+
propType: 'number',
|
|
359
|
+
setter: 'NumberSetter',
|
|
360
|
+
condition: {
|
|
361
|
+
type: 'JSFunction',
|
|
362
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: 'pagination.defaultCurrent',
|
|
367
|
+
title: {
|
|
368
|
+
label: '默认当前页',
|
|
369
|
+
tip: 'pagination.defaultCurrent | 默认的当前页数',
|
|
370
|
+
},
|
|
371
|
+
propType: 'number',
|
|
372
|
+
setter: 'NumberSetter',
|
|
373
|
+
condition: {
|
|
374
|
+
type: 'JSFunction',
|
|
375
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: 'pagination.current',
|
|
380
|
+
title: { label: '当前页数', tip: 'pagination.current | 当前页数' },
|
|
381
|
+
propType: 'number',
|
|
382
|
+
setter: 'NumberSetter',
|
|
383
|
+
condition: {
|
|
384
|
+
type: 'JSFunction',
|
|
385
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: 'pagination.showTotal',
|
|
390
|
+
title: {
|
|
391
|
+
label: '显示总数',
|
|
392
|
+
tip: 'pagination.showTotal | 用于显示数据总量和当前数据顺序',
|
|
393
|
+
},
|
|
394
|
+
propType: 'func',
|
|
395
|
+
setter: [
|
|
396
|
+
{
|
|
397
|
+
componentName: 'FunctionSetter',
|
|
398
|
+
props: {
|
|
399
|
+
template:
|
|
400
|
+
'showTotal(total,range,${extParams}){\n// 用于格式化显示表格数据总量\nreturn `共 ${total} 条`;\n}',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
'VariableSetter',
|
|
404
|
+
],
|
|
405
|
+
condition: {
|
|
406
|
+
type: 'JSFunction',
|
|
407
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
name: 'pagination.showSizeChanger',
|
|
412
|
+
title: {
|
|
413
|
+
label: '页数切换',
|
|
414
|
+
tip: 'pagination.showSizeChanger | 是否展示 pageSize 切换器',
|
|
415
|
+
},
|
|
416
|
+
propType: 'bool',
|
|
417
|
+
setter: 'BoolSetter',
|
|
418
|
+
defaultValue: false,
|
|
419
|
+
condition: {
|
|
420
|
+
type: 'JSFunction',
|
|
421
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'pagination.showQuickJumper',
|
|
426
|
+
title: {
|
|
427
|
+
label: '快速跳转',
|
|
428
|
+
tip: 'pagination.showQuickJumper | 是否可以快速跳转至某页',
|
|
429
|
+
},
|
|
430
|
+
propType: 'bool',
|
|
431
|
+
setter: 'BoolSetter',
|
|
432
|
+
defaultValue: false,
|
|
433
|
+
condition: {
|
|
434
|
+
type: 'JSFunction',
|
|
435
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'pagination.simple',
|
|
440
|
+
title: { label: '简单分页', tip: 'pagination.simple | 简单分页' },
|
|
441
|
+
propType: 'bool',
|
|
442
|
+
setter: 'BoolSetter',
|
|
443
|
+
defaultValue: false,
|
|
444
|
+
condition: {
|
|
445
|
+
type: 'JSFunction',
|
|
446
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
name: 'pagination.size',
|
|
451
|
+
title: { label: '分页尺寸', tip: 'pagination.size | 分页尺寸' },
|
|
452
|
+
propType: {
|
|
453
|
+
type: 'oneOf',
|
|
454
|
+
value: ['default', 'small'],
|
|
455
|
+
},
|
|
456
|
+
setter: [
|
|
457
|
+
{
|
|
458
|
+
componentName: 'RadioGroupSetter',
|
|
459
|
+
props: {
|
|
460
|
+
options: [
|
|
461
|
+
{
|
|
462
|
+
title: '默认',
|
|
463
|
+
value: 'default',
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
title: '小',
|
|
467
|
+
value: 'small',
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
'VariableSetter',
|
|
473
|
+
],
|
|
474
|
+
defaultValue: 'default',
|
|
475
|
+
condition: {
|
|
476
|
+
type: 'JSFunction',
|
|
477
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'pagination.position',
|
|
482
|
+
title: { label: '分页位置', tip: 'pagination.position | 分页位置' },
|
|
483
|
+
setter: {
|
|
484
|
+
componentName: 'ArraySetter',
|
|
485
|
+
props: {
|
|
486
|
+
itemSetter: {
|
|
487
|
+
componentName: 'SelectSetter',
|
|
488
|
+
props: {
|
|
489
|
+
options: [
|
|
490
|
+
{
|
|
491
|
+
title: '上左',
|
|
492
|
+
value: 'topLeft',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
title: '上中',
|
|
496
|
+
value: 'topCenter',
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
title: '上右',
|
|
500
|
+
value: 'topRight',
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
title: '下左',
|
|
504
|
+
value: 'bottomLeft',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
title: '下中',
|
|
508
|
+
value: 'bottomCenter',
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
title: '下右',
|
|
512
|
+
value: 'bottomRight',
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
initialValue: 'bottomRight',
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
condition: {
|
|
521
|
+
type: 'JSFunction',
|
|
522
|
+
value: 'target => !!target.getProps().getPropValue("pagination")',
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
title: '滚动',
|
|
529
|
+
display: 'block',
|
|
530
|
+
type: 'group',
|
|
531
|
+
items: [
|
|
532
|
+
{
|
|
533
|
+
name: 'scroll.scrollToFirstRowOnChange',
|
|
534
|
+
title: {
|
|
535
|
+
label: '自动滚动',
|
|
536
|
+
tip: 'scroll.scrollToFirstRowOnChange | 是否自动滚动到表格顶部',
|
|
537
|
+
},
|
|
538
|
+
propType: 'bool',
|
|
539
|
+
setter: 'BoolSetter',
|
|
540
|
+
defaultValue: true,
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: 'scroll.x',
|
|
544
|
+
title: {
|
|
545
|
+
label: '横向滚动',
|
|
546
|
+
tip:
|
|
547
|
+
'scroll.x | 设置横向滚动,也可用于指定滚动区域的宽,可以设置为像素值,百分比,true 和 max-content',
|
|
548
|
+
},
|
|
549
|
+
propType: { type: 'oneOfType', value: ['number', 'bool'] },
|
|
550
|
+
setter: ['NumberSetter', 'BoolSetter', 'VariableSetter'],
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
name: 'scroll.y',
|
|
554
|
+
title: {
|
|
555
|
+
label: '纵向滚动',
|
|
556
|
+
tip: 'scroll.y | 设置纵向滚动,也可用于指定滚动区域的高,可以设置为像素值',
|
|
557
|
+
},
|
|
558
|
+
propType: 'number',
|
|
559
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
title: '行选择器',
|
|
565
|
+
display: 'block',
|
|
566
|
+
type: 'group',
|
|
567
|
+
items: [
|
|
568
|
+
{
|
|
569
|
+
name: 'rowSelection',
|
|
570
|
+
title: { label: '行选择', tip: 'rowSelection | 行选择' },
|
|
571
|
+
propType: 'object',
|
|
572
|
+
setter: 'BoolSetter',
|
|
573
|
+
extraProps: {
|
|
574
|
+
setValue: (target, value) => {
|
|
575
|
+
if (value) {
|
|
576
|
+
target.parent.setPropValue('rowSelection', {
|
|
577
|
+
type: 'radio',
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: 'rowSelection.type',
|
|
585
|
+
title: { label: '行选择类型', tip: 'rowSelection.type | 多选/单选' },
|
|
586
|
+
propType: {
|
|
587
|
+
type: 'oneOf',
|
|
588
|
+
value: ['checkbox', 'radio'],
|
|
589
|
+
},
|
|
590
|
+
setter: [
|
|
591
|
+
{
|
|
592
|
+
componentName: 'RadioGroupSetter',
|
|
593
|
+
props: {
|
|
594
|
+
options: [
|
|
595
|
+
{
|
|
596
|
+
title: '多选',
|
|
597
|
+
value: 'checkbox',
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
title: '单选',
|
|
601
|
+
value: 'radio',
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
'VariableSetter',
|
|
607
|
+
],
|
|
608
|
+
condition: {
|
|
609
|
+
type: 'JSFunction',
|
|
610
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: 'rowSelection.fixed',
|
|
615
|
+
title: {
|
|
616
|
+
label: '固定左边',
|
|
617
|
+
tip: 'rowSelection.fixed | 把选择框列固定在左边',
|
|
618
|
+
},
|
|
619
|
+
propType: 'bool',
|
|
620
|
+
setter: 'BoolSetter',
|
|
621
|
+
condition: {
|
|
622
|
+
type: 'JSFunction',
|
|
623
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: 'rowSelection.selectedRowKeys',
|
|
628
|
+
title: {
|
|
629
|
+
label: '选中行Key',
|
|
630
|
+
tip: 'rowSelection.selectedRowKeys | 指定选中项的 key 数组',
|
|
631
|
+
},
|
|
632
|
+
propType: 'object',
|
|
633
|
+
setter: 'JsonSetter',
|
|
634
|
+
condition: {
|
|
635
|
+
type: 'JSFunction',
|
|
636
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: 'rowSelection.preserveSelectedRowKeys',
|
|
641
|
+
title: { label: '保留选项', tip: 'rowSelection.preserveSelectedRowKeys | 当数据被删除时仍然保留选项' },
|
|
642
|
+
propType: 'bool',
|
|
643
|
+
setter: 'BoolSetter',
|
|
644
|
+
condition: {
|
|
645
|
+
type: 'JSFunction',
|
|
646
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
name: 'rowSelection.getCheckboxProps',
|
|
651
|
+
title: {
|
|
652
|
+
label: '默认属性',
|
|
653
|
+
tip: 'rowSelection.getCheckboxProps | 选择框的默认属性配置',
|
|
654
|
+
},
|
|
655
|
+
propType: 'func',
|
|
656
|
+
setter: [
|
|
657
|
+
{
|
|
658
|
+
componentName: 'FunctionSetter',
|
|
659
|
+
props: {
|
|
660
|
+
template:
|
|
661
|
+
'getCheckboxProps(record,${extParams}){\n// 选择框的默认属性配置\nreturn { disabled: false };\n}',
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
'VariableSetter',
|
|
665
|
+
],
|
|
666
|
+
condition: {
|
|
667
|
+
type: 'JSFunction',
|
|
668
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
669
|
+
},
|
|
670
|
+
},
|
|
671
|
+
],
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
title: '行展开',
|
|
675
|
+
display: 'block',
|
|
676
|
+
type: 'group',
|
|
677
|
+
items: [
|
|
678
|
+
{
|
|
679
|
+
name: 'expandable.expandedRowRender',
|
|
680
|
+
title: {
|
|
681
|
+
label: '展开行渲染',
|
|
682
|
+
tip: 'expandable.expandedRowRender | 额外的展开行',
|
|
683
|
+
},
|
|
684
|
+
propType: 'func',
|
|
685
|
+
setter: [
|
|
686
|
+
{
|
|
687
|
+
componentName: 'SlotSetter',
|
|
688
|
+
title: '展开行插槽',
|
|
689
|
+
initialValue: {
|
|
690
|
+
type: 'JSSlot',
|
|
691
|
+
params: ['record', 'index', 'indent', 'expanded'],
|
|
692
|
+
value: [],
|
|
693
|
+
},
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
componentName: 'FunctionSetter',
|
|
697
|
+
props: {
|
|
698
|
+
template:
|
|
699
|
+
'expandedRowRender(record,index,indent,expanded,${extParams}){\n// 展开行渲染\nreturn `${record.id}`}',
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
'VariableSetter',
|
|
703
|
+
],
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: 'expandable.rowExpandable',
|
|
707
|
+
title: {
|
|
708
|
+
label: '是否可展开',
|
|
709
|
+
tip: 'expandable.rowExpandable | 行是否可展开',
|
|
710
|
+
},
|
|
711
|
+
propType: 'func',
|
|
712
|
+
setter: [
|
|
713
|
+
{
|
|
714
|
+
componentName: 'FunctionSetter',
|
|
715
|
+
props: {
|
|
716
|
+
template: 'rowExpandable(record,${extParams}){\n// 行是否可展开\nreturn true;\n}',
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
'VariableSetter',
|
|
720
|
+
],
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
title: '扩展',
|
|
726
|
+
display: 'block',
|
|
727
|
+
type: 'group',
|
|
728
|
+
items: [
|
|
729
|
+
{
|
|
730
|
+
name: 'title',
|
|
731
|
+
title: { label: '表格标题', tip: 'title | 表格标题' },
|
|
732
|
+
propType: 'func',
|
|
733
|
+
setter: [
|
|
734
|
+
{
|
|
735
|
+
componentName: 'SlotSetter',
|
|
736
|
+
title: '表格标题插槽',
|
|
737
|
+
initialValue: {
|
|
738
|
+
type: 'JSSlot',
|
|
739
|
+
params: ['currentPageData'],
|
|
740
|
+
value: [],
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
componentName: 'FunctionSetter',
|
|
745
|
+
props: {
|
|
746
|
+
template:
|
|
747
|
+
'renderTitle(currentPageData,${extParams}){\n// 自定义渲染表格顶部\nreturn "表格顶部";\n}',
|
|
748
|
+
},
|
|
749
|
+
},
|
|
750
|
+
'VariableSetter',
|
|
751
|
+
],
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
name: 'footer',
|
|
755
|
+
title: { label: '表格尾部', tip: 'footer | 表格尾部' },
|
|
756
|
+
propType: 'func',
|
|
757
|
+
setter: [
|
|
758
|
+
{
|
|
759
|
+
componentName: 'SlotSetter',
|
|
760
|
+
title: '表格尾部插槽',
|
|
761
|
+
initialValue: {
|
|
762
|
+
type: 'JSSlot',
|
|
763
|
+
params: ['currentPageData'],
|
|
764
|
+
value: [],
|
|
765
|
+
},
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
componentName: 'FunctionSetter',
|
|
769
|
+
props: {
|
|
770
|
+
template:
|
|
771
|
+
'renderFooter(currentPageData,${extParams}){\n// 自定义渲染表格尾部\nreturn "表格尾部";\n}',
|
|
772
|
+
},
|
|
773
|
+
},
|
|
774
|
+
'VariableSetter',
|
|
775
|
+
],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: 'onHeaderRow',
|
|
779
|
+
title: { label: '头部行属性', tip: 'onHeaderRow | 设置头部行属性' },
|
|
780
|
+
propType: 'func',
|
|
781
|
+
setter: [
|
|
782
|
+
{
|
|
783
|
+
componentName: 'FunctionSetter',
|
|
784
|
+
props: {
|
|
785
|
+
template:
|
|
786
|
+
'onHeaderRow(columns,index,${extParams}){\n// 设置头部行属性\nreturn {onClick:()=>{}};\n}',
|
|
787
|
+
},
|
|
788
|
+
},
|
|
789
|
+
'VariableSetter',
|
|
790
|
+
],
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: 'onRow',
|
|
794
|
+
title: { label: '行属性', tip: 'onRow | 设置行属性' },
|
|
795
|
+
propType: 'func',
|
|
796
|
+
setter: [
|
|
797
|
+
{
|
|
798
|
+
componentName: 'FunctionSetter',
|
|
799
|
+
props: {
|
|
800
|
+
template:
|
|
801
|
+
'onRow(record,index,${extParams}){\n// 设置行属性\nreturn {onClick:event=>{}};\n}',
|
|
802
|
+
},
|
|
803
|
+
},
|
|
804
|
+
'VariableSetter',
|
|
805
|
+
],
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
name: 'rowClassName',
|
|
809
|
+
title: { label: '行类名', tip: 'rowClassName | 表格行的类名' },
|
|
810
|
+
propType: 'func',
|
|
811
|
+
setter: [
|
|
812
|
+
{
|
|
813
|
+
componentName: 'FunctionSetter',
|
|
814
|
+
props: {
|
|
815
|
+
template:
|
|
816
|
+
'rowClassName(record,index,${extParams}){\n// 表格行的类名\nreturn `className-${record.type}`;\n}',
|
|
817
|
+
},
|
|
818
|
+
},
|
|
819
|
+
'VariableSetter',
|
|
820
|
+
],
|
|
821
|
+
},
|
|
822
|
+
],
|
|
823
|
+
},
|
|
824
|
+
],
|
|
825
|
+
configure: {
|
|
826
|
+
supports: {
|
|
827
|
+
style: true,
|
|
828
|
+
events: [
|
|
829
|
+
{
|
|
830
|
+
name: 'onChange',
|
|
831
|
+
template:
|
|
832
|
+
"onChange(pagination,filters,sorter,extra,${extParams}){\n// 表格翻页事件\nconsole.log('onChange', pagination);}",
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
name: 'rowSelection.onChange',
|
|
836
|
+
template:
|
|
837
|
+
"onRowSelectionChange(selectedRowKeys,selectedRows,${extParams}){\n// 选中项发生变化时的回调\nconsole.log('onRowSelectionChange', selectedRowKeys, selectedRows);}",
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
name: 'expandable.onExpand',
|
|
841
|
+
template:
|
|
842
|
+
"onExpandableExpand(expanded,record){\n// 点击展开图标时触发\nconsole.log('onRowSelectionChange', expanded, record);}",
|
|
843
|
+
},
|
|
844
|
+
],
|
|
845
|
+
},
|
|
846
|
+
},
|
|
847
|
+
};
|