From 9268ad980fe2753005e92089980e7893344dfc8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 3 May 2023 17:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Docs=20=E5=8F=82=E8=80=83?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.layui/detail/options.md | 32 ++++++++++++++++++++++++++++++++ docs/.layui/examples/demo.md | 31 +++++++++++++++++++++++++++++++ docs/.layui/index.md | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 docs/.layui/detail/options.md create mode 100644 docs/.layui/examples/demo.md create mode 100644 docs/.layui/index.md diff --git a/docs/.layui/detail/options.md b/docs/.layui/detail/options.md new file mode 100644 index 00000000..2ccee5ab --- /dev/null +++ b/docs/.layui/detail/options.md @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + +
属性名描述类型默认值
AAA + + + +CCC + + + +
\ No newline at end of file diff --git a/docs/.layui/examples/demo.md b/docs/.layui/examples/demo.md new file mode 100644 index 00000000..61f1a862 --- /dev/null +++ b/docs/.layui/examples/demo.md @@ -0,0 +1,31 @@ +
+  
+
+ +

示例标题

+ +
+  
+
\ No newline at end of file diff --git a/docs/.layui/index.md b/docs/.layui/index.md new file mode 100644 index 00000000..cc913bd9 --- /dev/null +++ b/docs/.layui/index.md @@ -0,0 +1,34 @@ +--- +title: 某某组件 MOD_NAME +toc: true +--- + +# 某某组件 + +> 某某组件 `MOD_NAME` + +

示例

+ +
+{{- d.include("docs/MOD_NAME/detail/demo.md") }} +
+ +

API

+ +| API | 描述 | +| --- | --- | +| var MOD_NAME = layui.MOD_NAME | 获得 `MOD_NAME` 模块。 | +| [MOD_NAME.render(options)](#render) | MOD_NAME 组件渲染,核心方法。 | +| …… | …… | + +

渲染

+ +`MOD_NAME.render(options);` + +- 参数 `options` : 基础属性配置项。[#详见属性](#options) + +

属性

+ +
+{{- d.include("docs/MOD_NAME/detail/options.md") }} +
\ No newline at end of file