refactor:【antd】【iot】统一组件文件命名规则,调整导入路径以匹配小写格式
This commit is contained in:
@@ -14,8 +14,8 @@ import { deleteThingModel, getThingModelPage } from '#/api/iot/thingmodel';
|
||||
import { getDataTypeOptionsLabel, IOT_PROVIDE_KEY } from '../utils/constants';
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import { DataDefinition } from './modules/components';
|
||||
import ThingModelForm from './modules/ThingModelForm.vue';
|
||||
import ThingModelTSL from './modules/ThingModelTSL.vue';
|
||||
import ThingModelForm from './modules/thing-model-form.vue';
|
||||
import ThingModelTsl from './modules/thing-model-tsl.vue';
|
||||
|
||||
defineOptions({ name: 'IoTThingModel' });
|
||||
|
||||
@@ -180,6 +180,6 @@ onMounted(async () => {
|
||||
<ThingModelForm ref="thingModelFormRef" @success="handleRefresh" />
|
||||
|
||||
<!-- TSL 弹窗 -->
|
||||
<ThingModelTSL ref="thingModelTSLRef" />
|
||||
<ThingModelTsl ref="thingModelTSLRef"/>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { default as DataDefinition } from './DataDefinition.vue';
|
||||
export {default as DataDefinition} from './data-definition.vue';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export { default as ThingModelArrayDataSpecs } from './ThingModelArrayDataSpecs.vue';
|
||||
export { default as ThingModelEnumDataSpecs } from './ThingModelEnumDataSpecs.vue';
|
||||
export { default as ThingModelNumberDataSpecs } from './ThingModelNumberDataSpecs.vue';
|
||||
export { default as ThingModelStructDataSpecs } from './ThingModelStructDataSpecs.vue';
|
||||
export {default as ThingModelArrayDataSpecs} from './thing-model-array-data-specs.vue';
|
||||
export {default as ThingModelEnumDataSpecs} from './thing-model-enum-data-specs.vue';
|
||||
export {default as ThingModelNumberDataSpecs} from './thing-model-number-data-specs.vue';
|
||||
export {default as ThingModelStructDataSpecs} from './thing-model-struct-data-specs.vue';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
IoTDataSpecsDataTypeEnum,
|
||||
} from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelStructDataSpecs from './ThingModelStructDataSpecs.vue';
|
||||
import ThingModelStructDataSpecs from './thing-model-struct-data-specs.vue';
|
||||
|
||||
/** 数组型的 dataSpecs 配置组件 */
|
||||
defineOptions({ name: 'ThingModelArrayDataSpecs' });
|
||||
@@ -11,7 +11,7 @@ import { Button, Divider, Form, Input, Modal } from 'ant-design-vue';
|
||||
|
||||
import { IoTDataSpecsDataTypeEnum } from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelProperty from '../ThingModelProperty.vue';
|
||||
import ThingModelProperty from '../thing-model-property.vue';
|
||||
|
||||
/** Struct 型的 dataSpecs 配置组件 */
|
||||
defineOptions({ name: 'ThingModelStructDataSpecs' });
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
IoTThingModelParamDirectionEnum,
|
||||
} from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelInputOutputParam from './ThingModelInputOutputParam.vue';
|
||||
import ThingModelInputOutputParam from './thing-model-input-output-param.vue';
|
||||
|
||||
/** IoT 物模型事件 */
|
||||
defineOptions({ name: 'ThingModelEvent' });
|
||||
@@ -25,9 +25,9 @@ import {
|
||||
IoTThingModelTypeEnum,
|
||||
} from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelEvent from './ThingModelEvent.vue';
|
||||
import ThingModelProperty from './ThingModelProperty.vue';
|
||||
import ThingModelService from './ThingModelService.vue';
|
||||
import ThingModelEvent from './thing-model-event.vue';
|
||||
import ThingModelProperty from './thing-model-property.vue';
|
||||
import ThingModelService from './thing-model-service.vue';
|
||||
|
||||
/** IoT 物模型数据表单 */
|
||||
defineOptions({ name: 'IoTThingModelForm' });
|
||||
@@ -11,7 +11,7 @@ import { Button, Divider, Form, Input, Modal } from 'ant-design-vue';
|
||||
|
||||
import { IoTDataSpecsDataTypeEnum } from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelProperty from './ThingModelProperty.vue';
|
||||
import ThingModelProperty from './thing-model-property.vue';
|
||||
|
||||
/** 输入输出参数配置组件 */
|
||||
defineOptions({ name: 'ThingModelInputOutputParam' });
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
IoTThingModelServiceCallTypeEnum,
|
||||
} from '#/views/iot/utils/constants';
|
||||
|
||||
import ThingModelInputOutputParam from './ThingModelInputOutputParam.vue';
|
||||
import ThingModelInputOutputParam from './thing-model-input-output-param.vue';
|
||||
|
||||
/** IoT 物模型服务 */
|
||||
defineOptions({ name: 'ThingModelService' });
|
||||
@@ -10,7 +10,7 @@ import { Modal, Radio, Textarea } from 'ant-design-vue';
|
||||
import { getThingModelTSL } from '#/api/iot/thingmodel';
|
||||
import { IOT_PROVIDE_KEY } from '#/views/iot/utils/constants';
|
||||
|
||||
defineOptions({ name: 'ThingModelTSL' });
|
||||
defineOptions({name: 'ThingModelTsl'});
|
||||
|
||||
const dialogVisible = ref(false); // 弹窗的是否展示
|
||||
const dialogTitle = ref('物模型 TSL'); // 弹窗的标题
|
||||
Reference in New Issue
Block a user