@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,283 @@
|
|
|
1
|
+
$css-prefix: '.next-';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--s-base: 4px;
|
|
5
|
+
--s-compact: calc(var(--s-base) * 50);
|
|
6
|
+
--s-comfortable: calc(var(--s-base) * 80);
|
|
7
|
+
--s-luxury: calc(var(--s-base) * 160);
|
|
8
|
+
--s-1: 4px;
|
|
9
|
+
--s-2: 8px;
|
|
10
|
+
--s-3: 12px;
|
|
11
|
+
--s-4: 16px;
|
|
12
|
+
--s-5: 20px;
|
|
13
|
+
--s-6: 24px;
|
|
14
|
+
--s-7: 28px;
|
|
15
|
+
--s-8: 32px;
|
|
16
|
+
--s-9: 36px;
|
|
17
|
+
--s-10: 40px;
|
|
18
|
+
|
|
19
|
+
/* font */
|
|
20
|
+
--font-family: Roboto, 'Helvetica Neue', Helvetica, Tahoma, Arial, 'PingFang SC',
|
|
21
|
+
'Microsoft YaHei';
|
|
22
|
+
--p-h1-font-size: 56px;
|
|
23
|
+
--p-h1-icon-size: 56px;
|
|
24
|
+
--p-h1-font-weight: 900;
|
|
25
|
+
--p-h1-line-height: 64px;
|
|
26
|
+
--p-h1-margin-top: var(--s-9);
|
|
27
|
+
--p-h1-margin-bottom: var(--s-1);
|
|
28
|
+
|
|
29
|
+
--p-h2-font-size: 48px;
|
|
30
|
+
--p-h2-icon-size: 48px;
|
|
31
|
+
--p-h2-font-weight: 800;
|
|
32
|
+
--p-h2-line-height: 52px;
|
|
33
|
+
--p-h2-margin-top: var(--s-8);
|
|
34
|
+
--p-h2-margin-bottom: var(--s-1);
|
|
35
|
+
|
|
36
|
+
--p-h3-font-size: 36px;
|
|
37
|
+
--p-h3-icon-size: 36px;
|
|
38
|
+
--p-h3-font-weight: 700;
|
|
39
|
+
--p-h3-line-height: 44px;
|
|
40
|
+
--p-h3-margin-top: var(--s-7);
|
|
41
|
+
--p-h3-margin-bottom: var(--s-1);
|
|
42
|
+
|
|
43
|
+
--p-h4-font-size: 24px;
|
|
44
|
+
--p-h4-icon-size: 24px;
|
|
45
|
+
--p-h4-font-weight: 600;
|
|
46
|
+
--p-h4-line-height: 32px;
|
|
47
|
+
--p-h4-margin-top: var(--s-5);
|
|
48
|
+
--p-h4-margin-bottom: var(--s-2);
|
|
49
|
+
|
|
50
|
+
--p-h5-font-size: 20px;
|
|
51
|
+
--p-h5-icon-size: 20px;
|
|
52
|
+
--p-h5-font-weight: 500;
|
|
53
|
+
--p-h5-line-height: 28px;
|
|
54
|
+
--p-h5-margin-top: var(--s-4); // 上下不一定相等
|
|
55
|
+
--p-h5-margin-bottom: var(--s-1);
|
|
56
|
+
|
|
57
|
+
/* large */
|
|
58
|
+
--p-h6-font-size: 16px;
|
|
59
|
+
--p-h6-icon-size: 16px;
|
|
60
|
+
--p-h6-font-weight: 400;
|
|
61
|
+
--p-h6-line-height: 24px;
|
|
62
|
+
--p-h6-margin-top: var(--s-4);
|
|
63
|
+
--p-h6-margin-bottom: var(--s-1);
|
|
64
|
+
|
|
65
|
+
--p-body1-font-size: 16px;
|
|
66
|
+
--p-body1-icon-size: 16px;
|
|
67
|
+
--p-body1-font-weight: 400;
|
|
68
|
+
--p-body1-line-height: 24px;
|
|
69
|
+
--p-body1-margin-top: var(--s-3);
|
|
70
|
+
--p-body1-margin-bottom: var(--s-1);
|
|
71
|
+
--p-body1-indent-size: var(--s-2);
|
|
72
|
+
|
|
73
|
+
/* medium */
|
|
74
|
+
--p-body2-font-size: 14px;
|
|
75
|
+
--p-body2-icon-size: 14px;
|
|
76
|
+
--p-body2-font-weight: 400;
|
|
77
|
+
--p-body2-line-height: 22px;
|
|
78
|
+
--p-body2-margin-top: var(--s-2);
|
|
79
|
+
--p-body2-margin-bottom: var(--s-1);
|
|
80
|
+
--p-body2-indent-size: var(--s-2);
|
|
81
|
+
|
|
82
|
+
/* small */
|
|
83
|
+
--p-caption-font-size: 12px;
|
|
84
|
+
--p-caption-icon-size: 12px;
|
|
85
|
+
--p-caption-font-weight: 300;
|
|
86
|
+
--p-caption-line-height: 20px;
|
|
87
|
+
--p-caption-margin-top: var(--s-3);
|
|
88
|
+
--p-caption-margin-bottom: var(--s-1);
|
|
89
|
+
--p-caption-indent-size: var(--s-1);
|
|
90
|
+
|
|
91
|
+
--p-overline-font-size: 10px;
|
|
92
|
+
--p-overline-icon-size: 10px;
|
|
93
|
+
--p-overline-font-weight: 200;
|
|
94
|
+
--p-overline-line-height: 18px;
|
|
95
|
+
--p-overline-margin-top: var(--s-1);
|
|
96
|
+
--p-overline-margin-bottom: var(--s-1);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
body {
|
|
100
|
+
--p-h1-margin-top: var(--s-1);
|
|
101
|
+
--p-h2-margin-top: var(--s-1);
|
|
102
|
+
--p-h3-margin-top: var(--s-1);
|
|
103
|
+
--p-h4-margin-top: var(--s-1);
|
|
104
|
+
--p-h5-margin-top: var(--s-1);
|
|
105
|
+
--p-h6-margin-top: var(--s-1);
|
|
106
|
+
--p-body1-margin-top: var(--s-1);
|
|
107
|
+
--p-body2-margin-top: var(--s-1);
|
|
108
|
+
--p-caption-margin-top: var(--s-1);
|
|
109
|
+
}
|
|
110
|
+
#{$css-prefix}text {
|
|
111
|
+
color: #1f2633;
|
|
112
|
+
text-align: justify;
|
|
113
|
+
|
|
114
|
+
// & + & {
|
|
115
|
+
// margin-left: 0;
|
|
116
|
+
// }
|
|
117
|
+
|
|
118
|
+
&-title {
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
margin-bottom: 0.5em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& + &-title {
|
|
124
|
+
margin-top: 1.2em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-paragraph {
|
|
128
|
+
color: #1f2633;
|
|
129
|
+
margin-bottom: 1em;
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
line-height: 1.5;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
mark {
|
|
135
|
+
padding: 0;
|
|
136
|
+
background: #fffbc7;
|
|
137
|
+
color: #1f2633;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
strong {
|
|
141
|
+
font-weight: bold;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
code {
|
|
145
|
+
background-color: #f4f6f9;
|
|
146
|
+
color: #1f2633;
|
|
147
|
+
border: 1px solid #e4e8ee;
|
|
148
|
+
margin: 0 0.2em;
|
|
149
|
+
padding: 0.2em 0.4em 0.1em;
|
|
150
|
+
font-size: 85%;
|
|
151
|
+
border-radius: 4px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
ul,
|
|
155
|
+
ol {
|
|
156
|
+
margin: 0 0 1em 0;
|
|
157
|
+
padding: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
li {
|
|
161
|
+
list-style-type: circle;
|
|
162
|
+
margin: 0 0 0 20px;
|
|
163
|
+
padding: 0 0 0 4px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
a {
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
&:link {
|
|
169
|
+
color: rgba(3, 193, 253, 1);
|
|
170
|
+
}
|
|
171
|
+
&:visited {
|
|
172
|
+
color: rgba(0, 123, 176, 1);
|
|
173
|
+
}
|
|
174
|
+
&:hover {
|
|
175
|
+
color: rgba(0, 157, 214, 1);
|
|
176
|
+
}
|
|
177
|
+
&:active {
|
|
178
|
+
text-decoration: underline;
|
|
179
|
+
color: rgba(0, 157, 214, 1);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
h1#{$css-prefix}text-title {
|
|
185
|
+
font-size: 24px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
h2#{$css-prefix}text-title {
|
|
189
|
+
font-size: 20px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
h3#{$css-prefix}text-title {
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
h4#{$css-prefix}text-title {
|
|
197
|
+
font-size: 16px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
h5#{$css-prefix}text-title {
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
h6#{$css-prefix}text-title {
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
}
|
|
207
|
+
#{$css-prefix}text {
|
|
208
|
+
&-inherit {
|
|
209
|
+
font-family: inherit;
|
|
210
|
+
font-size: inherit;
|
|
211
|
+
font-weight: inherit;
|
|
212
|
+
line-height: inherit;
|
|
213
|
+
}
|
|
214
|
+
&-overline {
|
|
215
|
+
font-family: var(--p-overline-font-family);
|
|
216
|
+
font-size: var(--p-overline-font-size);
|
|
217
|
+
font-weight: var(--p-overline-font-weight);
|
|
218
|
+
line-height: var(--p-overline-line-height);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&-caption {
|
|
222
|
+
font-family: var(--p-caption-font-family);
|
|
223
|
+
font-size: var(--p-caption-font-size);
|
|
224
|
+
font-weight: var(--p-caption-font-weight);
|
|
225
|
+
line-height: var(--p-caption-line-height);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&-body2 {
|
|
229
|
+
font-family: var(--p-body2-font-family);
|
|
230
|
+
font-size: var(--p-body2-font-size);
|
|
231
|
+
font-weight: var(--p-body2-font-weight);
|
|
232
|
+
line-height: var(--p-body2-line-height);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&-body1 {
|
|
236
|
+
font-family: var(--p-body1-font-family);
|
|
237
|
+
font-size: var(--p-body1-font-size);
|
|
238
|
+
font-weight: var(--p-body1-font-weight);
|
|
239
|
+
line-height: var(--p-body1-line-height);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&-h6 {
|
|
243
|
+
font-family: var(--p-h6-font-family);
|
|
244
|
+
font-size: var(--p-h6-font-size);
|
|
245
|
+
font-weight: var(--p-h6-font-weight);
|
|
246
|
+
line-height: var(--p-h6-line-height);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&-h5 {
|
|
250
|
+
font-family: var(--p-h5-font-family);
|
|
251
|
+
font-size: var(--p-h5-font-size);
|
|
252
|
+
font-weight: var(--p-h5-font-weight);
|
|
253
|
+
line-height: var(--p-h5-line-height);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&-h4 {
|
|
257
|
+
font-family: var(--p-h4-font-family);
|
|
258
|
+
font-size: var(--p-h4-font-size);
|
|
259
|
+
font-weight: var(--p-h4-font-weight);
|
|
260
|
+
line-height: var(--p-h4-line-height);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&-h3 {
|
|
264
|
+
font-family: var(--p-h3-font-family);
|
|
265
|
+
font-size: var(--p-h3-font-size);
|
|
266
|
+
font-weight: var(--p-h3-font-weight);
|
|
267
|
+
line-height: var(--p-h3-line-height);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&-h2 {
|
|
271
|
+
font-family: var(--p-h2-font-family);
|
|
272
|
+
font-size: var(--p-h2-font-size);
|
|
273
|
+
font-weight: var(--p-h2-font-weight);
|
|
274
|
+
line-height: var(--p-h2-line-height);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&-h1 {
|
|
278
|
+
font-family: var(--p-h1-font-family);
|
|
279
|
+
font-size: var(--p-h1-font-size);
|
|
280
|
+
font-weight: var(--p-h1-font-weight);
|
|
281
|
+
line-height: var(--p-h1-line-height);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Radio } from '@alifd/next';
|
|
2
|
+
/**
|
|
3
|
+
* ProRadio
|
|
4
|
+
* @description 单选按钮组
|
|
5
|
+
* @param {string} defaultValue 默认值(radio.group才有的字段)
|
|
6
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
7
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
8
|
+
* @param {string} screen_structure 屏幕结构
|
|
9
|
+
* @param {string} dataSource 数据源
|
|
10
|
+
* @param {string} checkedValue 选中值
|
|
11
|
+
* @param {string} checked 默认选中
|
|
12
|
+
*/
|
|
13
|
+
declare const ProRadio: typeof Radio;
|
|
14
|
+
export default ProRadio;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import _Radio from "@alifd/next/es/radio";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["dataSource", "screen_structure", "screen_structure_field", "screen_inner_id", "defaultValue", "disableEdit"];
|
|
5
|
+
import { getStructureFieldName } from "../utils";
|
|
6
|
+
import { useComponentContext } from "../../context/useComponentContext";
|
|
7
|
+
var React = window.React;
|
|
8
|
+
var createElement = React.createElement,
|
|
9
|
+
useEffect = React.useEffect,
|
|
10
|
+
useRef = React.useRef,
|
|
11
|
+
useState = React.useState;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ProRadio
|
|
15
|
+
* @description 单选按钮组
|
|
16
|
+
* @param {string} defaultValue 默认值(radio.group才有的字段)
|
|
17
|
+
* @param {string} screen_structure_field 屏幕结构字段
|
|
18
|
+
* @param {string} screen_inner_id 屏幕内部id
|
|
19
|
+
* @param {string} screen_structure 屏幕结构
|
|
20
|
+
* @param {string} dataSource 数据源
|
|
21
|
+
* @param {string} checkedValue 选中值
|
|
22
|
+
* @param {string} checked 默认选中
|
|
23
|
+
*/
|
|
24
|
+
var ProRadio = function ProRadio(props) {
|
|
25
|
+
var dataSource = props.dataSource,
|
|
26
|
+
screen_structure = props.screen_structure,
|
|
27
|
+
screen_structure_field = props.screen_structure_field,
|
|
28
|
+
screen_inner_id = props.screen_inner_id,
|
|
29
|
+
defaultValue = props.defaultValue,
|
|
30
|
+
disableEdit = props.disableEdit,
|
|
31
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
32
|
+
var _getStructureFieldNam = getStructureFieldName(screen_structure, screen_structure_field),
|
|
33
|
+
structureName = _getStructureFieldNam.structureName,
|
|
34
|
+
structureField = _getStructureFieldNam.structureField;
|
|
35
|
+
var fieldPath = structureName + "." + structureField;
|
|
36
|
+
var _useComponentContext = useComponentContext(fieldPath),
|
|
37
|
+
value = _useComponentContext.value,
|
|
38
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
39
|
+
console.log('ProRadio useComponentContext value', value, fieldPath);
|
|
40
|
+
// console.log('otherProps', otherProps);
|
|
41
|
+
|
|
42
|
+
var handleChange = function handleChange(newValue) {
|
|
43
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
44
|
+
if (onValueChange) {
|
|
45
|
+
onValueChange(newValue);
|
|
46
|
+
}
|
|
47
|
+
// 触发标准 onChange
|
|
48
|
+
if (props.onChange) {
|
|
49
|
+
props.onChange(newValue, structureName, structureField);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
53
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
54
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, _extends({}, props, {
|
|
55
|
+
value: value,
|
|
56
|
+
onChange: handleChange,
|
|
57
|
+
dataSource: dataSource
|
|
58
|
+
})));
|
|
59
|
+
};
|
|
60
|
+
export default ProRadio;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _Select from "@alifd/next/es/select";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["dataSource", "screen_structure", "screen_structure_field", "screen_inner_id", "defaultValue", "disableEdit"];
|
|
5
|
+
import { getStructureFieldName } from "../utils";
|
|
6
|
+
import { useComponentContext } from "../../context/useComponentContext";
|
|
7
|
+
var React = window.React;
|
|
8
|
+
var createElement = React.createElement,
|
|
9
|
+
useEffect = React.useEffect,
|
|
10
|
+
useRef = React.useRef,
|
|
11
|
+
useState = React.useState;
|
|
12
|
+
var ProSelect = function ProSelect(props) {
|
|
13
|
+
var dataSource = props.dataSource,
|
|
14
|
+
screen_structure = props.screen_structure,
|
|
15
|
+
screen_structure_field = props.screen_structure_field,
|
|
16
|
+
screen_inner_id = props.screen_inner_id,
|
|
17
|
+
defaultValue = props.defaultValue,
|
|
18
|
+
disableEdit = props.disableEdit,
|
|
19
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
20
|
+
var _getStructureFieldNam = getStructureFieldName(screen_structure, screen_structure_field),
|
|
21
|
+
structureName = _getStructureFieldNam.structureName,
|
|
22
|
+
structureField = _getStructureFieldNam.structureField;
|
|
23
|
+
var fieldPath = structureName + "." + structureField;
|
|
24
|
+
var _useComponentContext = useComponentContext(fieldPath),
|
|
25
|
+
value = _useComponentContext.value,
|
|
26
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
27
|
+
console.log('ProSelect useComponentContext value', value, fieldPath);
|
|
28
|
+
// console.log('otherProps', otherProps);
|
|
29
|
+
|
|
30
|
+
var handleChange = function handleChange(newValue) {
|
|
31
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
32
|
+
if (onValueChange) {
|
|
33
|
+
onValueChange(newValue);
|
|
34
|
+
}
|
|
35
|
+
// 触发标准 onChange
|
|
36
|
+
if (props.onChange) {
|
|
37
|
+
props.onChange(newValue, structureName, structureField);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
41
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
42
|
+
}, /*#__PURE__*/React.createElement(_Select, _extends({}, props, {
|
|
43
|
+
value: value,
|
|
44
|
+
onChange: handleChange,
|
|
45
|
+
dataSource: dataSource
|
|
46
|
+
})));
|
|
47
|
+
};
|
|
48
|
+
export default ProSelect;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _Input from "@alifd/next/es/input";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["screen_structure", "screen_structure_field", "defaultValue", "disableEdit"];
|
|
5
|
+
import { getStructureFieldName } from "../utils";
|
|
6
|
+
import { useComponentContext } from "../../context/useComponentContext";
|
|
7
|
+
var React = window.React;
|
|
8
|
+
var createElement = React.createElement,
|
|
9
|
+
useEffect = React.useEffect,
|
|
10
|
+
useRef = React.useRef,
|
|
11
|
+
useState = React.useState;
|
|
12
|
+
var ProTextArea = function ProTextArea(props) {
|
|
13
|
+
var screen_structure = props.screen_structure,
|
|
14
|
+
screen_structure_field = props.screen_structure_field,
|
|
15
|
+
defaultValue = props.defaultValue,
|
|
16
|
+
disableEdit = props.disableEdit,
|
|
17
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
18
|
+
var _getStructureFieldNam = getStructureFieldName(screen_structure, screen_structure_field),
|
|
19
|
+
structureName = _getStructureFieldNam.structureName,
|
|
20
|
+
structureField = _getStructureFieldNam.structureField;
|
|
21
|
+
var fieldPath = structureName + "." + structureField;
|
|
22
|
+
var _useComponentContext = useComponentContext(fieldPath),
|
|
23
|
+
value = _useComponentContext.value,
|
|
24
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
25
|
+
console.log('ProTextArea useComponentContext value', value, fieldPath);
|
|
26
|
+
// console.log('otherProps', otherProps);
|
|
27
|
+
|
|
28
|
+
var handleChange = function handleChange(newValue) {
|
|
29
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
30
|
+
if (onValueChange) {
|
|
31
|
+
onValueChange(newValue);
|
|
32
|
+
}
|
|
33
|
+
// 触发标准 onChange
|
|
34
|
+
if (props.onChange) {
|
|
35
|
+
props.onChange(newValue, structureName, structureField);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
40
|
+
}, /*#__PURE__*/React.createElement(_Input.TextArea, _extends({}, props, {
|
|
41
|
+
value: value,
|
|
42
|
+
onChange: handleChange
|
|
43
|
+
})));
|
|
44
|
+
};
|
|
45
|
+
export default ProTextArea;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import _TimePicker from "@alifd/next/es/time-picker";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["screen_structure", "screen_structure_field", "defaultValue", "disableEdit"];
|
|
5
|
+
import { getStructureFieldName } from "../utils";
|
|
6
|
+
import { useComponentContext } from "../../context/useComponentContext";
|
|
7
|
+
var React = window.React;
|
|
8
|
+
var createElement = React.createElement,
|
|
9
|
+
useEffect = React.useEffect,
|
|
10
|
+
useRef = React.useRef,
|
|
11
|
+
useState = React.useState;
|
|
12
|
+
var moment = window.moment;
|
|
13
|
+
|
|
14
|
+
// 工具函数:Date 转字符串 "HH:mm:ss"
|
|
15
|
+
function timeDateToString(date) {
|
|
16
|
+
if (!date) return '';
|
|
17
|
+
if (moment) {
|
|
18
|
+
// 使用 moment 格式化
|
|
19
|
+
return moment(date).format('HH:mm:ss');
|
|
20
|
+
}
|
|
21
|
+
// 降级方案
|
|
22
|
+
var d = new Date(date);
|
|
23
|
+
var h = String(d.getHours()).padStart(2, '0');
|
|
24
|
+
var m = String(d.getMinutes()).padStart(2, '0');
|
|
25
|
+
var s = String(d.getSeconds()).padStart(2, '0');
|
|
26
|
+
return h + ":" + m + ":" + s;
|
|
27
|
+
}
|
|
28
|
+
var ProTimePicker = function ProTimePicker(props) {
|
|
29
|
+
var screen_structure = props.screen_structure,
|
|
30
|
+
screen_structure_field = props.screen_structure_field,
|
|
31
|
+
defaultValue = props.defaultValue,
|
|
32
|
+
disableEdit = props.disableEdit,
|
|
33
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
34
|
+
var _getStructureFieldNam = getStructureFieldName(screen_structure, screen_structure_field),
|
|
35
|
+
structureName = _getStructureFieldNam.structureName,
|
|
36
|
+
structureField = _getStructureFieldNam.structureField;
|
|
37
|
+
var fieldPath = structureName + "." + structureField;
|
|
38
|
+
var _useComponentContext = useComponentContext(fieldPath),
|
|
39
|
+
value = _useComponentContext.value,
|
|
40
|
+
onValueChange = _useComponentContext.onValueChange;
|
|
41
|
+
console.log('ProTimePicker useComponentContext value', value, fieldPath);
|
|
42
|
+
// console.log('otherProps', otherProps);
|
|
43
|
+
|
|
44
|
+
var handleChange = function handleChange(newValue) {
|
|
45
|
+
// updateScreenStructure(screen_structure, screen_structure_field, value);
|
|
46
|
+
if (onValueChange) {
|
|
47
|
+
onValueChange(timeDateToString(newValue));
|
|
48
|
+
}
|
|
49
|
+
// 触发标准 onChange
|
|
50
|
+
if (props.onChange) {
|
|
51
|
+
props.onChange(timeDateToString(newValue), structureName, structureField);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
55
|
+
className: "field-wrapper " + (disableEdit ? 'disable-edit' : 'enable-edit')
|
|
56
|
+
}, /*#__PURE__*/React.createElement(_TimePicker, _extends({}, props, {
|
|
57
|
+
value: value,
|
|
58
|
+
onChange: handleChange
|
|
59
|
+
})));
|
|
60
|
+
};
|
|
61
|
+
export default ProTimePicker;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* 类型
|
|
6
|
+
*/
|
|
7
|
+
type?: "primary" | "secondary" | "normal";
|
|
8
|
+
color?: string;
|
|
9
|
+
style?: object;
|
|
10
|
+
}
|
|
11
|
+
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
+
export default ColorfulButton;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import _Button from "@alifd/next/es/button";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["type", "color", "style"];
|
|
5
|
+
var React = window.React;
|
|
6
|
+
var createElement = React.createElement,
|
|
7
|
+
useEffect = React.useEffect,
|
|
8
|
+
useRef = React.useRef,
|
|
9
|
+
useState = React.useState;
|
|
10
|
+
import "./index.scss";
|
|
11
|
+
var ColorfulButton = function ColorfulButton(_ref) {
|
|
12
|
+
var _ref$type = _ref.type,
|
|
13
|
+
type = _ref$type === void 0 ? 'primary' : _ref$type,
|
|
14
|
+
color = _ref.color,
|
|
15
|
+
_ref$style = _ref.style,
|
|
16
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
17
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
18
|
+
var _style = style || {};
|
|
19
|
+
if (color) {
|
|
20
|
+
_style.backgroundColor = color;
|
|
21
|
+
}
|
|
22
|
+
var _otherProps = otherProps || {};
|
|
23
|
+
_otherProps.style = _style;
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Button, _extends({
|
|
25
|
+
type: type
|
|
26
|
+
}, _otherProps), "fusion button");
|
|
27
|
+
};
|
|
28
|
+
ColorfulButton.displayName = 'ColorfulButton';
|
|
29
|
+
export default ColorfulButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _Input from "@alifd/next/es/input";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["color", "style"];
|
|
4
|
+
var React = window.React;
|
|
5
|
+
var createElement = React.createElement,
|
|
6
|
+
useEffect = React.useEffect,
|
|
7
|
+
useRef = React.useRef,
|
|
8
|
+
useState = React.useState;
|
|
9
|
+
import "./index.scss";
|
|
10
|
+
var ColorfulInput = function ColorfulInput(_ref) {
|
|
11
|
+
var color = _ref.color,
|
|
12
|
+
_ref$style = _ref.style,
|
|
13
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
14
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
var _style = style || {};
|
|
16
|
+
if (color) {
|
|
17
|
+
_style.backgroundColor = color;
|
|
18
|
+
}
|
|
19
|
+
var _otherProps = otherProps || {};
|
|
20
|
+
_otherProps.style = _style;
|
|
21
|
+
return /*#__PURE__*/React.createElement(_Input, _otherProps);
|
|
22
|
+
};
|
|
23
|
+
export default ColorfulInput;
|