@mixd-id/web-scaffold 0.1.240411056 → 0.1.240411057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/List.vue +8 -4
package/package.json
CHANGED
package/src/components/List.vue
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<div v-if="preset" class="flex-1 flex flex-col relative">
|
|
32
32
|
|
|
33
|
-
<div class="flex-1 flex flex-col" :class="containerClass">
|
|
33
|
+
<div class="flex-1 flex flex-col gap-2" :class="containerClass">
|
|
34
34
|
<slot name="head"
|
|
35
35
|
:preset="preset"
|
|
36
36
|
:presetSelector="$refs.presetSelector"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
|
|
89
89
|
<div class="flex flex-row gap-2 gap-1" v-if="Boolean(toolbar)">
|
|
90
|
-
<Textbox v-if="
|
|
90
|
+
<Textbox v-if="canSearch" class="flex-1 md:w-[240px]" placeholder="Search..." clearable="1"
|
|
91
91
|
maxlength="100"
|
|
92
92
|
v-model="preset.search"
|
|
93
93
|
@clear="delete preset.search; load()"
|
|
@@ -328,6 +328,10 @@ export default{
|
|
|
328
328
|
sorts: [ Array, Function ],
|
|
329
329
|
itemsFn: Function,
|
|
330
330
|
onSignalFn: Function,
|
|
331
|
+
searchable: {
|
|
332
|
+
type: Boolean,
|
|
333
|
+
default: true
|
|
334
|
+
},
|
|
331
335
|
},
|
|
332
336
|
|
|
333
337
|
methods: {
|
|
@@ -1059,8 +1063,8 @@ export default{
|
|
|
1059
1063
|
return this.cConfig.sharedPresets ?? []
|
|
1060
1064
|
},
|
|
1061
1065
|
|
|
1062
|
-
|
|
1063
|
-
return
|
|
1066
|
+
canSearch(){
|
|
1067
|
+
return this.searchable // this.preset.columns.some(_ => 'search' in _)
|
|
1064
1068
|
},
|
|
1065
1069
|
|
|
1066
1070
|
sidebar(){
|