@opentiny/vue-docs 3.18.1 → 3.18.2
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@opentiny/vue-repl": "^1.1.2",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"vue": "^3.4.31",
|
|
17
17
|
"vue-i18n": "^9.1.10",
|
|
18
18
|
"vue-router": "4.1.5",
|
|
19
|
-
"@opentiny/vue": "~3.18.0",
|
|
20
19
|
"@opentiny/vue-design-smb": "~3.18.0",
|
|
21
|
-
"@opentiny/vue-
|
|
20
|
+
"@opentiny/vue-design-saas": "~3.18.0",
|
|
22
21
|
"@opentiny/vue-common": "~3.18.0",
|
|
23
22
|
"@opentiny/vue-design-aurora": "~3.18.0",
|
|
24
|
-
"@opentiny/vue-design-saas": "~3.18.0",
|
|
25
23
|
"@opentiny/vue-directive": "~3.18.0",
|
|
24
|
+
"@opentiny/vue": "~3.18.0",
|
|
25
|
+
"@opentiny/vue-icon": "~3.18.0",
|
|
26
|
+
"@opentiny/vue-icon-saas": "~3.18.0",
|
|
26
27
|
"@opentiny/vue-theme": "~3.18.0",
|
|
27
|
-
"@opentiny/vue-vite-import": "~1.2.0",
|
|
28
28
|
"@opentiny/vue-theme-mobile": "~3.18.0",
|
|
29
|
-
"@opentiny/vue-
|
|
30
|
-
"@opentiny/vue-
|
|
29
|
+
"@opentiny/vue-theme-saas": "~3.18.0",
|
|
30
|
+
"@opentiny/vue-vite-import": "~1.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@playwright/test": "~1.42.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
|
|
89
89
|
<script>
|
|
90
90
|
import { defineComponent, reactive, toRefs, onMounted, onUnmounted, watch, nextTick, ref } from 'vue'
|
|
91
|
-
import { Tooltip, Radio, RadioGroup, Popover } from '@opentiny/vue'
|
|
91
|
+
import { Tooltip, Radio, RadioGroup, Popover, Notify } from '@opentiny/vue'
|
|
92
92
|
import { iconUpWard } from '@opentiny/vue-icon'
|
|
93
93
|
import debounce from '@opentiny/vue-renderless/common/deps/debounce'
|
|
94
94
|
import { i18nByKey, useApiMode, useTemplateMode } from '@/tools'
|
|
@@ -129,6 +129,17 @@ export default defineComponent({
|
|
|
129
129
|
initBottomVal: null, // 初始底部偏移
|
|
130
130
|
isSettingsAside: false // 是否贴边
|
|
131
131
|
})
|
|
132
|
+
let isShowTip = false
|
|
133
|
+
const showTip = () => {
|
|
134
|
+
Notify({
|
|
135
|
+
type: 'info',
|
|
136
|
+
title: '请注意',
|
|
137
|
+
message: '主题切换成功,如有部分主题样式不生效,请尝试手动刷新页面即可',
|
|
138
|
+
position: 'top-right',
|
|
139
|
+
duration: 3000
|
|
140
|
+
})
|
|
141
|
+
isShowTip = true
|
|
142
|
+
}
|
|
132
143
|
|
|
133
144
|
if (isPlus) {
|
|
134
145
|
state.styleSettings = state.styleSettings.filter((item) => item.name !== 'apiMode')
|
|
@@ -164,6 +175,10 @@ export default defineComponent({
|
|
|
164
175
|
themeItemClick(node) {
|
|
165
176
|
const val = node?.value || 'tiny-smb-theme'
|
|
166
177
|
changeTheme(val)
|
|
178
|
+
|
|
179
|
+
if (!isShowTip) {
|
|
180
|
+
showTip()
|
|
181
|
+
}
|
|
167
182
|
}
|
|
168
183
|
}
|
|
169
184
|
|