-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63419df
commit ffc5f08
Showing
7 changed files
with
244 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* 代码高亮处理 | ||
*/ | ||
import hljs from 'highlight.js' | ||
|
||
// 加入 v-pre 跳过 vue-compile,跳过 markdown-it fence render 流程 | ||
const wrapCode = (code, lang) => | ||
`<pre v-pre class="language-${lang}"><code>${code}</code></pre>` | ||
|
||
export default md => { | ||
md.options.highlight = (code, lang) => { | ||
return wrapCode(hljs.highlight(code, { | ||
language: lang !== 'vue' ? lang : 'html' | ||
}).value, lang) | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
export default [ | ||
{ | ||
text: '概览', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: '介绍', | ||
link: '/guide/intro' | ||
}, | ||
{ | ||
text: '快速上手', | ||
link: '/guide/quick-start' | ||
}, | ||
{ | ||
text: '更新日志', | ||
link: '/guide/changelog' | ||
}, | ||
{ | ||
text: '主题与样式', | ||
link: '/guide/theme' | ||
}, | ||
{ | ||
text: '设计变量', | ||
link: '/guide/design-tokens' | ||
}, | ||
{ | ||
text: '联系我们', | ||
link: '/guide/contact' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '组件', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: '基础', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: 'Button 按钮', | ||
link: '/components/base/button' | ||
}, | ||
{ | ||
text: 'ButtonGroup 按钮组', | ||
link: '/components/base/button-group' | ||
}, | ||
{ | ||
text: 'Icon 图标', | ||
link: '/components/base/icon' | ||
}, | ||
{ | ||
text: 'Divider 分割线', | ||
link: '/components/base/divider' | ||
}, | ||
{ | ||
text: 'FloatBall 悬浮球', | ||
link: '/components/base/float-ball' | ||
} | ||
// { | ||
// text: 'Style 内置样式' | ||
// } | ||
// { | ||
// text: '其他基础组件' | ||
// } | ||
] | ||
}, | ||
{ | ||
text: '表单', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: 'Checkbox 复选框', | ||
link: '/components/base/checkbox' | ||
}, | ||
{ | ||
text: 'CheckboxGroup 复选框组', | ||
link: '/components/base/checkbox-group' | ||
}, | ||
{ | ||
text: 'Radio 单选框', | ||
link: '/components/base/radio' | ||
}, | ||
{ | ||
text: 'RadioGroup 单选框组', | ||
link: '/components/base/radio-group' | ||
}, | ||
{ | ||
text: 'Textarea 文本输入框', | ||
link: '/components/base/textarea' | ||
}, | ||
{ | ||
text: 'Picker 选择器', | ||
link: '/components/base/picker' | ||
}, | ||
{ | ||
text: 'CascadePicker 级联选择器', | ||
link: '/components/base/cascade-picker' | ||
}, | ||
{ | ||
text: 'DatePicker 日期选择器', | ||
link: '/components/base/date-picker' | ||
}, | ||
{ | ||
text: 'TimePicker 时间选择器', | ||
link: '/components/base/time-picker' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '弹出层', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: 'Popup 弹出层', | ||
link: '/components/popup/popup' | ||
}, | ||
{ | ||
text: 'Toast 轻提示', | ||
link: '/components/popup/toast' | ||
}, | ||
{ | ||
text: 'Dialog 弹出框', | ||
link: '/components/popup/dialog' | ||
}, | ||
{ | ||
text: 'Modal 半浮层弹窗', | ||
link: '/components/popup/modal' | ||
}, | ||
{ | ||
text: 'Tip 提示', | ||
link: '/components/base/tip' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '组合组件', | ||
collapsable: false, | ||
items: [ | ||
{ | ||
text: 'RadioModal', | ||
link: '/components/popup/radio-modal' | ||
}, | ||
{ | ||
text: 'CheckboxModal', | ||
link: '/components/popup/checkbox-modal' | ||
}, | ||
{ | ||
text: 'PickerModal', | ||
link: '/components/popup/picker-modal' | ||
}, | ||
{ | ||
text: 'CascadePickerModal', | ||
link: '/components/popup/cascade-picker-modal' | ||
}, | ||
{ | ||
text: 'DatePickerModal', | ||
link: '/components/popup/date-picker-modal' | ||
}, | ||
{ | ||
text: 'TimePickerModal', | ||
link: '/components/popup/time-picker-modal' | ||
}, | ||
{ | ||
text: 'PickerPopup', | ||
link: '/components/popup/picker-popup' | ||
}, | ||
{ | ||
text: 'CascadePickerPopup', | ||
link: '/components/popup/cascade-picker-popup' | ||
}, | ||
{ | ||
text: 'DatePickerPopup', | ||
link: '/components/popup/date-picker-popup' | ||
}, | ||
{ | ||
text: 'TimePickerPopup', | ||
link: '/components/popup/time-picker-popup' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4673,6 +4673,11 @@ he@^1.1.0: | |
resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" | ||
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== | ||
|
||
[email protected]: | ||
version "11.9.0" | ||
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.9.0.tgz#04ab9ee43b52a41a047432c8103e2158a1b8b5b0" | ||
integrity sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw== | ||
|
||
home-dir@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.npmjs.org/home-dir/-/home-dir-1.0.0.tgz#2917eb44bdc9072ceda942579543847e3017fe4e" | ||
|
@@ -8574,8 +8579,7 @@ string-length@^2.0.0: | |
astral-regex "^1.0.0" | ||
strip-ansi "^4.0.0" | ||
|
||
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0: | ||
name string-width-cjs | ||
"string-width-cjs@npm:string-width@^4.2.0": | ||
version "4.2.3" | ||
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" | ||
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== | ||
|
@@ -8610,6 +8614,15 @@ string-width@^3.0.0, string-width@^3.1.0: | |
is-fullwidth-code-point "^2.0.0" | ||
strip-ansi "^5.1.0" | ||
|
||
string-width@^4.1.0: | ||
version "4.2.3" | ||
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" | ||
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== | ||
dependencies: | ||
emoji-regex "^8.0.0" | ||
is-fullwidth-code-point "^3.0.0" | ||
strip-ansi "^6.0.1" | ||
|
||
string-width@^5.0.1, string-width@^5.1.2: | ||
version "5.1.2" | ||
resolved "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" | ||
|