@qq1948037137/adminsmart-ui 0.1.28 → 0.1.29
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/README.md +2 -0
- package/dist/index.cjs +84 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -2
- package/dist/index.d.ts +23 -2
- package/dist/index.js +75 -40
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/styles/composites.css +49 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qq1948037137/adminsmart-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "AdminSmart React components built on Ant Design",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"provenance": false
|
|
106
106
|
},
|
|
107
107
|
"adminsmartUiSource": {
|
|
108
|
-
"sha256": "
|
|
109
|
-
"gitCommit": "
|
|
108
|
+
"sha256": "d5a2ee6623dbb26d17cbead870e1fa0eb6966496ca747141859c28e95e5e4648",
|
|
109
|
+
"gitCommit": "f622793a39dbe09b5f508e85288db7e037d4d7e7"
|
|
110
110
|
}
|
|
111
111
|
}
|
package/styles/composites.css
CHANGED
|
@@ -98,6 +98,55 @@
|
|
|
98
98
|
max-width: 100%;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/* 有界 CRUD 工作区的顶部和页脚按内容占高,结果吸收剩余高度和容器变化。 */
|
|
102
|
+
.adminsmart-crud-workspace {
|
|
103
|
+
display: flex;
|
|
104
|
+
height: 100%;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
min-height: 0;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
gap: 12px;
|
|
109
|
+
overflow: auto;
|
|
110
|
+
overscroll-behavior: contain;
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.adminsmart-crud-workspace__filters,
|
|
115
|
+
.adminsmart-crud-workspace__toolbar,
|
|
116
|
+
.adminsmart-crud-workspace__feedback,
|
|
117
|
+
.adminsmart-crud-workspace__footer {
|
|
118
|
+
min-width: 0;
|
|
119
|
+
flex: 0 0 auto;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.adminsmart-crud-workspace__results {
|
|
123
|
+
min-width: 0;
|
|
124
|
+
min-height: 0;
|
|
125
|
+
flex: 1 1 0;
|
|
126
|
+
overflow: auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Ant 在有数据时给表体写入行内 scroll;仅 DataTable 遇到真实纵向溢出才滚动。 */
|
|
130
|
+
:where([data-adminsmart-data-table]) .ant-table-body {
|
|
131
|
+
overflow-y: auto !important;
|
|
132
|
+
scrollbar-gutter: stable;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* 结果区剩余空间让表体和分页各居其位,短数据不拉伸表格行。 */
|
|
136
|
+
:where([data-adminsmart-data-table-fill]) > .ant-table-wrapper,
|
|
137
|
+
:where([data-adminsmart-data-table-fill]) > .ant-table-wrapper > .ant-spin-nested-loading,
|
|
138
|
+
:where([data-adminsmart-data-table-fill]) > .ant-table-wrapper > .ant-spin-nested-loading > .ant-spin-container {
|
|
139
|
+
display: flex;
|
|
140
|
+
height: 100%;
|
|
141
|
+
min-height: 0;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:where([data-adminsmart-data-table-fill]) > .ant-table-wrapper > .ant-spin-nested-loading > .ant-spin-container > .ant-table {
|
|
146
|
+
min-height: 0;
|
|
147
|
+
flex: 1 1 auto;
|
|
148
|
+
}
|
|
149
|
+
|
|
101
150
|
/* 只给筛选命令、业务工具和列表行操作使用主色,输入/抽屉表单按钮不受影响。 */
|
|
102
151
|
:is([data-adminsmart-search-actions], [data-adminsmart-toolbar-actions], .adminsmart-operation-toolbar, .adminsmart-row-actions) .ant-btn:not(:disabled):not(.ant-btn-disabled):not([data-adminsmart-row-more]):not([data-adminsmart-table-tool]) {
|
|
103
152
|
color: var(--ant-color-white, #fff);
|