qidian-vue-ui 2.0.24 → 2.0.26

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.
@@ -18,11 +18,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  component: {},
19
19
  required: { type: [Boolean, String] },
20
20
  ifRender: { type: [Boolean, Function, Object] },
21
+ help: { type: [String, Function, Object] },
21
22
  rules: {},
22
23
  size: {},
23
24
  trimOnBlur: { type: Boolean },
24
25
  for: {},
25
- help: {},
26
26
  label: {},
27
27
  labelAlign: {},
28
28
  labelWidth: {},
@@ -1,6 +1,6 @@
1
- import type { CustomValidateResolveType, Data, FormInstanceFunctions, FormRule, FormValidateParams, FormValidateResult, SizeEnum, SubmitContext, TdFormItemProps, TdFormProps, TdLoadingProps, ValueType } from 'tdesign-vue-next';
1
+ import type { CustomValidateResolveType, Data, FormInstanceFunctions, FormRule, FormValidateParams, FormValidateResult, SizeEnum, SubmitContext, TdFormItemProps, TdFormProps, TdLoadingProps, TNodeReturnValue, ValueType } from 'tdesign-vue-next';
2
2
  import type { AllowedComponentProps } from 'vue';
3
- import type { QdConfigRendererProps, QdConfigValue } from '../config-renderer';
3
+ import type { QdComputeFunction, QdConfigRendererProps, QdConfigValue } from '../config-renderer';
4
4
  import type { QdGridItemProps, QdGridProps } from '../grid';
