@vunk/form 2.14.9 → 2.14.10
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/components/form-item/index.cjs +10 -12
- package/components/form-item/index.css +1 -7
- package/components/form-item/index.mjs +11 -13
- package/index.css +1 -7
- package/package.json +1 -1
|
@@ -95,8 +95,9 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
const _hoisted_1 = {
|
|
99
|
-
|
|
98
|
+
const _hoisted_1 = { key: 0 };
|
|
99
|
+
const _hoisted_2 = {
|
|
100
|
+
key: 2,
|
|
100
101
|
class: "vkf-form-item-label__actions"
|
|
101
102
|
};
|
|
102
103
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -132,17 +133,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
133
|
]),
|
|
133
134
|
label: vue.withCtx((e) => [
|
|
134
135
|
vue.renderSlot(_ctx.$slots, "label", vue.normalizeProps(vue.guardReactiveProps(e)), () => [
|
|
135
|
-
vue.
|
|
136
|
+
$props.label ? (vue.openBlock(), vue.createElementBlock(
|
|
136
137
|
"span",
|
|
137
|
-
|
|
138
|
+
_hoisted_1,
|
|
138
139
|
vue.toDisplayString(e.label),
|
|
139
|
-
|
|
140
|
-
/* TEXT
|
|
141
|
-
),
|
|
142
|
-
[vue.vShow, $props.label]
|
|
143
|
-
]),
|
|
140
|
+
1
|
|
141
|
+
/* TEXT */
|
|
142
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
144
143
|
$props.labelTip ? (vue.openBlock(), vue.createBlock($setup["ElTooltip"], {
|
|
145
|
-
key:
|
|
144
|
+
key: 1,
|
|
146
145
|
content: $props.labelTip
|
|
147
146
|
}, {
|
|
148
147
|
default: vue.withCtx(() => [
|
|
@@ -166,7 +165,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
165
|
_: 1
|
|
167
166
|
/* STABLE */
|
|
168
167
|
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
169
|
-
_ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div",
|
|
168
|
+
_ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
170
169
|
vue.renderSlot(_ctx.$slots, "labelActions")
|
|
171
170
|
])) : vue.createCommentVNode("v-if", true)
|
|
172
171
|
])
|
|
@@ -235,7 +234,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
235
234
|
});
|
|
236
235
|
return data;
|
|
237
236
|
});
|
|
238
|
-
console.log("props.label", props2.label);
|
|
239
237
|
return () => vue.h(FormItemCore, {
|
|
240
238
|
...formItemBindProps.value,
|
|
241
239
|
elRef: props2.elRef,
|
|
@@ -27,12 +27,6 @@
|
|
|
27
27
|
.vkf-form-item--inline{
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
}
|
|
30
|
-
.vkf-form-item.is-empty-label .el-form-item__label
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
.vkf-form-item.is-empty-label .el-form-item__label::after{
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
.vkf-form-item .el-form-item__label:empty{
|
|
30
|
+
.vkf-form-item.is-empty-label .el-form-item__label{
|
|
37
31
|
display: none;
|
|
38
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formItemProps, ElFormItem, ElTooltip, ElIcon, ElButton, useGlobalConfig } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
|
-
import { defineComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, normalizeProps, guardReactiveProps,
|
|
3
|
+
import { defineComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, normalizeProps, guardReactiveProps, createVNode, computed, h } from 'vue';
|
|
4
4
|
import { createFormItemBindProps } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
@@ -91,8 +91,9 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
const _hoisted_1 = {
|
|
95
|
-
|
|
94
|
+
const _hoisted_1 = { key: 0 };
|
|
95
|
+
const _hoisted_2 = {
|
|
96
|
+
key: 2,
|
|
96
97
|
class: "vkf-form-item-label__actions"
|
|
97
98
|
};
|
|
98
99
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -128,17 +129,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
128
129
|
]),
|
|
129
130
|
label: withCtx((e) => [
|
|
130
131
|
renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(e)), () => [
|
|
131
|
-
|
|
132
|
+
$props.label ? (openBlock(), createElementBlock(
|
|
132
133
|
"span",
|
|
133
|
-
|
|
134
|
+
_hoisted_1,
|
|
134
135
|
toDisplayString(e.label),
|
|
135
|
-
|
|
136
|
-
/* TEXT
|
|
137
|
-
),
|
|
138
|
-
[vShow, $props.label]
|
|
139
|
-
]),
|
|
136
|
+
1
|
|
137
|
+
/* TEXT */
|
|
138
|
+
)) : createCommentVNode("v-if", true),
|
|
140
139
|
$props.labelTip ? (openBlock(), createBlock($setup["ElTooltip"], {
|
|
141
|
-
key:
|
|
140
|
+
key: 1,
|
|
142
141
|
content: $props.labelTip
|
|
143
142
|
}, {
|
|
144
143
|
default: withCtx(() => [
|
|
@@ -162,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
162
161
|
_: 1
|
|
163
162
|
/* STABLE */
|
|
164
163
|
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
165
|
-
_ctx.$slots.labelActions ? (openBlock(), createElementBlock("div",
|
|
164
|
+
_ctx.$slots.labelActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
166
165
|
renderSlot(_ctx.$slots, "labelActions")
|
|
167
166
|
])) : createCommentVNode("v-if", true)
|
|
168
167
|
])
|
|
@@ -231,7 +230,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
230
|
});
|
|
232
231
|
return data;
|
|
233
232
|
});
|
|
234
|
-
console.log("props.label", props2.label);
|
|
235
233
|
return () => h(FormItemCore, {
|
|
236
234
|
...formItemBindProps.value,
|
|
237
235
|
elRef: props2.elRef,
|
package/index.css
CHANGED
|
@@ -249,13 +249,7 @@
|
|
|
249
249
|
.vkf-form-item--inline{
|
|
250
250
|
display: inline-flex;
|
|
251
251
|
}
|
|
252
|
-
.vkf-form-item.is-empty-label .el-form-item__label
|
|
253
|
-
display: none;
|
|
254
|
-
}
|
|
255
|
-
.vkf-form-item.is-empty-label .el-form-item__label::after{
|
|
256
|
-
display: none;
|
|
257
|
-
}
|
|
258
|
-
.vkf-form-item .el-form-item__label:empty{
|
|
252
|
+
.vkf-form-item.is-empty-label .el-form-item__label{
|
|
259
253
|
display: none;
|
|
260
254
|
}
|
|
261
255
|
|