adminforth 1.6.3-next.4 → 1.6.3-next.6
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<input
|
|
5
5
|
ref="inputEl"
|
|
6
6
|
type="text"
|
|
7
|
-
:readonly="
|
|
7
|
+
:readonly="readonly"
|
|
8
8
|
v-model="search"
|
|
9
9
|
@click="inputClick"
|
|
10
10
|
@input="inputInput"
|
|
@@ -102,7 +102,7 @@ const props = defineProps({
|
|
|
102
102
|
type: String,
|
|
103
103
|
default: '',
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
readonly: {
|
|
106
106
|
type: Boolean,
|
|
107
107
|
default: false,
|
|
108
108
|
},
|
|
@@ -147,7 +147,7 @@ function updateFromProps() {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
function inputClick() {
|
|
150
|
-
if (props.
|
|
150
|
+
if (props.readonly) return;
|
|
151
151
|
// Toggle local dropdown
|
|
152
152
|
showDropdown.value = !showDropdown.value;
|
|
153
153
|
// If the dropdown is about to close, reset the search
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<input ref="datepickerStartEl" type="text"
|
|
13
13
|
class="bg-gray-50 border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
14
|
-
:placeholder="$t('Select date')" :disabled="
|
|
14
|
+
:placeholder="$t('Select date')" :disabled="readonly" />
|
|
15
15
|
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<input v-model="startTime" type="time" id="start-time" onfocus="this.showPicker()" onclick="this.showPicker()" step="1"
|
|
29
29
|
class="bg-gray-50 border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
30
|
-
value="00:00" :disabled="
|
|
30
|
+
value="00:00" :disabled="readonly" required/>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
@@ -72,7 +72,7 @@ const props = defineProps({
|
|
|
72
72
|
autoHide: {
|
|
73
73
|
type: Boolean,
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
readonly: {
|
|
76
76
|
type: Boolean,
|
|
77
77
|
},
|
|
78
78
|
});
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{{ checkEmptyValues(record[column.name] && parseFloat(record[column.name]), route.meta.type) }}
|
|
34
34
|
</span>
|
|
35
35
|
<span v-else-if="column.type === 'json'">
|
|
36
|
-
<JsonViewer :value="record[column.name]" :expandDepth="column.extra?.jsonCollapsedLevel" copyable sort :theme="coreStore.theme"
|
|
36
|
+
<JsonViewer class="min-w-[6rem]" :value="record[column.name]" :expandDepth="column.extra?.jsonCollapsedLevel" copyable sort :theme="coreStore.theme"/>
|
|
37
37
|
</span>
|
|
38
38
|
<span v-else>
|
|
39
39
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|