Commit 5fce3990 by Jaxon

style: 格式化

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