@openli1115/lowcode-edit-pro-table 1.0.23
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/CHANGELOG.md +0 -0
- package/README.md +25 -0
- package/build/docs/404.html +47 -0
- package/build/docs/_demos/:uuid +47 -0
- package/build/docs/colorful-button.html +48 -0
- package/build/docs/colorful-input.html +48 -0
- package/build/docs/index.html +48 -0
- package/build/docs/umi.9219e122.js +1 -0
- package/build/docs/umi.a7e52c7a.css +8 -0
- package/build/docs/~demos/:uuid.html +47 -0
- package/build/docs/~demos/colorful-button-demo.html +47 -0
- package/build/docs/~demos/colorful-input-demo.html +47 -0
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +53 -0
- package/build/lowcode/assets-daily.json +103 -0
- package/build/lowcode/assets-dev.json +103 -0
- package/build/lowcode/assets-prod.json +103 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.design.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +310 -0
- package/build/lowcode/render/default/view.css +1 -0
- package/build/lowcode/render/default/view.js +375 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +375 -0
- package/dist/BizComps.css +1 -0
- package/dist/BizComps.js +75 -0
- package/dist/BizComps.js.map +1 -0
- package/es/components/PrintButton/index.d.ts +7 -0
- package/es/components/PrintButton/index.js +97 -0
- package/es/components/ProCascaderSelect/index.d.ts +3 -0
- package/es/components/ProCascaderSelect/index.js +48 -0
- package/es/components/ProCheckbox/index.d.ts +14 -0
- package/es/components/ProCheckbox/index.js +59 -0
- package/es/components/ProDatePicker/index.d.ts +3 -0
- package/es/components/ProDatePicker/index.js +45 -0
- package/es/components/ProInput/index.d.ts +10 -0
- package/es/components/ProInput/index.js +53 -0
- package/es/components/ProNextText/index.js +160 -0
- package/es/components/ProNextText/index.scss +283 -0
- package/es/components/ProRadio/index.d.ts +14 -0
- package/es/components/ProRadio/index.js +60 -0
- package/es/components/ProSelect/index.d.ts +3 -0
- package/es/components/ProSelect/index.js +48 -0
- package/es/components/ProTextArea/index.d.ts +3 -0
- package/es/components/ProTextArea/index.js +45 -0
- package/es/components/ProTimePicker/index.d.ts +3 -0
- package/es/components/ProTimePicker/index.js +61 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/colorful-button.js +29 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.js +2 -0
- package/es/components/colorful-button/index.scss +5 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/colorful-input.js +23 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.js +2 -0
- package/es/components/colorful-input/index.scss +5 -0
- package/es/components/edit-pro-table/components/ExportExcelButton.d.ts +7 -0
- package/es/components/edit-pro-table/components/ExportExcelButton.js +91 -0
- package/es/components/edit-pro-table/components/ImportExcelButton.d.ts +6 -0
- package/es/components/edit-pro-table/components/ImportExcelButton.js +105 -0
- package/es/components/edit-pro-table/edit-pro-table.d.ts +38 -0
- package/es/components/edit-pro-table/edit-pro-table.js +458 -0
- package/es/components/edit-pro-table/index.d.ts +3 -0
- package/es/components/edit-pro-table/index.js +2 -0
- package/es/components/pro-table/index.d.ts +3 -0
- package/es/components/pro-table/index.js +2 -0
- package/es/components/pro-table/pro-table.d.ts +25 -0
- package/es/components/pro-table/pro-table.js +144 -0
- package/es/components/utils/index.d.ts +6 -0
- package/es/components/utils/index.js +27 -0
- package/es/context/FormProvider.d.ts +5 -0
- package/es/context/FormProvider.js +32 -0
- package/es/context/useComponentContext.d.ts +4 -0
- package/es/context/useComponentContext.js +29 -0
- package/es/index.d.ts +17 -0
- package/es/index.js +15 -0
- package/es/index.scss +1 -0
- package/es/shared/index.d.ts +7 -0
- package/es/shared/index.js +43 -0
- package/es/style.js +18 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +51 -0
- package/lib/components/PrintButton/index.d.ts +7 -0
- package/lib/components/PrintButton/index.js +102 -0
- package/lib/components/ProCascaderSelect/index.d.ts +3 -0
- package/lib/components/ProCascaderSelect/index.js +53 -0
- package/lib/components/ProCheckbox/index.d.ts +14 -0
- package/lib/components/ProCheckbox/index.js +64 -0
- package/lib/components/ProDatePicker/index.d.ts +3 -0
- package/lib/components/ProDatePicker/index.js +50 -0
- package/lib/components/ProInput/index.d.ts +10 -0
- package/lib/components/ProInput/index.js +58 -0
- package/lib/components/ProNextText/index.js +165 -0
- package/lib/components/ProNextText/index.scss +283 -0
- package/lib/components/ProRadio/index.d.ts +14 -0
- package/lib/components/ProRadio/index.js +65 -0
- package/lib/components/ProSelect/index.d.ts +3 -0
- package/lib/components/ProSelect/index.js +53 -0
- package/lib/components/ProTextArea/index.d.ts +3 -0
- package/lib/components/ProTextArea/index.js +50 -0
- package/lib/components/ProTimePicker/index.d.ts +3 -0
- package/lib/components/ProTimePicker/index.js +66 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/colorful-button.js +34 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.js +7 -0
- package/lib/components/colorful-button/index.scss +5 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/colorful-input.js +28 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.js +7 -0
- package/lib/components/colorful-input/index.scss +5 -0
- package/lib/components/edit-pro-table/components/ExportExcelButton.d.ts +7 -0
- package/lib/components/edit-pro-table/components/ExportExcelButton.js +96 -0
- package/lib/components/edit-pro-table/components/ImportExcelButton.d.ts +6 -0
- package/lib/components/edit-pro-table/components/ImportExcelButton.js +110 -0
- package/lib/components/edit-pro-table/edit-pro-table.d.ts +38 -0
- package/lib/components/edit-pro-table/edit-pro-table.js +463 -0
- package/lib/components/edit-pro-table/index.d.ts +3 -0
- package/lib/components/edit-pro-table/index.js +7 -0
- package/lib/components/pro-table/index.d.ts +3 -0
- package/lib/components/pro-table/index.js +7 -0
- package/lib/components/pro-table/pro-table.d.ts +25 -0
- package/lib/components/pro-table/pro-table.js +150 -0
- package/lib/components/utils/index.d.ts +6 -0
- package/lib/components/utils/index.js +31 -0
- package/lib/context/FormProvider.d.ts +5 -0
- package/lib/context/FormProvider.js +37 -0
- package/lib/context/useComponentContext.d.ts +4 -0
- package/lib/context/useComponentContext.js +34 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +38 -0
- package/lib/index.scss +1 -0
- package/lib/shared/index.d.ts +7 -0
- package/lib/shared/index.js +48 -0
- package/lib/style.js +18 -0
- package/lib/variables.d.ts +2 -0
- package/lib/variables.js +5 -0
- package/lib/variables.scss +51 -0
- package/lowcode/auto-complete/meta.ts +1159 -0
- package/lowcode/combobox/meta.ts +10330 -0
- package/lowcode/component-provider/meta.ts +56 -0
- package/lowcode/date-picker/meta.ts +1912 -0
- package/lowcode/edit-pro-table/actionColumnFields.ts +265 -0
- package/lowcode/edit-pro-table/meta.ts +642 -0
- package/lowcode/edit-pro-table/snippets.ts +20 -0
- package/lowcode/form-provider/meta.ts +78 -0
- package/lowcode/group/meta.ts +333 -0
- package/lowcode/month-picker/meta.ts +9860 -0
- package/lowcode/next-text/meta.ts +180 -0
- package/lowcode/next-text/snippets.ts +27 -0
- package/lowcode/option/meta.ts +364 -0
- package/lowcode/option-group/meta.ts +259 -0
- package/lowcode/password/meta.ts +1121 -0
- package/lowcode/print-button/iconprint.png +0 -0
- package/lowcode/print-button/meta.ts +168 -0
- package/lowcode/print-button/printer.svg +1 -0
- package/lowcode/pro-cascader-select/adaptor.ts +23 -0
- package/lowcode/pro-cascader-select/meta.design.ts +440 -0
- package/lowcode/pro-cascader-select/meta.ts +493 -0
- package/lowcode/pro-cascader-select/snippets.design.ts +46 -0
- package/lowcode/pro-cascader-select/snippets.ts +39 -0
- package/lowcode/pro-checkbox/meta.ts +257 -0
- package/lowcode/pro-checkbox/snippets.ts +15 -0
- package/lowcode/pro-date-picker/meta.ts +310 -0
- package/lowcode/pro-date-picker/snippets.ts +50 -0
- package/lowcode/pro-input/meta.ts +649 -0
- package/lowcode/pro-input/snippets.ts +40 -0
- package/lowcode/pro-next-text/meta.ts +182 -0
- package/lowcode/pro-next-text/snippets.ts +27 -0
- package/lowcode/pro-radio/meta.ts +105 -0
- package/lowcode/pro-radio/radio-group.png +0 -0
- package/lowcode/pro-radio/snippets.ts +42 -0
- package/lowcode/pro-radio-group/meta.ts +291 -0
- package/lowcode/pro-select/meta.design.ts +231 -0
- package/lowcode/pro-select/meta.ts +316 -0
- package/lowcode/pro-select/snippets.design.ts +37 -0
- package/lowcode/pro-select/snippets.ts +29 -0
- package/lowcode/pro-select-option/meta.ts +36 -0
- package/lowcode/pro-table/meta.ts +437 -0
- package/lowcode/pro-table/snippets.ts +20 -0
- package/lowcode/pro-text-area/meta.ts +454 -0
- package/lowcode/pro-time-picker/meta.ts +361 -0
- package/lowcode/pro-time-picker/snippets.ts +18 -0
- package/lowcode/quarter-picker/meta.ts +1559 -0
- package/lowcode/range-picker/meta.ts +10097 -0
- package/lowcode/text-area/meta.ts +823 -0
- package/lowcode/time-picker/meta.ts +1636 -0
- package/lowcode/utils/component-wrapper.ts +36 -0
- package/lowcode/utils/index.ts +81 -0
- package/lowcode/utils/parse-data.ts +113 -0
- package/lowcode/week-picker/meta.ts +9781 -0
- package/lowcode/year-picker/meta.ts +9829 -0
- package/lowcode_es/auto-complete/meta.d.ts +22 -0
- package/lowcode_es/auto-complete/meta.js +1046 -0
- package/lowcode_es/combobox/meta.d.ts +22 -0
- package/lowcode_es/combobox/meta.js +1 -0
- package/lowcode_es/component-provider/meta.d.ts +22 -0
- package/lowcode_es/component-provider/meta.js +48 -0
- package/lowcode_es/date-picker/meta.d.ts +22 -0
- package/lowcode_es/date-picker/meta.js +1722 -0
- package/lowcode_es/edit-pro-table/actionColumnFields.d.ts +12 -0
- package/lowcode_es/edit-pro-table/actionColumnFields.js +232 -0
- package/lowcode_es/edit-pro-table/meta.d.ts +22 -0
- package/lowcode_es/edit-pro-table/meta.js +591 -0
- package/lowcode_es/edit-pro-table/snippets.d.ts +2 -0
- package/lowcode_es/edit-pro-table/snippets.js +16 -0
- package/lowcode_es/form-provider/meta.d.ts +22 -0
- package/lowcode_es/form-provider/meta.js +69 -0
- package/lowcode_es/group/meta.d.ts +22 -0
- package/lowcode_es/group/meta.js +301 -0
- package/lowcode_es/meta.js +194 -0
- package/lowcode_es/month-picker/meta.d.ts +22 -0
- package/lowcode_es/month-picker/meta.js +9064 -0
- package/lowcode_es/next-text/meta.js +154 -0
- package/lowcode_es/next-text/snippets.js +25 -0
- package/lowcode_es/option/meta.d.ts +22 -0
- package/lowcode_es/option/meta.js +325 -0
- package/lowcode_es/option-group/meta.d.ts +22 -0
- package/lowcode_es/option-group/meta.js +231 -0
- package/lowcode_es/password/meta.d.ts +22 -0
- package/lowcode_es/password/meta.js +1026 -0
- package/lowcode_es/print-button/iconprint.png +0 -0
- package/lowcode_es/print-button/meta.d.ts +22 -0
- package/lowcode_es/print-button/meta.js +143 -0
- package/lowcode_es/print-button/printer.svg +1 -0
- package/lowcode_es/pro-cascader-select/adaptor.d.ts +1 -0
- package/lowcode_es/pro-cascader-select/adaptor.js +29 -0
- package/lowcode_es/pro-cascader-select/meta.d.ts +287 -0
- package/lowcode_es/pro-cascader-select/meta.design.d.ts +304 -0
- package/lowcode_es/pro-cascader-select/meta.design.js +388 -0
- package/lowcode_es/pro-cascader-select/meta.js +435 -0
- package/lowcode_es/pro-cascader-select/snippets.d.ts +25 -0
- package/lowcode_es/pro-cascader-select/snippets.design.d.ts +38 -0
- package/lowcode_es/pro-cascader-select/snippets.design.js +44 -0
- package/lowcode_es/pro-cascader-select/snippets.js +30 -0
- package/lowcode_es/pro-checkbox/meta.d.ts +164 -0
- package/lowcode_es/pro-checkbox/meta.js +230 -0
- package/lowcode_es/pro-checkbox/snippets.d.ts +12 -0
- package/lowcode_es/pro-checkbox/snippets.js +13 -0
- package/lowcode_es/pro-date-picker/meta.d.ts +119 -0
- package/lowcode_es/pro-date-picker/meta.js +278 -0
- package/lowcode_es/pro-date-picker/snippets.d.ts +9 -0
- package/lowcode_es/pro-date-picker/snippets.js +49 -0
- package/lowcode_es/pro-input/meta.d.ts +273 -0
- package/lowcode_es/pro-input/meta.js +585 -0
- package/lowcode_es/pro-input/snippets.d.ts +14 -0
- package/lowcode_es/pro-input/snippets.js +39 -0
- package/lowcode_es/pro-next-text/meta.d.ts +130 -0
- package/lowcode_es/pro-next-text/meta.js +155 -0
- package/lowcode_es/pro-next-text/snippets.d.ts +12 -0
- package/lowcode_es/pro-next-text/snippets.js +25 -0
- package/lowcode_es/pro-radio/meta.d.ts +50 -0
- package/lowcode_es/pro-radio/meta.js +87 -0
- package/lowcode_es/pro-radio/radio-group.png +0 -0
- package/lowcode_es/pro-radio/snippets.d.ts +14 -0
- package/lowcode_es/pro-radio/snippets.js +35 -0
- package/lowcode_es/pro-radio-group/meta.d.ts +192 -0
- package/lowcode_es/pro-radio-group/meta.js +263 -0
- package/lowcode_es/pro-select/meta.d.ts +271 -0
- package/lowcode_es/pro-select/meta.design.d.ts +220 -0
- package/lowcode_es/pro-select/meta.design.js +216 -0
- package/lowcode_es/pro-select/meta.js +288 -0
- package/lowcode_es/pro-select/snippets.d.ts +17 -0
- package/lowcode_es/pro-select/snippets.design.d.ts +17 -0
- package/lowcode_es/pro-select/snippets.design.js +34 -0
- package/lowcode_es/pro-select/snippets.js +22 -0
- package/lowcode_es/pro-select-option/meta.js +33 -0
- package/lowcode_es/pro-table/meta.d.ts +22 -0
- package/lowcode_es/pro-table/meta.js +449 -0
- package/lowcode_es/pro-table/snippets.d.ts +2 -0
- package/lowcode_es/pro-table/snippets.js +16 -0
- package/lowcode_es/pro-text-area/meta.d.ts +245 -0
- package/lowcode_es/pro-text-area/meta.js +414 -0
- package/lowcode_es/pro-time-picker/meta.d.ts +244 -0
- package/lowcode_es/pro-time-picker/meta.js +318 -0
- package/lowcode_es/pro-time-picker/snippets.d.ts +16 -0
- package/lowcode_es/pro-time-picker/snippets.js +15 -0
- package/lowcode_es/quarter-picker/meta.d.ts +22 -0
- package/lowcode_es/quarter-picker/meta.js +1407 -0
- package/lowcode_es/range-picker/meta.d.ts +22 -0
- package/lowcode_es/range-picker/meta.js +9281 -0
- package/lowcode_es/text-area/meta.d.ts +22 -0
- package/lowcode_es/text-area/meta.js +736 -0
- package/lowcode_es/time-picker/meta.d.ts +22 -0
- package/lowcode_es/time-picker/meta.js +1475 -0
- package/lowcode_es/utils/component-wrapper.d.ts +11 -0
- package/lowcode_es/utils/component-wrapper.js +38 -0
- package/lowcode_es/utils/index.d.ts +10 -0
- package/lowcode_es/utils/index.js +79 -0
- package/lowcode_es/utils/parse-data.d.ts +25 -0
- package/lowcode_es/utils/parse-data.js +89 -0
- package/lowcode_es/view.js +18 -0
- package/lowcode_es/week-picker/meta.d.ts +22 -0
- package/lowcode_es/week-picker/meta.js +8989 -0
- package/lowcode_es/year-picker/meta.d.ts +22 -0
- package/lowcode_es/year-picker/meta.js +9035 -0
- package/lowcode_lib/auto-complete/meta.d.ts +22 -0
- package/lowcode_lib/auto-complete/meta.js +1051 -0
- package/lowcode_lib/combobox/meta.d.ts +22 -0
- package/lowcode_lib/combobox/meta.js +1 -0
- package/lowcode_lib/component-provider/meta.d.ts +22 -0
- package/lowcode_lib/component-provider/meta.js +53 -0
- package/lowcode_lib/date-picker/meta.d.ts +22 -0
- package/lowcode_lib/date-picker/meta.js +1727 -0
- package/lowcode_lib/edit-pro-table/actionColumnFields.d.ts +12 -0
- package/lowcode_lib/edit-pro-table/actionColumnFields.js +237 -0
- package/lowcode_lib/edit-pro-table/meta.d.ts +22 -0
- package/lowcode_lib/edit-pro-table/meta.js +596 -0
- package/lowcode_lib/edit-pro-table/snippets.d.ts +2 -0
- package/lowcode_lib/edit-pro-table/snippets.js +20 -0
- package/lowcode_lib/form-provider/meta.d.ts +22 -0
- package/lowcode_lib/form-provider/meta.js +74 -0
- package/lowcode_lib/group/meta.d.ts +22 -0
- package/lowcode_lib/group/meta.js +306 -0
- package/lowcode_lib/meta.js +198 -0
- package/lowcode_lib/month-picker/meta.d.ts +22 -0
- package/lowcode_lib/month-picker/meta.js +9069 -0
- package/lowcode_lib/next-text/meta.js +156 -0
- package/lowcode_lib/next-text/snippets.js +27 -0
- package/lowcode_lib/option/meta.d.ts +22 -0
- package/lowcode_lib/option/meta.js +330 -0
- package/lowcode_lib/option-group/meta.d.ts +22 -0
- package/lowcode_lib/option-group/meta.js +236 -0
- package/lowcode_lib/password/meta.d.ts +22 -0
- package/lowcode_lib/password/meta.js +1031 -0
- package/lowcode_lib/print-button/iconprint.png +0 -0
- package/lowcode_lib/print-button/meta.d.ts +22 -0
- package/lowcode_lib/print-button/meta.js +148 -0
- package/lowcode_lib/print-button/printer.svg +1 -0
- package/lowcode_lib/pro-cascader-select/adaptor.d.ts +1 -0
- package/lowcode_lib/pro-cascader-select/adaptor.js +32 -0
- package/lowcode_lib/pro-cascader-select/meta.d.ts +287 -0
- package/lowcode_lib/pro-cascader-select/meta.design.d.ts +304 -0
- package/lowcode_lib/pro-cascader-select/meta.design.js +393 -0
- package/lowcode_lib/pro-cascader-select/meta.js +440 -0
- package/lowcode_lib/pro-cascader-select/snippets.d.ts +25 -0
- package/lowcode_lib/pro-cascader-select/snippets.design.d.ts +38 -0
- package/lowcode_lib/pro-cascader-select/snippets.design.js +49 -0
- package/lowcode_lib/pro-cascader-select/snippets.js +34 -0
- package/lowcode_lib/pro-checkbox/meta.d.ts +164 -0
- package/lowcode_lib/pro-checkbox/meta.js +235 -0
- package/lowcode_lib/pro-checkbox/snippets.d.ts +12 -0
- package/lowcode_lib/pro-checkbox/snippets.js +17 -0
- package/lowcode_lib/pro-date-picker/meta.d.ts +119 -0
- package/lowcode_lib/pro-date-picker/meta.js +283 -0
- package/lowcode_lib/pro-date-picker/snippets.d.ts +9 -0
- package/lowcode_lib/pro-date-picker/snippets.js +53 -0
- package/lowcode_lib/pro-input/meta.d.ts +273 -0
- package/lowcode_lib/pro-input/meta.js +590 -0
- package/lowcode_lib/pro-input/snippets.d.ts +14 -0
- package/lowcode_lib/pro-input/snippets.js +43 -0
- package/lowcode_lib/pro-next-text/meta.d.ts +130 -0
- package/lowcode_lib/pro-next-text/meta.js +160 -0
- package/lowcode_lib/pro-next-text/snippets.d.ts +12 -0
- package/lowcode_lib/pro-next-text/snippets.js +29 -0
- package/lowcode_lib/pro-radio/meta.d.ts +50 -0
- package/lowcode_lib/pro-radio/meta.js +92 -0
- package/lowcode_lib/pro-radio/radio-group.png +0 -0
- package/lowcode_lib/pro-radio/snippets.d.ts +14 -0
- package/lowcode_lib/pro-radio/snippets.js +40 -0
- package/lowcode_lib/pro-radio-group/meta.d.ts +192 -0
- package/lowcode_lib/pro-radio-group/meta.js +267 -0
- package/lowcode_lib/pro-select/meta.d.ts +271 -0
- package/lowcode_lib/pro-select/meta.design.d.ts +220 -0
- package/lowcode_lib/pro-select/meta.design.js +221 -0
- package/lowcode_lib/pro-select/meta.js +293 -0
- package/lowcode_lib/pro-select/snippets.d.ts +17 -0
- package/lowcode_lib/pro-select/snippets.design.d.ts +17 -0
- package/lowcode_lib/pro-select/snippets.design.js +39 -0
- package/lowcode_lib/pro-select/snippets.js +26 -0
- package/lowcode_lib/pro-select-option/meta.js +35 -0
- package/lowcode_lib/pro-table/meta.d.ts +22 -0
- package/lowcode_lib/pro-table/meta.js +454 -0
- package/lowcode_lib/pro-table/snippets.d.ts +2 -0
- package/lowcode_lib/pro-table/snippets.js +20 -0
- package/lowcode_lib/pro-text-area/meta.d.ts +245 -0
- package/lowcode_lib/pro-text-area/meta.js +418 -0
- package/lowcode_lib/pro-time-picker/meta.d.ts +244 -0
- package/lowcode_lib/pro-time-picker/meta.js +323 -0
- package/lowcode_lib/pro-time-picker/snippets.d.ts +16 -0
- package/lowcode_lib/pro-time-picker/snippets.js +19 -0
- package/lowcode_lib/quarter-picker/meta.d.ts +22 -0
- package/lowcode_lib/quarter-picker/meta.js +1412 -0
- package/lowcode_lib/range-picker/meta.d.ts +22 -0
- package/lowcode_lib/range-picker/meta.js +9286 -0
- package/lowcode_lib/text-area/meta.d.ts +22 -0
- package/lowcode_lib/text-area/meta.js +741 -0
- package/lowcode_lib/time-picker/meta.d.ts +22 -0
- package/lowcode_lib/time-picker/meta.js +1480 -0
- package/lowcode_lib/utils/component-wrapper.d.ts +11 -0
- package/lowcode_lib/utils/component-wrapper.js +43 -0
- package/lowcode_lib/utils/index.d.ts +10 -0
- package/lowcode_lib/utils/index.js +84 -0
- package/lowcode_lib/utils/parse-data.d.ts +25 -0
- package/lowcode_lib/utils/parse-data.js +93 -0
- package/lowcode_lib/view.js +28 -0
- package/lowcode_lib/week-picker/meta.d.ts +22 -0
- package/lowcode_lib/week-picker/meta.js +8994 -0
- package/lowcode_lib/year-picker/meta.d.ts +22 -0
- package/lowcode_lib/year-picker/meta.js +9040 -0
- package/package.json +109 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var React = window.React;
|
|
3
|
+
var createContext = React.createContext,
|
|
4
|
+
useEffect = React.useEffect,
|
|
5
|
+
useMemo = React.useMemo,
|
|
6
|
+
useState = React.useState;
|
|
7
|
+
|
|
8
|
+
// FormProvider 组件
|
|
9
|
+
export var FormProvider = function FormProvider(_ref) {
|
|
10
|
+
var _ref$initialValues = _ref.initialValues,
|
|
11
|
+
initialValues = _ref$initialValues === void 0 ? {} : _ref$initialValues,
|
|
12
|
+
children = _ref.children;
|
|
13
|
+
var FormContext = createContext();
|
|
14
|
+
var _useState = useState(initialValues),
|
|
15
|
+
values = _useState[0],
|
|
16
|
+
setValues = _useState[1];
|
|
17
|
+
useEffect(function () {
|
|
18
|
+
console.log('[FormProvider] 🔄 useEffect triggered - initialValues:', initialValues);
|
|
19
|
+
setValues(function (prev) {
|
|
20
|
+
return _extends({}, prev, initialValues);
|
|
21
|
+
});
|
|
22
|
+
}, [initialValues]);
|
|
23
|
+
var contextValue = useMemo(function () {
|
|
24
|
+
return {
|
|
25
|
+
values: values,
|
|
26
|
+
initialized: true
|
|
27
|
+
};
|
|
28
|
+
}, [values]);
|
|
29
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
30
|
+
value: contextValue
|
|
31
|
+
}, children);
|
|
32
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// useComponentContext.ts
|
|
2
|
+
import { useContext, useCallback, useMemo } from 'react';
|
|
3
|
+
import { get } from 'lodash';
|
|
4
|
+
export var useComponentContext = function useComponentContext(path) {
|
|
5
|
+
var formContext = useContext();
|
|
6
|
+
|
|
7
|
+
// 使用 useMemo 缓存值
|
|
8
|
+
var value = useMemo(function () {
|
|
9
|
+
var _get;
|
|
10
|
+
console.log("[useComponentContext] \u2705 initial value for '" + path + "':", formContext, value);
|
|
11
|
+
if (!(formContext !== null && formContext !== void 0 && formContext.initialized)) return '';
|
|
12
|
+
return (_get = get(formContext.values, path)) !== null && _get !== void 0 ? _get : '';
|
|
13
|
+
}, [formContext, path]);
|
|
14
|
+
|
|
15
|
+
// 使用 useCallback 缓存 onValueChange
|
|
16
|
+
var onValueChange = useCallback(function (newValue) {
|
|
17
|
+
if (!(formContext !== null && formContext !== void 0 && formContext.setFieldValue)) return;
|
|
18
|
+
console.log("[useComponentContext] \uD83D\uDCDD onValueChange triggered for '" + path + "' -> new value:", newValue);
|
|
19
|
+
|
|
20
|
+
// 检查值是否实际变化
|
|
21
|
+
var currentValue = get(formContext.values, path);
|
|
22
|
+
if (currentValue === newValue) return;
|
|
23
|
+
formContext.setFieldValue(path, newValue);
|
|
24
|
+
}, [formContext, path]);
|
|
25
|
+
return {
|
|
26
|
+
value: value,
|
|
27
|
+
onValueChange: onValueChange
|
|
28
|
+
};
|
|
29
|
+
};
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { default as PrintButton } from './components/PrintButton';
|
|
2
|
+
export type { EditProTableProps } from './components/edit-pro-table';
|
|
3
|
+
export { default as EditProTable } from './components/edit-pro-table';
|
|
4
|
+
export type { ProTableProps } from './components/pro-table';
|
|
5
|
+
export { default as ProTable } from './components/pro-table';
|
|
6
|
+
export { default as ProNextText } from './components/ProNextText';
|
|
7
|
+
export { default as ProInput } from './components/ProInput';
|
|
8
|
+
export { default as ProDatePicker } from './components/ProDatePicker';
|
|
9
|
+
export { default as ProTimePicker } from './components/ProTimePicker';
|
|
10
|
+
export { default as ProTextArea } from './components/ProTextArea';
|
|
11
|
+
export { default as ProCheckbox } from './components/ProCheckbox';
|
|
12
|
+
export { default as ProSelect } from './components/ProSelect';
|
|
13
|
+
export { default as ProRadio } from './components/ProRadio';
|
|
14
|
+
export { default as ProCascaderSelect } from './components/ProCascaderSelect';
|
|
15
|
+
export { DatePicker, TimePicker } from 'antd';
|
|
16
|
+
export { getFormContext, initializeFormContext, FormProvider } from './context/FormProvider';
|
|
17
|
+
export { useComponentContext } from './context/useComponentContext';
|
package/es/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as PrintButton } from "./components/PrintButton";
|
|
2
|
+
export { default as EditProTable } from "./components/edit-pro-table";
|
|
3
|
+
export { default as ProTable } from "./components/pro-table";
|
|
4
|
+
export { default as ProNextText } from "./components/ProNextText";
|
|
5
|
+
export { default as ProInput } from "./components/ProInput";
|
|
6
|
+
export { default as ProDatePicker } from "./components/ProDatePicker";
|
|
7
|
+
export { default as ProTimePicker } from "./components/ProTimePicker";
|
|
8
|
+
export { default as ProTextArea } from "./components/ProTextArea";
|
|
9
|
+
export { default as ProCheckbox } from "./components/ProCheckbox";
|
|
10
|
+
export { default as ProSelect } from "./components/ProSelect";
|
|
11
|
+
export { default as ProRadio } from "./components/ProRadio";
|
|
12
|
+
export { default as ProCascaderSelect } from "./components/ProCascaderSelect";
|
|
13
|
+
export { DatePicker, TimePicker } from 'antd';
|
|
14
|
+
export { getFormContext, initializeFormContext, FormProvider } from "./context/FormProvider";
|
|
15
|
+
export { useComponentContext } from "./context/useComponentContext";
|
package/es/index.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function uuid(): string;
|
|
2
|
+
export declare const getType: (obj: any) => any;
|
|
3
|
+
export declare const isPlainObj: (obj: unknown) => obj is object;
|
|
4
|
+
/**
|
|
5
|
+
* 由 ref 代理 targetRef 上的方法
|
|
6
|
+
*/
|
|
7
|
+
export declare const defineGetterProperties: (ref: any, targetRef: any) => any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export function uuid() {
|
|
2
|
+
return Math.random().toString(36).substring(2);
|
|
3
|
+
}
|
|
4
|
+
var isType = function isType(type) {
|
|
5
|
+
return function (obj) {
|
|
6
|
+
return obj != null && (Array.isArray(type) ? type : [type]).some(function (t) {
|
|
7
|
+
return getType(obj) === "[object " + t + "]";
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export var getType = function getType(obj) {
|
|
12
|
+
return Object.prototype.toString.call(obj);
|
|
13
|
+
};
|
|
14
|
+
export var isPlainObj = isType('Object');
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 由 ref 代理 targetRef 上的方法
|
|
18
|
+
*/
|
|
19
|
+
export var defineGetterProperties = function defineGetterProperties(ref, targetRef) {
|
|
20
|
+
if (!targetRef) return;
|
|
21
|
+
if (!Array.isArray(targetRef)) {
|
|
22
|
+
targetRef = [targetRef];
|
|
23
|
+
}
|
|
24
|
+
targetRef.filter(Boolean).forEach(function (r) {
|
|
25
|
+
var _r$current;
|
|
26
|
+
Object.defineProperties(ref, Object.keys((_r$current = r === null || r === void 0 ? void 0 : r.current) !== null && _r$current !== void 0 ? _r$current : {}).reduce(function (out, key) {
|
|
27
|
+
var property = r.current[key];
|
|
28
|
+
var getter = function getter() {
|
|
29
|
+
return property;
|
|
30
|
+
};
|
|
31
|
+
if (typeof property === 'function') {
|
|
32
|
+
getter = function getter() {
|
|
33
|
+
return property.bind(r.current);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
out[key] = {
|
|
37
|
+
get: getter
|
|
38
|
+
};
|
|
39
|
+
return out;
|
|
40
|
+
}, {}));
|
|
41
|
+
});
|
|
42
|
+
return ref;
|
|
43
|
+
};
|
package/es/style.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '@alifd/next/es/button/style';
|
|
2
|
+
import 'antd/es/message/style';
|
|
3
|
+
import 'antd/es/button/style';
|
|
4
|
+
import 'antd/es/card/style';
|
|
5
|
+
import 'antd/es/space/style';
|
|
6
|
+
import 'antd/es/popconfirm/style';
|
|
7
|
+
import 'antd/es/form/style';
|
|
8
|
+
import 'antd/es/modal/style';
|
|
9
|
+
import 'antd/es/upload/style';
|
|
10
|
+
import '@alifd/next/es/icon/style';
|
|
11
|
+
import '@alifd/next/es/input/style';
|
|
12
|
+
import '@alifd/next/es/date-picker/style';
|
|
13
|
+
import '@alifd/next/es/time-picker/style';
|
|
14
|
+
import '@alifd/next/es/checkbox/style';
|
|
15
|
+
import '@alifd/next/es/select/style';
|
|
16
|
+
import '@alifd/next/es/radio/style';
|
|
17
|
+
import '@alifd/next/es/cascader-select/style';
|
|
18
|
+
import './index.scss';
|
package/es/variables.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import '~@alifd/next/variables.scss';
|
|
2
|
+
|
|
3
|
+
$biz-css-prefix: '.bizpack';
|
|
4
|
+
|
|
5
|
+
.ant-pro, .fd-layout-p.fd-layout-p-spacing .ant-pro {
|
|
6
|
+
width: 100%;
|
|
7
|
+
.ant-pro-card .ant-pro-card-body {
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.th-bold {
|
|
13
|
+
.ant-table-thead .ant-table-cell {
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.th-font-default {
|
|
18
|
+
.ant-table-thead .ant-table-cell {
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.th-font-middle {
|
|
23
|
+
.ant-table-thead .ant-table-cell {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.th-font-large {
|
|
28
|
+
.ant-table-thead .ant-table-cell {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.field-wrapper {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
position: relative;
|
|
36
|
+
|
|
37
|
+
&.disable-edit {
|
|
38
|
+
&:after {
|
|
39
|
+
content: '';
|
|
40
|
+
display: block;
|
|
41
|
+
position: absolute;
|
|
42
|
+
z-index: 999;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
background-color: rgba(0,0,0,.1);
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
|
+
var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _message2 = _interopRequireDefault(require("antd/lib/message"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var _utils = require("../utils");
|
|
13
|
+
var _excluded = ["text", "printId"];
|
|
14
|
+
var React = window.React;
|
|
15
|
+
var createElement = React.createElement,
|
|
16
|
+
useEffect = React.useEffect,
|
|
17
|
+
useRef = React.useRef,
|
|
18
|
+
useState = React.useState;
|
|
19
|
+
var logicParamListUrl = _utils.baseUrl + "/modules/print/printFormManage/logicDesignParamList";
|
|
20
|
+
var PrintButton = function PrintButton(props) {
|
|
21
|
+
var text = props.text,
|
|
22
|
+
printId = props.printId,
|
|
23
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
24
|
+
useEffect(function () {
|
|
25
|
+
console.log('printId', printId);
|
|
26
|
+
}, [printId]);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 筛选打印字段,组装数据
|
|
30
|
+
* 筛选出customType为3和4的:3是屏幕结构,4是屏幕内表
|
|
31
|
+
*/
|
|
32
|
+
var getPrintParamList = function getPrintParamList(data) {
|
|
33
|
+
var paramItemList = {};
|
|
34
|
+
var filterData = data.filter(function (item) {
|
|
35
|
+
return +item.customType === 3 || +item.customType === 4;
|
|
36
|
+
});
|
|
37
|
+
window.generateStructureForm && window.generateStructureForm(); // 每个屏幕结构增加了data属性
|
|
38
|
+
window.screenParamItemList && Object.keys(window.screenParamItemList).forEach(function (key) {
|
|
39
|
+
var paramItem = filterData.find(function (item) {
|
|
40
|
+
return item.paramName === key;
|
|
41
|
+
});
|
|
42
|
+
if (paramItem) {
|
|
43
|
+
paramItemList[key] = window.screenParamItemList[key];
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
return paramItemList;
|
|
47
|
+
};
|
|
48
|
+
var handleClick = /*#__PURE__*/function () {
|
|
49
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
50
|
+
var res, paramItemList, data, _t;
|
|
51
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
52
|
+
while (1) switch (_context.prev = _context.next) {
|
|
53
|
+
case 0:
|
|
54
|
+
if (printId) {
|
|
55
|
+
_context.next = 1;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
_message2["default"].warning('请先设置打印配置');
|
|
59
|
+
// console.error('printId is required');
|
|
60
|
+
return _context.abrupt("return");
|
|
61
|
+
case 1:
|
|
62
|
+
_context.prev = 1;
|
|
63
|
+
_context.next = 2;
|
|
64
|
+
return fetch(logicParamListUrl + "?printFormId=" + printId, {
|
|
65
|
+
headers: {
|
|
66
|
+
Authorization: "Bearer " + (window.token || localStorage.getItem('token'))
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
case 2:
|
|
70
|
+
res = _context.sent;
|
|
71
|
+
paramItemList = {};
|
|
72
|
+
_context.next = 3;
|
|
73
|
+
return res.json();
|
|
74
|
+
case 3:
|
|
75
|
+
data = _context.sent;
|
|
76
|
+
if (data && data.length) {
|
|
77
|
+
paramItemList = getPrintParamList(data);
|
|
78
|
+
}
|
|
79
|
+
window.parent && window.parent.printById && window.parent.printById(printId, {
|
|
80
|
+
paramItemList: paramItemList
|
|
81
|
+
});
|
|
82
|
+
_context.next = 5;
|
|
83
|
+
break;
|
|
84
|
+
case 4:
|
|
85
|
+
_context.prev = 4;
|
|
86
|
+
_t = _context["catch"](1);
|
|
87
|
+
console.error('请求出错:', _t);
|
|
88
|
+
case 5:
|
|
89
|
+
case "end":
|
|
90
|
+
return _context.stop();
|
|
91
|
+
}
|
|
92
|
+
}, _callee, null, [[1, 4]]);
|
|
93
|
+
}));
|
|
94
|
+
return function handleClick() {
|
|
95
|
+
return _ref.apply(this, arguments);
|
|
96
|
+
};
|
|
97
|
+
}();
|
|
98
|
+
return /*#__PURE__*/React.createElement(_button["default"], (0, _extends2["default"])({}, otherProps, {
|
|
99
|
+
onClick: handleClick
|
|
100
|
+
}), text);
|
|
101
|
+
};
|
|
102
|
+
var _default = exports["default"] = PrintButton;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _cascaderSelect = _interopRequireDefault(require("@alifd/next/lib/cascader-select"));
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useComponentContext2 = require("../../context/useComponentContext");
|
|
11
|
+
var _excluded = ["screen_structure", "screen_structure_field", "screen_inner_id", "dataSource", "defaultValue", "disableEdit"];
|
|
12
|
+
var React = window.React;
|
|
13
|
+
var createElement = React.createElement,
|
|
14
|
+
useEffect = React.useEffect,
|
|
15
|
+
useRef = React.useRef,
|
|
16
|
+
useState = React.useState;
|
|
17
|
+
var ProCascaderSelect = function ProCascaderSelect(props) {
|
|
18
|
+
var screen_structure = props.screen_structure,
|
|
19
|
+
screen_structure_field = props.screen_structure_field,
|
|
20
|
+
screen_inner_id = props.screen_inner_id,
|
|
21
|
+
dataSource = props.dataSource,
|
|
22
|
+
defaultValue = props.defaultValue,
|
|
23
|
+
disableEdit = props.disableEdit,
|
|
24
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
25
|
+
var _getStructureFieldNam = (0, _utils.getStructureFieldName)(screen_structure, screen_structure_field),
|
|
26
|
+
structureName = _getStructureFieldNam.structureName,
|
|
27
|
+
structureField = _getStructureFieldNam.structureField;
|
|
28
|
+
var fieldPath = structureName + "." + structureField;
|
|
29
|
+
var _useComponentContext = (0, _useComponentContext2.useComponentContext)(fieldPath),
|
|
30
|
+
value = _useComponentContext.value,
|
|
31
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
32
|
+
console.log('ProCascaderSelect useComponentContext value', value, fieldPath);
|
|
33
|
+
// console.log('otherProps', otherProps);
|
|
34
|
+
|
|
35
|
+
var handleChange = function handleChange(newValue) {
|
|
36
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
37
|
+
if (onValueChange) {
|
|
38
|
+
onValueChange(newValue);
|
|
39
|
+
}
|
|
40
|
+
// 触发标准 onChange
|
|
41
|
+
if (props.onChange) {
|
|
42
|
+
props.onChange(newValue, structureName, structureField);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
46
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
47
|
+
}, /*#__PURE__*/React.createElement(_cascaderSelect["default"], (0, _extends2["default"])({}, props, {
|
|
48
|
+
value: value,
|
|
49
|
+
onChange: handleChange,
|
|
50
|
+
dataSource: dataSource
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
var _default = exports["default"] = ProCascaderSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Checkbox } from '@alifd/next';
|
|
2
|
+
/**
|
|
3
|
+
* ProCheckbox
|
|
4
|
+
* @description 复选按钮
|
|
5
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
6
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
7
|
+
* @param {string} screen_structure 屏幕结构
|
|
8
|
+
* @param {string} dataSource 数据源
|
|
9
|
+
* @param {string} checkedValue 选中值
|
|
10
|
+
* @param {string} defaultChecked 默认选中
|
|
11
|
+
* @param {string} checked 是否选中
|
|
12
|
+
*/
|
|
13
|
+
declare const ProCheckbox: typeof Checkbox;
|
|
14
|
+
export default ProCheckbox;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _checkbox = _interopRequireDefault(require("@alifd/next/lib/checkbox"));
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useComponentContext2 = require("../../context/useComponentContext");
|
|
11
|
+
var _excluded = ["screen_structure", "screen_structure_field", "screen_inner_id", "checkedValue", "checked", "disableEdit"];
|
|
12
|
+
var React = window.React;
|
|
13
|
+
var createElement = React.createElement,
|
|
14
|
+
useEffect = React.useEffect,
|
|
15
|
+
useRef = React.useRef,
|
|
16
|
+
useState = React.useState;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* ProCheckbox
|
|
20
|
+
* @description 复选按钮
|
|
21
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
22
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
23
|
+
* @param {string} screen_structure 屏幕结构
|
|
24
|
+
* @param {string} dataSource 数据源
|
|
25
|
+
* @param {string} checkedValue 选中值
|
|
26
|
+
* @param {string} defaultChecked 默认选中
|
|
27
|
+
* @param {string} checked 是否选中
|
|
28
|
+
*/
|
|
29
|
+
var ProCheckbox = function ProCheckbox(props) {
|
|
30
|
+
var screen_structure = props.screen_structure,
|
|
31
|
+
screen_structure_field = props.screen_structure_field,
|
|
32
|
+
screen_inner_id = props.screen_inner_id,
|
|
33
|
+
checkedValue = props.checkedValue,
|
|
34
|
+
checked = props.checked,
|
|
35
|
+
disableEdit = props.disableEdit,
|
|
36
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
37
|
+
var _getStructureFieldNam = (0, _utils.getStructureFieldName)(screen_structure, screen_structure_field),
|
|
38
|
+
structureName = _getStructureFieldNam.structureName,
|
|
39
|
+
structureField = _getStructureFieldNam.structureField;
|
|
40
|
+
var fieldPath = structureName + "." + structureField;
|
|
41
|
+
var _useComponentContext = (0, _useComponentContext2.useComponentContext)(fieldPath),
|
|
42
|
+
value = _useComponentContext.value,
|
|
43
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
44
|
+
console.log('ProCheckbox useComponentContext value', value, fieldPath);
|
|
45
|
+
// console.log('otherProps', otherProps);
|
|
46
|
+
|
|
47
|
+
var handleChange = function handleChange(newValue) {
|
|
48
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
49
|
+
if (onValueChange) {
|
|
50
|
+
onValueChange(newValue);
|
|
51
|
+
}
|
|
52
|
+
// 触发标准 onChange
|
|
53
|
+
if (props.onChange) {
|
|
54
|
+
props.onChange(newValue, structureName, structureField);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
58
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
59
|
+
}, /*#__PURE__*/React.createElement(_checkbox["default"], (0, _extends2["default"])({}, props, {
|
|
60
|
+
checked: value,
|
|
61
|
+
onChange: handleChange
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
var _default = exports["default"] = ProCheckbox;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _datePicker = _interopRequireDefault(require("@alifd/next/lib/date-picker"));
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useComponentContext2 = require("../../context/useComponentContext");
|
|
11
|
+
var _excluded = ["screen_structure", "screen_structure_field", "defaultValue", "disableEdit"];
|
|
12
|
+
var React = window.React;
|
|
13
|
+
var createElement = React.createElement,
|
|
14
|
+
useEffect = React.useEffect,
|
|
15
|
+
useRef = React.useRef,
|
|
16
|
+
useState = React.useState;
|
|
17
|
+
var ProDatePicker = function ProDatePicker(props) {
|
|
18
|
+
var screen_structure = props.screen_structure,
|
|
19
|
+
screen_structure_field = props.screen_structure_field,
|
|
20
|
+
defaultValue = props.defaultValue,
|
|
21
|
+
disableEdit = props.disableEdit,
|
|
22
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
23
|
+
var _getStructureFieldNam = (0, _utils.getStructureFieldName)(screen_structure, screen_structure_field),
|
|
24
|
+
structureName = _getStructureFieldNam.structureName,
|
|
25
|
+
structureField = _getStructureFieldNam.structureField;
|
|
26
|
+
var fieldPath = structureName + "." + structureField;
|
|
27
|
+
var _useComponentContext = (0, _useComponentContext2.useComponentContext)(fieldPath),
|
|
28
|
+
value = _useComponentContext.value,
|
|
29
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
30
|
+
console.log('ProDatePicker useComponentContext value', value, fieldPath);
|
|
31
|
+
// console.log('otherProps', otherProps);
|
|
32
|
+
|
|
33
|
+
var handleChange = function handleChange(newValue) {
|
|
34
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
35
|
+
if (onValueChange) {
|
|
36
|
+
onValueChange(newValue);
|
|
37
|
+
}
|
|
38
|
+
// 触发标准 onChange
|
|
39
|
+
if (props.onChange) {
|
|
40
|
+
props.onChange(newValue, structureName, structureField);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_datePicker["default"], (0, _extends2["default"])({}, props, {
|
|
46
|
+
value: value,
|
|
47
|
+
onChange: handleChange
|
|
48
|
+
})));
|
|
49
|
+
};
|
|
50
|
+
var _default = exports["default"] = ProDatePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Input } from '@alifd/next';
|
|
2
|
+
/**
|
|
3
|
+
* ProInput
|
|
4
|
+
* @description 输入框组件
|
|
5
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
6
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
7
|
+
* @param {string} screen_structure 屏幕结构
|
|
8
|
+
*/
|
|
9
|
+
declare const ProInput: typeof Input;
|
|
10
|
+
export default ProInput;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _input = _interopRequireDefault(require("@alifd/next/lib/input"));
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
var _useComponentContext2 = require("../../context/useComponentContext");
|
|
11
|
+
var _excluded = ["screen_structure", "screen_structure_field", "screen_inner_id", "disableEdit"];
|
|
12
|
+
var React = window.React;
|
|
13
|
+
var createElement = React.createElement,
|
|
14
|
+
useEffect = React.useEffect,
|
|
15
|
+
useRef = React.useRef,
|
|
16
|
+
useState = React.useState;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* ProInput
|
|
20
|
+
* @description 输入框组件
|
|
21
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
22
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
23
|
+
* @param {string} screen_structure 屏幕结构
|
|
24
|
+
*/
|
|
25
|
+
var ProInput = function ProInput(props) {
|
|
26
|
+
var screen_structure = props.screen_structure,
|
|
27
|
+
screen_structure_field = props.screen_structure_field,
|
|
28
|
+
screen_inner_id = props.screen_inner_id,
|
|
29
|
+
disableEdit = props.disableEdit,
|
|
30
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
31
|
+
var _getStructureFieldNam = (0, _utils.getStructureFieldName)(screen_structure, screen_structure_field),
|
|
32
|
+
structureName = _getStructureFieldNam.structureName,
|
|
33
|
+
structureField = _getStructureFieldNam.structureField;
|
|
34
|
+
var fieldPath = structureName + "." + structureField;
|
|
35
|
+
var _useComponentContext = (0, _useComponentContext2.useComponentContext)(fieldPath),
|
|
36
|
+
value = _useComponentContext.value,
|
|
37
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
38
|
+
console.log('ProInput useComponentContext value', value, fieldPath);
|
|
39
|
+
// console.log('otherProps', otherProps);
|
|
40
|
+
|
|
41
|
+
var handleChange = function handleChange(newValue) {
|
|
42
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
43
|
+
if (onValueChange) {
|
|
44
|
+
onValueChange(newValue);
|
|
45
|
+
}
|
|
46
|
+
// 触发标准 onChange
|
|
47
|
+
if (props.onChange) {
|
|
48
|
+
props.onChange(newValue, structureName, structureField);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
52
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
53
|
+
}, /*#__PURE__*/React.createElement(_input["default"], (0, _extends2["default"])({}, props, {
|
|
54
|
+
value: value,
|
|
55
|
+
onChange: handleChange
|
|
56
|
+
})));
|
|
57
|
+
};
|
|
58
|
+
var _default = exports["default"] = ProInput;
|