This commit is contained in:
神仙 2024-07-16 00:30:34 +08:00
parent 56e5357800
commit e5d8337a81
5 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-vue/crud", "name": "@cool-vue/crud",
"version": "7.1.25", "version": "7.1.26",
"private": false, "private": false,
"main": "./dist/index.umd.min.js", "main": "./dist/index.umd.min.js",
"typings": "types/index.d.ts", "typings": "types/index.d.ts",

View File

@ -9,7 +9,20 @@
<cl-flex1 /> <cl-flex1 />
<cl-search-key refreshOnInput></cl-search-key> <cl-search-key
field="name"
:field-list="[
{
label: '昵称',
value: 'name'
},
{
label: '手机号',
value: 'phone'
}
]"
refreshOnInput
></cl-search-key>
</cl-row> </cl-row>
<cl-row> <cl-row>

View File

@ -26,7 +26,7 @@ export default defineComponent({
// 宽度 // 宽度
width: { width: {
type: [String, Number], type: [String, Number],
default: 300 default: 260
}, },
// 是否实时刷新 // 是否实时刷新
refreshOnInput: Boolean refreshOnInput: Boolean
@ -140,7 +140,6 @@ export default defineComponent({
<div class="cl-search-key"> <div class="cl-search-key">
<el-select <el-select
class="cl-search-key__select" class="cl-search-key__select"
filterable
size={style.size} size={style.size}
v-model={selectField.value} v-model={selectField.value}
v-show={props.fieldList.length > 0} v-show={props.fieldList.length > 0}

View File

@ -1,8 +1,8 @@
import { createApp } from "vue"; import { createApp } from "vue";
import App from "./App.vue"; import App from "./App.vue";
// import Crud, { locale } from "./index"; import Crud, { locale } from "./index";
import Crud, { locale } from "../dist/index.umd"; // import Crud, { locale } from "../dist/index.umd";
import "../dist/index.css"; // import "../dist/index.css";
import ElementPlus from "element-plus"; import ElementPlus from "element-plus";
import "element-plus/dist/index.css"; import "element-plus/dist/index.css";

View File

@ -38,8 +38,8 @@
&__select { &__select {
margin-right: 10px; margin-right: 10px;
.el-input__inner { &.el-select {
width: 60px; width: 100px;
} }
} }