# layui

{php} $name_label = $json_config['config_option']['name']['label']??''; $value_label = $json_config['config_option']['value']['label']??''; $desc_label = $json_config['config_option']['description']['label']??''; $image_label = $json_config['config_option']['image']['label']??''; $image_show = $json_config['config_option']['image']['show']??''; $name_placeholder = $json_config['config_option']['name']['placeholder']??''; $value_placeholder = $json_config['config_option']['value']['placeholder']??''; $desc_placeholder = $json_config['config_option']['description']['placeholder']??''; {/php}

- 配置项
- {notempty name="$link"}编辑{else/}新增{/notempty}

{if condition="!empty($name_label)"}{$name_label}{else/}名称{/if}
{if condition="!empty($value_label)"}{$value_label}{else/}配置值{/if}
{if condition="!empty($desc_label)"}{$desc_label}{else/}备注{/if}
{notempty name="$link.description"}{$link.description}{/notempty}
{if condition="$image_show==true"}
{if condition="!empty($image_label)"}{$image_label}{else/}配图{/if}
{/if} {notempty name="$link"} {/notempty}