File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ onMounted(() => {
183
183
:placeholder =" placeholder"
184
184
:readonly =" readonly"
185
185
v-bind =" bindings.input"
186
- class =" bg-transparent outline-none grow max-w-full"
186
+ class =" bg-transparent outline-none grow max-w-full placeholder:text-t-secondary/50 "
187
187
@focus =" onFocus"
188
188
@blur =" onBlur"
189
189
/>
Original file line number Diff line number Diff line change @@ -148,13 +148,21 @@ function upload() {
148
148
</script >
149
149
150
150
<template >
151
- <is-input v-if =" column.type === 'number'" v-model =" model" flat type =" number" class =" w-full" />
151
+ <is-input
152
+ v-if =" column.type === 'number'"
153
+ v-model =" model"
154
+ :placeholder =" column.label"
155
+ flat
156
+ type =" number"
157
+ class =" w-full"
158
+ />
152
159
153
160
<is-select
154
161
v-else-if =" column.type === 'select'"
155
162
v-model =" model"
156
163
:options =" select.options"
157
164
flat
165
+ :placeholder =" column.label"
158
166
/>
159
167
160
168
<v-dialog v-else-if =" column.type === 'script'" >
@@ -165,6 +173,7 @@ function upload() {
165
173
readonly
166
174
flat
167
175
input:class =" cursor-pointer w-full"
176
+ :placeholder =" column.label"
168
177
/>
169
178
</template >
170
179
@@ -182,6 +191,7 @@ function upload() {
182
191
v-model =" model"
183
192
:label-key =" column.displayField"
184
193
:options =" relation.items"
194
+ :placeholder =" column.label"
185
195
return-object
186
196
value-key =" id"
187
197
flat
@@ -213,7 +223,7 @@ function upload() {
213
223
</div >
214
224
</template >
215
225
216
- <is-input v-else-if =" column.type === 'text'" v-model =" model" flat />
226
+ <is-input v-else-if =" column.type === 'text'" v-model =" model" flat :placeholder = " column.label " />
217
227
218
228
<div v-else class =" text-danger px-4 py-2" >
219
229
{{ $t('errors.unknown') }}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const useStore = defineStore('item', () => {
20
20
21
21
const items = ref < StoreItems [ ] > ( [ ] )
22
22
23
- async function setItems ( collectionId : string ) {
23
+ async function setItems ( collectionId : string , forceUpdate = false ) {
24
24
let storeItem = items . value . find ( ( i ) => i . collectionId === collectionId )
25
25
26
26
if ( ! storeItem ) {
@@ -33,6 +33,8 @@ export const useStore = defineStore('item', () => {
33
33
items . value . push ( storeItem )
34
34
}
35
35
36
+ if ( ! forceUpdate && storeItem . items . length ) return
37
+
36
38
storeItem . loading = true
37
39
38
40
const raw : Item [ ] = await useCase ( 'list-items' , {
You can’t perform that action at this time.
0 commit comments