@vunk/form 2.13.1 → 2.13.2

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.
@@ -93,8 +93,9 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
93
93
  }
94
94
  });
95
95
 
96
- const _hoisted_1 = {
97
- key: 1,
96
+ const _hoisted_1 = { key: 0 };
97
+ const _hoisted_2 = {
98
+ key: 2,
98
99
  class: "vkf-form-item-label__actions"
99
100
  };
100
101
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -128,15 +129,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
128
129
  ]),
129
130
  label: vue.withCtx((e) => [
130
131
  vue.renderSlot(_ctx.$slots, "label", vue.normalizeProps(vue.guardReactiveProps(e)), () => [
131
- vue.createElementVNode(
132
+ e.label ? (vue.openBlock(), vue.createElementBlock(
132
133
  "span",
133
- null,
134
+ _hoisted_1,
134
135
  vue.toDisplayString(e.label),
135
136
  1
136
137
  /* TEXT */
137
- ),
138
+ )) : vue.createCommentVNode("v-if", true),
138
139
  $props.labelTip ? (vue.openBlock(), vue.createBlock($setup["ElTooltip"], {
139
- key: 0,
140
+ key: 1,
140
141
  content: $props.labelTip
141
142
  }, {
142
143
  default: vue.withCtx(() => [
@@ -160,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
161
  _: 1
161
162
  /* STABLE */
162
163
  }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
163
- _ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
164
+ _ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
164
165
  vue.renderSlot(_ctx.$slots, "labelActions")
165
166
  ])) : vue.createCommentVNode("v-if", true)
166
167
  ])
@@ -30,3 +30,9 @@
30
30
  .vkf-form-item.is-empty-label .el-form-item__label:before{
31
31
  display: none;
32
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{
37
+ display: none;
38
+ }
@@ -89,8 +89,9 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
89
89
  }
90
90
  });
91
91
 
92
- const _hoisted_1 = {
93
- key: 1,
92
+ const _hoisted_1 = { key: 0 };
93
+ const _hoisted_2 = {
94
+ key: 2,
94
95
  class: "vkf-form-item-label__actions"
95
96
  };
96
97
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -124,15 +125,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
124
125
  ]),
125
126
  label: withCtx((e) => [
126
127
  renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(e)), () => [
127
- createElementVNode(
128
+ e.label ? (openBlock(), createElementBlock(
128
129
  "span",
129
- null,
130
+ _hoisted_1,
130
131
  toDisplayString(e.label),
131
132
  1
132
133
  /* TEXT */
133
- ),
134
+ )) : createCommentVNode("v-if", true),
134
135
  $props.labelTip ? (openBlock(), createBlock($setup["ElTooltip"], {
135
- key: 0,
136
+ key: 1,
136
137
  content: $props.labelTip
137
138
  }, {
138
139
  default: withCtx(() => [
@@ -156,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
156
157
  _: 1
157
158
  /* STABLE */
158
159
  }, 8, ["content"])) : createCommentVNode("v-if", true),
159
- _ctx.$slots.labelActions ? (openBlock(), createElementBlock("div", _hoisted_1, [
160
+ _ctx.$slots.labelActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
160
161
  renderSlot(_ctx.$slots, "labelActions")
161
162
  ])) : createCommentVNode("v-if", true)
162
163
  ])
package/index.css CHANGED
@@ -252,6 +252,12 @@
252
252
  .vkf-form-item.is-empty-label .el-form-item__label:before{
253
253
  display: none;
254
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{
259
+ display: none;
260
+ }
255
261
 
256
262
  .vkf-information-tag__tag{
257
263
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {