@opentiny/vue-docs 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
### Exciting New Features 🎉
|
|
8
8
|
|
|
9
|
+
- feat: 新增 QrCode 二维码、Watermark 水印两个全新组件 🎊
|
|
9
10
|
- feat(Timeline): Timeline component adapts to new themes by @Huangyilin19 in https://github.com/opentiny/tiny-vue/pull/615
|
|
10
11
|
- feat(grid-slot):Add Table Header Slot by @ianxinnew in https://github.com/opentiny/tiny-vue/pull/674
|
|
11
12
|
- feat(components): [date-picker] add props time-editable by @kagol in https://github.com/opentiny/tiny-vue/pull/696
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@unocss/reset": "0.38.2",
|
|
6
6
|
"@vue/repl": "^2.5.5",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"sortablejs": "1.15.0",
|
|
18
18
|
"@opentiny/vue-repl": "^1.1.0",
|
|
19
19
|
"@opentiny/vue": "~3.12.0",
|
|
20
|
-
"@opentiny/vue-icon": "~3.12.0",
|
|
21
|
-
"@opentiny/vue-common": "~3.12.0",
|
|
22
|
-
"@opentiny/vue-icon-saas": "~3.12.0",
|
|
23
20
|
"@opentiny/vue-theme-mobile": "~3.12.0",
|
|
21
|
+
"@opentiny/vue-common": "~3.12.0",
|
|
22
|
+
"@opentiny/vue-icon": "~3.12.0",
|
|
24
23
|
"@opentiny/vue-design-smb": "~3.12.0",
|
|
25
24
|
"@opentiny/vue-design-aurora": "~3.12.0",
|
|
25
|
+
"@opentiny/vue-icon-saas": "~3.12.0",
|
|
26
26
|
"@opentiny/vue-vite-import": "~1.1.5",
|
|
27
27
|
"@opentiny/vue-theme-saas": "~3.12.0",
|
|
28
28
|
"@opentiny/vue-theme": "~3.12.0"
|
|
@@ -5,8 +5,8 @@ import { Modal } from '@opentiny/vue'
|
|
|
5
5
|
const bulletins = [
|
|
6
6
|
{
|
|
7
7
|
id: 'version-tip',
|
|
8
|
-
content: `为了避免 @opentiny/vue 的月度版本(minor)
|
|
9
|
-
比如 "@opentiny/vue": "~3.12.0。`,
|
|
8
|
+
content: `为了避免 @opentiny/vue 的月度版本(minor)升级带来的不确定因素,推荐在您的工程中的 package.json 中依赖包的版本号前使用 ~,
|
|
9
|
+
比如 "@opentiny/vue": "~3.12.0"。`,
|
|
10
10
|
time: '2023-12-04'
|
|
11
11
|
}
|
|
12
12
|
]
|
|
@@ -8,16 +8,17 @@
|
|
|
8
8
|
<div class="ti-fi-1 ti-w0 ti-rel cmp-container">
|
|
9
9
|
<!-- 一个组件的文档: 描述md + demos + apis -->
|
|
10
10
|
<div class="markdown-body markdown-top-body" size="medium" v-html="cmpTopMd"></div>
|
|
11
|
-
<version-tip
|
|
11
|
+
<version-tip
|
|
12
12
|
v-if="currJson.metaData || currJson.versionTipOption"
|
|
13
|
-
:
|
|
14
|
-
v-bind="currJson.versionTipOption"
|
|
13
|
+
:meta-data="currJson.metaData"
|
|
14
|
+
v-bind="currJson.versionTipOption"
|
|
15
|
+
>
|
|
15
16
|
</version-tip>
|
|
16
17
|
<template v-if="currJson?.demos?.length > 0">
|
|
17
18
|
<div class="all-demos-container">
|
|
18
19
|
<h2 class="ti-f30 ti-fw-normal !ti-mb20">{{ $t('yan-shi') }}</h2>
|
|
19
20
|
<div v-if="apiModeState.demoMode === 'default'" class="ti-f-c ti-f-wrap">
|
|
20
|
-
<template v-if="currJson.column === '2'">
|
|
21
|
+
<template v-if="currJson.column === '2' && currJson.demos.length > 1">
|
|
21
22
|
<div class="one-demo-col2">
|
|
22
23
|
<div>
|
|
23
24
|
<demo v-for="demo in evenDemo" :key="demo.name" :demo="demo" />
|
|
@@ -71,12 +72,13 @@
|
|
|
71
72
|
<td>
|
|
72
73
|
<a v-if="row.demoId" @click="jumpToDemo(row.demoId)">{{ row.name }}</a>
|
|
73
74
|
<span v-else>{{ row.name }}</span>
|
|
74
|
-
<version-tip
|
|
75
|
+
<version-tip
|
|
75
76
|
v-if="row.metaData || row.versionTipOption"
|
|
76
|
-
:
|
|
77
|
-
v-bind="row.versionTipOption"
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
:meta-data="row.metaData"
|
|
78
|
+
v-bind="row.versionTipOption"
|
|
79
|
+
render-type="tag"
|
|
80
|
+
tip-subject="api"
|
|
81
|
+
>
|
|
80
82
|
</version-tip>
|
|
81
83
|
</td>
|
|
82
84
|
<td v-if="!key.includes('slots')">
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
<script lang="jsx">
|
|
139
141
|
import { defineComponent, reactive, computed, toRefs, watch, onMounted, ref } from 'vue'
|
|
140
142
|
import { marked } from 'marked'
|
|
141
|
-
import { Loading, Anchor, ButtonGroup
|
|
143
|
+
import { Loading, Anchor, ButtonGroup } from '@opentiny/vue'
|
|
142
144
|
import debounce from '@opentiny/vue-renderless/common/deps/debounce'
|
|
143
145
|
import { $t, $t2, $clone, $split, fetchDemosFile, useApiMode, useTemplateMode } from '@/tools'
|
|
144
146
|
import demo from '@/views/components/demo'
|