qidian-vue-ui 2.8.5 → 2.8.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.
@@ -1,6 +1,6 @@
1
- .qd-form-item[data-v-c50cabe3] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
1
+ .qd-form-item[data-v-f980dade] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
2
2
  width: 100%;
3
3
  }
4
- .qd-form-item__component[data-v-c50cabe3]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
4
+ .qd-form-item__component[data-v-f980dade]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
5
5
  width: 100%;
6
6
  }
@@ -2,7 +2,7 @@ import './item.css'
2
2
  import _sfc_main from "./item.vue2.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c50cabe3"]]);
5
+ const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f980dade"]]);
6
6
  export {
7
7
  QdFormItem as default
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import './item.css'
2
- import { defineComponent, mergeDefaults, computed, inject, ref, createBlock, createCommentVNode, openBlock, unref, mergeProps, withCtx, createVNode, normalizeProps, guardReactiveProps, createSlots, renderSlot, renderList } from "vue";
2
+ import { defineComponent, mergeDefaults, computed, isVNode, inject, ref, createBlock, createCommentVNode, openBlock, unref, mergeProps, withCtx, createVNode, normalizeProps, guardReactiveProps, createSlots, renderSlot, renderList } from "vue";
3
3
  import { isEmpty, filterSlots } from "qidian-shared";
4
4
  import { FormItem } from "tdesign-vue-next";
5
5
  import { useConfig } from "../config-provider/useConfig.mjs";
@@ -69,6 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  currentContext,
70
70
  props.crudMode
71
71
  );
72
+ if (isVNode(result.value)) return () => result.value;
72
73
  return result.value;
73
74
  }
74
75
  return label;
@@ -13,7 +13,7 @@ export type QdFormBeforeSubmitQueueItem = () => Promise<QdFormBeforeSubmitQueueR
13
13
  export interface QdFormItemProps extends Omit<TdFormItemProps, 'label' | 'rules' | 'help'>, AllowedComponentProps, QdGridItemProps, Pick<QdFormProps, 'crudMode' | 'defaultClearable'> {
14
14
  context?: QdConfigRendererProps['context'];
15
15
  component?: QdConfigRendererProps['config'];
16
- label?: TdFormItemProps['label'] | QdConfigValue<TdFormItemProps['label']>;
16
+ label?: TdFormItemProps['label'] | QdConfigValue<TNodeReturnValue>;
17
17
  required?: boolean | string;
18
18
  ifRender?: QdConfigValue<boolean>;
19
19
  help?: TdFormItemProps['help'] | QdComputeFunction<TNodeReturnValue>;
@@ -168,13 +168,13 @@ p {
168
168
  .t-form__item {
169
169
  margin-bottom: var(--td-comp-margin-xl) !important;
170
170
  }
171
- .t-form__label label {
172
- display: flex;
173
- flex-wrap: wrap;
174
- }
175
171
  .t-form__label--top {
176
172
  padding-right: 0 !important;
177
173
  }
174
+ .t-form__label--top label {
175
+ display: flex;
176
+ flex-wrap: wrap;
177
+ }
178
178
  .t-form__controls .t-form__item {
179
179
  margin-right: 0 !important;
180
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",