Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: 支持给非模板字段添加模板 #14172

Open
TCOTC opened this issue Feb 21, 2025 · 0 comments
Open

FR: 支持给非模板字段添加模板 #14172

TCOTC opened this issue Feb 21, 2025 · 0 comments

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Feb 21, 2025

字段中存储的内容和显示的内容是区分开来的。

用于数据库筛选、排序的可以是实际存储的内容,也可以是模板处理后的内容,是可选的

  • 前者:筛选、排序的逻辑没有变化,只是显示出来的字段内容经过模板处理
  • 后者:逻辑几乎跟模板字段一样,只是比模板字段多一个功能——字段中能存储文本数据

用例:

01 可以输入数字,通过模板生成 HTML 显示进度条

能完全替代 Notion 这种,并且自定义样式更方便:

Image

02 可以直接实现数据库数字列自定义显示文本(自定义数值单位) #10994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant