Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
duanledexianxianxian
ant-design-pro
Commits
67b0dcd9
Commit
67b0dcd9
authored
May 31, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blocks: change block base url
parent
c0807c42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
config/config.ts
config/config.ts
+3
-0
src/components/CopyBlock/index.tsx
src/components/CopyBlock/index.tsx
+1
-1
No files found.
config/config.ts
View file @
67b0dcd9
...
...
@@ -90,6 +90,9 @@ export default {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
:
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
||
''
,
// preview.pro.ant.design only do not use in your production ; preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
},
block
:
{
defaultGitUrl
:
'
https://github.com/ant-design/pro-blocks
'
,
},
treeShaking
:
true
,
targets
:
{
ie
:
11
,
...
...
src/components/CopyBlock/index.tsx
View file @
67b0dcd9
...
...
@@ -16,7 +16,7 @@ const firstUpperCase = (pathString: string) => {
const
BlockCodeView
:
React
.
SFC
<
{
url
:
string
;
}
>
=
({
url
})
=>
{
const
blockUrl
=
`npx umi block add
ant-design-pro/
${
firstUpperCase
(
url
)}
--path=
${
url
}
`
;
const
blockUrl
=
`npx umi block add
${
firstUpperCase
(
url
)}
--path=
${
url
}
`
;
return
(
<
div
className
=
{
styles
[
'
copy-block-view
'
]
}
>
<
Typography
.
Paragraph
copyable
>
...
...
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