qidian-vue-ui 2.0.37 → 2.0.39

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.
@@ -83,8 +83,12 @@ const QdServiceTableFilterItem = /* @__PURE__ */ defineComponent({
83
83
  if (allSelected.value || !selectedValues.value.length) return totalCount.value;
84
84
  return props.options.reduce((total, option) => selectedValues.value.includes(option.value) ? total + (option.count ?? 0) : total, 0);
85
85
  });
86
- function selectAll() {
87
- props.onChange?.(props.type === "multiple" ? [] : "");
86
+ function selectAll(checked) {
87
+ if (props.type === "single") {
88
+ props.onChange?.("");
89
+ return;
90
+ }
91
+ props.onChange?.(checked || !props.showConfirmAndReset ? [] : null);
88
92
  }
89
93
  function selectOption(value, checked) {
90
94
  if (props.type === "single") {
@@ -130,6 +134,7 @@ const QdServiceTableFilterItem = /* @__PURE__ */ defineComponent({
130
134
  "class": "qd-service-table-filter-item__all"
131
135
  }, [props.type === "multiple" ? createVNode(Checkbox, {
132
136
  "checked": allSelected.value,
137
+ "disabled": !props.showConfirmAndReset && allSelected.value,
133
138
  "onChange": selectAll
134
139
  }, {
135
140
  default: () => [t("filterItemAllText"), createVNode("span", {
@@ -168,6 +168,38 @@ p {
168
168
  .t-form__item {
169
169
  margin-bottom: var(--td-comp-margin-xl) !important;
170
170
  }
171
+ .t-form__controls .t-form__item {
172
+ margin-right: 0 !important;
173
+ }
174
+ .t-input.t-is-readonly:not(.t-is-disabled),
175
+ .t-textarea.t-is-readonly .t-textarea__inner {
176
+ background-color: var(--td-bg-color-component-disabled);
177
+ border-color: var(--td-border-level-2-color);
178
+ }
179
+ .t-input.t-is-readonly:not(.t-is-disabled):hover,
180
+ .t-textarea.t-is-readonly .t-textarea__inner:hover {
181
+ border-color: var(--td-border-level-2-color);
182
+ }
183
+ .t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled) {
184
+ background-color: var(--td-bg-color-specialcomponent);
185
+ border-color: var(--td-border-level-2-color);
186
+ }
187
+ .t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled):hover,
188
+ .t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled).t-input--focused {
189
+ border-color: var(--td-brand-color);
190
+ }
191
+ .t-radio:not(.t-is-checked) > .t-radio__former[readonly] + .t-radio__input {
192
+ background-color: var(--td-bg-color-component-disabled);
193
+ }
194
+ .t-radio:not(.t-is-checked):hover > .t-radio__former[readonly] + .t-radio__input {
195
+ border-color: var(--td-border-level-2-color);
196
+ }
197
+ .t-checkbox:not(.t-is-checked) > .t-checkbox__former[readonly] + .t-checkbox__input {
198
+ background-color: var(--td-bg-color-component-disabled);
199
+ }
200
+ .t-checkbox:not(.t-is-checked):hover > .t-checkbox__former[readonly] + .t-checkbox__input {
201
+ border-color: var(--td-border-level-2-color);
202
+ }
171
203
  .t-table__header > tr > th {
172
204
  background-color: var(--td-bg-color-secondarycontainer);
173
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",