@opentiny/vue-docs 3.26.4 → 3.26.6
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 +10 -9
- package/src/main.js +8 -1
- package/src/menus.js +2 -1
- package/tailwind.config.cjs +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.26.
|
|
4
|
+
"version": "3.26.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@docsearch/css": "^3.8.0",
|
|
@@ -21,29 +21,30 @@
|
|
|
21
21
|
"marked": "^4.3.0",
|
|
22
22
|
"prismjs": "^1.28.0",
|
|
23
23
|
"sortablejs": "1.15.0",
|
|
24
|
+
"tailwind-merge": "^1.8.0",
|
|
24
25
|
"tailwindcss": "^3.2.4",
|
|
25
26
|
"vue": "^3.4.31",
|
|
26
27
|
"vue-i18n": "~9.14.3",
|
|
27
28
|
"vue-router": "4.1.5",
|
|
28
29
|
"zod": "^3.24.4",
|
|
29
30
|
"@opentiny/utils": "~3.26.0",
|
|
31
|
+
"@opentiny/vue": "~3.26.0",
|
|
32
|
+
"@opentiny/vue-design-aurora": "~3.26.0",
|
|
30
33
|
"@opentiny/vue-common": "~3.26.0",
|
|
31
34
|
"@opentiny/vue-design-saas": "~3.26.0",
|
|
32
|
-
"@opentiny/vue-design-
|
|
33
|
-
"@opentiny/vue": "~3.26.0",
|
|
35
|
+
"@opentiny/vue-design-smb": "~3.26.0",
|
|
34
36
|
"@opentiny/vue-directive": "~3.26.0",
|
|
35
37
|
"@opentiny/vue-flowchart": "~3.26.0",
|
|
36
|
-
"@opentiny/vue-design-smb": "~3.26.0",
|
|
37
38
|
"@opentiny/vue-hooks": "~3.26.0",
|
|
38
39
|
"@opentiny/vue-huicharts": "~3.26.0",
|
|
39
40
|
"@opentiny/vue-icon": "~3.26.0",
|
|
40
|
-
"@opentiny/vue-icon-multicolor": "~3.26.0",
|
|
41
|
-
"@opentiny/vue-locale": "~3.26.0",
|
|
42
|
-
"@opentiny/vue-theme": "~3.26.0",
|
|
43
41
|
"@opentiny/vue-icon-saas": "~3.26.0",
|
|
42
|
+
"@opentiny/vue-locale": "~3.26.0",
|
|
43
|
+
"@opentiny/vue-modal": "~3.26.0",
|
|
44
44
|
"@opentiny/vue-renderless": "~3.26.0",
|
|
45
|
-
"@opentiny/vue-theme
|
|
46
|
-
"@opentiny/vue-
|
|
45
|
+
"@opentiny/vue-theme": "~3.26.0",
|
|
46
|
+
"@opentiny/vue-theme-saas": "~3.26.2",
|
|
47
|
+
"@opentiny/vue-icon-multicolor": "~3.26.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@playwright/test": "~1.49.0",
|
package/src/main.js
CHANGED
|
@@ -35,9 +35,16 @@ import { getLocaleMode } from './tools/utils.js'
|
|
|
35
35
|
import '@opentiny/vue-theme/dark-theme-index.css'
|
|
36
36
|
import { createMcpTools, getTinyVueMcpConfig } from '@opentiny/tiny-vue-mcp'
|
|
37
37
|
import { t } from '@opentiny/vue-locale'
|
|
38
|
-
import { registerMcpConfig } from '@opentiny/vue-common'
|
|
38
|
+
import { registerMcpConfig, customDesignConfig } from '@opentiny/vue-common'
|
|
39
|
+
import { twMerge } from 'tailwind-merge'
|
|
39
40
|
|
|
40
41
|
const envTarget = import.meta.env.VITE_BUILD_TARGET || 'open'
|
|
42
|
+
const isSaas = import.meta.env.VITE_TINY_THEME === 'saas'
|
|
43
|
+
|
|
44
|
+
// 适配层集成twMerge能力
|
|
45
|
+
if (isSaas) {
|
|
46
|
+
customDesignConfig.twMerge = twMerge
|
|
47
|
+
}
|
|
41
48
|
|
|
42
49
|
hljs.registerLanguage('javascript', javascript)
|
|
43
50
|
hljs.registerLanguage('css', css)
|
package/src/menus.js
CHANGED
|
@@ -27,7 +27,8 @@ function genMenus() {
|
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
// 使用指南只在DEV下生效
|
|
30
|
-
const
|
|
30
|
+
const isShowDoc = import.meta.env.DEV || import.meta.env.VITE_TINY_THEME === 'saas'
|
|
31
|
+
const docOptions = isShowDoc
|
|
31
32
|
? docMenus.map((menu) => ({
|
|
32
33
|
...menu,
|
|
33
34
|
label: `${appData.lang === 'zhCN' ? menu.label : menu.labelEn}${getChildrenStr(menu)}`,
|
package/tailwind.config.cjs
CHANGED