@neatui/nuxt 1.6.4 → 1.6.5
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
|
@@ -3,14 +3,19 @@
|
|
|
3
3
|
<template v-for="(col, idx) in state.form" :key="idx">
|
|
4
4
|
<div v-if="!col.clear" :id="col._fid" :ui-col="col.media" :ui-flex="`${vertical ? 'col xm' : 'row lt'}`">
|
|
5
5
|
<template v-if="col.label">
|
|
6
|
-
<h6 v-if="vertical" :style="`${col.rules?.some((validator: any) => validator.required) ? 'text-indent: -1em' : ''}`">
|
|
6
|
+
<h6 v-if="vertical" :style="`${col.rules?.some((validator: any) => validator.required) ? 'text-indent: -1em' : ''}`" :class="labelClass">
|
|
7
7
|
<template v-if="col.label == '*'"></template>
|
|
8
8
|
<template v-else>
|
|
9
9
|
<b v-if="col.rules?.some((validator: any) => validator.required)" class="co-risk pr" style="left: 0.1em">﹡</b>
|
|
10
10
|
<span>{{ formatLabel(col) }}</span>
|
|
11
11
|
</template>
|
|
12
12
|
</h6>
|
|
13
|
-
<p
|
|
13
|
+
<p
|
|
14
|
+
v-else
|
|
15
|
+
:class="[labelClass, `${clh({ ...(col.model[1] || {}) })}`]"
|
|
16
|
+
:style="`width:${state._lw + 'em'}; max-width:50%;`"
|
|
17
|
+
class="ar nr-sm flex-fixed o-ls"
|
|
18
|
+
>
|
|
14
19
|
<template v-if="col.label == '*'"></template>
|
|
15
20
|
<template v-else>
|
|
16
21
|
<b v-if="col.rules?.some((validator: any) => validator.required)" class="co-risk">﹡</b>
|
|
@@ -267,6 +272,11 @@
|
|
|
267
272
|
type: [Boolean, String],
|
|
268
273
|
default: true,
|
|
269
274
|
},
|
|
275
|
+
// 统一的label class
|
|
276
|
+
labelClass: {
|
|
277
|
+
type: [String, Array, Object],
|
|
278
|
+
default: '',
|
|
279
|
+
},
|
|
270
280
|
// 是否垂直排列
|
|
271
281
|
vertical: {
|
|
272
282
|
type: Boolean,
|