5
5
  export interface QdFormRule<FD extends Data = Data> extends Omit<FormRule, 'validator'> {
6
6
  validator?: (val: ValueType, data: FD) => CustomValidateResolveType | Promise<CustomValidateResolveType>;
@@ -10,11 +10,12 @@ export type QdFormBeforeSubmitQueueResult = boolean | {
10
10
  message?: string;
11
11
  };
12
12
  export type QdFormBeforeSubmitQueueItem = () => Promise<QdFormBeforeSubmitQueueResult> | QdFormBeforeSubmitQueueResult;
13
- export interface QdFormItemProps extends Omit<TdFormItemProps, 'rules'>, AllowedComponentProps, QdGridItemProps, Pick<QdFormProps, 'crudMode' | 'defaultClearable'> {
13
+ export interface QdFormItemProps extends Omit<TdFormItemProps, 'rules' | 'help'>, AllowedComponentProps, QdGridItemProps, Pick<QdFormProps, 'crudMode' | 'defaultClearable'> {
14
14
  context?: QdConfigRendererProps['context'];
15
15
  component?: QdConfigRendererProps['config'];
16
16
  required?: boolean | string;
17
17
  ifRender?: QdConfigValue<boolean>;
18
+ help?: TdFormItemProps['help'] | QdComputeFunction<TNodeReturnValue>;
18
19
  rules?: QdFormRule[];
19
20
  size?: SizeEnum;
20
21
  trimOnBlur?: boolean;
@@ -1,31 +1,31 @@
1
- .qd-dialog-table-select[data-v-3992bc28] {
1
+ .qd-dialog-table-select[data-v-49177435] {
2
2
  width: 100%;
3
3
  }
4
- .qd-dialog-table-select__trigger[data-v-3992bc28] {
4
+ .qd-dialog-table-select__trigger[data-v-49177435] {
5
5
  width: 100%;
6
6
  }
7
- .qd-dialog-table-select__trigger[data-v-3992bc28]:not(.qd-dialog-table-select__trigger--readonly):not(.qd-dialog-table-select__trigger--disabled) {
7
+ .qd-dialog-table-select__trigger[data-v-49177435]:not(.qd-dialog-table-select__trigger--readonly):not(.qd-dialog-table-select__trigger--disabled) {
8
8
  cursor: pointer;
9
9
  }
10
- .qd-dialog-table-select__input-trigger[data-v-3992bc28] {
10
+ .qd-dialog-table-select__input-trigger[data-v-49177435] {
11
11
  border-top-left-radius: 0;
12
12
  border-bottom-left-radius: 0;
13
13
  }
14
- .qd-dialog-table-select__table[data-v-3992bc28] .qd-crud-search > .t-loading__parent > .t-card__body,
15
- .qd-dialog-table-select__table[data-v-3992bc28] .qd-crud-table__body > .t-loading__parent > .t-card__body {
14
+ .qd-dialog-table-select__table[data-v-49177435] .qd-crud-search > .t-loading__parent > .t-card__body,
15
+ .qd-dialog-table-select__table[data-v-49177435] .qd-crud-table__body > .t-loading__parent > .t-card__body {
16
16
  padding: 0 !important;
17
17
  }
18
- .qd-dialog-table-select__table[data-v-3992bc28] .qd-crud-table__toolbar {
18
+ .qd-dialog-table-select__table[data-v-49177435] .qd-crud-table__toolbar {
19
19
  display: none;
20
20
  }
21
- .qd-dialog-table-select__table[data-v-3992bc28] .qd-service-table {
21
+ .qd-dialog-table-select__table[data-v-49177435] .qd-service-table {
22
22
  margin-top: 0;
23
23
  }
24
- .qd-dialog-table-select__table-add[data-v-3992bc28] {
24
+ .qd-dialog-table-select__table-add[data-v-49177435] {
25
25
  margin-top: var(--td-comp-margin-m);
26
26
  display: flex;
27
27
  }
28
- .qd-dialog-table-select__table-add .t-input__wrap[data-v-3992bc28] {
28
+ .qd-dialog-table-select__table-add .t-input__wrap[data-v-49177435] {
29
29
  flex: 1 1 0;
30
30
  overflow: hidden;
31
31
  margin-right: var(--td-comp-margin-m);
@@ -2,7 +2,7 @@ import './index.css'
2
2
  import _sfc_main from "./index.vue2.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3992bc28"]]);
5
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49177435"]]);
6
6
  export {
7
7
  index as default
8
8
  };
@@ -48,9 +48,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  tableMinHeight: {
49
49
  type: [String, Number, Boolean]
50
50
  },
51
- fitParentHeight: {
52
- type: Boolean
53
- },
54
51
  search: {},
55
52
  searchData: {},
56
53
  detail: {},
@@ -802,6 +799,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
802
799
  "reserve-selected-row-on-paginate": "",
803
800
  "active-row-type": "multiple"
804
801
  }, reProps.value.tableOptions, {
802
+ "fit-parent-height": "",
805
803
  onSelectChange: unref(handleSelectChange)
806
804
  }), createSlots({
807
805
  _: 2
@@ -4,7 +4,7 @@ import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from '../crud';
4
4
  import type { QdDialogInstanceFunctions, QdDialogProps } from '../dialog';
5
5
  import type { QdDialogDone } from '../dialog';
6
6
  import type { QdServiceSelectProps } from '../service-select';
7
- export interface QdServiceDialogTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onRowClick' | 'onRowDbClick' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'onClear' | 'onChange'>, Pick<QdDialogProps, 'onCancel'> {
7
+ export interface QdServiceDialogTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'fitParentHeight' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onRowClick' | 'onRowDbClick' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'onClear' | 'onChange'>, Pick<QdDialogProps, 'onCancel'> {
8
8
  keys?: KeysType;
9
9
  onCreate?: (value: string | number | boolean, done: QdDialogDone) => void;
10
10
  onConfirm?: (value: SelectValue, context: {
@@ -4,7 +4,7 @@ import _sfc_main from "./index.vue2.mjs";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
7
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cbf3ade6"]]);
7
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-098a3426"]]);
8
8
  export {
9
9
  index as default
10
10
  };
@@ -38,9 +38,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  tableMinHeight: {
39
39
  type: [String, Number, Boolean]
40
40
  },
41
- fitParentHeight: {
42
- type: Boolean
43
- },
44
41
  search: {},
45
42
  searchData: {},
46
43
  detail: {},
@@ -724,6 +721,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
724
721
  "reserve-selected-row-on-paginate": "",
725
722
  "active-row-type": "multiple"
726
723
  }, reProps.value.tableOptions, {
724
+ "fit-parent-height": "",
727
725
  onSelectChange: handleSelectChange
728
726
  }), createSlots({
729
727
  _: 2
@@ -1,23 +1,23 @@
1
- .qd-popup-table-select__table[data-v-cbf3ade6] .qd-crud-search > .t-loading__parent > .t-card__body,
2
- .qd-popup-table-select__table[data-v-cbf3ade6] .qd-crud-table__body > .t-loading__parent > .t-card__body {
1
+ .qd-popup-table-select__table[data-v-098a3426] .qd-crud-search > .t-loading__parent > .t-card__body,
2
+ .qd-popup-table-select__table[data-v-098a3426] .qd-crud-table__body > .t-loading__parent > .t-card__body {
3
3
  padding: 0 !important;
4
4
  }
5
- .qd-popup-table-select__table[data-v-cbf3ade6] .qd-crud-table__toolbar {
5
+ .qd-popup-table-select__table[data-v-098a3426] .qd-crud-table__toolbar {
6
6
  display: none;
7
7
  }
8
- .qd-popup-table-select__table[data-v-cbf3ade6] .qd-service-table {
8
+ .qd-popup-table-select__table[data-v-098a3426] .qd-service-table {
9
9
  margin-top: 0;
10
10
  }
11
- .qd-popup-table-select__table-add[data-v-cbf3ade6] {
11
+ .qd-popup-table-select__table-add[data-v-098a3426] {
12
12
  margin-top: var(--td-comp-margin-m);
13
13
  display: flex;
14
14
  }
15
- .qd-popup-table-select__table-add .t-input__wrap[data-v-cbf3ade6] {
15
+ .qd-popup-table-select__table-add .t-input__wrap[data-v-098a3426] {
16
16
  flex: 1 1 0;
17
17
  overflow: hidden;
18
18
  margin-right: var(--td-comp-margin-m);
19
19
  }
20
- .qd-popup-table-select__input-trigger[data-v-cbf3ade6] {
20
+ .qd-popup-table-select__input-trigger[data-v-098a3426] {
21
21
  border-top-left-radius: 0;
22
22
  border-bottom-left-radius: 0;
23
23
  }
@@ -2,7 +2,7 @@ import type { ServicePageParams, ServicePagination } from 'qidian-shared';
2
2
  import type { KeysType, TableRowData, TdButtonProps, TdInputProps } from 'tdesign-vue-next';
3
3
  import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from '../crud';
4
4
  import type { QdServiceSelectProps } from '../service-select';
5
- export interface QdServicePopupTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'popupVisible' | 'popupProps' | 'onClear' | 'onCreate' | 'onChange'> {
5
+ export interface QdServicePopupTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'fitParentHeight' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'popupVisible' | 'popupProps' | 'onClear' | 'onCreate' | 'onChange'> {
6
6
  keys?: KeysType;
7
7
  tableSize?: QdCrudTableProps['size'];
8
8
  addBtn?: string | TdButtonProps | null;
@@ -166,7 +166,7 @@ p {
166
166
  z-index: 72 !important;
167
167
  }
168
168
  .t-form__item:last-of-type {
169
- margin: 0;
169
+ margin-bottom: 0 !important;
170
170
  }
171
171
  .t-table__header > tr > th {
172
172
  background-color: var(--td-bg-color-secondarycontainer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.0.24",
3
+ "version": "2.0.26",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",