12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import '../../../constants/index.mjs';
- import '../../../utils/index.mjs';
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
- import { componentSizes } from '../../../constants/size.mjs';
- import { isArray, isString } from '@vue/shared';
- import { isBoolean } from '@vueuse/core';
- const formProps = buildProps({
- model: Object,
- rules: {
- type: definePropType(Object)
- },
- labelPosition: {
- type: String,
- values: ["left", "right", "top"],
- default: "right"
- },
- requireAsteriskPosition: {
- type: String,
- values: ["left", "right"],
- default: "left"
- },
- labelWidth: {
- type: [String, Number],
- default: ""
- },
- labelSuffix: {
- type: String,
- default: ""
- },
- inline: Boolean,
- inlineMessage: Boolean,
- statusIcon: Boolean,
- showMessage: {
- type: Boolean,
- default: true
- },
- size: {
- type: String,
- values: componentSizes
- },
- disabled: Boolean,
- validateOnRuleChange: {
- type: Boolean,
- default: true
- },
- hideRequiredAsterisk: {
- type: Boolean,
- default: false
- },
- scrollToError: Boolean
- });
- const formEmits = {
- validate: (prop, isValid, message) => (isArray(prop) || isString(prop)) && isBoolean(isValid) && isString(message)
- };
- export { formEmits, formProps };
- //# sourceMappingURL=form.mjs.map
|