Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(grid): [grid] optimize grid demos #2498

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function getPopEditorOp() {
{
field: 'id',
title: 'ID',
width: 40
width: 60
},
{
field: 'name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
{
field: 'id',
title: 'ID',
width: 40
width: 60
},
{
field: 'name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tiny-grid-column field="address" title="地址"></tiny-grid-column>
<tiny-grid-column field="introduction" title="公司简介" show-overflow></tiny-grid-column>
<template #empty>
<span style="color: red">没有更多数据了!</span>
<span style="color: #ff8800">没有更多数据了!</span>
</template>
</tiny-grid>
<br />
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/grid/empty/empty-data-tip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tiny-grid-column field="address" title="地址"></tiny-grid-column>
<tiny-grid-column field="introduction" title="公司简介" show-overflow></tiny-grid-column>
<template #empty>
<span style="color: red">没有更多数据了!</span>
<span style="color: #ff8800">没有更多数据了!</span>
</template>
</tiny-grid>
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ref="gridRef"
:select-config="selectConfig"
highlight-current-row
border
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true }"
>
<tiny-grid-column type="selection" width="60"></tiny-grid-column>
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/grid/webdoc/grid-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
<p>通过在 <code>grid</code> 标签上配置 <code>edit-config</code>。在 <code>grid-column</code> 列配置 <code>editor</code> 对象, <code>component</code> 渲染内置编辑组件, <code>events</code> 配置组件事件。</p>
<div class="tip custom-block">
<p class="custom-block-title">特别说明:</p>
<p>内置编辑器只支持 <code>Input</code> 和 <code>Select</code> 组件,需要使用其他组件可参考自定义编辑器。</p>
<p>内置编辑器只支持 <code>Input</code> 和 <code>Select</code> 组件且均为浏览器原生组件并非TinyVue组件,需要使用其他组件可参考自定义编辑器。</p>
</div>
`,
'en-US':
Expand Down Expand Up @@ -44,7 +44,7 @@ export default {
{
'demoId': 'editor-popeditor-in-grid-remote-search',
'name': {
'zh-CN': 'Popeditor 弹窗编辑',
'zh-CN': '弹窗编辑',
'en-US': 'Edit the Popeditor pop-up window and configure remote search.'
},
'desc': {
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/grid/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,8 @@
}

.@{grid-prefix-cls}-body__column {
&.col__actived {
&.col__actived,
&.edit_visible {
padding: 0 var(--tv-Grid-cell-padding-x);
}

Expand Down
Loading