@vtj/web 0.10.10 → 0.10.11

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,18 +1,18 @@
1
1
  {
2
2
  "name": "@vtj/web",
3
3
  "private": false,
4
- "version": "0.10.10",
4
+ "version": "0.10.11",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
8
  "core-js": "~3.41.0",
9
9
  "regenerator-runtime": "~0.14.1",
10
- "@vtj/core": "~0.10.10",
11
- "@vtj/charts": "~0.10.10",
12
- "@vtj/icons": "~0.10.10",
13
- "@vtj/ui": "~0.10.10",
14
- "@vtj/utils": "~0.10.10",
15
- "@vtj/renderer": "~0.10.10"
10
+ "@vtj/charts": "~0.10.11",
11
+ "@vtj/core": "~0.10.11",
12
+ "@vtj/renderer": "~0.10.11",
13
+ "@vtj/icons": "~0.10.11",
14
+ "@vtj/ui": "~0.10.11",
15
+ "@vtj/utils": "~0.10.11"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@vtj/cli": "~0.10.2"
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div class="vtj-startup__wrapper">
3
+ <div class="vtj-startup">
4
+ <h1 class="vtj-startup__name">
5
+ <span class="span">{{ props.name }}</span>
6
+ </h1>
7
+ <div class="vtj-startup__tagline">{{ props.tagline }}</div>
8
+ <div class="vtj-startup__actions">
9
+ <span class="span">设置项目主页后,将替换此页面显示</span>
10
+ <span class="button" @click="onClick">{{ props.actionText }}</span>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script lang="ts" setup>
17
+ export interface Props {
18
+ name?: string;
19
+ tagline?: string;
20
+ actionText?: string;
21
+ link?: string | (() => void);
22
+ }
23
+
24
+ const props = withDefaults(defineProps<Props>(), {
25
+ name: 'VTJ.PRO',
26
+ tagline: '基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台',
27
+ actionText: '开始设计'
28
+ });
29
+
30
+ const onClick = () => {
31
+ if (typeof window !== 'undefined') {
32
+ if (props.link) {
33
+ if (typeof props.link === 'function') {
34
+ props.link();
35
+ } else {
36
+ window.location.href = props.link;
37
+ }
38
+ return;
39
+ }
40
+ const options = (window as any).__VTJ_LINK__ || {};
41
+ let path = options.href || window.location.pathname + '__vtj__/#/';
42
+ window.location.href = path;
43
+ }
44
+ };
45
+ </script>
46
+
47
+ <style lang="scss" scoped bundle>
48
+ .vtj-startup {
49
+ padding: 20px;
50
+ border-radius: 4px;
51
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
52
+ box-sizing: border-box;
53
+ grid-row: 1;
54
+ width: 100%;
55
+ max-width: 800px;
56
+ margin: 0 10px;
57
+
58
+ &__wrapper {
59
+ height: 100%;
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ width: 100%;
64
+ }
65
+
66
+ &__name {
67
+ margin: 0;
68
+ padding: 0;
69
+ max-width: 576px;
70
+ line-height: 56px;
71
+ font-size: 48px;
72
+ font-weight: 700;
73
+ white-space: pre-wrap;
74
+
75
+ .span {
76
+ background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
77
+ -webkit-background-clip: text;
78
+ background-clip: text;
79
+ -webkit-text-fill-color: transparent;
80
+ }
81
+ }
82
+
83
+ &__tagline {
84
+ padding-top: 20px;
85
+ line-height: 32px;
86
+ font-size: 20px;
87
+ font-weight: 500;
88
+ white-space: pre-wrap;
89
+ color: rgba(60, 60, 67, 0.78);
90
+ }
91
+
92
+ &__actions {
93
+ display: flex;
94
+ flex-wrap: wrap;
95
+ justify-content: space-between;
96
+ align-items: center;
97
+ border-top: 1px solid rgba(60, 60, 67, 0.08);
98
+ padding: 20px 0 0 0;
99
+ margin-top: 20px;
100
+
101
+ .span {
102
+ color: #e6a23c;
103
+ @media (max-width: 768px) {
104
+ display: block;
105
+ text-align: center;
106
+ width: 100%;
107
+ }
108
+ }
109
+
110
+ .button {
111
+ height: 40px;
112
+ padding: 0 20px;
113
+ border-radius: 20px;
114
+ background-color: #409eff;
115
+ border: 1px solid transparent;
116
+ color: #fff;
117
+ font-weight: 600;
118
+ cursor: pointer;
119
+ display: inline-block;
120
+ line-height: 40px;
121
+ text-align: center;
122
+
123
+ @media (max-width: 768px) {
124
+ width: 100%;
125
+ margin-top: 20px;
126
+ }
127
+
128
+ &:hover {
129
+ opacity: 0.7;
130
+ }
131
+ }
132
+ }
133
+ }
134
+ </style>
@@ -1,2 +1,5 @@
1
+ import Startup from './Startup.vue';
1
2
  export * from '@vtj/ui';
2
3
  export * from '@vtj/charts';
4
+
5
+ export { Startup };