Skip to content
Open
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
2 changes: 1 addition & 1 deletion examples/sites/demos/apis/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2784,7 +2784,7 @@ export default {
"Set the rendering type for table columns; takes precedence over the column's type attribute; cell rendering configuration item, takes precedence over formatText attribute"
},
mode: ['pc', 'mobile-first'],
pcDemo: 'grid-renderer#renderer-custom-renderer'
pcDemo: 'grid-editor#editor-custom-editor-select'
},
{
name: 'required',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
title="区域"
:editor="{
component: TinySelect,
attrs: { options, textField: 'name', valueField: 'id' }
attrs: { options, textField: 'name', valueField: 'id' },
event: { change: hangeChange }
}"
:format-config="{ data: options, label: 'name', value: 'id' }"
format-text="enum"
Expand All @@ -36,6 +37,10 @@
import { ref } from 'vue'
import { TinyGrid, TinyGridColumn, TinySelect } from '@opentiny/vue'

function hangeChange(value) {
console.log('handleChnage', value)
}

const options = ref([
{ name: '华中区', id: '1' },
{ name: '华东区', id: '2' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
title="区域"
:editor="{
component: TinySelect,
attrs: { options, textField: 'name', valueField: 'id' }
attrs: { options, textField: 'name', valueField: 'id' },
event: { change: hangeChange }
}"
:format-config="{ data: options, label: 'name', value: 'id' }"
format-text="enum"
Expand Down Expand Up @@ -146,6 +147,9 @@ export default {
methods: {
renderName(h, { row }) {
return <span style="color:goldenrod">{row.name}</span>
},
hangeChange(value) {
console.log('handleChnage', value)
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/theme/src/grid/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@
border-bottom: 1px solid var(--tv-Grid-border-color-divider);
}

table.@{grid-prefix-cls}__body {
border-top: 1px solid var(--tv-Grid-border-color-divider);
}

.@{grid-prefix-cls}__header {
border: 0;
border-spacing: 0;
Expand Down
Loading