Skip to content

Commit

Permalink
docs(grid): [grid] optimize grid demos
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyhehe committed Nov 7, 2024
1 parent 56f14af commit 0d4694f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
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

0 comments on commit 0d4694f

Please sign in to comment.