Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jingan-wisdom
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
jingan-wisdom
Commits
eef66bef
Commit
eef66bef
authored
Oct 11, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9858c96c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1806 additions
and
1809 deletions
+1806
-1809
package-lock.json
package-lock.json
+1793
-1774
App.vue
src/App.vue
+0
-1
tsx-component-example.tsx
src/tsx-component-example.tsx
+0
-34
property-features.vue
src/view/components/property-features.vue
+5
-0
property.vue
src/view/components/property.vue
+5
-0
vite.config.js
vite.config.js
+3
-0
No files found.
package-lock.json
View file @
eef66bef
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/App.vue
View file @
eef66bef
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
import
{
computed
,
defineComponent
}
from
'vue'
import
{
computed
,
defineComponent
}
from
'vue'
import
Main
from
'./view/main.vue'
import
Main
from
'./view/main.vue'
import
store
from
'@/store'
import
store
from
'@/store'
// import TsxComponentExample from './tsx-component-example'
export
default
defineComponent
({
export
default
defineComponent
({
name
:
'App'
,
name
:
'App'
,
...
...
src/tsx-component-example.tsx
deleted
100644 → 0
View file @
9858c96c
import
{
computed
,
defineComponent
,
PropType
,
ref
}
from
'vue'
export
default
defineComponent
({
name
:
'TsxComponent'
,
props
:
{
msg
:
{
type
:
String
as
PropType
<
string
>
,
default
:
'Tsx'
,
},
},
setup
(
props
)
{
const
count
=
ref
(
1
)
const
list
=
computed
(()
=>
{
const
result
:
number
[]
=
[]
for
(
let
i
=
0
;
i
<
count
.
value
;
i
++
)
{
result
.
push
(
i
+
1
)
}
return
result
})
return
()
=>
(
<>
<
h1
>
Hello,
{
props
.
msg
}
</
h1
>
<
button
onClick=
{
()
=>
(
count
.
value
+=
1
)
}
>
Add count:
<
b
>
{
count
.
value
}
</
b
>
</
button
>
<
ul
>
{
list
.
value
.
map
((
_
,
i
)
=>
(
<
li
>
{
i
+
1
}
</
li
>
))
}
</
ul
>
</>
)
},
})
src/view/components/property-features.vue
View file @
eef66bef
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
</m-card>
</m-card>
</
template
>
</
template
>
<
script
lang=
"ts"
>
export
default
{
name
:
'PropertyFeatures'
,
}
</
script
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
icon4
from
'@/assets/images/icon4.png'
import
icon4
from
'@/assets/images/icon4.png'
import
icon5
from
'@/assets/images/icon5.png'
import
icon5
from
'@/assets/images/icon5.png'
...
...
src/view/components/property.vue
View file @
eef66bef
...
@@ -34,6 +34,11 @@
...
@@ -34,6 +34,11 @@
</m-card>
</m-card>
</
template
>
</
template
>
<
script
lang=
"ts"
>
export
default
{
name
:
'Property'
,
}
</
script
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
icon1
from
'@/assets/images/icon1.png'
import
icon1
from
'@/assets/images/icon1.png'
import
icon2
from
'@/assets/images/icon2.png'
import
icon2
from
'@/assets/images/icon2.png'
...
...
vite.config.js
View file @
eef66bef
...
@@ -11,4 +11,7 @@ export default defineConfig({
...
@@ -11,4 +11,7 @@ export default defineConfig({
'@'
:
resolve
(
__dirname
,
'./src'
),
'@'
:
resolve
(
__dirname
,
'./src'
),
},
},
},
},
server
:
{
port
:
3001
,
},
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment