commit 9d4f78656be50bd1634807300912e7426d34c227
Author: admin 点击左侧类型查看字典 工作流名称 :{{watchedName}} 创建时间 :{{watchedCreateTime}} 工单名称 :{{watchedName}} 创建时间 :{{watchedCreateTime}} {{ticketDetail.title}} "+e+"
](http://godban.github.io/browsers-support-badges/)IE / Edge | [
](http://godban.github.io/browsers-support-badges/)Firefox | [
](http://godban.github.io/browsers-support-badges/)Chrome | [
](http://godban.github.io/browsers-support-badges/)Safari |
+| --------- | --------- | --------- | --------- |
+| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
+
+## License
+
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
+
+Copyright (c) 2017-present PanJiaChen
diff --git a/admin/client/README.md b/admin/client/README.md
new file mode 100644
index 0000000..b99f942
--- /dev/null
+++ b/admin/client/README.md
@@ -0,0 +1,91 @@
+# vue-admin-template
+
+English | [简体中文](./README-zh.md)
+
+> A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
+
+**Live demo:** http://panjiachen.github.io/vue-admin-template
+
+
+**The current version is `v4.0+` build on `vue-cli`. If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-admin-template/tree/tag/3.11.0), it does not rely on `vue-cli`**
+
+## Build Setup
+
+
+```bash
+# clone the project
+git clone https://github.com/PanJiaChen/vue-admin-template.git
+
+# enter the project directory
+cd vue-admin-template
+
+# install dependency
+npm install
+
+# develop
+npm run dev
+```
+
+This will automatically open http://localhost:9528
+
+## Build
+
+```bash
+# build for test environment
+npm run build:stage
+
+# build for production environment
+npm run build:prod
+```
+
+## Advanced
+
+```bash
+# preview the release environment effect
+npm run preview
+
+# preview the release environment effect + static resource analysis
+npm run preview -- --report
+
+# code format check
+npm run lint
+
+# code format check and auto fix
+npm run lint -- --fix
+```
+
+Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
+
+## Demo
+
+
+
+## Extra
+
+If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template/tree/permission-control)
+
+For `typescript` version, you can use [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
+
+## Related Project
+
+- [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
+
+- [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
+
+- [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template)
+
+- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
+
+## Browsers support
+
+Modern browsers and Internet Explorer 10+.
+
+| [
](http://godban.github.io/browsers-support-badges/)IE / Edge | [
](http://godban.github.io/browsers-support-badges/)Firefox | [
](http://godban.github.io/browsers-support-badges/)Chrome | [
](http://godban.github.io/browsers-support-badges/)Safari |
+| --------- | --------- | --------- | --------- |
+| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
+
+## License
+
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
+
+Copyright (c) 2017-present PanJiaChen
diff --git a/admin/client/babel.config.js b/admin/client/babel.config.js
new file mode 100644
index 0000000..ba17966
--- /dev/null
+++ b/admin/client/babel.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+ presets: [
+ '@vue/app'
+ ]
+}
diff --git a/admin/client/build/index.js b/admin/client/build/index.js
new file mode 100644
index 0000000..0c57de2
--- /dev/null
+++ b/admin/client/build/index.js
@@ -0,0 +1,35 @@
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+ const report = rawArgv.includes('--report')
+
+ run(`vue-cli-service build ${args}`)
+
+ const port = 9526
+ const publicPath = config.publicPath
+
+ var connect = require('connect')
+ var serveStatic = require('serve-static')
+ const app = connect()
+
+ app.use(
+ publicPath,
+ serveStatic('./dist', {
+ index: ['index.html', '/']
+ })
+ )
+
+ app.listen(port, function () {
+ console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
+ if (report) {
+ console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
+ }
+
+ })
+} else {
+ run(`vue-cli-service build ${args}`)
+}
diff --git a/admin/client/jest.config.js b/admin/client/jest.config.js
new file mode 100644
index 0000000..143cdc8
--- /dev/null
+++ b/admin/client/jest.config.js
@@ -0,0 +1,24 @@
+module.exports = {
+ moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
+ transform: {
+ '^.+\\.vue$': 'vue-jest',
+ '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
+ 'jest-transform-stub',
+ '^.+\\.jsx?$': 'babel-jest'
+ },
+ moduleNameMapper: {
+ '^@/(.*)$': '
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
系统登陆
+
+
+
+
+
+
+
+```
+
+?> 与 [editable](#editable) 插件共用时,编辑状态下,不会进行高亮,可以直接修改代码文本
+
+?> 本插件的高亮功能依赖于 [prismjs](https://prismjs.com/),默认配置中仅支持 *html*、*css*、*c-like*、*javascript* 语言和 *Tomorrow Night* 主题,如果需要更多语言或更换主题请前往 [官网](https://prismjs.com/download.html) 下载对应的 *prism.min.js* 和 *prism.css* 并替换 *plugins/highlight/* 目录下的文件(*prismjs* 的插件大多涉及 *dom* 操作,基本不可用,请勿选择)
+
+## markdown
+功能:渲染 *markdown*
+大小:*≈37KB*
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | √ | √ | √ | √ |
+
+说明:
+引入本插件后,会给组件添加一个 *markdown* 属性,将该属性设置为 *true* 后,即可通过 [content](basic/prop#content) 属性或 [setContent](advanced/api#setContent) 方法设置 *markdown* 内容即可
+
+?> 若开启 [use-anchor](basic/prop#use-anchor) 属性,所有标题 `# xxx` 都会被设置为锚点,通过链接 `[xxx](#xxx)` 可以直接跳转
+
+?> 本插件通过 [marked](https://github.com/markedjs/marked) 解析 *markdown* 文本,部分 *css* 摘选自 [github-markdown-css](https://github.com/sindresorhus/github-markdown-css)
+
+?> 本插件可以和 [highlight](#highlight) 插件共用,实现 *markdown* 中代码块的高亮效果
+
+## search
+功能:关键词搜索
+大小:*≈1.5KB*
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | √ | √ | √ | √(nvue 不支持) |
+
+说明:
+引入后会在 [组件实例](advanced/api#getCompent) 上挂载一个 *search* 方法,用于关键词搜索
+
+输入值
+
+| 参数名 | 类型 | 默认值 | 说明 |
+|:---:|:---:|:---:|---|
+| key | String 或 RegExp | - | 要搜索的关键词,支持字符串和正则 |
+| anchor | Boolean | false | 是否将搜索结果设置为锚点 |
+| style | String | background-color:yellow | 标记搜索结果的样式 |
+
+返回值:*Promise*
+
+| 属性 | 类型 | 说明 |
+|:---:|:---:|---|
+| num | Number | 搜索结果数量 |
+| highlight | Function(i, style='background-color:#FF9632') | 高亮第 i(1 ~ num)个结果,将其样式设置为 style |
+| jump | Function(i, offset) | 跳转到第 i(1 ~ num)个结果,偏移量为 offset,anchor 为 true 才可用 |
+
+示例:
+```javascript
+function search (key) {
+ // ctx 为组件实例
+ ctx.search(key, true).then(res => {
+ res.highlight(1)
+ res.jump(1, -50) // 高亮第 1 个结果并跳转到该位置,偏移量 -50
+ })
+}
+```
+
+?> 具体用法可以参考示例小程序 [源代码](https://github.com/jin-yufeng/mp-html-demo)
+
+附加说明:
+1. 不传入 *key*(或为空)时即可取消搜索,取消所有的高亮,还原到原来的效果
+2. 进行新的搜索时旧的搜索结果将被还原,旧的结果中的 *highlight* 等方法不再可用
+3. 调用 *highlight* 方法高亮一个结果时,之前被高亮的结果会被还原,即始终只有一个结果被高亮
+4. *key* 传入字符串时大小写敏感,如果要忽略大小写可以用正则的 *i*(字符串搜索效率高于正则)
+5. 设置 *anchor* 为 *true* 会一定程度上降低效率,非必要不要开启
+6. 暂不支持跨标签搜索,即只有一个文本节点内包含整个关键词才能被搜索到
+
+## style
+功能:解析和匹配 *style* 标签中的样式
+
+?> 这里的 *style* 标签指的是传入 [content](basic/prop#content) 属性中的 *html* 里包含的 *style* 标签,且 *style* 标签要放在其他标签前面才能生效
+
+大小:*≈3.5KB*
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | √ | √ | √ | √ (nvue 直接支持) |
+
+说明:
+支持以下选择器:
+
+| 名称 | 示例 |
+|:---:|---|
+| 标签名选择器 | p {} |
+| class 选择器 | .class {} |
+| id 选择器 | #id {} |
+| 多选择器交集 | p.class {} |
+| 多选择器并集 | p, .class {} |
+| 后代选择器 | .class1 .class2 {} |
+| 子选择器 | .class1 > .class2 {} |
+| 伪类 | .class::before {} |
+
+伪类仅支持 *before* 和 *after*,支持 *attr* 方法
+不支持的选择器(属性选择器等)将被忽略
+
+!> 由于小程序中无法动态写入 *css*,本插件的实现原理是通过解析,将匹配的样式添加到各标签的行内 *style* 中去,请慎用宽泛的选择器,以免大大增加解析结果大小,减慢渲染速度
+
+## txv-video
+功能:使用腾讯视频
+大小:*≈1KB*
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | | | | √ (h5 和 app 直接支持) |
+
+说明:
+引入本插件后,*html* 中符合下方格式的 *iframe* 标签(*src* 中含有 *vid*)将被转为通过腾讯视频播放:
+```html
+
+```
+
+同时,其可以被 [pause-video](basic/prop#pause-video) 属性控制
+
+!> 本插件仅用于将官方 [腾讯视频插件](https://github.com/tvfe/txv-miniprogram-plugin) 应用于本组件,使用前请确认已经成功申请使用该插件并按要求在小程序 *app.json* 中配置完成(*uni-app* 中的配置方法可以参考 [#103](https://github.com/jin-yufeng/mp-html/issues/103#issuecomment-654586246)),否则可能报错 **This application has not registered any plugins yet** 且无法生效
+
+?> 腾讯视频插件 [v2](https://github.com/tvfe/txv-miniprogram-plugin) 默认自动播放,[v1](https://github.com/tvfe/txv-miniprogram-plugin/blob/master/archieve/readme.md) 不会,可按需选择
+
+## img-cache
+功能:图片本地缓存
+大小:*≈4KB*
+作者:[@PentaTea](https://github.com/PentaTea)
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| | | | | | √(仅支持 app 的 vue 页面) |
+
+说明:
+引入本插件后,会给组件添加一个 *img-cache* 属性,将该属性设置为 *true* 后,将自动下载引用的图片并将 *src* 属性更换为本地地址
+同时在 [组件实例](advanced/api#getCompent) 上挂载了 *imgCache* 对象,扩充缓存控制能力
+
+*imgCache* 对象属性和方法:
+
+| 属性 | 功能 |
+|:---:|:---:|
+| list | 当前缓存的 url 列表 |
+| get(url) | 传入 url 获得本地地址 |
+| delete(url) | 传入 url 删除缓存记录 |
+| add(url) | 传入 url 并下载目标为缓存 |
+| clear() | 清空所有缓存 |
+
+!> 请尽量确保 *src* 中含有文件后缀名,不以后缀结尾也没关系,插件会从路径中推测合理的图片后缀,如果完全不包含后缀信息可能会无法保存到相册
+
+## latex
+功能:渲染 *latex* 公式
+大小:**≈300KB**
+作者:[@Zeng-J](https://github.com/Zeng-J)
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | √ | √ | √ | √ |
+
+说明:
+引入本插件后,会将 *$xxx$* 的文本内容按照 *latex* 规则进行解析和渲染
+
+?> [2.5.0](changelog/changelog#v250) 版本起支持 *$$xxx$$* 形式的块级公式
+
+?> 与 [editable](#editable) 插件共用时,编辑状态下,公式不会渲染,可以直接修改公式文本
+
+?> 在 *js* 的字符串中写 *latex* 公式时需注意 *\\* 会变成转义符,要使用 *\\\\* 或 *String.raw``* 的方式
+
+?> 本插件通过 [katex-mini](https://github.com/rojer95/katex-mini) 解析 *latex* 文本,[字体文件](https://github.com/KaTeX/KaTeX/tree/main/fonts) 建议自行转存
+
+## card
+功能:商品(联络人)信息卡
+大小:*≈7KB*
+作者:[@whoooami](https://github.com/whoooami)
+支持平台:
+
+| 微信小程序 | QQ 小程序 | 百度小程序 | 支付宝小程序 | 头条小程序 | uni-app |
+|:---:|:---:|:---:|:---:|:---:|:---:|
+| √ | √ | √ | √ | √ | √(nvue 不支持) |
+
+效果图:
+
+
+参数列表:
+
+|参数名|是否必须|类型|说明|
+|:---- |:---|:----- |----- |
+|src|是|String|图片Url|
+|title|是|String|标题|
+|desc|是|String|描述|
+|url|是|String|跳转url|
+|color|是|String|文字颜色|
+|bgcolor|是|String|卡片背景颜色|
+|border|是|String|卡片边框颜色|
+
+说明:
+1. 可以显示商品信息卡片/联络人信息卡片
+
+基础库要求:
+满足最低要求即可
+
+?> 如果希望页面上使用本组件,组件的路径为 *path/to/mp-html/card/card*
+
+## 开发插件 :id=develop
+一个插件大致需要以下文件(*plugin/template* 中提供了一个模板)
+
+- *build.js*
+ 构建文件,需要导出一个 *object*,可以内含以下项:
+
+ | 名称 | 类型 | 默认值 | 功能 |
+ |:---:|:---:|:---:|---|
+ | main | string | index.js | 入口文件路径 |
+ | platform | string[] | ['mp-weixin', 'mp-qq', 'mp-baidu', 'mp-alipay', 'mp-toutiao', 'uni-app'] | 支持使用的平台 |
+ | template | string | - | 要被添加到模板文件中的标签 (nvue 不可用) |
+ | methods | object | {} | 用于处理模板中事件的方法 (nvue 不可用) |
+ | style | string | - | 用于模板文件的 css 样式 |
+ | import | string|string[] | - | 用于模板文件的 css 文件路径 |
+ | usingComponents | object | {} | 用于模板的组件或插件列表 (nvue 不可用) |
+ | handler | function | - | 自定义文件处理方法 |
+
+
+- *index.js*
+ 入口文件,导出一个 *function*,每个组件在被创建时,会依次实例化各个插件,并传入组件实例可供调用
+ 插件实例上可以挂载以下钩子方法,将在对应时机被调用
+
+ | 名称 | 触发时机 | 参数 | 返回值 |
+ |:---:|:---:|:---:|:---:|
+ | onUpdate | 更新 html 内容时触发 | 更新的 html 内容和解析配置 | 如果对输入值进行了修改,则返回修改后的内容 |
+ | onParse | 解析到一个标签时触发 | 标签和解析器实例 | 返回 false 将移除该标签 |
+ | onLoad | dom 树加载完成时触发 | - | - |
+ | onDetached | 组件被移除时触发 | - | - |
+
+- *README.md*
+使用说明
+
+- *其他依赖文件*
+插件目录下,除了 *.md* 的文件、*build.js* 和 *import* 字段中的 *css* 文件,其他的都会被拷贝到生成的组件包中,因此请不要放置无关文件
+
+对于仅在原生平台中使用的内容可放在 *miniprogram* 目录下,仅在 *uni-app* 中使用的内容可放在 *uni-app* 目录下,两个目录下可以分别放置 *build.js*
+
+如果在插件中需要用到解析器(将 *html* 字符串解析为 *nodes* 数组),可以引入 *src/parser.js* 使用,方法如下:
+```javascript
+const Parser = require('../parser.js')
+var instance = new Parser(vm) // 实例化解析器,传入组件实例将自动获取相关配置
+var nodes = instance.parse(content) // 解析完成
+```
+
+!> 如果编写了插件,在升级组件包时请注意备份,避免丢失
+
+?> 欢迎提交实用的插件 [pull requests](https://github.com/jin-yufeng/mp-html/pulls) 到 *plugins* 文件夹
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/365刷题.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/365刷题.jpg
new file mode 100644
index 0000000..460a394
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/365刷题.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/AI瓦力.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/AI瓦力.jpg
new file mode 100644
index 0000000..69a4956
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/AI瓦力.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/MiniProgram模版演示.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/MiniProgram模版演示.jpg
new file mode 100644
index 0000000..983343b
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/MiniProgram模版演示.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/优秀笔记.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/优秀笔记.jpg
new file mode 100644
index 0000000..46b8ee4
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/优秀笔记.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/你的代码写的真棒.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/你的代码写的真棒.jpg
new file mode 100644
index 0000000..37838c5
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/你的代码写的真棒.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/典典博客.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/典典博客.jpg
new file mode 100644
index 0000000..dc832bc
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/典典博客.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/古典文学名著阅读.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/古典文学名著阅读.jpg
new file mode 100644
index 0000000..a655594
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/古典文学名著阅读.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/同城共享书.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/同城共享书.jpg
new file mode 100644
index 0000000..a9f11c7
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/同城共享书.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/多么生活.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/多么生活.jpg
new file mode 100644
index 0000000..8a4c146
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/多么生活.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/富文本插件.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/富文本插件.jpg
new file mode 100644
index 0000000..908fc45
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/富文本插件.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/小莫唐尼.png b/wechat-mini-program/components/mp-html/docs/assets/case/小莫唐尼.png
new file mode 100644
index 0000000..18e732a
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/小莫唐尼.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/微慕.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/微慕.jpg
new file mode 100644
index 0000000..c09a03b
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/微慕.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/技术源share.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/技术源share.jpg
new file mode 100644
index 0000000..1c3ccf3
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/技术源share.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/欢喜商城.png b/wechat-mini-program/components/mp-html/docs/assets/case/欢喜商城.png
new file mode 100644
index 0000000..4906ce5
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/欢喜商城.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/科学复习.png b/wechat-mini-program/components/mp-html/docs/assets/case/科学复习.png
new file mode 100644
index 0000000..2a865d8
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/科学复习.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/程序员技术之旅.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/程序员技术之旅.jpg
new file mode 100644
index 0000000..d998ebd
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/程序员技术之旅.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/谛否.jpg b/wechat-mini-program/components/mp-html/docs/assets/case/谛否.jpg
new file mode 100644
index 0000000..fe48024
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/谛否.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/case/食法查.png b/wechat-mini-program/components/mp-html/docs/assets/case/食法查.png
new file mode 100644
index 0000000..4976554
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/case/食法查.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/group.jpg b/wechat-mini-program/components/mp-html/docs/assets/group.jpg
new file mode 100644
index 0000000..4cad35c
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/group.jpg differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/logo/logo.ico b/wechat-mini-program/components/mp-html/docs/assets/logo/logo.ico
new file mode 100644
index 0000000..eb76b52
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/logo/logo.ico differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/logo/logo.png b/wechat-mini-program/components/mp-html/docs/assets/logo/logo.png
new file mode 100644
index 0000000..8ac81cc
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/logo/logo.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/plugin/card.png b/wechat-mini-program/components/mp-html/docs/assets/plugin/card.png
new file mode 100644
index 0000000..2e60c32
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/plugin/card.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/sponsor.png b/wechat-mini-program/components/mp-html/docs/assets/sponsor.png
new file mode 100644
index 0000000..7390546
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/sponsor.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/tutorials/01.png b/wechat-mini-program/components/mp-html/docs/assets/tutorials/01.png
new file mode 100644
index 0000000..7bbcf8a
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/tutorials/01.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/tutorials/02.png b/wechat-mini-program/components/mp-html/docs/assets/tutorials/02.png
new file mode 100644
index 0000000..bbb5a0d
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/tutorials/02.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/tutorials/03.png b/wechat-mini-program/components/mp-html/docs/assets/tutorials/03.png
new file mode 100644
index 0000000..1818809
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/tutorials/03.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/assets/tutorials/04.png b/wechat-mini-program/components/mp-html/docs/assets/tutorials/04.png
new file mode 100644
index 0000000..d0147ac
Binary files /dev/null and b/wechat-mini-program/components/mp-html/docs/assets/tutorials/04.png differ
diff --git a/wechat-mini-program/components/mp-html/docs/basic/event.md b/wechat-mini-program/components/mp-html/docs/basic/event.md
new file mode 100644
index 0000000..5b2993b
--- /dev/null
+++ b/wechat-mini-program/components/mp-html/docs/basic/event.md
@@ -0,0 +1,173 @@
+# 📫 事件 :id=event
+
+## 获取方式 :id=method
+- *uni-app*
+ *@* + 事件名 或 *v-on:* + 事件名
+ 事件信息从 *event* 中获取
+ ```vue
+
+ p { color: red }
+
+
+```
+
+?> 通过 *base* 标签也可以设置主域名,但优先级低于此属性
+
+!> 该属性必须填写 协议名://域名 的完整链接
+暂不支持拼接含有 *../* 的相对路径链接
+*a* 标签的 *href* 属性可能需要跳转到小程序内路径,因此不进行 *domain* 拼接
+设置该属性后将无法使用本地图片
+
+## error-img
+功能:图片出错时的占位图链接
+类型:*String*
+
+!> 该属性不会进行拼接 [domain](#domain),需传入完整路径(可以使用本地路径)
+
+## lazy-load
+功能:是否开启图片懒加载
+类型:*Boolean*
+默认值:*false*
+
+?> 不同平台懒加载的时机不同,具体参考各平台 *image* 组件懒加载的时机
+
+## loading-img
+功能:图片加载过程中的占位图链接
+类型:*String*
+
+!> 该属性不会进行拼接 [domain](#domain),需传入完整路径(可以使用本地路径)
+
+## pause-video
+功能:是否在播放一个视频时自动暂停其他视频
+类型:*Boolean*
+默认值:*true*
+
+?> 如果需要多个视频同时播放的,请将此属性设置为 *false*
+
+## preview-img
+功能:是否允许图片被点击时自动预览
+类型:*Boolean*
+默认值:*true*
+
+?> 自动预览允许左右滑动查看所有图片,如果不希望如此可以禁用自动预览并在 [imgtap](basic/event#imgtap) 事件中自行处理
+
+!> 默认情况下 *base64* 图片无法点击预览,[2.5.0](changelog/changelog#v250) 版本起支持将本属性设置为 *"all"* 开启 *base64* 图片的预览,但需要注意各平台 *previewImage* 的 *api* 对 *base64* 图片支持度不高,需充分测试后使用,如果无法预览,可参考 [imgList](advanced/api#imgList) 中的方法进行转存
+
+## scroll-table
+功能:是否给每个表格添加一个滚动层使其能单独横向滚动
+类型:*Boolean*
+默认值:*false*
+
+!> 如果表格设置了 *inline* 布局,该属性将不会生效以免破坏行内布局
+
+## selectable
+功能:是否开启文本长按复制
+类型:*Boolean* / *String*
+默认值:*false*
+
+!> 将本属性的值设置为 *true* 在微信 *iOS* 端可能失效,[2.0.5](changelog/changelog#v205) 版本起支持将本属性设置为 "*force*" 来支持,但会带来以下影响:
+1、所有文本块会显示为 *inline-block*(通过 [text](https://developers.weixin.qq.com/miniprogram/dev/component/text.html) 标签的 *user-select* 属性实现),需要自行适配
+2、文字下划线、删除线等效果将失效([详细](https://github.com/jin-yufeng/mp-html/issues/382))
+3、所有文本块都无法被 *rich-text* 包含,一定程度上增加标签数,减慢渲染速度
+从 [2.3.1](changelog/changelog#v231) 版本起对此问题进行优化(通过 [rich-text](https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html) 标签的 *user-select* 属性实现,基础库 *2.24.0* 及以上生效),第 *3* 个问题已解决,第 *1*、*2* 个问题部分情况下还会存在
+
+## set-title
+功能:是否将 *title* 标签的内容设置到页面标题
+类型:*Boolean*
+默认值:*true*
+
+## show-img-menu
+
+?> [2.3.0](changelog/changelog#v230) 版本起支持控制预览时是否长按显示菜单(仅微信、百度小程序有效)
+
+功能:是否允许图片被长按时显示菜单
+类型:*Boolean*
+默认值:*true*
+
+!> 该属性目前仅微信、百度和 *uni-app* 的 *app* 平台有效
+
+## tag-style
+功能:设置标签的默认样式
+类型:*Object*
+示例:
+```javascript
+// 格式为 标签名: 样式
+{
+ a: 'color:red' // a 标签默认为红色
+}
+```
+
+?> 该属性非响应式,需要在设置 [content](#content) 属性前设置才能生效,动态修改不能实时生效
+
+!> 该属性的原理是解析到各标签的内联 *style* 属性中去,如果对特别常用的标签设置默认样式,将大大加大解析结果大小,减慢渲染速度,这种情况下建议通过 [外部样式](overview/quickstart#setting) 引入
+
+## use-anchor
+功能:是否使用锚点链接
+类型:*Boolean* / *Number*
+默认值:*false*
+
+?> 传入一个数字时表示跳转锚点的偏移量(单位 *px*)
+
+?> 开启该属性会将所有设置了 *id* 属性的标签都暴露出来,一定程度上减慢渲染速度,非必要不要开启
diff --git a/wechat-mini-program/components/mp-html/docs/changelog/changelog.md b/wechat-mini-program/components/mp-html/docs/changelog/changelog.md
new file mode 100644
index 0000000..c59f53b
--- /dev/null
+++ b/wechat-mini-program/components/mp-html/docs/changelog/changelog.md
@@ -0,0 +1,322 @@
+# 📖 更新日志 :id=changelog
+
+## v2.5.1
+发布时间:*2025-04-20*
+主要更新:
+1. `U` `uni-app` 包适配鸿蒙 `APP` [详细](https://github.com/jin-yufeng/mp-html/issues/615)
+2. `U` 微信小程序替换废弃 `api` `getSystemInfoSync` [详细](https://github.com/jin-yufeng/mp-html/issues/613)
+3. `F` 修复了微信小程序 `glass-easel` 框架下真机换行异常的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/607) by [@PaperStrike](https://github.com/PaperStrike)
+4. `F` 修复了 `uni-app` 包 `app` 端播放视频可能报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/617)
+5. `F` 修复了 [latex](advanced/plugin#latex) 插件可能出现 `xxx can be used only in display mode` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/632)
+6. `F` 修复了 `uni-app` 包 [latex](advanced/plugin#latex) 公式可能不显示的问题 [#599](https://github.com/jin-yufeng/mp-html/issues/599)、[#627](https://github.com/jin-yufeng/mp-html/issues/627)
+
+## v2.5.0
+发布时间:*2024-04-22*
+主要更新:
+1. `U` [play](basic/event#play) 事件增加返回 `src` 等信息 [详细](https://github.com/jin-yufeng/mp-html/issues/526)
+2. `U` [preview-img](basic/prop#preview-img) 属性支持设置为 `all` 开启 `base64` 图片预览 [详细](https://github.com/jin-yufeng/mp-html/issues/536)
+3. `U` [editable](advanced/plugin#editable) 插件增加简易模式(点击文字直接编辑)
+4. `U` [latex](advanced/plugin#latex) 插件支持块级公式 [详细](https://github.com/jin-yufeng/mp-html/issues/582)
+5. `F` 修复了表格部分情况下背景丢失的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/587)
+6. `F` 修复了部分 `svg` 无法显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/591)
+7. `F` 修复了 `uni-app` 包 `h5` 和 `app` 端部分情况下样式无法识别的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/518)
+8. `F` 修复了 [latex](advanced/plugin#latex) 插件部分情况下显示不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/580)
+9. `F` 修复了 [editable](advanced/plugin#editable) 插件表格无法删除的问题
+10. `F` 修复了 [editable](advanced/plugin#editable) 插件 `uni-app` 包 `vue3` `h5` 端点击图片报错的问题
+11. `F` 修复了 [editable](advanced/plugin#editable) 插件 `uni-app` 包点击表格没有菜单栏的问题
+
+## v2.4.3
+发布时间:*2024-01-21*
+主要更新:
+1. `A` 增加 [card](advanced/plugin#card) 插件 [详细](https://github.com/jin-yufeng/mp-html/pull/533) by [@whoooami](https://github.com/whoooami)
+2. `F` 修复了 `svg` 中包含 `foreignobject` 可能不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/523)
+3. `F` 修复了合并单元格的表格部分情况下显示不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/561)
+4. `F` 修复了 `img` 标签设置 `object-fit` 无效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/567)
+5. `F` 修复了 [latex](advanced/plugin#latex) 插件公式会换行的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/540)
+6. `F` 修复了 `uni-app` 包 [editable](advanced/plugin#editable) 和 [audio](advanced/plugin#audio) 插件共用时点击 `audio` 无法编辑的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/529) by [@whoooami](https://github.com/whoooami)
+7. `F` 修复了支付宝小程序设置了宽高的图片可能显示不正常的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/544)
+8. `F` 修复了 `uni-app` 包微信小程序部分情况下图片会报错 `replace of undefined` 的问题
+9. `F` 修复了 `uni-app` 包快手小程序图片不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/571)
+
+## v2.4.2
+发布时间:*2023-05-14*
+主要更新:
+1. `A` [editable](advanced/plugin#editable) 插件支持修改文字颜色 [详细](https://github.com/jin-yufeng/mp-html/issues/254)
+2. `F` 修复了 `svg` 中有 `style` 不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/505)
+3. `F` 修复了 `uni-app` 包使用旧版编译器可能报错 `Bad attr nodes` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/472)
+4. `F` 修复了 `uni-app` 包 `app` 端可能出现无法读取 `lazyLoad` 的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/513)
+5. `F` 修复了 [editable](advanced/plugin#editable) 插件在点击换图时未拼接 [domain](basic/prop#domain) 的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/497) by [@TwoKe945](https://github.com/TwoKe945)
+6. `F` 修复了 [latex](advanced/plugin#latex) 插件部分情况下不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/515)
+7. `F` 修复了 [editable](advanced/plugin#editable) 插件点击音视频时其他标签框不消失的问题
+
+## v2.4.1
+发布时间:*2022-12-25*
+主要更新:
+1. `F` 修复了没有图片时 [ready](basic/event#ready) 事件可能不触发的问题
+2. `F` 修复了加载过程中可能出现 `Root label not found` 错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/470)
+3. `F` 修复了 [audio](advanced/plugin#audio) 插件退出页面可能会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/457)
+4. `F` 修复了 `uni-app` 包 `vue3` 运行到 `app` 在 `HBuilder X 3.6.10` 以上报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/480)
+5. `F` 修复了原生包链接内有图片时可能错误换行的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/464)
+6. `F` 修复了 `uni-app` 包 `nvue` 端链接中包含 `%22` 时可能无法显示的问题
+7. `F` 修复了 `uni-app` 包 `vue3` 使用 [highlight](advanced/plugin#highlight) 插件可能报错的问题
+8. `F` 修复了头条小程序使用 [editable](advanced/plugin#editable) 插件内容为空时点击会报错的问题
+
+## v2.4.0
+发布时间:*2022-08-27*
+主要更新:
+1. `A` 增加了 [setPlaybackRate](advanced/api#setPlaybackRate) 的 `api`,可以设置音视频的播放速率 [详细](https://github.com/jin-yufeng/mp-html/issues/452)
+2. `A` 示例小程序代码开源 [详细](https://github.com/jin-yufeng/mp-html-demo)
+3. `U` 优化 [ready](basic/event#ready) 事件触发时机,未设置懒加载的情况下基本可以准确触发 [详细](https://github.com/jin-yufeng/mp-html/issues/195)
+4. `U` [highlight](advanced/plugin#highlight) 插件在编辑状态下不进行高亮处理,便于编辑
+5. `F` 修复了 `flex` 布局下图片大小可能不正确的问题
+6. `F` 修复了 [selectable](basic/prop#selectable) 属性没有设置 `force` 也可能出现渲染异常的问题
+7. `F` 修复了表格中的图片大小可能不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/448)
+8. `F` 修复了含有合并单元格的表格可能无法设置竖直对齐的问题
+9. `F` 修复了 [editable](advanced/plugin#editable) 插件在 `scroll-view` 中使用时工具条位置可能不正确的问题
+10. `F` 修复了 `uni-app` 包 `vue3` 使用 [search](advanced/plugin#search) 插件可能导致错误换行的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/449)
+
+## v2.3.2
+发布时间:*2022-08-13*
+主要更新:
+1. `A` 增加 [latex](advanced/plugin#latex) 插件,可以渲染数学公式 [详细](https://github.com/jin-yufeng/mp-html/pull/447) by [@Zeng-J](https://github.com/Zeng-J)
+2. `U` 优化根节点下有很多标签的长内容渲染速度
+3. `U` [highlight](advanced/plugin#highlight) 插件适配 `lang-xxx` 格式
+4. `F` 修复了 `table` 标签设置 `border` 属性后可能无法修改边框样式的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/439) by [@zouxingjie](https://github.com/zouxingjie)
+5. `F` 修复了 [editable](advanced/plugin#editable) 插件输入连续空格无效的问题
+6. `F` 修复了 `uni-app` 包 `vue3` 图片设置 `inline` 会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/438)
+7. `F` 修复了 `uni-app` 包 `vue3` 使用 `table` 可能报错的问题
+
+## v2.3.1
+发布时间:*2022-05-20*
+主要更新:
+1. `U` `uni-app` 包 `app` 端支持使用本地图片
+2. `U` 优化了微信小程序 [selectable](basic/prop#selectable) 属性在 `ios` 端的处理 [详细](basic/prop#selectable)
+3. `U` 原生包取消样式隔离,部分平台可以直接引入页面样式 [#376](https://github.com/jin-yufeng/mp-html/issues/376)、[详细](overview/quickstart#externStyle)
+4. `F` 修复了 [editable](advanced/plugin#editable) 插件不在顶部时 `tooltip` 位置可能错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/430)
+5. `F` 修复了 `uni-app` 包 `vue3` 运行到微信小程序可能报错丢失内容的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/414)
+6. `F` 修复了 `uni-app` 包 `vue3` 部分标签可能被错误换行的问题
+7. `F` 修复了原生包个别情况下可能报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/428)
+8. `F` 修复了 [editable](advanced/plugin#editable) 插件 `uni-app` 包的 `app` 端插入视频无法预览的问题
+
+## v2.3.0
+发布时间:*2022-04-01*
+主要更新:
+1. `A` 增加了 `play` 事件,音视频播放时触发,可用于与页面其他音视频进行互斥播放 [详细](basic/event#play)
+2. `U` [show-img-menu](basic/prop#show-img-menu) 属性支持控制预览时是否长按弹出菜单
+3. `U` 优化 `wxs` 处理,提高渲染性能 [详细](https://developers.weixin.qq.com/community/develop/article/doc/0006cc2b204740f601bd43fa25a413)
+4. `U` `video` 标签支持 `object-fit` 属性
+5. `U` 增加支持一些常用实体编码 [详细](https://github.com/jin-yufeng/mp-html/issues/418)
+6. `F` 修复了图片仅设置高度可能不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/410)
+7. `F` 修复了 `video` 标签高度设置为 `auto` 不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/411)
+8. `F` 修复了使用 `grid` 布局时可能样式错误的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/413)
+9. `F` 修复了含有合并单元格的表格部分情况下显示异常的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/417)
+10. `F` 修复了百度小程序使用 `br` 标签可能部分不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/409)
+11. `F` 修复了 [editable](advanced/plugin#editable) 插件连续插入内容时顺序不正确的问题
+12. `F` 修复了 `uni-app` 包 `vue3` 使用 [audio](advanced/plugin#audio) 插件报错的问题
+13. `F` 修复了 `uni-app` 包 [highlight](advanced/plugin#highlight) 插件使用自定义的 `prism.min.js` 报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/416)
+
+## v2.2.2
+发布时间:*2022-02-26*
+主要更新:
+1. `A` 增加了 [pauseMedia](advanced/api#pauseMedia) 的 `api`,可用于暂停播放音视频 [详细](https://github.com/jin-yufeng/mp-html/issues/317)
+2. `U` 优化了长内容的加载速度
+3. `U` `uni-app` 包适配 `vue3` [#389](https://github.com/jin-yufeng/mp-html/issues/389)、[#398](https://github.com/jin-yufeng/mp-html/pull/398) by [@zhouhuafei](https://github.com/zhouhuafei)、[#400](https://github.com/jin-yufeng/mp-html/issues/400)
+4. `F` 修复了小程序端图片高度设置为百分比时可能不显示的问题
+5. `F` 修复了 [highlight](advanced/plugin#highlight) 插件部分情况下可能显示不完整的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/403)
+
+## v2.2.1
+发布时间:*2021-12-24*
+主要更新:
+1. `A` [editable](advanced/plugin#editable) 插件增加上下移动标签功能
+2. `U` [editable](advanced/plugin#editable) 插件支持在文本中间光标处插入内容
+3. `F` 修复了 `uni-app` 包 `nvue` 端设置 `margin` 后可能导致高度不正确的问题
+4. `F` 修复了 [highlight](advanced/plugin#highlight) 插件使用压缩版的 `prism.css` 可能导致背景失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/367)
+5. `F` 修复了 `uni-app` 包编辑状态下使用 [emoji](advanced/plugin#emoji) 插件内容为空时可能报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/371)
+6. `F` 修复了使用 [editable](advanced/plugin#editable) 插件后将 [selectable](basic/prop#selectable) 属性设置为 `force` 不生效的问题
+
+## v2.2.0
+发布时间:*2021-10-11*
+主要更新:
+1. `A` 增加 [customElements](overview/quickstart#customelements) 配置项,便于添加自定义功能性标签 [详细](https://github.com/jin-yufeng/mp-html/issues/350)
+2. `A` [editable](advanced/plugin#editable) 插件增加切换音视频自动播放状态的功能 [详细](https://github.com/jin-yufeng/mp-html/pull/341) by [@leeseett](https://github.com/leeseett)
+3. `A` [editable](advanced/plugin#editable) 插件删除媒体标签时触发 `remove` 事件,便于删除已上传的文件
+4. `U` [editable](advanced/plugin#editable) 插件 `insertImg` 方法支持同时插入多张图片 [详细](https://github.com/jin-yufeng/mp-html/issues/342)
+5. `U` [editable](advanced/plugin#editable) 插入图片和音视频时支持拼接 [domian](basic/prop#domain) 主域名
+6. `F` 修复了内部链接参数中包含 `://` 时被认为是外部链接的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/356)
+7. `F` 修复了部分 `svg` 标签名或属性名大小写不正确时不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/351)
+8. `F` 修复了 `uni-app` 包 `nvue` 页面运行到非 `app` 平台时可能样式错误的问题
+9. `D` 移除了 `ad` 配置项(由 [customElements](overview/quickstart#customelements) 代替)
+
+## v2.1.5
+发布时间:*2021-08-13*
+主要更新:
+1. `A` 增加支持标签的 `dir` 属性
+2. `F` 修复了 `ruby` 标签文字与拼音没有居中对齐的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/325)
+3. `F` 修复了音视频标签内有 `a` 标签时可能无法播放的问题
+4. `F` 修复了 [externStyle](overview/quickstart#setting) 中的 `class` 名包含下划线或数字时可能失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/326)
+5. `F` 修复了 `uni-app` 包 `h5` 端引入 [externStyle](overview/quickstart#setting) 可能不生效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/326)
+6. `F` 修复了微信原生包 `a` 标签的 `style` 中包含 `inline` 时不响应事件的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/332)
+
+## v2.1.4
+发布时间:*2021-07-14*
+主要更新:
+1. `F` 修复了 `rt` 标签无法设置样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/318)
+2. `F` 修复了表格中有单元格同时合并行和列时可能显示不正确的问题
+3. `F` 修复了 `uni-app` 包的 `app` 端无法关闭图片长按菜单的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/322)
+4. `F` 修复了 [editable](advanced/plugin#editable) 插件只能添加图片链接不能修改的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/312) by [@leeseett](https://github.com/leeseett)
+
+## v2.1.3
+发布时间:*2021-06-12*
+主要更新:
+1. `A` [editable](advanced/plugin#editable) 插件增加 `insertTable` 方法
+2. `U` [editable](advanced/plugin#editable) 插件支持编辑表格中的空白单元格 [详细](https://github.com/jin-yufeng/mp-html/issues/310)
+3. `F` 修复了 [externStyle](overview/quickstart#setting) 中使用伪类可能失效的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/298)
+4. `F` 修复了多个组件同时使用时 [tag-style](basic/prop#tag-style) 属性时可能互相影响的问题 [详细](https://github.com/jin-yufeng/mp-html/pull/305) by [@woodguoyu](https://github.com/woodguoyu)
+5. `F` 修复了包含 `linearGradient` 的 `svg` 可能无法显示的问题
+6. `F` 修复了 `uni-app` 包编译到头条小程序时可能报错的问题
+7. `F` 修复了 `uni-app` 包 `nvue` 端不触发 `click` 事件的问题
+8. `F` 修复了 [editable](advanced/plugin#editable) 插件尾部插入时无法撤销的问题
+9. `F` 修复了 [editable](advanced/plugin#editable) 插件的 `insertHtml` 方法只能在末尾插入的问题
+10. `F` 修复了 [editable](advanced/plugin#editable) 插件插入音频不显示的问题
+
+## v2.1.2
+发布时间:*2021-04-24*
+主要更新:
+1. `A` 增加了 [img-cache](advanced/plugin#img-cache) 插件,可以在 `uni-app` 的 `app` 端缓存图片 [详细](https://github.com/jin-yufeng/mp-html/issues/292) by [@PentaTea](https://github.com/PentaTea)
+2. `U` 支持通过 [container-style](basic/prop#container-style) 属性设置 `white-space` 来保留连续空格和换行符 [详细](question/faq#space)
+3. `U` 代码风格符合 [standard](https://standardjs.com) 标准
+4. `U` `uni-app` 包使用 [editable](advanced/plugin#editable) 插件编辑状态下支持预览视频 [详细](https://github.com/jin-yufeng/mp-html/issues/286)
+5. `F` 修复了 `svg` 标签内嵌 `svg` 时无法显示的问题
+6. `F` 修复了微信原生包 `img` 标签的 `style` 中包含 `inline` 时不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/287)
+7. `F` 修复了支付宝和头条小程序部分区域不可复制的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/291)
+
+## v2.1.1
+发布时间:*2021-04-09*
+主要更新:
+1. `F` 修复了对 `p` 标签设置 [tag-style](basic/prop#tag-style) 可能不生效的问题
+2. `F` 修复了 `svg` 标签中的文本无法显示的问题
+3. `F` 修复了 `uni-app` 包的 `nvue` 端不设置 [container-style](basic/prop#container-style) 可能报错的问题
+4. `F` 修复了 `uni-app` 包使用 [editable](advanced/plugin#editable) 插件编辑表格时可能报错的问题
+5. `F` 修复了 `uni-app` 包使用 [highlight](advanced/plugin#highlight) 插件运行到头条小程序时可能没有样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/280)
+6. `F` 修复了 `uni-app` 包使用 [editable](advanced/plugin#editable) 插件 `editable` 属性为 `false` 时会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/284)
+7. `F` 修复了 [style](advanced/plugin#style) 插件连续子选择器失效的问题
+8. `F` 修复了 [editable](advanced/plugin#editable) 插件无法修改图片和字体大小的问题
+
+## v2.1.0
+发布时间:*2021-03-20*
+主要更新:
+1. `A` 增加了 [container-style](basic/prop#container-style) 属性 [详细](https://gitee.com/jin-yufeng/mp-html/pulls/1)
+2. `A` 增加支持 `strike` 标签
+3. `A` `editable` 插件增加 `placeholder` 属性 [详细](advanced/plugin#editable)
+4. `A` `editable` 插件增加 `insertHtml` 方法 [详细](advanced/plugin#editable)
+5. `U` 外部样式支持标签名选择器 [详细](overview/quickstart#setting)
+6. `F` 修复了 `uni-app` 包 `nvue` 端部分情况下可能不显示的问题
+
+## v2.0.5
+发布时间:*2021-03-12*
+主要更新:
+1. `U` [linktap](basic/event#linktap) 事件增加返回内部文本内容 `innerText` [详细](https://github.com/jin-yufeng/mp-html/issues/271)
+2. `U` [selectable](basic/prop#selectable) 属性设置为 `force` 时能够在微信 `iOS` 端生效(文本块会变成 `inline-block`) [详细](https://github.com/jin-yufeng/mp-html/issues/267)
+3. `F` 修复了部分情况下竖向无法滚动的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/182)
+4. `F` 修复了 `uni-app` 包多次修改富文本数据时部分内容可能不显示的问题
+5. `F` 修复了百度小程序真机部分内容不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/272)
+6. `F` 修复了 [腾讯视频](advanced/plugin#txv-video) 插件可能无法播放的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/265)
+7. `F` 修复了 [highlight](advanced/plugin#highlight) 插件没有设置高亮语言时没有应用默认样式的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/276) by [@fuzui](https://github.com/fuzui)
+
+## v2.0.4
+发布时间:*2021-01-31*
+主要更新:
+1. `A` [editable](advanced/plugin#editable) 插件增加下划线和图片超链接的功能 [详细](https://github.com/jin-yufeng/mp-html/issues/254)
+2. `U` 支付宝和头条小程序原生包直接通过 `template` 递归实现渲染
+3. `F` 修复了 `img` 标签设置 `data-src` 可能导致图片不显示的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/257)
+4. `F` 修复了 `script` 标签中的 `<` 会被解析为标签的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/259)
+5. `F` 修复了 `uni-app` 包的 `app` 端播放视频时可能高度突然变小的问题
+6. `F` 修复了 `uni-app` 包的 `app` 端长按图片会报错的问题
+7. `F` 修复了 `uni-app` 包的 `nvue` 端使用 [editable](advanced/plugin#editable) 插件后无法显示的问题
+8. `F` 修复了 [editable](advanced/plugin#editable) 插件删除图片和切换内容时可能出现错误选择框的问题
+9. `F` 修复了 [editable](advanced/plugin#editable) 插件无法编辑链接文本内容的问题
+
+## v2.0.3
+发布时间:*2021-01-15*
+主要更新:
+1. `U` 图片被点击时不冒泡(可以与整体的点击区分开,不影响链接中的图片)
+2. `F` 修复了图片链接缺省协议名时可能无法预览的问题
+3. `F` 修复了原生包 `video` 和 `audio` 标签内放置文本会报错的问题
+4. `F` 修复了 [editable](advanced/plugin#editable) 插件清空内容时弹窗可能不消失的问题
+5. `F` 修复了 [highlight](advanced/plugin#highlight) 插件部分情况下样式不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/231)
+6. `F` 修复了文档首页跳转到快速开始页时 `404` 的问题 by [@AnsonZnl](https://github.com/AnsonZnl)
+
+## v2.0.2
+发布时间:*2021-01-08*
+主要更新:
+1. `U` `uni-app` 包微信端利用 `virtualHost` 去除夹层,加快渲染
+2. `F` 修复了部分情况下 `flex` 布局显示不正确的问题
+3. `F` 修复了设置 [loading-img](basic/prop#loading-img) 会导致懒加载失效的问题
+4. `F` 修复了头条原生包部分情况下表格显示不正确的问题
+5. `F` 修复了 `uni-app` 的 `h5` 和 `app` 端部分插件样式无法应用的问题
+6. `F` 修复了 `uni-app` 包没有自动将 `data-src` 设置为 `src` 的问题
+7. `F` 修复了 `uni-app` 包的 `nvue` 端 [getRect](advanced/api#getRect) 方法无法使用的问题
+8. `F` 修复了 `uni-app` 包运行到华为快应用可能报错的问题
+9. `F` 修复了在低版本 taro 中使用可能无法正确解析的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/248)
+10. `F` 修复了 [highlight](advanced/plugin#highlight) 插件 `pre` 和 `code` 之间有空白符时无法高亮的问题
+11. `F` 修复了 [editable](advanced/plugin#editable) 插件清空内容后插入可能报错的问题
+
+## v2.0.1
+发布时间:*2021-01-01*
+主要更新:
+1. `F` 修复了 `a` 标签自动跳转到不存在页面时可能报错的问题
+2. `F` 修复了含合并单元格的表格设置列宽可能导致显示不正确的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/239)
+3. `F` 修复了表格中的图片可能错位的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/194)
+4. `F` 修复了原生包使用 [editable](advanced/plugin#editable) 插件点击标签时可能报错的问题
+5. `F` 修复了 `uni-app` 的 `h5` 和 `app` 端可能无法使用 `iframe` 和 `embed` 标签的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/245)
+6. `F` 修复了 `uni-app` 使用部分插件会报错的问题 [详细](https://github.com/jin-yufeng/mp-html/issues/246)
+
+## v2.0.0
+发布时间:*2020-12-26*
+主要更新:
+1. `U` 通过 `gulp` 进行构建,自动生成各平台压缩版代码,减小引入包大小 [详细](advanced/develop#pack)
+2. `U` 没有设置 `href` 属性的 `a` 标签不应用链接的样式,可以用作一般标签的点击处理 [详细](question/faq#tap)
+3. `U` 提供了统一的插件接口,扩展更加方便(代码高亮、`markdown` 等都可以直接通过引入插件实现)[详细](advanced/plugin)
+4. `U` 实现了简单的编辑功能 [详细](advanced/plugin#editable)
+5. `U` 支持生成各平台的示例项目,便于调试 [详细](overview/quickstart#demo)
+6. `U` 原生包共用一份源代码(构建时进行自动转换),注释更加详细,便于了解和维护
+7. `U` 通过 `jest` 进行单元测试,进一步保证代码质量 [详细](advanced/develop#test)
+8. `U` 去除了一些冗余功能,进一步减小包大小(约 `24.5KB`)
+9. `U` 减少了递归节点树,加快渲染速度
+10. `U` `uni-app` 的 `app` 端使用非原生的 `video` 显示视频以解决无法同层带来的系列问题
+11. `U` `uni-app` 的 `nvue` 端支持通过 `bgColor` 属性设置背景色(默认白色,不可设置为透明)
+12. `F` 修复了 `uni-app` 的 `nvue` 端从不可见区域到可见时可能显示不正确的问题
+
+*v1.x* 更新指南:
+- 组件路径和名称
+ *parser* -> *mp-html*
+- *npm* 包名
+ *parser-wx* -> *mp-html*
+- 组件属性
+ 更名:
+ *html* -> [content](basic/prop#content)
+ *autopause* -> [pause-video](basic/prop#pause-video)
+ *autoscroll* -> [scroll-table](basic/prop#scroll-table)
+ *autosetTitle* -> [set-title](basic/prop#set-title)
+ 移除:
+ *compress*, *show-with-animation*, *use-cache*
+ 新增:
+ [copy-link](basic/prop#copy-link), [error-img](basic/prop#error-img), [preview-img](basic/prop#preview-img), [show-img-menu](basic/prop#show-img-menu)
+ 修改:
+ [use-anchor](basic/prop#use-anchor) 支持传入数字表示跳转偏移量
+- 组件事件
+ 更名 *linkpress* -> [linktap](basic/event#linktap)
+ 移除 *parse* 事件
+ *imgtap* 和 *linktap* 事件中不再返回 *ignore* 方法,可以使用 [preview-img](basic/prop#preview-img) 和 [copy-link](basic/prop#copy-link) 属性禁用自动预览/拷贝
+ 链接被点击时,不再支持自动跳转其他小程序,可以自行在 [linktap](basic/event#linktap) 事件中进行跳转
+- api
+ [navigateTo](advanced/api#navigateTo) 返回 *Promise*,不再采用 *success* 和 *fail* 回调
+ *rect* 变更为 [getRect](advanced/api#getRect) 方法
+ 移除 *getVideoContext* 方法
+ [imgList](advanced/api#imgList) 不再包含 *setItem* 和 *each* 方法
+- 其他
+ 默认不再支持匹配 *style* 标签中的样式,如有需要请使用 [style](advanced/plugin#style) 插件
+ 不再支持 *base64* 图片预览(默认为不可预览的小图片)
+ 取消了配置项(相关解析配置在 *parser.js* 中,*filter* 等方法用 [插件](advanced/plugin) 的方式替代)
+ 取消了视频的懒加载(应避免在一个页面中使用过多视频,以免卡顿)
+ *ad* 标签默认不添加到模板(详见 [个性化](overview/quickstart#setting))
diff --git a/wechat-mini-program/components/mp-html/docs/index.html b/wechat-mini-program/components/mp-html/docs/index.html
new file mode 100644
index 0000000..198a540
--- /dev/null
+++ b/wechat-mini-program/components/mp-html/docs/index.html
@@ -0,0 +1,50 @@
+
+
+
+
+
"']/),yt=/[&<>"']/g,bt=/[<>"']|&(?!#?\w+;)/,kt=/[<>"']|&(?!#?\w+;)/g,wt={"&":"&","<":"<",">":">",'"':""","'":"'"};var xt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _t(e){return e.replace(xt,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var St=/(^|[^\[])\^/g;var At=/[^\w:]/g,Tt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var Et={},Rt=/^[^:]+:\/*[^/]*$/,Ot=/^([^:]+:)[\s\S]*$/,$t=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Ft(e,t){Et[" "+e]||(Rt.test(e)?Et[" "+e]=e+"/":Et[" "+e]=Ct(e,"/",!0));var n=-1===(e=Et[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ot,"$1")+t:"/"===t.charAt(0)?n?t:e.replace($t,"$1")+t:e+t}function Ct(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i'+(n?e:nn(e,!0))+"\n":"
\n"},e.prototype.blockquote=function(e){return""+(n?e:nn(e,!0))+"\n"+e+"
\n"},e.prototype.html=function(e){return e},e.prototype.heading=function(e,t,n,r){return this.options.headerIds?"
\n":"
\n"},e.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},e.prototype.listitem=function(e){return"\n\n"+e+"\n"+(t=t&&""+t+"")+"
\n"},e.prototype.tablerow=function(e){return"\n"+e+" \n"},e.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},e.prototype.strong=function(e){return""+e+""},e.prototype.em=function(e){return""+e+""},e.prototype.codespan=function(e){return""+e+""},e.prototype.br=function(){return this.options.xhtml?"
":"
"},e.prototype.del=function(e){return""+e+""},e.prototype.link=function(e,t,n){if(null===(e=tn(this.options.sanitize,this.options.baseUrl,e)))return n;e='"+n+""},e.prototype.image=function(e,t,n){if(null===(e=tn(this.options.sanitize,this.options.baseUrl,e)))return n;n='":">"},e.prototype.text=function(e){return e},e}(),on=function(){function e(){}return e.prototype.strong=function(e){return e},e.prototype.em=function(e){return e},e.prototype.codespan=function(e){return e},e.prototype.del=function(e){return e},e.prototype.html=function(e){return e},e.prototype.text=function(e){return e},e.prototype.link=function(e,t,n){return""+n},e.prototype.image=function(e,t,n){return""+n},e.prototype.br=function(){return""},e}(),an=function(){function e(){this.seen={}}return e.prototype.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.prototype.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n))for(r=this.seen[e];n=e+"-"+ ++r,this.seen.hasOwnProperty(n););return t||(this.seen[e]=r,this.seen[n]=0),n},e.prototype.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),sn=mt.defaults,ln=zt,cn=function(){function n(e){this.options=e||sn,this.options.renderer=this.options.renderer||new rn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new on,this.slugger=new an}return n.parse=function(e,t){return new n(t).parse(e)},n.parseInline=function(e,t){return new n(t).parseInline(e)},n.prototype.parse=function(e,t){void 0===t&&(t=!0);for(var n,r,i,o,a,s,l,c,u,p,h,d,f,g,m,v="",y=e.length,b=0;b
"+hn(e.message+"",!0)+"";throw e}}fn.options=fn.setOptions=function(e){return un(fn.defaults,e),dn(fn.defaults),fn},fn.getDefaults=Lt,fn.defaults=mt,fn.use=function(o){var t,e=un({},o);if(o.renderer){var n,a=fn.defaults.renderer||new rn;for(n in o.renderer)!function(r){var i=a[r];a[r]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=o.renderer[r].apply(a,e);return!1===n&&(n=i.apply(a,e)),n}}(n);e.renderer=a}if(o.tokenizer){var i,s=fn.defaults.tokenizer||new Gt;for(i in o.tokenizer)!function(){var r=s[i];s[i]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=o.tokenizer[i].apply(s,e);return!1===n&&(n=r.apply(s,e)),n}}();e.tokenizer=s}o.walkTokens&&(t=fn.defaults.walkTokens,e.walkTokens=function(e){o.walkTokens(e),t&&t(e)}),fn.setOptions(e)},fn.walkTokens=function(e,t){for(var n=0,r=e;n
"+hn(e.message+"",!0)+"";throw e}},fn.Parser=cn,fn.parser=cn.parse,fn.Renderer=rn,fn.TextRenderer=on,fn.Lexer=Jt,fn.lexer=Jt.lex,fn.Tokenizer=Gt,fn.Slugger=an;var gn=fn.parse=fn;function mn(e,n){if(void 0===n&&(n=''),!e||!e.length)return"";var r="";return e.forEach(function(e){var t=e.title.replace(/(<([^>]+)>)/g,"");r+='
'+t.slice(5).trim()+"
"}function yn(e,r){var i=[],o={};return e.forEach(function(e){var t=e.level||1,n=t-1;r'+En.highlight(e.replace(/@DOCSIFY_QM@/g,"`"),n,t)+""},i.link=(n=(t={renderer:e,router:o,linkTarget:t,linkRel:n,compilerClass:h}).renderer,a=t.router,s=t.linkTarget,l=t.linkRel,c=t.compilerClass,n.link=function(e,t,n){void 0===t&&(t="");var r=[],i=Sn(t),o=i.str,i=i.config;return s=i.target||s,l="_blank"===s?c.config.externalLinkRel||"noopener":"",t=o,O(e)||c._matchNotCompileLink(e)||i.ignore?(O(e)||"./"!==e.slice(0,2)||(e=document.URL.replace(/\/(?!.*\/).*/,"/").replace("#/./","")+e),r.push(0===e.indexOf("mailto:")?"":'target="'+s+'"'),r.push(0!==e.indexOf("mailto:")&&""!==l?' rel="'+l+'"':"")):(e===c.config.homepage&&(e="README"),e=a.toURL(e,null,a.getCurrentPath())),i.crossorgin&&"_self"===s&&"history"===c.config.routerMode&&-1===c.config.crossOriginLinks.indexOf(e)&&c.config.crossOriginLinks.push(e),i.disabled&&(r.push("disabled"),e="javascript:void(0)"),i.class&&r.push('class="'+i.class+'"'),i.id&&r.push('id="'+i.id+'"'),t&&r.push('title="'+t+'"'),'"+n+""}),i.paragraph={renderer:e}.renderer.paragraph=function(e){e=/^!>/.test(e)?vn("tip",e):/^\?>/.test(e)?vn("warn",e):""+e+"
";return e},i.image=(r=(n={renderer:e,contentBase:r,router:o}).renderer,u=n.contentBase,p=n.router,r.image=function(e,t,n){var r=e,i=[],o=Sn(t),a=o.str,o=o.config;return t=a,o["no-zoom"]&&i.push("data-no-zoom"),t&&i.push('title="'+t+'"'),o.size&&(t=(a=o.size.split("x"))[0],(a=a[1])?i.push('width="'+t+'" height="'+a+'"'):i.push('width="'+t+'"')),o.class&&i.push('class="'+o.class+'"'),o.id&&i.push('id="'+o.id+'"'),O(e)||(r=N(u,F(p.getCurrentPath()),e)),0"+e.content+"
\n\n"}),t.classList.add("show"),a.classList.add("show"),t.innerHTML=r||''+s+"
",o.hideOtherSidebarContent&&(i&&i.classList.add("hide"),n&&n.classList.add("hide"))}function d(e){o=e}function l(e,n){var t,a,i=n.router.parse().query.s;d(e),Docsify.dom.style("\n.sidebar {\n padding-top: 0;\n}\n\n.search {\n margin-bottom: 20px;\n padding: 6px;\n border-bottom: 1px solid #eee;\n}\n\n.search .input-wrap {\n display: flex;\n align-items: center;\n}\n\n.search .results-panel {\n display: none;\n}\n\n.search .results-panel.show {\n display: block;\n}\n\n.search input {\n outline: none;\n border: none;\n width: 100%;\n padding: 0 7px;\n line-height: 36px;\n font-size: 14px;\n border: 1px solid transparent;\n}\n\n.search input:focus {\n box-shadow: 0 0 5px var(--theme-color, #42b983);\n border: 1px solid var(--theme-color, #42b983);\n}\n\n.search input::-webkit-search-decoration,\n.search input::-webkit-search-cancel-button,\n.search input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.search .clear-button {\n cursor: pointer;\n width: 36px;\n text-align: right;\n display: none;\n}\n\n.search .clear-button.show {\n display: block;\n}\n\n.search .clear-button svg {\n transform: scale(.5);\n}\n\n.search h2 {\n font-size: 17px;\n margin: 10px 0;\n}\n\n.search a {\n text-decoration: none;\n color: inherit;\n}\n\n.search .matching-post {\n border-bottom: 1px solid #eee;\n}\n\n.search .matching-post:last-child {\n border-bottom: 0;\n}\n\n.search p {\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n\n.search p.empty {\n text-align: center;\n}\n\n.app-name.hide, .sidebar-nav.hide {\n display: none;\n}"),function(e){void 0===e&&(e="");var n='