Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
component
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
purplevin
component
Commits
fbeeb660
Commit
fbeeb660
authored
Oct 17, 2022
by
erichsieh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 加入下載範例按鈕
parent
85fc24a0
Pipeline
#3931
passed with stage
in 12 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
444 additions
and
413 deletions
+444
-413
package.json
package.json
+33
-33
packages/convertTool/src/components/Cn2PctForm.vue
packages/convertTool/src/components/Cn2PctForm.vue
+184
-173
packages/convertTool/src/components/Pct2CnForm.vue
packages/convertTool/src/components/Pct2CnForm.vue
+180
-169
packages/convertTool/src/index.vue
packages/convertTool/src/index.vue
+47
-38
No files found.
package.json
View file @
fbeeb660
{
"name"
:
"@purplevin/component"
,
"version"
:
"0.1.1
8"
,
"version"
:
"0.1.1
9"
,
"private"
:
false
,
"main"
:
"lib/index.umd.min.js"
,
"scripts"
:
{
...
...
packages/convertTool/src/components/Cn2PctForm.vue
View file @
fbeeb660
...
...
@@ -2,7 +2,7 @@
<div>
<h3>
CN稿转成PCT稿
</h3>
<el-alert
title=
"此功能将协助您将CN稿快速转换成PC
稿的排版, CN稿中须包含下列几种标题 1.说明书摘要 2.权利要求书 3.说明书 4.说明书附图或摘要附图, 并且标题需设置下框线"
title=
"此功能将协助您将CN稿快速转换成PC
T稿的排版, CN稿中须包含下列几种标题 1.说明书摘要 2.权利要求书 3.说明书 4.说明书附图或摘要附图, 并且标题需设置下框线"
type=
"info"
/>
...
...
@@ -45,6 +45,13 @@
>
开始转换
</el-button>
<el-button
style=
"margin-left: 10px"
v-if=
"showDownloadSampleButton"
size=
"small"
type=
"info"
@
click=
"$emit('on-downloadSampleClick','CN2PCT')"
>
下载范例
</el-button>
</el-col>
</el-row>
</el-form>
...
...
@@ -63,6 +70,10 @@ export default {
props
:{
baseUrl
:{
type
:
String
},
showDownloadSampleButton
:{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
...
...
packages/convertTool/src/components/Pct2CnForm.vue
View file @
fbeeb660
...
...
@@ -41,6 +41,13 @@
>
开始转换
</el-button>
<el-button
style=
"margin-left: 10px"
v-if=
"showDownloadSampleButton"
size=
"small"
type=
"info"
@
click=
"$emit('on-downloadSampleClick','PCT2CN')"
>
下载范例
</el-button>
</el-col>
</el-row>
</el-form>
...
...
@@ -59,6 +66,10 @@ export default {
props
:{
baseUrl
:{
type
:
String
},
showDownloadSampleButton
:{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
...
...
packages/convertTool/src/index.vue
View file @
fbeeb660
...
...
@@ -2,13 +2,17 @@
<div>
<el-tabs
type=
"border-card"
>
<el-tab-pane
label=
"CN转换PCT"
>
<cn-2-pct-form
:baseUrl=
"baseUrl"
/>
<cn-2-pct-form
:baseUrl=
"baseUrl"
:showDownloadSampleButton=
"true"
@
on-downloadSampleClick=
"handleDownloadSampleClick"
/>
</el-tab-pane>
<el-tab-pane
label=
"公式转换图片"
>
<visio-form
:baseUrl=
"baseUrl"
/>
</el-tab-pane>
<el-tab-pane
label=
"PCT槁转CN稿"
>
<Pct2CnForm
:baseUrl=
"baseUrl"
/>
<Pct2CnForm
:baseUrl=
"baseUrl"
:showDownloadSampleButton=
"true"
@
on-downloadSampleClick=
"handleDownloadSampleClick"
/>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -33,6 +37,11 @@ export default {
Cn2PctForm
,
VisioForm
,
Pct2CnForm
},
methods
:
{
handleDownloadSampleClick
(
type
){
console
.
log
(
'
download sample
'
,
type
)
}
},
}
</
script
>
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