Skip to content

Commit

Permalink
fix: input textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Dec 27, 2024
1 parent 5156d0c commit ad43487
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 82 deletions.
27 changes: 15 additions & 12 deletions crates/controller/base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ pub use types::matrix_value;
pub mod errors;

use logisheets_workbook::prelude::*;
use serde::Serialize;
use std::hash::Hash;

#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy, Serialize)]
#[cfg_attr(feature = "gents", derive(gents_derives::TS))]
#[cfg_attr(feature = "gents", ts(file_name = "cell_id.ts"))]
#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy)]
#[cfg_attr(
feature = "gents",
gents_derives::gents_header(file_name = "cell_id.ts")
)]
pub enum CellId {
NormalCell(NormalCellId),
BlockCell(BlockCellId),
Expand All @@ -29,10 +30,11 @@ impl CellId {
}
}

#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy, Serialize)]
#[cfg_attr(feature = "gents", derive(gents_derives::TS))]
#[cfg_attr(feature = "gents", ts(file_name = "normal_cell_id.ts"))]
#[serde(rename_all = "camelCase")]
#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy)]
#[cfg_attr(
feature = "gents",
gents_derives::gents_header(file_name = "normal_cell_id.ts")
)]
pub struct NormalCellId {
pub row: RowId,
pub col: ColId,
Expand Down Expand Up @@ -139,10 +141,11 @@ pub struct ExtRef {
pub cross: CubeCross,
}

#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy, Serialize)]
#[cfg_attr(feature = "gents", derive(gents_derives::TS))]
#[cfg_attr(feature = "gents", ts(file_name = "block_cell_id.ts"))]
#[serde(rename_all = "camelCase")]
#[derive(Clone, Hash, Debug, Eq, PartialEq, Copy)]
#[cfg_attr(
feature = "gents",
gents_derives::gents_header(file_name = "block_cell_id.ts")
)]
pub struct BlockCellId {
pub block_id: BlockId,
// block inner row id
Expand Down
Loading

0 comments on commit ad43487

Please sign in to comment.