摘要:
复习 Paper & Graph Paper 是视图层(View)。数据和逻辑在 Graph 中操作,它是数据层(Model)。 在 Graph 中,有两个基本的图形——Element 和 Link。Element 是我们视图层所看到的可以控制、移动等操作的元素(椭圆、圆形、矩形等);Link 就是 阅读全文
摘要:
在 [define 函数和 calc 相对计算函数](https://www.cnblogs.com/himmelbleu#/p/17586591) 中提到了 `calc` 相对计算函数,默认情况下,不指定 ref 属性,`calc` 以这个 g 标签作为基点计算值。 而一个图形下面(也就是一个 g 阅读全文
摘要:
# define 函数 ```js file:[define 函数的定义] Element.define(type [, defaultInstanceProperties, prototypeProperties, staticProperties]) ``` |参数名|描述| |:--|:--| 阅读全文
摘要:
# Graph & Paper Paper 是渲染我们提供的数据的,表示的是视图层(View)。数据和逻辑在 Graph 中操作,表示的是数据层和控制层(Model & Controller)。 ![Graph & Paper 示意图](https://img2023.cnblogs.com/blo 阅读全文
摘要:
什么是条件类型 条件类型可以让程序根据输入的类型来决定输出的类型是什么,也就是说根据不同的输入类型来确定输出的类型。条件类型的形式有点类似于 JS 中的条件表达式(condition ? trueExpression : falseExpression): file:[条件类型的规则] SomeTy 阅读全文
摘要:
简单的例子 以下是一个简单的例子,通过索引访问类型(Indexed Access Types),可以给一个对象定义 key 的类型以及 value 的类型。 type Horse = { age: number; }; type OnlyBoolsAndHorses = { [key: string 阅读全文
摘要:
导入依赖 file:[pom.xml] <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.4.6</vers 阅读全文
摘要:
通过 `router` 获取当前的路由列表,在路由变化时,调用 `getCurrentRouteList` 重新获取当前的路由列表。 ```js file:[src/App.vue - script] const route = useRoute(); const router = useRoute 阅读全文
摘要:
file:[src/hooks/use-mouse.js] import { useThrottleFn } from "@vueuse/core"; export function useWheelRollsUpAndDown( onDown: Function, onUp?: Function, 阅读全文
摘要:
下载依赖 file:[Terminal] pip install PyQt5 pip install pyqt5designer 安装扩展 VSCode 安装 PYQT Integration 扩展。在线地址:Visual Studio Marketplace - PYQT Integration。 阅读全文