Commit 5fce3990 by Jaxon

style: 格式化

1 parent dc36a1e7
import request from "./request" import request from "./request";
import RequestMethods from "./request.methods" import RequestMethods from "./request.methods";
const path = "dj.api.smarcarlife."
const path = "dj.api.smarcarlife.";
export function getList(data) { export function getList(data) {
data.method = `${path}construction.item.page`
return request(data, RequestMethods.POST)
}
\ No newline at end of file \ No newline at end of file
data.method = `${path}construction.item.page`;
return request(data, RequestMethods.POST);
}
<template> <template>
<el-select ref="selectRef" <el-select :key="forceKey"
:key="forceKey" ref="selectRef"
v-select-load-more="loadMore" v-select-load-more="loadMore"
:value="value" :value="value"
v-bind="selectProps" v-bind="selectProps"
v-on="selectEvent" v-on="selectEvent"
@visible-change="handleVisibleChange" @change="handleSelectChange"
@change="handleSelectChange"> @visible-change="handleVisibleChange">
<el-option v-for="subItem in localOptions" <el-option v-for="subItem in localOptions"
:key="subItem[fieldName.value]" :key="subItem[fieldName.value]"
v-bind="{ v-bind="{
value: $attrs['value-key'] ? subItem : subItem[fieldName.value], value: $attrs['value-key'] ? subItem : subItem[fieldName.value],
label: subItem[fieldName.label], label: subItem[fieldName.label],
...isFunction(optionProps) ? optionProps(subItem) : optionProps, ...isFunction(optionProps) ? optionProps(subItem) : optionProps,
}"> }">
<slot name="options" <slot name="options" :row="subItem">
:row="subItem"> </slot>
</slot> </el-option>
</el-option> <template #empty>
<template #empty> <div class="temp-wrapper empty-wrapper"
<div class="temp-wrapper empty-wrapper" style="text-align: center;cursor: not-allowed;padding:4px 0;">
style="text-align: center;cursor: not-allowed;padding:4px 0;"> <div v-if="loading">
<div v-if="loading"> <span class="el-icon-loading" />
<span class="el-icon-loading" />
</div>
<div v-else
title="请键入其他关键字">
没有找到相关数据
</div>
</div>
</template>
<div class="temp-wrapper page-tips"
title="不要点我">
<div v-if="(pageQuery.currentPage <= pageQuery.pages) && loading">
<span>
下一页加载中
</span>
<span class="el-icon-loading" />
</div>
<div v-else>
到底没有更多了
</div>
</div> </div>
</el-select> <div v-else
title="请键入其他关键字">
没有找到相关数据
</div>
</div>
</template>
<div class="temp-wrapper page-tips"
title="不要点我">
<div v-if="(pageQuery.currentPage <= pageQuery.pages) && loading">
<span>
下一页加载中
</span>
<span class="el-icon-loading" />
</div>
<div v-else>
到底没有更多了
</div>
</div>
</el-select>
</template> </template>
<script> <script>
...@@ -203,7 +202,7 @@ export default { ...@@ -203,7 +202,7 @@ export default {
// 是否第一次触发 // 是否第一次触发
isImmediate, isImmediate,
}); });
let { defaultValue } = this; const { defaultValue } = this;
if (loadMore) { if (loadMore) {
// 加载更多时,如果默认值已存在则移除,避免重复 // 加载更多时,如果默认值已存在则移除,避免重复
......
<template> <template>
<el-input-number v-bind="$attrs" <el-input-number v-bind="$attrs"
:value="displayValue" :value="displayValue"
v-on="inputNumberListeners"> v-on="inputNumberListeners">
<slot></slot> <slot></slot>
</el-input-number> </el-input-number>
</template> </template>
<script> <script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!