bw-pro-table 0.0.6 → 0.0.7
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 +4 -4
- package/dist/bw-pro-table.css +1 -1
- package/dist/bw-pro-table.js +1746 -1654
- package/dist/bw-pro-table.umd.cjs +4 -4
- package/dist/types/BwProTableCore.vue.d.ts +15 -6
- package/dist/types/BwProTableSearch.vue.d.ts +6 -0
- package/dist/types/renderers/text-renderer.d.ts +1 -1
- package/dist/types/types.d.ts +10 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -285,9 +285,9 @@ interface ProColumnType<RecordType = any> extends Omit<TableColumnType<RecordTyp
|
|
|
285
285
|
currencySuffix?: string; // 货币后缀
|
|
286
286
|
customRender?: RenderFn; // 自定义渲染函数(无 valueType 匹配时回退)
|
|
287
287
|
|
|
288
|
-
// ===
|
|
288
|
+
// === 空值与省略 ===
|
|
289
289
|
emptyText?: string; // 空单元格占位符(覆盖全局 defaultEmptyText)
|
|
290
|
-
|
|
290
|
+
/** @deprecated 请使用 antd 原生 `ellipsis` 替代 */
|
|
291
291
|
|
|
292
292
|
// === 搜索 ===
|
|
293
293
|
hideInSearch?: boolean; // 是否在搜索栏中隐藏该列(默认 false,即显示在搜索栏)
|
|
@@ -354,7 +354,7 @@ interface FormRule {
|
|
|
354
354
|
|
|
355
355
|
| valueType | 渲染输出 | 支持的额外列属性 |
|
|
356
356
|
|-----------|----------|------------------|
|
|
357
|
-
| `text` |
|
|
357
|
+
| `text` | 文本(ellipsis Tooltip 由 Table 层统一处理) | `emptyText` |
|
|
358
358
|
| `number` | 千分位格式化数字 | `precision`、`emptyText` |
|
|
359
359
|
| `date` | dayjs 格式化日期 | `dateFormat`(默认 `'YYYY-MM-DD'`)、`emptyText` |
|
|
360
360
|
| `dateTime` | dayjs 格式化日期时间 | `dateTimeFormat`(默认 `'YYYY-MM-DD HH:mm:ss'`)、`dateFormat`(回退)、`emptyText` |
|
|
@@ -1159,7 +1159,7 @@ const apiAdapter: StorageAdapter = {
|
|
|
1159
1159
|
|
|
1160
1160
|
| 列字段 | 行为说明 |
|
|
1161
1161
|
|--------|----------|
|
|
1162
|
-
| `customCell` |
|
|
1162
|
+
| `customCell` | 直接透传用户定义,不再注入内部类名 |
|
|
1163
1163
|
| `customHeaderCell` | 拖拽事件链式调用:用户处理器 → 内部处理器 |
|
|
1164
1164
|
| `filteredValue` | **被覆盖**为内部控制值 |
|
|
1165
1165
|
| `sortOrder` | **被覆盖**:当前排序列注入排序值,其余列强制 `null` |
|
package/dist/bw-pro-table.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.bw-pro-table-column-search[data-v-06f12966]{min-width:200px;padding:8px}.bw-pro-table-column-search .bw-pro-table-column-search-input[data-v-06f12966]{margin-bottom:8px}.bw-pro-table-column-search .bw-pro-table-column-search-actions[data-v-06f12966]{justify-content:flex-end;display:flex}.bw-pro-table-core[data-v-
|
|
1
|
+
.bw-pro-table-column-search[data-v-06f12966]{min-width:200px;padding:8px}.bw-pro-table-column-search .bw-pro-table-column-search-input[data-v-06f12966]{margin-bottom:8px}.bw-pro-table-column-search .bw-pro-table-column-search-actions[data-v-06f12966]{justify-content:flex-end;display:flex}.bw-pro-table-core[data-v-916e39f7] .ant-result{padding:48px 0}.bw-pro-table-core .bw-pro-table-header-cell[data-v-916e39f7]{width:100%;display:block;position:relative}.bw-pro-table-core .bw-pro-table-header-cell--slot[data-v-916e39f7]{align-items:center;display:flex}.bw-pro-table-core .bw-pro-table-header-cell--slot .bw-pro-table-header-left[data-v-916e39f7]{flex:1;min-width:0}.bw-pro-table-core .bw-pro-table-header-cell--slot .bw-pro-table-header-search-popover[data-v-916e39f7]{flex-shrink:0;margin-left:4px;position:static;transform:none}.bw-pro-table-core .bw-pro-table-header-title-wrapper[data-v-916e39f7]{vertical-align:middle;align-items:center;gap:4px;min-width:0;max-width:100%;display:inline-flex;overflow:hidden}.bw-pro-table-core .bw-pro-table-header-title[data-v-916e39f7]{min-width:0}.bw-pro-table-core .bw-pro-table-header-title--ellipsis[data-v-916e39f7]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bw-pro-table-core .bw-pro-table-header-title-wrapper.has-drag-left[data-v-916e39f7]{padding-left:26px}.bw-pro-table-core .bw-pro-table-header-title-wrapper.has-search-right[data-v-916e39f7]{padding-right:24px}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-header-description-icon{color:var(--ant-color-text-secondary,#00000073);cursor:help;flex-shrink:0;font-size:14px}.bw-pro-table-core .bw-pro-table-header-search-popover[data-v-916e39f7]{z-index:1;line-height:1;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-row-selected{background-color:var(--ant-primary-1,#e6f4ff)!important}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-cell-error .ant-input,.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-cell-error .ant-input-number,.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-cell-error .ant-select-selector,.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-cell-error .ant-picker{border-color:var(--ant-color-error,#ff4d4f)!important}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-cell-error-msg{color:var(--ant-color-error,#ff4d4f);margin-top:4px;font-size:12px;line-height:1.5}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-header-drag-source{opacity:.45}.bw-pro-table-core[data-v-916e39f7] .bw-pro-table-header-drag-target{box-shadow:inset 2px 0 0 0 var(--ant-primary-color,#1890ff)}.bw-pro-table-core .bw-pro-table-header-drag-icon[data-v-916e39f7]{z-index:1;color:var(--ant-color-text-quaternary,#bfbfbf);cursor:grab;font-size:16px;transition:color .2s;position:absolute;top:50%;left:8px;transform:translateY(-50%)}.bw-pro-table-core .bw-pro-table-header-drag-icon[data-v-916e39f7]:hover{color:var(--ant-primary-color,#1890ff)}.bw-pro-table-core .bw-pro-table-header-drag-icon--active[data-v-916e39f7]{color:var(--ant-primary-color,#1890ff);cursor:grabbing}.bw-pro-table-search[data-v-891e85ae]{background:var(--ant-color-bg-container,#fff);border-radius:8px;padding:24px 24px 0}.bw-pro-table-search .bw-search-form[data-v-891e85ae] .ant-form-inline{row-gap:16px}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item{flex-wrap:nowrap!important;flex:0 0 100%!important;margin-bottom:0!important;margin-right:0!important}@media (width>=576px){.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item{flex:0 0 calc(50% - 12px)!important;margin-right:24px!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item:nth-child(2n){margin-right:0!important}}@media (width>=768px){.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item{flex:0 0 calc(33.333% - 16px)!important;margin-right:24px!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item:nth-child(2n){margin-right:24px!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item:nth-child(3n){margin-right:0!important}}@media (width>=992px){.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item{flex:0 0 calc(25% - 18px)!important;margin-right:24px!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item:nth-child(3n){margin-right:24px!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item:nth-child(4n){margin-right:0!important}}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-label{white-space:nowrap;align-items:center;overflow:hidden;flex:0 0 var(--bw-search-label-width,80px)!important;display:flex!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-label>label{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-control{flex-direction:column;min-width:0;flex:1!important;display:flex!important}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-control-input,.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-control-input-content{width:100%}.bw-pro-table-search [data-bw-search] .ant-form-inline .ant-form-item.bw-search-form-item .ant-form-item-control-input-content>*{box-sizing:border-box;width:100%!important}.bw-pro-table-search .bw-pro-table-search-actions{justify-content:flex-end;padding:8px;display:flex}.bw-pro-table-column-setting-panel[data-v-7e735b2d]{width:280px}.bw-pro-table-column-setting-header[data-v-7e735b2d]{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:12px 12px 8px;font-weight:600;display:flex}.bw-pro-table-column-setting-body[data-v-7e735b2d]{max-height:50vh;padding:4px 0;overflow-y:auto}.bw-pro-table-column-setting-item[data-v-7e735b2d]{cursor:default;align-items:center;gap:8px;padding:8px 12px;transition:background .15s;display:flex}.bw-pro-table-column-setting-item[data-v-7e735b2d]:hover{background:#fafafa}.bw-pro-table-column-setting-item--dragging[data-v-7e735b2d]{opacity:.45;background:#f0f0f0}.bw-pro-table-column-setting-item--drag-over[data-v-7e735b2d]{box-shadow:inset 0 2px 0 0 var(--ant-primary-color,#1890ff);background:#e6f7ff}.bw-pro-table-column-setting-item .bw-pro-table-column-drag-icon[data-v-7e735b2d]{color:#999;cursor:grab;flex-shrink:0;font-size:16px}.bw-pro-table-column-setting-item .bw-pro-table-column-drag-icon--active[data-v-7e735b2d]{color:var(--ant-primary-color,#1890ff);cursor:grabbing}.bw-pro-table-toolbar[data-v-e832720d]{overflow:auto hidden}.bw-pro-table-toolbar .bw-pro-table-toolbar-container[data-v-e832720d]{justify-content:space-between;align-items:center;height:64px;padding:0 24px;line-height:64px;display:flex}.bw-pro-table-toolbar .bw-pro-table-toolbar-left[data-v-e832720d]{align-items:center;gap:16px;display:flex}.bw-pro-table-toolbar .bw-pro-table-toolbar-right[data-v-e832720d]{align-items:center;gap:8px;display:flex}.bw-pro-table-toolbar .bw-pro-table-toolbar-title[data-v-e832720d]{color:var(--ant-color-text,#000000d9);font-family:PingFangSC-Medium;font-size:16px}.bw-pro-table-toolbar .bw-pro-table-toolbar-selection-alert[data-v-e832720d]{background:var(--ant-primary-1,#e6f4ff);border-bottom:1px solid var(--ant-primary-3,#91caff);justify-content:space-between;align-items:center;padding:8px 24px;font-size:14px;display:flex}.bw-pro-table-toolbar .bw-pro-table-toolbar-selection-alert .bw-pro-table-toolbar-selection-count[data-v-e832720d]{color:var(--ant-color-text,#000000d9)}.bw-pro-table[data-v-e421cbfc]{background:var(--ant-color-bg-container,#fff);border-radius:8px}.bw-pro-table[data-v-e421cbfc] .bw-pro-table-row-striped td{background:var(--ant-color-bg-layout,#f5f5f5)!important}.bw-pro-table[data-v-e421cbfc] .bw-pro-table-row-selected td{background-color:var(--ant-primary-1,#e6f4ff)!important}
|
|
2
2
|
/*$vite$:1*/
|