forked from opentiny/tiny-vue
optimize api docs and build:theme script (#1441)
* feat(drawer): fit x-design theme * feat(drawer): add demo and api document for 'tipsProps' * fix(docs): optimize api type anchor * fix(build): optimize build:theme script
This commit is contained in:
parent
0b4ef3c55f
commit
a74ec33a1e
|
@ -81,12 +81,11 @@
|
|||
>
|
||||
</version-tip>
|
||||
</td>
|
||||
<td v-if="!key.includes('slots')">
|
||||
<td v-if="!key.includes('slots')" @click="handleTypeClick">
|
||||
<a
|
||||
v-if="row.typeAnchorName"
|
||||
:href="`${row.typeAnchorName.indexOf('#') === -1 ? '#' : ''}${row.typeAnchorName}`"
|
||||
v-html="row.type"
|
||||
@click="handleTypeClick"
|
||||
></a>
|
||||
<span v-else v-html="row.type"></span>
|
||||
</td>
|
||||
|
@ -370,7 +369,10 @@ export default defineComponent({
|
|||
},
|
||||
// 点击api 区域的type列
|
||||
handleTypeClick: (ev) => {
|
||||
changeActiveNames(ev.target.hash, true)
|
||||
const hash = ev.target.hash
|
||||
if (hash) {
|
||||
changeActiveNames(hash, true)
|
||||
}
|
||||
},
|
||||
// 目录列表上的点击
|
||||
handleAnchorClick: (e, data) => {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"./*": "./src/*"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"clean": "rimraf dist src/aurora-theme src/smb-theme",
|
||||
"build:theme": "gulp build --gulpfile build/gulp-dist.js",
|
||||
"build": "npm run clean && npm run build:theme && node build/replace-img.js",
|
||||
"build:fast": "npm run build && npm run release",
|
||||
|
|
Loading…
Reference in New Issue