UNPKG

vue-admin-core

Version:
40 lines (37 loc) 1.16 kB
import { defineComponent, ref, h } from 'vue'; import { connect, mapProps, mapReadPretty } from '@formily/vue'; import '../../../components/index.mjs'; import { useArrToStr } from '../../__builtins__/hooks/useArrToStr.mjs'; import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from 'element-plus'; import '../../preview-text/index.mjs'; import { VacTableSelect } from '../../../components/table-select/index.mjs'; import { PreviewText } from '../../preview-text/src/index.mjs'; const TableSelect = connect( defineComponent({ name: "FTableSelect", props: { ...VacTableSelect.props }, emits: [UPDATE_MODEL_EVENT, CHANGE_EVENT], setup(props, ctx) { const tableSelect = ref(); const _props = useArrToStr(props, ctx, { vm: tableSelect }); return () => { return h(VacTableSelect, { ...props, ..._props, ref: (ref2) => tableSelect.value = ref2 }); }; } }), mapProps({ value: "modelValue", readOnly: "readonly", dataSource: "data", loading: true }), mapReadPretty(PreviewText.Select) ); export { TableSelect }; //# sourceMappingURL=index.mjs.map