Angular组件(二) 分割面板ShrinkSplitter 前言 在Angular组件(一) 分割面板ShrinkSplitter文章中我们实现了Splitter组件,后来在业务场景中发现在开关右侧容器和底部容器时,使用起来不方便,ngModel绑定的值始终是左侧容器和顶部容器的大小,然而有时我们关注的是右侧容器和底部容器的大小,让左侧自适应。于是修改组件代码,让ngmodel绑定的容器大小和tlColsedMode关联,举例: tlColsedMode = “right”,ngModel绑定的值就是右侧容器的大小。 组件Splitter import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core"; import { TlShrinkSplitterComponent } from "./shrink-splitter.component"; import{NzToolTipModule} from "ng-zorro-antd/tooltip" const...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Content
Contact Content, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack