@opentinyvue/vue-docs 3.28.2 → 3.28.4

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.
@@ -13,8 +13,9 @@
13
13
 
14
14
  <script setup>
15
15
  import { TinyUserHead } from '@opentiny/vue'
16
+ import { ref } from 'vue'
16
17
 
17
- const labelText = 'Ai'
18
+ const labelText = ref('Ai')
18
19
  </script>
19
20
 
20
21
  <style lang="less" scoped>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-docs",
3
3
  "type": "module",
4
- "version": "3.28.2",
4
+ "version": "3.28.4",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
7
  "@playwright/test": "~1.49.0",
@@ -69,18 +69,18 @@
69
69
  "@opentiny/vue-common": "~3.28.0",
70
70
  "@opentiny/vue-design-saas": "~3.28.0",
71
71
  "@opentiny/vue-design-aurora": "~3.28.0",
72
- "@opentiny/vue-design-smb": "~3.28.0",
73
72
  "@opentiny/vue": "~3.28.0",
74
- "@opentiny/vue-directive": "~3.28.0",
73
+ "@opentiny/vue-design-smb": "~3.28.0",
75
74
  "@opentiny/vue-flowchart": "~3.28.0",
75
+ "@opentiny/vue-directive": "~3.28.0",
76
76
  "@opentiny/vue-hooks": "~3.28.0",
77
- "@opentiny/vue-icon-multicolor": "~3.28.0",
78
- "@opentiny/vue-icon-saas": "~3.28.0",
77
+ "@opentiny/vue-huicharts": "~3.28.0",
79
78
  "@opentiny/vue-icon": "~3.28.0",
80
- "@opentiny/vue-modal": "~3.28.0",
79
+ "@opentiny/vue-icon-saas": "~3.28.0",
80
+ "@opentiny/vue-icon-multicolor": "~3.28.0",
81
81
  "@opentiny/vue-locale": "~3.28.0",
82
+ "@opentiny/vue-modal": "~3.28.0",
82
83
  "@opentiny/vue-renderless": "~3.28.0",
83
- "@opentiny/vue-huicharts": "~3.28.0",
84
84
  "@opentiny/vue-theme-saas": "~3.28.0",
85
85
  "@opentiny/vue-theme": "~3.28.0"
86
86
  },
@@ -90,12 +90,13 @@ const createImportMap = (version) => {
90
90
  'sortablejs': `${cdnHost}/sortablejs${versionDelimiter}1.15.0/${fileDelimiter}modular/sortable.esm.js`
91
91
  }
92
92
  if (['aurora', 'saas', 'smb'].includes(tinyTheme)) {
93
- imports[
94
- `@opentiny/vue-design-${tinyTheme}`
95
- ] = `${cdnHost}/@opentiny/vue-design-${tinyTheme}${versionDelimiter}${version}/${fileDelimiter}index.js`
93
+ imports[`@opentiny/vue-design-${tinyTheme}`] =
94
+ `${cdnHost}/@opentiny/vue-design-${tinyTheme}${versionDelimiter}${version}/${fileDelimiter}index.js`
96
95
  }
97
96
  if (isSaas) {
98
97
  imports['@opentiny/vue-icon'] = `${getRuntime(version)}tiny-vue-icon-saas.mjs`
98
+ // 添加 @opentiny/vue-icon-saas 的映射,因为某些代码会直接导入这个包
99
+ imports['@opentiny/vue-icon-saas'] = `${getRuntime(version)}tiny-vue-icon-saas.mjs`
99
100
  imports['@opentiny/vue-common'] = `${getRuntime(version)}tiny-vue-saas-common.mjs`
100
101
  imports['@opentiny/vue'] = `${getRuntime(version)}tiny-vue-all.mjs`
101
102
  }
@@ -256,7 +257,7 @@ function getDemoName(name, apiMode) {
256
257
  return name.replace(/\.vue$/, `${apiMode === 'Options' ? '' : '-composition-api'}.vue`)
257
258
  }
258
259
 
259
- const getDemoCode = async ({ cmpId, fileName, apiMode, mode }) => {
260
+ const getDemoCode = async ({ cmpId, fileName, apiMode, mode: _mode }) => {
260
261
  const demoName = getDemoName(`${getWebdocPath(cmpId)}/${fileName}`, apiMode)
261
262
  const path = tinyMode === 'mobile-first' ? `@demos/mobile-first/app/${demoName}` : `${staticDemoPath}/${demoName}`
262
263
  const code = await fetchDemosFile(path)