@tmesoft/data-screen-show 0.0.3 → 0.0.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.
- package/README.md +12 -23
- package/dist/data-screen-show-lib.d.ts +6 -0
- package/dist/data-screen-show-lib.es.js +12530 -13889
- package/dist/data-screen-show-lib.umd.js +41 -41
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
#
|
|
2
|
-
## 如何使用
|
|
3
|
-
用于渲染数据大屏显示
|
|
4
|
-
1. pnpm i @tmesoft/data-screen-show
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
使用示例,参考App.vue文件
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
9
4
|
|
|
5
|
+
## Recommended IDE Setup
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|--------------|-----------------|-------------------------------|
|
|
15
|
-
| chartResize | 页面改变大小时触发 | Function | |
|
|
16
|
-
| setDataCardJson | 获取组件内的数据卡json内容 | {
|
|
17
|
-
'师资队伍': 1,
|
|
18
|
-
'科研成果': 2,
|
|
19
|
-
'设备资产': 3,
|
|
20
|
-
'预约开放': 4,
|
|
21
|
-
'空间可视化': 5,
|
|
22
|
-
'安全数据': 6,
|
|
23
|
-
'实验人次': 7,
|
|
24
|
-
'实验报告': 8,
|
|
25
|
-
'实验成绩': 9,
|
|
26
|
-
'实验交流': 10
|
|
27
|
-
} |
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
28
10
|
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
29
12
|
|
|
13
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
+
|
|
15
|
+
1. Disable the built-in TypeScript Extension
|
|
16
|
+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
@@ -58,7 +58,13 @@ customCardList: CustomListPage[];
|
|
|
58
58
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
59
59
|
|
|
60
60
|
declare function __VLS_template(): {
|
|
61
|
+
"reservation-info"?(_: {}): any;
|
|
61
62
|
"main-floor"?(_: {}): any;
|
|
63
|
+
"safe-module"?(_: {}): any;
|
|
64
|
+
"person-time-info"?(_: {}): any;
|
|
65
|
+
"report-info"?(_: {}): any;
|
|
66
|
+
"experimental-results-info"?(_: {}): any;
|
|
67
|
+
"experimental-communication"?(_: {}): any;
|
|
62
68
|
};
|
|
63
69
|
|
|
64
70
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|