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",
"version": "7.1.25",
"version": "7.1.26",
"private": false,
"main": "./dist/index.umd.min.js",
"typings": "types/index.d.ts",

View File

@ -9,7 +9,20 @@
<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>

View File

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

View File

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

View File

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