77 lines
2.1 KiB
JavaScript
77 lines
2.1 KiB
JavaScript
// // #ifdef H5
|
||
// import { defineAsyncComponent } from 'vue';
|
||
// // 获取当前目录下所有以.vue结尾的文件
|
||
// const modules = import.meta.glob('./*.vue');
|
||
|
||
// const asyncComponents = {};
|
||
|
||
// Object.entries(modules).forEach(([path, component]) => {
|
||
// // 获取组件的 PascalCase 命名
|
||
// const componentName = path.replace(/^.\/(.*)\.vue$/, '$1');
|
||
// // 异步加载组件
|
||
// const asyncComponent = defineAsyncComponent(() => component());
|
||
// asyncComponents[componentName] = asyncComponent;
|
||
// });
|
||
|
||
// export default asyncComponents;
|
||
// // #endif
|
||
|
||
// //app不支持异步组件,只能这样挨个引入
|
||
// // #ifndef H5
|
||
|
||
import TextInput from './TextInput.vue'
|
||
import AmountInput from './AmountInput.vue'
|
||
import TextareaInput from './TextareaInput.vue'
|
||
import SelectInput from './SelectInput.vue'
|
||
import FileUpload from './FileUpload.vue'
|
||
import ImageUpload from './ImageUpload.vue'
|
||
import MultipleSelect from './MultipleSelect.vue'
|
||
import NumberInput from './NumberInput.vue'
|
||
import TimePicker from './TimePicker.vue'
|
||
import TimeRangePicker from './TimeRangePicker.vue'
|
||
import DateTime from './DateTime.vue'
|
||
import DateTimeRange from './DateTimeRange.vue'
|
||
import UserPicker from './UserPicker.vue'
|
||
import DeptPicker from './DeptPicker.vue'
|
||
import GroupPicker from './GroupPicker.vue'
|
||
import Score from './Score.vue'
|
||
import Description from './Description.vue'
|
||
import TableList from './TableList.vue'
|
||
import SelectPlus from './SelectPlus.vue'
|
||
import Location from './Location.vue'
|
||
import Provinces from './Provinces.vue'
|
||
import SignPanel from './SignPanel.vue'
|
||
import ProcessIndex from './ProcessIndex.vue'
|
||
import CalcFormula from './CalcFormula.vue'
|
||
import OuterForm from './OuterForm.vue'
|
||
import WebIframe from './WebIframe.vue'
|
||
|
||
export {
|
||
TextInput,
|
||
AmountInput,
|
||
TextareaInput,
|
||
SelectInput,
|
||
FileUpload,
|
||
ImageUpload,
|
||
MultipleSelect,
|
||
NumberInput,
|
||
TimePicker,
|
||
TimeRangePicker,
|
||
DateTime,
|
||
DateTimeRange,
|
||
UserPicker,
|
||
DeptPicker,
|
||
GroupPicker,
|
||
Score,
|
||
Description,
|
||
TableList,
|
||
SelectPlus,
|
||
Location,
|
||
Provinces,
|
||
SignPanel,
|
||
ProcessIndex,
|
||
CalcFormula,
|
||
OuterForm,
|
||
WebIframe
|
||
}
|
||
//// #endif
|