mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-09 04:07:33 +08:00
Implemented partial protected example to storybook.
This commit is contained in:
parent
1c104f6a9e
commit
71aa0434c0
@ -12,6 +12,22 @@ const protectedSheet = {
|
||||
],
|
||||
};
|
||||
|
||||
const partialEditableSheet = {
|
||||
name: "partial editable",
|
||||
config: {
|
||||
colReadOnly: { "1": 1 },
|
||||
rowReadOnly: { "1": 1 },
|
||||
columnlen: {
|
||||
"0": 200,
|
||||
"1": 200,
|
||||
},
|
||||
},
|
||||
celldata: [
|
||||
{ r: 0, c: 1, v: { v: "protected column" } },
|
||||
{ r: 1, c: 0, v: { v: "protected row" } },
|
||||
],
|
||||
};
|
||||
|
||||
const editableSheet = {
|
||||
name: "editable",
|
||||
celldata: [
|
||||
@ -20,6 +36,7 @@ const editableSheet = {
|
||||
{ r: 0, c: 2, v: { v: "default can edit" } },
|
||||
],
|
||||
};
|
||||
const lockcellData = [protectedSheet, editableSheet];
|
||||
|
||||
const lockcellData = [protectedSheet, partialEditableSheet, editableSheet];
|
||||
|
||||
export default lockcellData;
|
||||
|
Loading…
Reference in New Issue
Block a user