@dazhicheng/ui 1.4.17 → 1.4.18
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/dist/components/tt-area/TtArea.vue.d.ts +0 -1
- package/dist/components/tt-area/index.d.ts +0 -1
- package/dist/components/tt-button/index.d.ts +231 -232
- package/dist/components/tt-button/index.vue.d.ts +132 -133
- package/dist/components/tt-checkbox/index.d.ts +0 -1
- package/dist/components/tt-checkbox/index.vue.d.ts +0 -1
- package/dist/components/tt-checkbox/type.d.ts +0 -1
- package/dist/components/tt-empty/index.d.ts +0 -1
- package/dist/components/tt-form/index.d.ts +8 -10
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +2 -5
- package/dist/components/tt-form/src/components/Slot.d.ts +0 -1
- package/dist/components/tt-form/src/components/{FormActions.vue.d.ts → formActions.vue.d.ts} +8 -15
- package/dist/components/tt-form/src/config.d.ts +2 -6
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +1 -16
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +8 -0
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts +1 -2
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/index.d.ts +3 -3
- package/dist/components/tt-form/src/form/injectionKeys.d.ts +0 -1
- package/dist/components/tt-form/src/form/useFormField.d.ts +1 -2
- package/dist/components/tt-form/src/form-render/FormField.vue.d.ts +28 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue.d.ts +27 -0
- package/dist/components/tt-form/src/form-render/context.d.ts +6 -53
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +156 -168
- package/dist/components/tt-form/src/form-render/expandable.d.ts +2 -3
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +10 -45
- package/dist/components/tt-form/src/form-render/helper.d.ts +2 -8
- package/dist/components/tt-form/src/form-render/index.d.ts +2 -3
- package/dist/components/tt-form/src/formApi.d.ts +71 -0
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +2 -2
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +0 -1
- package/dist/components/tt-form/src/shared/createContext.d.ts +0 -1
- package/dist/components/tt-form/src/shared/global-state.d.ts +0 -1
- package/dist/components/tt-form/src/shared/store.d.ts +0 -1
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts +0 -1
- package/dist/components/tt-form/src/types/common.d.ts +11 -0
- package/dist/components/tt-form/src/types/forms.d.ts +280 -0
- package/dist/components/tt-form/src/types/index.d.ts +3 -0
- package/dist/components/tt-form/src/types/paths.d.ts +142 -0
- package/dist/components/tt-form/src/types/shared.d.ts +19 -0
- package/dist/components/tt-form/src/types.d.ts +381 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -0
- package/dist/components/tt-form/src/useForm.vue.d.ts +27 -0
- package/dist/components/tt-form/src/useFormContext.d.ts +12 -0
- package/dist/components/tt-form-adapter/component/index.d.ts +1 -2
- package/dist/components/tt-form-adapter/index.d.ts +1 -2
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +8 -9
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +4 -5
- package/dist/components/tt-icon/index.d.ts +3 -4
- package/dist/components/tt-icon/index.vue.d.ts +1 -2
- package/dist/components/tt-image/index.d.ts +5 -6
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +4 -5
- package/dist/components/tt-image/tt-image.d.ts +5 -6
- package/dist/components/tt-loading/index.d.ts +2 -3
- package/dist/components/tt-loading/src/directive.d.ts +0 -1
- package/dist/components/tt-loading/src/loading.vue.d.ts +2 -3
- package/dist/components/tt-loading/src/service.d.ts +0 -1
- package/dist/components/tt-loading/src/type.d.ts +0 -1
- package/dist/components/tt-modal/index.d.ts +92 -93
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +47 -48
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts +0 -1
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts +0 -1
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +4 -5
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +21 -22
- package/dist/components/tt-modal/src/index.d.ts +0 -1
- package/dist/components/tt-modal/src/props.d.ts +0 -1
- package/dist/components/tt-modal/src/typing.d.ts +0 -1
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +0 -1
- package/dist/components/tt-part/index.d.ts +6 -7
- package/dist/components/tt-part/index.vue.d.ts +2 -3
- package/dist/components/tt-part/type.d.ts +0 -1
- package/dist/components/tt-part-item/index.d.ts +3 -4
- package/dist/components/tt-part-item/index.vue.d.ts +1 -2
- package/dist/components/tt-part-item/type.d.ts +0 -1
- package/dist/components/tt-select/index.d.ts +0 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +33 -34
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +3 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +3 -4
- package/dist/components/tt-select/src/const.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +0 -1
- package/dist/components/tt-select/src/props.d.ts +0 -1
- package/dist/components/tt-select/src/types/index.d.ts +0 -1
- package/dist/components/tt-select/src/utils/index.d.ts +0 -1
- package/dist/components/tt-table/index.d.ts +0 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +111 -112
- package/dist/components/tt-table/src/componentMap.d.ts +0 -1
- package/dist/components/tt-table/src/components/RowContext.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableButtons.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +56 -57
- package/dist/components/tt-table/src/emits.d.ts +0 -1
- package/dist/components/tt-table/src/enum.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCache.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +88 -89
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -1
- package/dist/components/tt-table/src/props.d.ts +0 -1
- package/dist/components/tt-table/src/toolProps.d.ts +0 -1
- package/dist/components/tt-table/src/types/table.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableAction.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableForm.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableTools.d.ts +0 -1
- package/dist/components/tt-table/src/utils/context.d.ts +0 -1
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -1
- package/dist/components/tt-table/src/utils/table-api.d.ts +0 -1
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +0 -1
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -1
- package/dist/components/tt-text/index.d.ts +3 -4
- package/dist/components/tt-text/index.vue.d.ts +1 -2
- package/dist/components/tt-tree-select/index.d.ts +0 -1
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +0 -1
- package/dist/components/tt-tree-select/src/cache-options.d.ts +1 -2
- package/dist/components/tt-tree-select/src/select.d.ts +0 -1
- package/dist/components/tt-tree-select/src/tree.d.ts +0 -1
- package/dist/components/tt-tree-select/src/utils.d.ts +0 -1
- package/dist/components/tt-validate/index.d.ts +0 -1
- package/dist/components/tt-validate/src/ErrorMessage.d.ts +0 -1
- package/dist/components/tt-validate/src/Field.d.ts +7 -8
- package/dist/components/tt-validate/src/FieldArray.d.ts +0 -1
- package/dist/components/tt-validate/src/Form.d.ts +3 -4
- package/dist/components/tt-validate/src/config.d.ts +0 -1
- package/dist/components/tt-validate/src/defineRule.d.ts +0 -1
- package/dist/components/tt-validate/src/index.d.ts +0 -1
- package/dist/components/tt-validate/src/symbols.d.ts +0 -1
- package/dist/components/tt-validate/src/types/common.d.ts +0 -1
- package/dist/components/tt-validate/src/types/forms.d.ts +0 -1
- package/dist/components/tt-validate/src/types/index.d.ts +0 -1
- package/dist/components/tt-validate/src/types/paths.d.ts +0 -1
- package/dist/components/tt-validate/src/types/shared.d.ts +0 -1
- package/dist/components/tt-validate/src/useField.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldArray.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldError.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldState.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldValue.d.ts +0 -1
- package/dist/components/tt-validate/src/useForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useFormErrors.d.ts +0 -1
- package/dist/components/tt-validate/src/useFormValues.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormValid.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsValidating.d.ts +0 -1
- package/dist/components/tt-validate/src/useResetForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldError.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormValues.d.ts +0 -1
- package/dist/components/tt-validate/src/useSubmitCount.d.ts +0 -1
- package/dist/components/tt-validate/src/useSubmitForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useValidateField.d.ts +0 -1
- package/dist/components/tt-validate/src/useValidateForm.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/assertions.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/common.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/events.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/index.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/rules.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/shared.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/vnode.d.ts +0 -1
- package/dist/components/tt-validate/src/validate.d.ts +0 -1
- package/dist/components/tt-validate/zod/index.d.ts +0 -1
- package/dist/components/types.d.ts +0 -1
- package/dist/directives/auto-tip/index.d.ts +0 -1
- package/dist/directives/dialog-resize/index.d.ts +0 -1
- package/dist/directives/dialog-resize/use-css-variable.d.ts +0 -1
- package/dist/directives/dialog-resize/use-draggable.d.ts +0 -1
- package/dist/directives/dialog-resize/use-fullscreen.d.ts +0 -1
- package/dist/directives/dialog-resize/use-parse-translate.d.ts +0 -1
- package/dist/directives/dialog-resize/use-resizer.d.ts +0 -1
- package/dist/directives/disabled-tip/index.d.ts +0 -1
- package/dist/directives/index.d.ts +0 -1
- package/dist/hooks/useFormat.d.ts +0 -1
- package/dist/hooks/useLoading.d.ts +0 -1
- package/dist/hooks/useSetup.d.ts +0 -1
- package/dist/hooks/useTable.d.ts +0 -1
- package/dist/hooks/useTemplateSlot.d.ts +0 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.js +33097 -32
- package/dist/style.css +1 -1
- package/package.json +8 -5
- package/dist/components/tt-area/TtArea.vue.d.ts.map +0 -1
- package/dist/components/tt-area/index.d.ts.map +0 -1
- package/dist/components/tt-button/index.d.ts.map +0 -1
- package/dist/components/tt-button/index.vue.d.ts.map +0 -1
- package/dist/components/tt-checkbox/index.d.ts.map +0 -1
- package/dist/components/tt-checkbox/index.vue.d.ts.map +0 -1
- package/dist/components/tt-checkbox/type.d.ts.map +0 -1
- package/dist/components/tt-empty/index.d.ts.map +0 -1
- package/dist/components/tt-form/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/compare.d.ts +0 -15
- package/dist/components/tt-form/src/compare.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/FormActions.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/FormFilter.vue.d.ts +0 -23
- package/dist/components/tt-form/src/components/FormFilter.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/Slot.d.ts.map +0 -1
- package/dist/components/tt-form/src/config.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/injectionKeys.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/useFormField.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-api.d.ts +0 -163
- package/dist/components/tt-form/src/form-api.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/context.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/dependencies.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/expandable.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form-field.vue.d.ts +0 -33
- package/dist/components/tt-form/src/form-render/form-field.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form-label.vue.d.ts +0 -44
- package/dist/components/tt-form/src/form-render/form-label.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/helper.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts.map +0 -1
- package/dist/components/tt-form/src/index.vue.d.ts +0 -344
- package/dist/components/tt-form/src/index.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/createContext.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/global-state.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/store.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts.map +0 -1
- package/dist/components/tt-form/src/types/types.d.ts +0 -503
- package/dist/components/tt-form/src/types/types.d.ts.map +0 -1
- package/dist/components/tt-form/src/use-form-context.d.ts +0 -41
- package/dist/components/tt-form/src/use-form-context.d.ts.map +0 -1
- package/dist/components/tt-form/src/use-form-v2.d.ts +0 -19
- package/dist/components/tt-form/src/use-form-v2.d.ts.map +0 -1
- package/dist/components/tt-form-adapter/component/index.d.ts.map +0 -1
- package/dist/components/tt-form-adapter/index.d.ts.map +0 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts.map +0 -1
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts.map +0 -1
- package/dist/components/tt-icon/index.d.ts.map +0 -1
- package/dist/components/tt-icon/index.vue.d.ts.map +0 -1
- package/dist/components/tt-image/index.d.ts.map +0 -1
- package/dist/components/tt-image/src/components/ImageViewer.d.ts.map +0 -1
- package/dist/components/tt-image/tt-image.d.ts.map +0 -1
- package/dist/components/tt-loading/index.d.ts.map +0 -1
- package/dist/components/tt-loading/src/directive.d.ts.map +0 -1
- package/dist/components/tt-loading/src/loading.vue.d.ts.map +0 -1
- package/dist/components/tt-loading/src/service.d.ts.map +0 -1
- package/dist/components/tt-loading/src/type.d.ts.map +0 -1
- package/dist/components/tt-modal/index.d.ts.map +0 -1
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts.map +0 -1
- package/dist/components/tt-modal/src/index.d.ts.map +0 -1
- package/dist/components/tt-modal/src/props.d.ts.map +0 -1
- package/dist/components/tt-modal/src/typing.d.ts.map +0 -1
- package/dist/components/tt-modal/src/utils/modal-api.d.ts.map +0 -1
- package/dist/components/tt-part/index.d.ts.map +0 -1
- package/dist/components/tt-part/index.vue.d.ts.map +0 -1
- package/dist/components/tt-part/type.d.ts.map +0 -1
- package/dist/components/tt-part-item/index.d.ts.map +0 -1
- package/dist/components/tt-part-item/index.vue.d.ts.map +0 -1
- package/dist/components/tt-part-item/type.d.ts.map +0 -1
- package/dist/components/tt-select/index.d.ts.map +0 -1
- package/dist/components/tt-select/src/Select.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/components/Table.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/const.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useGrid.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/usePagination.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useSelect.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts.map +0 -1
- package/dist/components/tt-select/src/props.d.ts.map +0 -1
- package/dist/components/tt-select/src/types/index.d.ts.map +0 -1
- package/dist/components/tt-select/src/utils/index.d.ts.map +0 -1
- package/dist/components/tt-table/index.d.ts.map +0 -1
- package/dist/components/tt-table/src/Table.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/componentMap.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/RowContext.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableButtons.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/emits.d.ts.map +0 -1
- package/dist/components/tt-table/src/enum.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCache.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useColumns.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/usePagination.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTable.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts.map +0 -1
- package/dist/components/tt-table/src/props.d.ts.map +0 -1
- package/dist/components/tt-table/src/toolProps.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/table.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableAction.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableForm.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableTools.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/context.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/filters.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/table-api.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/table-form-api.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/vxeTable.d.ts.map +0 -1
- package/dist/components/tt-text/index.d.ts.map +0 -1
- package/dist/components/tt-text/index.vue.d.ts.map +0 -1
- package/dist/components/tt-tree-select/index.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/cache-options.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/select.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/tree.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/utils.d.ts.map +0 -1
- package/dist/components/tt-validate/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/ErrorMessage.d.ts.map +0 -1
- package/dist/components/tt-validate/src/Field.d.ts.map +0 -1
- package/dist/components/tt-validate/src/FieldArray.d.ts.map +0 -1
- package/dist/components/tt-validate/src/Form.d.ts.map +0 -1
- package/dist/components/tt-validate/src/config.d.ts.map +0 -1
- package/dist/components/tt-validate/src/defineRule.d.ts.map +0 -1
- package/dist/components/tt-validate/src/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/symbols.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/common.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/forms.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/paths.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/shared.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useField.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldArray.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldError.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldState.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldValue.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFormErrors.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFormValues.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormValid.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsValidating.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useResetForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldError.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormValues.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSubmitCount.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSubmitForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useValidateField.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useValidateForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/assertions.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/common.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/events.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/rules.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/shared.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/vnode.d.ts.map +0 -1
- package/dist/components/tt-validate/src/validate.d.ts.map +0 -1
- package/dist/components/tt-validate/zod/index.d.ts.map +0 -1
- package/dist/components/types.d.ts.map +0 -1
- package/dist/css-B-NBzuuu.js +0 -1
- package/dist/css-B2XtZxnv.js +0 -2
- package/dist/css-BizbCFH3.js +0 -4
- package/dist/css-ByWw4KN5.js +0 -2
- package/dist/css-CIkg43yy.js +0 -1
- package/dist/css-COykwHo1.js +0 -2
- package/dist/css-Cgfo87Gs.js +0 -1
- package/dist/css-Chse_8b2.js +0 -3
- package/dist/css-CvjpN3r9.js +0 -1
- package/dist/css-D8FPIJO1.js +0 -1
- package/dist/css-DGumj5iO.js +0 -1
- package/dist/css-DLZxzZoB.js +0 -1
- package/dist/css-Dd6Nw96X.js +0 -1
- package/dist/css-DhJ-Bn4t.js +0 -4
- package/dist/css-sQ8IZeHP.js +0 -4
- package/dist/directives/auto-tip/index.d.ts.map +0 -1
- package/dist/directives/dialog-resize/index.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-css-variable.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-draggable.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-fullscreen.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-parse-translate.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-resizer.d.ts.map +0 -1
- package/dist/directives/disabled-tip/index.d.ts.map +0 -1
- package/dist/directives/index.d.ts.map +0 -1
- package/dist/event-BpZD5QYv.js +0 -52
- package/dist/hooks/useFormat.d.ts.map +0 -1
- package/dist/hooks/useLoading.d.ts.map +0 -1
- package/dist/hooks/useSetup.d.ts.map +0 -1
- package/dist/hooks/useTable.d.ts.map +0 -1
- package/dist/hooks/useTemplateSlot.d.ts.map +0 -1
- package/dist/icon-C8mOBgGn.js +0 -15
- package/dist/index-Ay_e-Mu_.js +0 -658
- package/dist/index-BQ2KedE7.js +0 -392
- package/dist/index-BQfVaV7A.js +0 -216
- package/dist/index-BR3sT_rT.js +0 -334
- package/dist/index-BY-Xyp5q.js +0 -832
- package/dist/index-BiA7AsUl.js +0 -22
- package/dist/index-BsKcOBVC.js +0 -1273
- package/dist/index-By3DWh_m.js +0 -3559
- package/dist/index-CDw4vJ_J.js +0 -432
- package/dist/index-CQEli-Vx.js +0 -27
- package/dist/index-D1S5IgHw.js +0 -2502
- package/dist/index-DARbDgFW.js +0 -909
- package/dist/index-DftzFo8M.js +0 -46
- package/dist/index-DtD9KW7p.js +0 -436
- package/dist/index-HEvFEYVF.js +0 -32433
- package/dist/index-iDdpdLyC.js +0 -84
- package/dist/index-kCYWgqco.js +0 -3471
- package/dist/index-qhJRQdTJ.js +0 -21
- package/dist/index-tQY6pN96.js +0 -90
- package/dist/index-zMyxrv4a.js +0 -408
- package/dist/index.d.ts.map +0 -1
- package/dist/panel-time-pick.vue2-3mXww5KZ.js +0 -1603
- package/dist/typescript-BpuhIBuJ.js +0 -4
- package/dist/use-form-common-props-Co2xJKSS.js +0 -98
- package/dist/use-form-item-BHXTK2Pf.js +0 -71
- package/dist/useProps-m8gnZipa.js +0 -215
- package/dist/util-BFu351R4.js +0 -2259
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { TtPartProps } from '../../../tt-part/type';
|
|
2
|
-
import { TtTextProps } from '../../../tt-text';
|
|
3
|
-
import { FieldOptions, FormContext, GenericObject } from '../../../tt-validate';
|
|
4
|
-
import { ButtonProps, CheckboxProps, CheckboxGroupProps, DatePickerProps, InputProps, InputNumberProps, RadioProps, RadioButtonProps, RadioGroupProps, SwitchProps, TimePickerDefaultProps } from 'element-plus';
|
|
5
|
-
import { Component, ComputedRef, HtmlHTMLAttributes, MaybeRefOrGetter, Ref } from 'vue';
|
|
6
|
-
import { ZodTypeAny } from 'zod';
|
|
7
|
-
import { FormApi } from '../form-api';
|
|
8
|
-
import { TtCheckboxProp } from '../../../tt-checkbox/type';
|
|
9
|
-
import { TtSelectProp } from '../../../tt-select';
|
|
10
|
-
export type FormLayout = "horizontal" | "vertical";
|
|
11
|
-
export interface BaseFormComponentMap {
|
|
12
|
-
TtCheckbox: TtCheckboxProp;
|
|
13
|
-
TtSelect: TtSelectProp;
|
|
14
|
-
ElCheckboxButton: CheckboxProps;
|
|
15
|
-
ElCheckboxGroup: CheckboxGroupProps;
|
|
16
|
-
ElDatePicker: DatePickerProps;
|
|
17
|
-
ElInput: InputProps;
|
|
18
|
-
ElInputNumber: InputNumberProps;
|
|
19
|
-
ElRadio: RadioProps;
|
|
20
|
-
ElRadioButton: RadioButtonProps;
|
|
21
|
-
ElRadioGroup: RadioGroupProps;
|
|
22
|
-
ElSwitch: SwitchProps;
|
|
23
|
-
ElTimePicker: TimePickerDefaultProps;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 表单组件类型字符串联合类型
|
|
27
|
-
* 基于 BaseFormComponentMap 接口的键名
|
|
28
|
-
*/
|
|
29
|
-
export type BaseFormComponentType = keyof BaseFormComponentMap;
|
|
30
|
-
type Breakpoints = "2xl:" | "3xl:" | "" | "lg:" | "md:" | "sm:" | "xl:";
|
|
31
|
-
type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
32
|
-
export type WrapperClassType = `${Breakpoints}grid-cols-${GridCols}` | (Record<never, never> & string);
|
|
33
|
-
export type FormItemClassType = `${Breakpoints}cols-end-${"auto" | GridCols}` | `${Breakpoints}cols-span-${"auto" | "full" | GridCols}` | `${Breakpoints}cols-start-${"auto" | GridCols}` | (Record<never, never> & string) | WrapperClassType;
|
|
34
|
-
export type FormFieldOptions = Partial<FieldOptions & {
|
|
35
|
-
validateOnBlur?: boolean;
|
|
36
|
-
validateOnChange?: boolean;
|
|
37
|
-
validateOnInput?: boolean;
|
|
38
|
-
validateOnModelUpdate?: boolean;
|
|
39
|
-
}>;
|
|
40
|
-
export type FormShape = {
|
|
41
|
-
/** 默认值 */
|
|
42
|
-
default?: any;
|
|
43
|
-
/** 字段名 */
|
|
44
|
-
fieldName: string;
|
|
45
|
-
/** 是否必填 */
|
|
46
|
-
required?: boolean;
|
|
47
|
-
rules?: ZodTypeAny;
|
|
48
|
-
};
|
|
49
|
-
export type MaybeComponentPropKey = "autofocus" | "disabled" | "options" | "placeholder" | "title" | keyof HtmlHTMLAttributes | (Record<never, never> & string);
|
|
50
|
-
export type MaybeComponentProps = {
|
|
51
|
-
[K in MaybeComponentPropKey]?: any;
|
|
52
|
-
};
|
|
53
|
-
export type FormActions = FormContext<GenericObject>;
|
|
54
|
-
export type CustomRenderType = (({ values }: {
|
|
55
|
-
values: any;
|
|
56
|
-
}) => Component | string) | string;
|
|
57
|
-
export type FormSchemaRuleType = "required" | "selectRequired" | null | (Record<never, never> & string) | ZodTypeAny;
|
|
58
|
-
type FormItemDependenciesCondition<V = Record<string, any>, T = boolean> = (value: Partial<V>, actions: FormActions, changedFields?: string[]) => T | PromiseLike<T>;
|
|
59
|
-
type FormItemDependenciesConditionWithRules<V = Record<string, any>> = (value: Partial<V>, actions: FormActions, changedFields?: string[]) => FormSchemaRuleType | PromiseLike<FormSchemaRuleType>;
|
|
60
|
-
type FormItemDependenciesConditionWithProps<V = Record<string, any>> = (value: Partial<V>, actions: FormActions, changedFields?: string[]) => MaybeComponentProps | PromiseLike<MaybeComponentProps>;
|
|
61
|
-
type FormItemDependenciesConditionWithFormItemClass<V = Record<string, any>> = (value: Partial<V>, actions: FormActions, changedFields?: string[]) => string | PromiseLike<string>;
|
|
62
|
-
/** FormItemDependencies */
|
|
63
|
-
export type FormItemDependencies<V = Record<string, any>> = {
|
|
64
|
-
/**
|
|
65
|
-
* 组件参数
|
|
66
|
-
* @returns 组件参数
|
|
67
|
-
*/
|
|
68
|
-
componentProps?: FormItemDependenciesConditionWithProps<V>;
|
|
69
|
-
/**
|
|
70
|
-
* 是否禁用
|
|
71
|
-
* @returns 是否禁用
|
|
72
|
-
*/
|
|
73
|
-
disabled?: boolean | FormItemDependenciesCondition<V>;
|
|
74
|
-
/**
|
|
75
|
-
* 是否渲染(删除dom)
|
|
76
|
-
* @returns 是否渲染
|
|
77
|
-
*/
|
|
78
|
-
if?: boolean | FormItemDependenciesCondition<V>;
|
|
79
|
-
/**
|
|
80
|
-
* 是否渲染(警告信息)
|
|
81
|
-
* @returns 是否渲染
|
|
82
|
-
*/
|
|
83
|
-
warn?: boolean | FormItemDependenciesCondition<V>;
|
|
84
|
-
/**
|
|
85
|
-
* 是否必填
|
|
86
|
-
* @returns 是否必填
|
|
87
|
-
*/
|
|
88
|
-
required?: FormItemDependenciesCondition<V>;
|
|
89
|
-
/**
|
|
90
|
-
* 字段规则
|
|
91
|
-
*/
|
|
92
|
-
rules?: FormItemDependenciesConditionWithRules<V>;
|
|
93
|
-
/**
|
|
94
|
-
* 是否隐藏(Css)
|
|
95
|
-
* @returns 是否隐藏
|
|
96
|
-
*/
|
|
97
|
-
show?: boolean | FormItemDependenciesCondition<V>;
|
|
98
|
-
/**
|
|
99
|
-
* 任意触发都会执行
|
|
100
|
-
* @param values 表单值
|
|
101
|
-
* @param actions 表单操作方法
|
|
102
|
-
* @param changedFields 发生变化的字段名数组
|
|
103
|
-
*/
|
|
104
|
-
trigger?: FormItemDependenciesCondition<V, void>;
|
|
105
|
-
/**
|
|
106
|
-
* 表单项栅格布局类名
|
|
107
|
-
* @returns 栅格布局类名字符串
|
|
108
|
-
*/
|
|
109
|
-
formItemClass?: FormItemDependenciesConditionWithFormItemClass<V>;
|
|
110
|
-
/**
|
|
111
|
-
* 触发字段
|
|
112
|
-
*/
|
|
113
|
-
triggerFields: string[];
|
|
114
|
-
/** 是否立刻触发 */
|
|
115
|
-
immediate?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* 触发模式
|
|
118
|
-
* @default 'auto' - 自动监听 triggerFields 变化并触发
|
|
119
|
-
* 'manual' - 手动触发,需要调用 formApi.triggerDependency(fieldName) 来触发
|
|
120
|
-
* 'hybrid' - 混合模式,既可以自动触发也可以手动触发
|
|
121
|
-
*/
|
|
122
|
-
triggerMode?: "auto" | "manual" | "hybrid";
|
|
123
|
-
};
|
|
124
|
-
export type ComponentProps<V = Record<string, any>> = MaybeComponentProps | object | ((value: Partial<V>, actions: FormActions, changedFields?: string[]) => MaybeComponentProps);
|
|
125
|
-
export type FormCommonConfig = {
|
|
126
|
-
/**
|
|
127
|
-
* 在Label后显示一个冒号
|
|
128
|
-
*/
|
|
129
|
-
colon?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* 所有表单项的props
|
|
132
|
-
*/
|
|
133
|
-
componentProps?: ComponentProps;
|
|
134
|
-
/**
|
|
135
|
-
* 所有表单项的控件样式
|
|
136
|
-
*/
|
|
137
|
-
controlClass?: string;
|
|
138
|
-
/**
|
|
139
|
-
* 所有表单项的禁用状态
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
disabled?: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
143
|
-
/**
|
|
144
|
-
* 所有表单项的空状态值,默认都是undefined,naive-ui的空状态值是null
|
|
145
|
-
*/
|
|
146
|
-
emptyStateValue?: null | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* vee所有表单项的事件FieldOptions
|
|
149
|
-
* @default {}
|
|
150
|
-
*/
|
|
151
|
-
formFieldProps?: FormFieldOptions;
|
|
152
|
-
/**
|
|
153
|
-
* 所有表单项的栅格布局
|
|
154
|
-
* @default ""
|
|
155
|
-
*/
|
|
156
|
-
formItemClass?: string;
|
|
157
|
-
/**
|
|
158
|
-
* 隐藏所有表单项label
|
|
159
|
-
* @default false
|
|
160
|
-
*/
|
|
161
|
-
hideLabel?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* 是否隐藏必填标记
|
|
164
|
-
* @default false
|
|
165
|
-
*/
|
|
166
|
-
hideRequiredMark?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* 所有表单项的label样式
|
|
169
|
-
* @default ""
|
|
170
|
-
*/
|
|
171
|
-
labelClass?: string;
|
|
172
|
-
/**
|
|
173
|
-
* 所有表单项的最小label宽度
|
|
174
|
-
*/
|
|
175
|
-
labelWidth?: number;
|
|
176
|
-
/**
|
|
177
|
-
* 所有表单项的最大label宽度百分比
|
|
178
|
-
*/
|
|
179
|
-
labelMaxWidth?: number;
|
|
180
|
-
/**
|
|
181
|
-
* 所有表单项的model属性名
|
|
182
|
-
* @default "modelValue"
|
|
183
|
-
*/
|
|
184
|
-
modelPropName?: string;
|
|
185
|
-
/**
|
|
186
|
-
* 所有表单项的wrapper样式
|
|
187
|
-
*/
|
|
188
|
-
wrapperClass?: string;
|
|
189
|
-
/**
|
|
190
|
-
* 单个表单项的布局方向,会覆盖全局layout设置
|
|
191
|
-
* @default undefined (使用全局layout)
|
|
192
|
-
*/
|
|
193
|
-
itemLayout?: "horizontal" | "vertical";
|
|
194
|
-
/**
|
|
195
|
-
* 选择框组件类型
|
|
196
|
-
*/
|
|
197
|
-
selectComponent?: BaseFormComponentType[];
|
|
198
|
-
/**
|
|
199
|
-
* 输入框组件类型
|
|
200
|
-
*/
|
|
201
|
-
inputComponent?: BaseFormComponentType[];
|
|
202
|
-
/** 表单项的错误提示方向 */
|
|
203
|
-
toolTipErrorPlacement?: "top" | "right" | "bottom" | "left";
|
|
204
|
-
/** 表单项的警告提示方向 */
|
|
205
|
-
toolTipWarnPlacement?: "top" | "right" | "bottom" | "left";
|
|
206
|
-
};
|
|
207
|
-
type RenderComponentContentType<V = Record<string, any>> = (value: Partial<V>, api: FormActions) => Record<string, any>;
|
|
208
|
-
export type HandleSubmitFn = (values: Record<string, any>) => Promise<void> | void;
|
|
209
|
-
export type HandleResetFn = (values: Record<string, any>) => Promise<void> | void;
|
|
210
|
-
export type FieldMappingTime = [
|
|
211
|
-
string,
|
|
212
|
-
[
|
|
213
|
-
string,
|
|
214
|
-
string
|
|
215
|
-
],
|
|
216
|
-
(((value: any, fieldName: string) => any) | [string, string] | null | string)?
|
|
217
|
-
][];
|
|
218
|
-
/**
|
|
219
|
-
* 根据组件类型推断组件参数类型的基础类型
|
|
220
|
-
* Base type for component props based on component type
|
|
221
|
-
* @template T - 组件类型(内置组件名或自定义组件)
|
|
222
|
-
* @template P - 自定义组件的 Props 类型(可选,用于自定义组件类型推断)
|
|
223
|
-
*/
|
|
224
|
-
export type InferredComponentPropsType<T extends BaseFormComponentType | Component, P = never> = T extends BaseFormComponentType ? Partial<BaseFormComponentMap[T]> & MaybeComponentProps : [P] extends [never] ? MaybeComponentProps : Partial<P> & MaybeComponentProps;
|
|
225
|
-
/**
|
|
226
|
-
* 根据组件类型推断组件参数类型
|
|
227
|
-
* Infer component props type based on component type
|
|
228
|
-
* 支持直接传入对象或函数形式
|
|
229
|
-
* @template T - 组件类型(内置组件名或自定义组件)
|
|
230
|
-
* @template P - 自定义组件的 Props 类型(可选)
|
|
231
|
-
* @template V - 表单值类型(可选)
|
|
232
|
-
*/
|
|
233
|
-
export type InferComponentProps<T extends BaseFormComponentType | Component, P = never, V = Record<string, any>> = InferredComponentPropsType<T, P> | ((value: Partial<V>, actions: FormActions, changedFields?: string[]) => InferredComponentPropsType<T, P>);
|
|
234
|
-
export type FieldMappingArray = [
|
|
235
|
-
string,
|
|
236
|
-
string[],
|
|
237
|
-
(((value: any, fieldName: string, index: number) => any) | [string, string] | null | string)?
|
|
238
|
-
][];
|
|
239
|
-
/**
|
|
240
|
-
* 表单项配置
|
|
241
|
-
* @template T - 组件类型(内置组件名或自定义组件)
|
|
242
|
-
* @template P - 自定义组件的 Props 类型(可选,用于 component 是自定义组件时指定 props 类型)
|
|
243
|
-
* @template V - 表单值类型(可选,用于 dependencies 回调函数中的 value 参数类型推断)
|
|
244
|
-
*/
|
|
245
|
-
export type FormSchemaV2<T extends BaseFormComponentType | Component = BaseFormComponentType, P = never, V = Record<string, any>> = {
|
|
246
|
-
/** 组件 */
|
|
247
|
-
component: Component | T;
|
|
248
|
-
/** 组件参数 */
|
|
249
|
-
componentProps?: InferComponentProps<T, P, V>;
|
|
250
|
-
/** 默认值 */
|
|
251
|
-
defaultValue?: any;
|
|
252
|
-
/** 依赖 */
|
|
253
|
-
dependencies?: FormItemDependencies<V>;
|
|
254
|
-
/** 描述 */
|
|
255
|
-
description?: CustomRenderType;
|
|
256
|
-
/** 字段名 */
|
|
257
|
-
fieldName: string;
|
|
258
|
-
/** 帮助信息 */
|
|
259
|
-
help?: CustomRenderType;
|
|
260
|
-
/** 帮助信息触发器 */
|
|
261
|
-
helpTrigger?: "hover" | "click" | "focus" | "contextmenu";
|
|
262
|
-
/** label本身文字气泡设置 */
|
|
263
|
-
toolTip?: TtTextProps;
|
|
264
|
-
/** 非label文字气泡设置 */
|
|
265
|
-
toolTipText?: CustomRenderType;
|
|
266
|
-
/** 表单项 */
|
|
267
|
-
label?: CustomRenderType;
|
|
268
|
-
/** 自定义组件内部渲染 */
|
|
269
|
-
renderComponentContent?: RenderComponentContentType<V>;
|
|
270
|
-
/** 是否空字符串转undefined */
|
|
271
|
-
isValToUndefined?: boolean;
|
|
272
|
-
/** 字段规则 */
|
|
273
|
-
rules?: FormSchemaRuleType;
|
|
274
|
-
/** 失焦字段规则 */
|
|
275
|
-
rulesBlur?: FormSchemaRuleType;
|
|
276
|
-
/** 警告信息 */
|
|
277
|
-
warningMessage?: CustomRenderType;
|
|
278
|
-
/** 后缀 */
|
|
279
|
-
suffix?: CustomRenderType;
|
|
280
|
-
/** 后缀帮助信息 */
|
|
281
|
-
suffixHelp?: CustomRenderType;
|
|
282
|
-
/** 后缀帮助信息触发器 */
|
|
283
|
-
suffixHelpTrigger?: "hover" | "click" | "focus" | "contextmenu";
|
|
284
|
-
/** 分组名称 */
|
|
285
|
-
group?: string;
|
|
286
|
-
/**
|
|
287
|
-
* 内部使用 显示隐藏
|
|
288
|
-
* @readonly
|
|
289
|
-
*/
|
|
290
|
-
show?: boolean;
|
|
291
|
-
} & Omit<FormCommonConfig, "componentProps">;
|
|
292
|
-
export type FormFieldProps = {
|
|
293
|
-
required?: boolean;
|
|
294
|
-
} & FormSchemaV2;
|
|
295
|
-
export type FormRenderProps<V = Record<string, any>> = {
|
|
296
|
-
/**
|
|
297
|
-
* 是否展开,在showCollapseButton=true下生效
|
|
298
|
-
*/
|
|
299
|
-
collapsed?: boolean;
|
|
300
|
-
/**
|
|
301
|
-
* 折叠时保持行数
|
|
302
|
-
* @default 1
|
|
303
|
-
*/
|
|
304
|
-
collapsedRows?: number;
|
|
305
|
-
/**
|
|
306
|
-
* 是否触发resize事件
|
|
307
|
-
* @default false
|
|
308
|
-
*/
|
|
309
|
-
collapseTriggerResize?: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* 表单项通用后备配置,当子项目没配置时使用这里的配置,子项目配置优先级高于此配置
|
|
312
|
-
*/
|
|
313
|
-
commonConfig?: FormCommonConfig;
|
|
314
|
-
/**
|
|
315
|
-
* 紧凑模式(移除表单每一项底部为校验信息预留的空间)
|
|
316
|
-
*/
|
|
317
|
-
compact?: boolean;
|
|
318
|
-
/**
|
|
319
|
-
* 组件v-model事件绑定
|
|
320
|
-
*/
|
|
321
|
-
componentBindEventMap?: Partial<Record<BaseFormComponentType, string>>;
|
|
322
|
-
/**
|
|
323
|
-
* 组件集合
|
|
324
|
-
*/
|
|
325
|
-
componentMap: Record<BaseFormComponentType, Component>;
|
|
326
|
-
/**
|
|
327
|
-
* 表单实例
|
|
328
|
-
*/
|
|
329
|
-
form?: FormContext<GenericObject>;
|
|
330
|
-
/**
|
|
331
|
-
* 表单项布局
|
|
332
|
-
*/
|
|
333
|
-
layout?: FormLayout;
|
|
334
|
-
/**
|
|
335
|
-
* 表单定义
|
|
336
|
-
* 支持混合使用内置组件和自定义组件,每个 schema 项可以单独指定其组件类型和 props 类型
|
|
337
|
-
* - 内置组件: FormSchemaV2<'SjzyInput'> 等,会自动推断 componentProps 类型
|
|
338
|
-
* - 自定义组件: FormSchemaV2<Component, CustomProps> 显式指定 props 类型
|
|
339
|
-
*
|
|
340
|
-
* @example
|
|
341
|
-
* schema: [
|
|
342
|
-
* { component: 'SjzyInput', ... }, // 自动推断 SjzyInputProps
|
|
343
|
-
* { component: h(ElInput), ... } satisfies FormSchemaV2<Component, InputProps> // 指定 InputProps
|
|
344
|
-
* ]
|
|
345
|
-
*/
|
|
346
|
-
schema?: Array<FormSchemaV2<BaseFormComponentType | Component, unknown, V>>;
|
|
347
|
-
/**
|
|
348
|
-
* 是否显示展开/折叠
|
|
349
|
-
*/
|
|
350
|
-
showCollapseButton?: boolean;
|
|
351
|
-
/**
|
|
352
|
-
* 表单栅格布局
|
|
353
|
-
* @default "grid-cols-1"
|
|
354
|
-
*/
|
|
355
|
-
wrapperClass?: WrapperClassType;
|
|
356
|
-
/**
|
|
357
|
-
* 分组顺序
|
|
358
|
-
* @default []
|
|
359
|
-
*/
|
|
360
|
-
groupOrder?: Array<string>;
|
|
361
|
-
/**
|
|
362
|
-
* 分组属性SjzyPart-Props
|
|
363
|
-
*/
|
|
364
|
-
groupProps?: TtPartProps;
|
|
365
|
-
/** 是否空字符串转undefined */
|
|
366
|
-
isValToUndefined?: boolean;
|
|
367
|
-
/**
|
|
368
|
-
* 是否开启脏数据检测提醒
|
|
369
|
-
* @default false
|
|
370
|
-
*/
|
|
371
|
-
openDirty?: boolean;
|
|
372
|
-
/**
|
|
373
|
-
* 表单事件总线key,用于区分不同表单实例
|
|
374
|
-
*/
|
|
375
|
-
busKey?: string | symbol;
|
|
376
|
-
/**
|
|
377
|
-
* 表单 testId(可选)。显式提供时将直接用于 data-testid。
|
|
378
|
-
* 未提供时,将基于 schema 的前 3 个 fieldName 生成稳定的 id,
|
|
379
|
-
* 并追加后缀 "-form" 作为最终 testid。
|
|
380
|
-
*/
|
|
381
|
-
testId?: string;
|
|
382
|
-
};
|
|
383
|
-
export type ActionButtonOptions = {
|
|
384
|
-
[key: string]: any;
|
|
385
|
-
content?: MaybeRefOrGetter<string>;
|
|
386
|
-
show?: boolean;
|
|
387
|
-
customFn?: (value: Record<string, any>) => Record<string, any>;
|
|
388
|
-
} & Partial<ButtonProps>;
|
|
389
|
-
export type FilterRememberActionOptions = {
|
|
390
|
-
filterContent?: MaybeRefOrGetter<string>;
|
|
391
|
-
rememberContent?: MaybeRefOrGetter<string>;
|
|
392
|
-
/** 是否显示筛选 记住 */
|
|
393
|
-
show?: boolean;
|
|
394
|
-
/** 默认过滤字段 */
|
|
395
|
-
defaultFilterFields?: MaybeRefOrGetter<string[]>;
|
|
396
|
-
/** 不清除过滤字段 */
|
|
397
|
-
noClearFilterFields?: MaybeRefOrGetter<string[]>;
|
|
398
|
-
/** 过滤排除字段 */
|
|
399
|
-
filterExcludeFields?: MaybeRefOrGetter<string[]>;
|
|
400
|
-
/** 设置记住功能api */
|
|
401
|
-
setRememberApi?: (opt: {
|
|
402
|
-
data: string[];
|
|
403
|
-
key: string;
|
|
404
|
-
}) => void;
|
|
405
|
-
/** 获取记住功能的api */
|
|
406
|
-
getRememberApi?: (key: string) => Promise<string[]>;
|
|
407
|
-
/** 记住的key */
|
|
408
|
-
rememberKey?: string;
|
|
409
|
-
};
|
|
410
|
-
export type SjzyFormPropsV2<V = Record<string, any>> = {
|
|
411
|
-
/**
|
|
412
|
-
* 表单操作区域class
|
|
413
|
-
*/
|
|
414
|
-
actionWrapperClass?: Array<object | string> | object | string;
|
|
415
|
-
/**
|
|
416
|
-
* 表单时间字段映射
|
|
417
|
-
*/
|
|
418
|
-
fieldMappingTime?: FieldMappingTime;
|
|
419
|
-
/**
|
|
420
|
-
* 表单字段映射
|
|
421
|
-
*/
|
|
422
|
-
fieldMappingArray?: FieldMappingArray;
|
|
423
|
-
/**
|
|
424
|
-
* 表单重置回调
|
|
425
|
-
*/
|
|
426
|
-
handleReset?: HandleResetFn;
|
|
427
|
-
/**
|
|
428
|
-
* 表单提交回调
|
|
429
|
-
*/
|
|
430
|
-
handleSubmit?: HandleSubmitFn;
|
|
431
|
-
/**
|
|
432
|
-
* 表单值变化回调
|
|
433
|
-
*/
|
|
434
|
-
handleValuesChange?: (values: Record<string, any>) => void;
|
|
435
|
-
/**
|
|
436
|
-
* 重置按钮参数
|
|
437
|
-
*/
|
|
438
|
-
resetButtonOptions?: ActionButtonOptions;
|
|
439
|
-
/**
|
|
440
|
-
* 是否显示默认操作按钮
|
|
441
|
-
* @default true
|
|
442
|
-
*/
|
|
443
|
-
showDefaultActions?: boolean;
|
|
444
|
-
/**
|
|
445
|
-
* 是否重置空字符串为undefined
|
|
446
|
-
*/
|
|
447
|
-
isValToUndefined?: boolean;
|
|
448
|
-
/**
|
|
449
|
-
* 是否开启脏数据检测提醒
|
|
450
|
-
* @default false
|
|
451
|
-
*/
|
|
452
|
-
openDirty?: boolean;
|
|
453
|
-
/**
|
|
454
|
-
* 提交按钮参数
|
|
455
|
-
*/
|
|
456
|
-
submitButtonOptions?: ActionButtonOptions;
|
|
457
|
-
/**
|
|
458
|
-
* 是否在字段值改变时提交表单
|
|
459
|
-
* @default false
|
|
460
|
-
*/
|
|
461
|
-
submitOnChange?: boolean;
|
|
462
|
-
/**
|
|
463
|
-
* 是否在回车时提交表单
|
|
464
|
-
* @default false
|
|
465
|
-
*/
|
|
466
|
-
submitOnEnter?: boolean;
|
|
467
|
-
/**
|
|
468
|
-
* 筛选按钮参数
|
|
469
|
-
*/
|
|
470
|
-
filterButtonOptions?: FilterRememberActionOptions;
|
|
471
|
-
/**
|
|
472
|
-
* 在判断 dirty 状态时需要排除的字段列表
|
|
473
|
-
* 这些字段的变化不会影响表单的 dirty 状态
|
|
474
|
-
* @example
|
|
475
|
-
* excludeKeys: ['_timestamp', '_validationToken']
|
|
476
|
-
*/
|
|
477
|
-
excludeKeys?: string[];
|
|
478
|
-
} & Omit<FormRenderProps<V>, "componentBindEventMap" | "componentMap" | "form">;
|
|
479
|
-
export type ExtendedFormApi<V = Record<string, any>> = FormApi<V> & {
|
|
480
|
-
useStore: <T = NoInfer<SjzyFormPropsV2>>(selector?: (state: NoInfer<SjzyFormPropsV2>) => T) => Readonly<Ref<T>>;
|
|
481
|
-
/**
|
|
482
|
-
* 手动触发指定字段的依赖更新
|
|
483
|
-
* @param fieldNames 字段名(单个或多个)
|
|
484
|
-
* @param changedFields 变化的字段名数组(可选)
|
|
485
|
-
*/
|
|
486
|
-
triggerDependency: (fieldNames: string | string[], changedFields?: string[]) => Promise<void>;
|
|
487
|
-
};
|
|
488
|
-
export type SjzyFormAdapterOptionsV2<T extends BaseFormComponentType = BaseFormComponentType> = {
|
|
489
|
-
config?: {
|
|
490
|
-
baseModelPropName?: string;
|
|
491
|
-
emptyStateValue?: null | undefined;
|
|
492
|
-
modelPropNameMap?: Partial<Record<T, string>>;
|
|
493
|
-
};
|
|
494
|
-
defineRules?: {
|
|
495
|
-
required: (value: any, params: any, ctx: Record<string, any>) => boolean | string;
|
|
496
|
-
selectRequired: (value: any, params: any, ctx: Record<string, any>) => boolean | string;
|
|
497
|
-
[key: string]: (value: any, params: any, ctx: Record<string, any>) => boolean | string;
|
|
498
|
-
};
|
|
499
|
-
selectComponent?: BaseFormComponentType[];
|
|
500
|
-
inputComponent?: BaseFormComponentType[];
|
|
501
|
-
};
|
|
502
|
-
export {};
|
|
503
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-form/src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE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AG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,GAAG,MAAM,CAAC;KACxF,CAAC;IACF,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC1C,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
import { ExtendedFormApi, FormActions, SjzyFormPropsV2 } from './types/types';
|
|
3
|
-
/**
|
|
4
|
-
* 扩展的表单属性类型,包含表单API实例
|
|
5
|
-
*/
|
|
6
|
-
type ExtendFormProps = SjzyFormPropsV2 & {
|
|
7
|
-
formApi: ExtendedFormApi;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* 创建表单属性的注入器和提供器
|
|
11
|
-
*
|
|
12
|
-
* 用于在组件树中共享表单属性和操作方法
|
|
13
|
-
* - injectFormProps: 在子组件中获取表单属性和操作方法
|
|
14
|
-
* - provideFormProps: 在父组件中提供表单属性和操作方法
|
|
15
|
-
*/
|
|
16
|
-
export declare const injectFormProps: <T extends [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions] | null | undefined = [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions]>(fallback?: T | undefined) => T extends null ? [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions] | null : [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions], provideFormProps: (contextValue: [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions]) => [ExtendFormProps | ComputedRef<ExtendFormProps>, FormActions];
|
|
17
|
-
/**
|
|
18
|
-
* 创建组件引用映射的注入器和提供器
|
|
19
|
-
*
|
|
20
|
-
* 用于跟踪和访问表单内的各个字段组件实例
|
|
21
|
-
* - injectComponentRefMap: 在子组件中获取组件引用映射
|
|
22
|
-
* - provideComponentRefMap: 在父组件中提供组件引用映射
|
|
23
|
-
*/
|
|
24
|
-
export declare const injectComponentRefMap: <T extends Map<string, unknown> | null | undefined = Map<string, unknown>>(fallback?: T | undefined) => T extends null ? Map<string, unknown> | null : Map<string, unknown>, provideComponentRefMap: (contextValue: Map<string, unknown>) => Map<string, unknown>;
|
|
25
|
-
/**
|
|
26
|
-
* 初始化表单相关功能
|
|
27
|
-
*
|
|
28
|
-
* 此函数处理表单的初始化工作,包括:
|
|
29
|
-
* 1. 生成表单初始值(基于默认值和Zod模式)
|
|
30
|
-
* 2. 创建表单实例
|
|
31
|
-
* 3. 处理插槽信息
|
|
32
|
-
*
|
|
33
|
-
* @param props 表单属性(可以是计算引用或直接对象)
|
|
34
|
-
* @returns 包含委托插槽和表单实例的对象
|
|
35
|
-
*/
|
|
36
|
-
export declare function useFormInitial(props: ComputedRef<SjzyFormPropsV2> | SjzyFormPropsV2): {
|
|
37
|
-
delegatedSlots: ComputedRef<string[]>;
|
|
38
|
-
form: import('../../tt-validate').FormContext<import('../../tt-validate').GenericObject, import('../../tt-validate').GenericObject>;
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=use-form-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-context.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-form/src/use-form-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AASlF;;GAEG;AACH,KAAK,eAAe,GAAG,eAAe,GAAG;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,CAAA;AAErE;;;;;;GAMG;AACH,eAAO,MAAO,eAAe,mVAAE,gBAAgB,gJACoD,CAAA;AAEnG;;;;;;GAMG;AACH,eAAO,MAAO,qBAAqB,+KAAE,sBAAsB,8DACD,CAAA;AAE1D;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,eAAe;;;EAoEnF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ExtendedFormApi, SjzyFormPropsV2 } from './types/types';
|
|
2
|
-
export declare function useForm<V = Record<string, any>>(options: SjzyFormPropsV2<V>): readonly [import('vue').DefineSetupFnComponent<SjzyFormPropsV2, {}, {}, {
|
|
3
|
-
actionWrapperClass?: Array<object | string> | object | string;
|
|
4
|
-
fieldMappingTime?: import('./types/types').FieldMappingTime;
|
|
5
|
-
fieldMappingArray?: import('./types/types').FieldMappingArray;
|
|
6
|
-
handleReset?: import('./types/types').HandleResetFn;
|
|
7
|
-
handleSubmit?: import('./types/types').HandleSubmitFn;
|
|
8
|
-
handleValuesChange?: (values: Record<string, any>) => void;
|
|
9
|
-
resetButtonOptions?: import('./types/types').ActionButtonOptions;
|
|
10
|
-
showDefaultActions?: boolean;
|
|
11
|
-
isValToUndefined?: boolean;
|
|
12
|
-
openDirty?: boolean;
|
|
13
|
-
submitButtonOptions?: import('./types/types').ActionButtonOptions;
|
|
14
|
-
submitOnChange?: boolean;
|
|
15
|
-
submitOnEnter?: boolean;
|
|
16
|
-
filterButtonOptions?: import('./types/types').FilterRememberActionOptions;
|
|
17
|
-
excludeKeys?: string[];
|
|
18
|
-
} & Omit<import('./types/types').FormRenderProps<Record<string, any>>, "form" | "componentBindEventMap" | "componentMap"> & {}, import('vue').PublicProps>, ExtendedFormApi<V>];
|
|
19
|
-
//# sourceMappingURL=use-form-v2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-v2.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-form/src/use-form-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAStE,wBAAgB,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;gLA2C3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-form-adapter/component/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAU/D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB,UAAU,GAEV,UAAU,GACV,eAAe,GACf,YAAY,GACZ,OAAO,GACP,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,YAAY,GACZ,qBAAqB,CAAC;AAgI1B;;;GAGG;AACH,iBAAe,oBAAoB,kBA2FlC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tt-form-adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,WAAW,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,EAA0C,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,iBAAe,aAAa,kBAuB3B;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,OAAO,ySAA0B,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AAErC,YAAY,EAAE,aAAa,EAAE,CAAC;AAC9B,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tt-form-item-error-tooltip/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAA+C,CAAA;AAClF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAA+C,CAAA;AAE1E,eAAe,sBAAsB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/tt-form-item-error-tooltip/index.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;IA8VvC,WAAW;;;;;IAKX,aAAa;;cAEK,QAAQ,CAAC,WAAW,CAAC;;;IAGvC,kBAAkB;;cAEA,QAAQ,CAAC,GAAG,CAAC;;;IAG/B,wBAAwB;;;;;;IAfxB,WAAW;;;;;IAKX,aAAa;;cAEK,QAAQ,CAAC,WAAW,CAAC;;;IAGvC,kBAAkB;;cAEA,QAAQ,CAAC,GAAG,CAAC;;;IAG/B,wBAAwB;;;;;;;;;;;;;AArB1B,wBA6BG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tt-icon/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,MAAM;;;;;;cAoBV,MAAM;kBAZF,OAAO;qBAEJ,OAAO;eAQb,OAAO;kBAIJ,OAAO;;;;;;;;;;;cAFX,MAAM;kBAZF,OAAO;qBAEJ,OAAO;eAQb,OAAO;kBAIJ,OAAO;;;;;;;;;;UAFX,MAAM;cAZF,OAAO;iBAEJ,OAAO;WAQb,OAAO;cAIJ,OAAO;;;;;;;;;yBAtBgC,CAAC;AACrD,eAAe,MAAM,CAAC;AACtB,cA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
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tt-image/index.ts"],"names":[],"mappings":"AAGA,cAAc,8BAA8B,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,YAAY,GACZ,SAAS,GACT,SAAS,GACT,cAAc,GACd,SAAS,GACT,eAAe,GACf,WAAW,CAAC;AAEhB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;8GAE06F,GAAG,0FAA0F,GAAG;;;;;oFAAqU,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;8GAAu3C,GAAG,iHAA0F,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;8GAAx7D,GAAG,0FAA0F,GAAG;;;;;oFAAqU,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;8GAAu3C,GAAG,iHAA0F,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gGAFh0J,CAAC;AACvD,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-image/src/components/ImageViewer.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;IAKpB;;OAEG;;;;;6EA4Cmf,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;;8GAAm6C,GAAG,uHAAgG,GAAG;;;;;;iCApC9hE,OAAO;;;;;;IAVpC;;OAEG;;;;;6EA4Cmf,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;;8GAAm6C,GAAG,uHAAgG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;mGAHhkE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tt-image.d.ts","sourceRoot":"","sources":["../../../src/components/tt-image/tt-image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;IA2BvC,qBAAqB;;cAEH,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;8GA2CilC,GAAG,0FAA0F,GAAG;;;;;oFAAqU,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;8GAAu3C,GAAG,iHAA0F,GAAG;;;;;;;;;;;;IA7ChjG,qBAAqB;;cAEH,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;8GA2CilC,GAAG,0FAA0F,GAAG;;;;;oFAAqU,GAAG,sDAAsD,GAAG;;;;;;;;;;;;;;;;;8GAAu3C,GAAG,iHAA0F,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBApCliG,MAAM,UAAU;YACtB,MAAM,UAAU;aACf,MAAM,UAAU;;AAf7B,wBAgDG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tt-loading/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,eAAO,MAAM,SAAS;;;;;;;;;oGAAgC,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,CAAC;AAGtB,OAAO,EAAE,OAAO,EAAE,CAAC;AAInB,cAAc,YAAY,CAAC;AAE3B,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directive.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-loading/src/directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAGjE,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC;AA6ExE,eAAO,MAAM,UAAU;gBACT,WAAW,WAAW,uBAAuB;gBAuB7C,WAAW,WAAW,uBAAuB;kBAsB3C,WAAW;CAQ1B,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-loading/src/loading.vue"],"names":[],"mappings":"AA0LA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;AA6J3C,wBAOG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-loading/src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,KAAK,qBAAqB,GAAG,YAAY,GAAG;IAC1C,qBAAqB;IACrB,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;CAC/B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAsGF,eAAO,MAAM,OAAO;IAClB;;OAEG;mBACW,qBAAqB,GAAQ,eAAe;IAI1D;;OAEG;6BACqB,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,YAAY,CAAC,GAAQ,eAAe;IAWnG;;OAEG;;CAOJ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/components/tt-loading/src/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,kBAAkB;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS;IACT,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|