@sia.soul/sia-react-ui 0.1.101 → 0.1.103
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/dist/core.css +21 -0
- package/dist/index.css +21 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/core.css
CHANGED
|
@@ -3629,6 +3629,17 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3629
3629
|
height: 30px;
|
|
3630
3630
|
padding: 0;
|
|
3631
3631
|
}
|
|
3632
|
+
.sia-table__toolbar > div:last-child .sia-button:has(> :is(.sia-button__icon, .sia-button__spinner):only-child),
|
|
3633
|
+
.sia-table__toolbar > div:last-child .sia-button:has(> span:only-child > .sia-icon:only-child) {
|
|
3634
|
+
min-width: 30px;
|
|
3635
|
+
width: 30px;
|
|
3636
|
+
height: 30px;
|
|
3637
|
+
padding: 0;
|
|
3638
|
+
}
|
|
3639
|
+
.sia-table__toolbar > div:last-child > :is(.sia-space--horizontal, .sia-toolbar) {
|
|
3640
|
+
column-gap: inherit !important;
|
|
3641
|
+
width: auto;
|
|
3642
|
+
}
|
|
3632
3643
|
.sia-table__viewport-wrap {
|
|
3633
3644
|
position: relative;
|
|
3634
3645
|
display: flex;
|
|
@@ -5167,6 +5178,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5167
5178
|
min-width: 0;
|
|
5168
5179
|
width: 0;
|
|
5169
5180
|
}
|
|
5181
|
+
.sia-query-form__field .sia-space-compact--horizontal:has(> .sia-select:first-child + .sia-field:last-child > .sia-input-control) > .sia-select {
|
|
5182
|
+
flex: 4 1 0;
|
|
5183
|
+
min-width: 0;
|
|
5184
|
+
width: 0;
|
|
5185
|
+
}
|
|
5186
|
+
.sia-query-form__field .sia-space-compact--horizontal:has(> .sia-select:first-child + .sia-field:last-child > .sia-input-control) > .sia-field {
|
|
5187
|
+
flex: 6 1 0;
|
|
5188
|
+
min-width: 0;
|
|
5189
|
+
width: 0;
|
|
5190
|
+
}
|
|
5170
5191
|
.sia-query-form__actions {
|
|
5171
5192
|
display: flex;
|
|
5172
5193
|
align-items: center;
|
package/dist/index.css
CHANGED
|
@@ -3629,6 +3629,17 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3629
3629
|
height: 30px;
|
|
3630
3630
|
padding: 0;
|
|
3631
3631
|
}
|
|
3632
|
+
.sia-table__toolbar > div:last-child .sia-button:has(> :is(.sia-button__icon, .sia-button__spinner):only-child),
|
|
3633
|
+
.sia-table__toolbar > div:last-child .sia-button:has(> span:only-child > .sia-icon:only-child) {
|
|
3634
|
+
min-width: 30px;
|
|
3635
|
+
width: 30px;
|
|
3636
|
+
height: 30px;
|
|
3637
|
+
padding: 0;
|
|
3638
|
+
}
|
|
3639
|
+
.sia-table__toolbar > div:last-child > :is(.sia-space--horizontal, .sia-toolbar) {
|
|
3640
|
+
column-gap: inherit !important;
|
|
3641
|
+
width: auto;
|
|
3642
|
+
}
|
|
3632
3643
|
.sia-table__viewport-wrap {
|
|
3633
3644
|
position: relative;
|
|
3634
3645
|
display: flex;
|
|
@@ -5167,6 +5178,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5167
5178
|
min-width: 0;
|
|
5168
5179
|
width: 0;
|
|
5169
5180
|
}
|
|
5181
|
+
.sia-query-form__field .sia-space-compact--horizontal:has(> .sia-select:first-child + .sia-field:last-child > .sia-input-control) > .sia-select {
|
|
5182
|
+
flex: 4 1 0;
|
|
5183
|
+
min-width: 0;
|
|
5184
|
+
width: 0;
|
|
5185
|
+
}
|
|
5186
|
+
.sia-query-form__field .sia-space-compact--horizontal:has(> .sia-select:first-child + .sia-field:last-child > .sia-input-control) > .sia-field {
|
|
5187
|
+
flex: 6 1 0;
|
|
5188
|
+
min-width: 0;
|
|
5189
|
+
width: 0;
|
|
5190
|
+
}
|
|
5170
5191
|
.sia-query-form__actions {
|
|
5171
5192
|
display: flex;
|
|
5172
5193
|
align-items: center;
|
package/dist/index.d.cts
CHANGED
|
@@ -2831,7 +2831,7 @@ interface TableToolbarItem<T> {
|
|
|
2831
2831
|
interface TableToolbarPluginOptions<T> {
|
|
2832
2832
|
/** 范围起点。 */
|
|
2833
2833
|
start?: ReactNode;
|
|
2834
|
-
/**
|
|
2834
|
+
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层 8px 间距。 */
|
|
2835
2835
|
end?: ReactNode;
|
|
2836
2836
|
/** 按展示顺序排列的项目配置。 */
|
|
2837
2837
|
items?: readonly TableToolbarItem<T>[];
|
|
@@ -3178,7 +3178,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3178
3178
|
* @defaultValue undefined
|
|
3179
3179
|
*/
|
|
3180
3180
|
showSettings?: boolean;
|
|
3181
|
-
/** 也可直接放入 Form.Item 或 Space.Compact
|
|
3181
|
+
/** 也可直接放入 Form.Item 或 Space.Compact,每个直接子项视为一个查询字段。横向 Space.Compact 仅包含左侧 Select 和右侧 Input 时,默认按 40% / 60% 分配宽度;Form.Item noStyle 包裹时同样适用。 */
|
|
3182
3182
|
children?: ReactNode;
|
|
3183
3183
|
/** 表单校验通过后执行查询。values 是完整条件;info.source 区分 submit(查询)、reset(重置)、quick(顶部预设)和 saved(已保存条件)。返回 Promise 时自动显示加载状态并阻止重复提交。 */
|
|
3184
3184
|
onSearch: (values: T, info: QueryFormSearchInfo) => void | Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2831,7 +2831,7 @@ interface TableToolbarItem<T> {
|
|
|
2831
2831
|
interface TableToolbarPluginOptions<T> {
|
|
2832
2832
|
/** 范围起点。 */
|
|
2833
2833
|
start?: ReactNode;
|
|
2834
|
-
/**
|
|
2834
|
+
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层 8px 间距。 */
|
|
2835
2835
|
end?: ReactNode;
|
|
2836
2836
|
/** 按展示顺序排列的项目配置。 */
|
|
2837
2837
|
items?: readonly TableToolbarItem<T>[];
|
|
@@ -3178,7 +3178,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3178
3178
|
* @defaultValue undefined
|
|
3179
3179
|
*/
|
|
3180
3180
|
showSettings?: boolean;
|
|
3181
|
-
/** 也可直接放入 Form.Item 或 Space.Compact
|
|
3181
|
+
/** 也可直接放入 Form.Item 或 Space.Compact,每个直接子项视为一个查询字段。横向 Space.Compact 仅包含左侧 Select 和右侧 Input 时,默认按 40% / 60% 分配宽度;Form.Item noStyle 包裹时同样适用。 */
|
|
3182
3182
|
children?: ReactNode;
|
|
3183
3183
|
/** 表单校验通过后执行查询。values 是完整条件;info.source 区分 submit(查询)、reset(重置)、quick(顶部预设)和 saved(已保存条件)。返回 Promise 时自动显示加载状态并阻止重复提交。 */
|
|
3184
3184
|
onSearch: (values: T, info: QueryFormSearchInfo) => void | Promise<void>;
|