@mythpe/quasar-ui-qui 0.2.56 → 0.2.58
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
CHANGED
|
@@ -587,13 +587,16 @@ defineExpose({
|
|
|
587
587
|
/>
|
|
588
588
|
</template>
|
|
589
589
|
<template v-else-if="colorColumnsProp.indexOf(col.name) !== -1">
|
|
590
|
-
<MDtColorColumn :
|
|
590
|
+
<MDtColorColumn :value="col.value" />
|
|
591
591
|
</template>
|
|
592
592
|
<template v-else-if="sarColumnsProp.indexOf(col.name) !== -1">
|
|
593
593
|
<MDtSarColumn :value="col.value" />
|
|
594
594
|
</template>
|
|
595
595
|
<template v-else-if="copyColumnsProp.indexOf(col.name) !== -1">
|
|
596
|
-
<MDtCopyColumn
|
|
596
|
+
<MDtCopyColumn
|
|
597
|
+
:label="col.value"
|
|
598
|
+
:value="col.value"
|
|
599
|
+
/>
|
|
597
600
|
</template>
|
|
598
601
|
<template v-else-if="col.name === controlKey">
|
|
599
602
|
<MRow
|
|
@@ -1124,56 +1127,59 @@ defineExpose({
|
|
|
1124
1127
|
</slot>
|
|
1125
1128
|
</template>
|
|
1126
1129
|
<template
|
|
1127
|
-
v-for="
|
|
1128
|
-
:key="`a-
|
|
1129
|
-
#[`body-cell-${
|
|
1130
|
+
v-for="imageCol in imageColumnsProp"
|
|
1131
|
+
:key="`a-image-body-cell-${imageCol}`"
|
|
1132
|
+
#[`body-cell-${imageCol}`]="imageColProps"
|
|
1130
1133
|
>
|
|
1131
|
-
<q-td :props="
|
|
1134
|
+
<q-td :props="imageColProps">
|
|
1132
1135
|
<MDtImageColumn
|
|
1133
1136
|
:image-mode="getProp('imageMode')"
|
|
1134
1137
|
:image-size="getProp('imageSize')"
|
|
1135
|
-
:value="
|
|
1136
|
-
@click="openImageDialog(
|
|
1138
|
+
:value="imageColProps.row[imageColProps.col.field]"
|
|
1139
|
+
@click="openImageDialog(imageColProps.row[imageColProps.col.field])"
|
|
1137
1140
|
/>
|
|
1138
1141
|
</q-td>
|
|
1139
1142
|
</template>
|
|
1140
1143
|
<template
|
|
1141
1144
|
v-for="u in urlColumnsProp"
|
|
1142
|
-
:key="`a-u-${u}`"
|
|
1145
|
+
:key="`a-u-body-cell-${u}`"
|
|
1143
1146
|
#[`body-cell-${u}`]="urlProps"
|
|
1144
1147
|
>
|
|
1145
1148
|
<q-td :props="urlProps">
|
|
1146
1149
|
<MDtUrlColumn
|
|
1147
|
-
:value="urlProps.row[
|
|
1148
|
-
@click="openWindow(urlProps.row[
|
|
1150
|
+
:value="urlProps.row[urlProps.col.field]"
|
|
1151
|
+
@click="openWindow(urlProps.row[urlProps.col.field])"
|
|
1149
1152
|
/>
|
|
1150
1153
|
</q-td>
|
|
1151
1154
|
</template>
|
|
1152
1155
|
<template
|
|
1153
1156
|
v-for="cc in colorColumnsProp"
|
|
1154
|
-
:key="`a-cc-${cc}`"
|
|
1157
|
+
:key="`a-cc-body-cell-${cc}`"
|
|
1155
1158
|
#[`body-cell-${cc}`]="ccProps"
|
|
1156
1159
|
>
|
|
1157
1160
|
<q-td :props="ccProps">
|
|
1158
|
-
<MDtColorColumn :
|
|
1161
|
+
<MDtColorColumn :value="ccProps.row[ccProps.col.field]" />
|
|
1159
1162
|
</q-td>
|
|
1160
1163
|
</template>
|
|
1161
1164
|
<template
|
|
1162
1165
|
v-for="sr in sarColumnsProp"
|
|
1163
|
-
:key="`a-sr-${sr}`"
|
|
1166
|
+
:key="`a-sr-body-cell-${sr}`"
|
|
1164
1167
|
#[`body-cell-${sr}`]="srProps"
|
|
1165
1168
|
>
|
|
1166
1169
|
<q-td :props="srProps">
|
|
1167
|
-
<MDtSarColumn :value="srProps.row[
|
|
1170
|
+
<MDtSarColumn :value="srProps.row[srProps.col.field]" />
|
|
1168
1171
|
</q-td>
|
|
1169
1172
|
</template>
|
|
1170
1173
|
<template
|
|
1171
1174
|
v-for="cp in copyColumnsProp"
|
|
1172
|
-
:key="`a-cp-${cp}`"
|
|
1175
|
+
:key="`a-cp-body-cell-${cp}`"
|
|
1173
1176
|
#[`body-cell-${cp}`]="copyColumnProps"
|
|
1174
1177
|
>
|
|
1175
1178
|
<q-td :props="copyColumnProps">
|
|
1176
|
-
<MDtCopyColumn
|
|
1179
|
+
<MDtCopyColumn
|
|
1180
|
+
:label="copyColumnProps.row[copyColumnProps.col.field]"
|
|
1181
|
+
:value="copyColumnProps.row[copyColumnProps.col.field]"
|
|
1182
|
+
/>
|
|
1177
1183
|
</q-td>
|
|
1178
1184
|
</template>
|
|
1179
1185
|
|
|
@@ -12,6 +12,7 @@ import { useMyth } from '../../composable'
|
|
|
12
12
|
import type { MDtCopyColumnProps } from '../../types'
|
|
13
13
|
|
|
14
14
|
interface Props {
|
|
15
|
+
label?: MDtCopyColumnProps['value'];
|
|
15
16
|
value?: MDtCopyColumnProps['value'];
|
|
16
17
|
width?: MDtCopyColumnProps['width'];
|
|
17
18
|
}
|
|
@@ -33,9 +34,9 @@ defineOptions({
|
|
|
33
34
|
:style="`max-width: ${width || 150}px;`"
|
|
34
35
|
class="ellipsis"
|
|
35
36
|
>
|
|
36
|
-
{{
|
|
37
|
+
{{ label || '' }}
|
|
37
38
|
<q-tooltip>
|
|
38
|
-
{{
|
|
39
|
+
{{ value }}
|
|
39
40
|
</q-tooltip>
|
|
40
41
|
</div>
|
|
41
42
|
<q-btn
|
|
@@ -221,7 +221,8 @@ defineOptions({
|
|
|
221
221
|
hint: hint ? __(hint) : undefined,
|
|
222
222
|
label: hasTopLabel ? undefined : ( getLabel || undefined),
|
|
223
223
|
autocomplete: getAutocompleteAttribute || undefined,
|
|
224
|
-
stackLabel: !0
|
|
224
|
+
stackLabel: !0,
|
|
225
|
+
clearable: viewMode ? !1 : getProp('clearable')
|
|
225
226
|
}"
|
|
226
227
|
>
|
|
227
228
|
<template #control>
|