内建 Compute 处理器。在 Table, Form, Chart, 等 Widget 中使用时, 可忽略命名空间, 填写处理器名称即可。
约定
/data/app
, 实际编写时需替换为应用根目录。http://127.0.0.1:5099
, 实际编写时需自行替换。<>
标识自行替换的内容。 例如: icon-<图标名称>
, 实际编写时应替换为: icon-foo
, icon-bar
...处理器 | 参数表 | 返回值 | 说明 |
---|---|---|---|
Get | [<字符串参数>] | <字符串参数> | 读取数值 示例 |
Trim | [<字符串参数>] | 过滤首尾空格 示例 | |
Concat | [...<字符串参数>] | "value1value2.." | 连接字符串 示例 |
Hide | [] | "" 空字符串 | 返回空字符串 示例 |
Download | 将路径转换为下载地址 示例 | ||
Upload | 将下载地址转换为路径 示例 |
{// ...// fields.table"名称": {"bind": "name","view": {"bind": "name_view","type": "Text","compute": { "process": "Get", "args": ["$C(row.type)"] },"props": {}},"edit": {"bind": "name","type": "Input","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.filter"名称": {"bind": "where.name.like","edit": {"type": "Input","compute": "Trim","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.table"名称": {"bind": "name","view": {"bind": "name_view","type": "Text","compute": {"process": "Concat","args": ["$C(row.type)","\\::","$C(row.name)","-","$C(row.status)","-","$C(id)"]},"props": {}},"edit": {"bind": "name","type": "Input","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.form"密码": {"bind": "password","view": { "compute": "Hide" },"edit": {"type": "Input","props": { "placeholder": "请输入密码", "type": "password" }}}// ...}
内建 Compute 处理器。在 Table, Form, Chart, 等 Widget 中使用时, 可忽略命名空间, 填写处理器名称即可。
约定
/data/app
, 实际编写时需替换为应用根目录。http://127.0.0.1:5099
, 实际编写时需自行替换。<>
标识自行替换的内容。 例如: icon-<图标名称>
, 实际编写时应替换为: icon-foo
, icon-bar
...处理器 | 参数表 | 返回值 | 说明 |
---|---|---|---|
Get | [<字符串参数>] | <字符串参数> | 读取数值 示例 |
Trim | [<字符串参数>] | 过滤首尾空格 示例 | |
Concat | [...<字符串参数>] | "value1value2.." | 连接字符串 示例 |
Hide | [] | "" 空字符串 | 返回空字符串 示例 |
Download | 将路径转换为下载地址 示例 | ||
Upload | 将下载地址转换为路径 示例 |
{// ...// fields.table"名称": {"bind": "name","view": {"bind": "name_view","type": "Text","compute": { "process": "Get", "args": ["$C(row.type)"] },"props": {}},"edit": {"bind": "name","type": "Input","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.filter"名称": {"bind": "where.name.like","edit": {"type": "Input","compute": "Trim","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.table"名称": {"bind": "name","view": {"bind": "name_view","type": "Text","compute": {"process": "Concat","args": ["$C(row.type)","\\::","$C(row.name)","-","$C(row.status)","-","$C(id)"]},"props": {}},"edit": {"bind": "name","type": "Input","props": { "placeholder": "请输入宠物名称" }}}// ...}
{// ...// fields.form"密码": {"bind": "password","view": { "compute": "Hide" },"edit": {"type": "Input","props": { "placeholder": "请输入密码", "type": "password" }}}// ...}