jtxa-ui 1.1.8 → 1.2.0
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 +10 -0
- package/dist/index-B3eaM1vJ.js +59102 -0
- package/dist/{jt-form-mttable-pc-UYda2Arw.js → jt-form-mttable-pc-BF_KN1LA.js} +22 -22
- package/dist/jtxa-ui.css +1 -1
- package/dist/jtxa-ui.es.js +1 -1
- package/dist/jtxa-ui.umd.js +22 -22
- package/package.json +3 -1
- package/dist/index-BtuwPOMa.js +0 -53184
package/README.md
CHANGED
|
@@ -676,9 +676,19 @@ VxeTable 基础封装:工具栏、表尾统计、虚拟滚动、单选 / 多
|
|
|
676
676
|
| `Input` | 单元格内输入框(表单型) |
|
|
677
677
|
| `Number` | 单元格内数字输入(表单型) |
|
|
678
678
|
| `Rate` | 单元格内评分(表单型) |
|
|
679
|
+
| `html` / `Html` | 单元格内容按 HTML 直出(`innerHTML`,不转义、不做 XSS 过滤);行高随内容自适应,内容区默认上限 150px,超出后单元格内部纵向滚动 |
|
|
679
680
|
|
|
680
681
|
> `Select` / `Input` / `Number` / `Rate` 共用 `CellForm`,通过列配置 `props`(枚举 `enum`、功能码 `funcode`、占位 `placeholder`、最大值 `max` 等)区分形态。
|
|
681
682
|
|
|
683
|
+
> `html` / `Html` 亦可由 `header[].type = 'html' | 'Html'` 触发(同 `ImgB64` 的 type 触发惯例,`header.cellRender` 优先)。
|
|
684
|
+
> 取值:`row[prop]` 为字符串时直接当 HTML;为对象时依次取 `html` / `value` / `content` / `selected`。
|
|
685
|
+
> 该列一旦走渲染器,`header.html`(枚举→HTML 映射表)与 `htmlType`(tag/icon/a) 均不再生效;合并列(`merge:true`)忽略 cellRender。
|
|
686
|
+
> 不做转义与 XSS 过滤(允许内联 `onclick`,与 `htmlType` 的 `v-html` 一致),仅用于可信后端数据。
|
|
687
|
+
>
|
|
688
|
+
> **行高自适应**:内容区最高 `header[].cellMaxHeight`(默认 `150`,px),超出后单元格内部纵向滚动,实际行高 ≈ 上限 + 10px。
|
|
689
|
+
> html 列会设 `show-overflow=false`(vxe 行高测量的前提),因此失去原生 tooltip;无 html 列的表仍保持原 40px 行高。
|
|
690
|
+
> `<tree-table :autoRowHeight="false">` 可关闭自适应;`'no-virtual'` 为「自适应 + 关闭 scroll-y」的精确行高降级档。
|
|
691
|
+
|
|
682
692
|
**编辑渲染器(editRender,双击进入编辑态时生效)**
|
|
683
693
|
|
|
684
694
|
| 名称 | 说明 |
|