Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
b71e4e51
Commit
b71e4e51
authored
Nov 27, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: modify component export method
parent
68a96b7f
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
59 additions
and
81 deletions
+59
-81
index.ts
src/components/Application/index.ts
+4
-5
index.ts
src/components/Authority/index.ts
+2
-4
index.ts
src/components/Basic/index.ts
+6
-6
index.ts
src/components/Breadcrumb/index.ts
+4
-5
index.ts
src/components/Button/index.ts
+2
-4
index.ts
src/components/ClickOutSide/index.ts
+2
-4
index.ts
src/components/Container/index.ts
+6
-6
index.ts
src/components/CountTo/index.ts
+2
-4
index.ts
src/components/Dropdown/index.ts
+2
-3
index.ts
src/components/Excel/index.ts
+4
-5
index.ts
src/components/Markdown/index.ts
+3
-3
index.ts
src/components/Menu/index.ts
+2
-3
index.ts
src/components/Page/index.ts
+2
-4
index.tsx
src/components/StrengthMeter/index.tsx
+2
-4
index.ts
src/components/Tinymce/index.ts
+2
-3
index.ts
src/components/Verify/index.ts
+4
-5
index.ts
src/components/VirtualScroll/index.ts
+2
-4
util.ts
src/components/util.ts
+8
-9
No files found.
src/components/Application/index.ts
View file @
b71e4e51
import
AppLocalePicker
from
'
./src/AppLocalePicker.vue
'
;
import
AppLocalePicker
Lib
from
'
./src/AppLocalePicker.vue
'
;
import
AppLogo
from
'
./src/AppLogo.vue
'
;
import
AppLogo
Lib
from
'
./src/AppLogo.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
AppLocalePicker
,
AppLogo
};
export
const
AppLocalePicker
=
withInstall
(
AppLocalePickerLib
);
export
const
AppLogo
=
withInstall
(
AppLogoLib
);
export
default
withInstall
(
AppLocalePicker
,
AppLogo
);
src/components/Authority/index.ts
View file @
b71e4e51
import
Authority
from
'
./src/index.vue
'
;
import
Authority
Lib
from
'
./src/index.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
default
withInstall
(
Authority
);
export
const
Authority
=
withInstall
(
AuthorityLib
);
export
{
Authority
};
src/components/Basic/index.ts
View file @
b71e4e51
import
BasicArrow
from
'
./src/BasicArrow.vue
'
;
import
BasicArrow
Lib
from
'
./src/BasicArrow.vue
'
;
import
BasicHelp
from
'
./src/BasicHelp.vue
'
;
import
BasicHelp
Lib
from
'
./src/BasicHelp.vue
'
;
import
BasicTitle
from
'
./src/BasicTitle.vue
'
;
import
BasicTitle
Lib
from
'
./src/BasicTitle.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
BasicArrow
,
BasicHelp
,
BasicTitle
}
;
export
const
BasicArrow
=
withInstall
(
BasicArrowLib
)
;
export
const
BasicHelp
=
withInstall
(
BasicHelpLib
);
export
default
withInstall
(
BasicArrow
,
BasicHelp
,
BasicTitle
);
export
const
BasicTitle
=
withInstall
(
BasicTitleLib
);
src/components/Breadcrumb/index.ts
View file @
b71e4e51
import
Breadcrumb
from
'
./src/Breadcrumb.vue
'
;
import
Breadcrumb
Lib
from
'
./src/Breadcrumb.vue
'
;
import
BreadcrumbItem
from
'
./src/BreadcrumbItem.vue
'
;
import
BreadcrumbItem
Lib
from
'
./src/BreadcrumbItem.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
Breadcrumb
,
BreadcrumbItem
};
export
const
Breadcrumb
=
withInstall
(
BreadcrumbLib
);
export
const
BreadcrumbItem
=
withInstall
(
BreadcrumbItemLib
);
export
default
withInstall
(
Breadcrumb
,
BreadcrumbItem
);
src/components/Button/index.ts
View file @
b71e4e51
import
Button
from
'
./src/BasicButton.vue
'
;
import
Button
Lib
from
'
./src/BasicButton.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
Button
};
export
const
Button
=
withInstall
(
ButtonLib
);
export
default
withInstall
(
Button
);
src/components/ClickOutSide/index.ts
View file @
b71e4e51
import
ClickOutSide
from
'
./src/index.vue
'
;
import
ClickOutSide
Lib
from
'
./src/index.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
ClickOutSide
};
export
const
ClickOutSide
=
withInstall
(
ClickOutSideLib
);
export
default
withInstall
(
ClickOutSide
);
src/components/Container/index.ts
View file @
b71e4e51
import
ScrollContainer
from
'
./src/ScrollContainer.vue
'
;
import
ScrollContainer
Lib
from
'
./src/ScrollContainer.vue
'
;
import
CollapseContainer
from
'
./src/collapse/CollapseContainer.vue
'
;
import
CollapseContainer
Lib
from
'
./src/collapse/CollapseContainer.vue
'
;
import
LazyContainer
from
'
./src/LazyContainer.vue
'
;
import
LazyContainer
Lib
from
'
./src/LazyContainer.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
*
from
'
./src/types
'
;
export
*
from
'
./src/types
'
;
export
{
ScrollContainer
,
CollapseContainer
,
LazyContainer
}
;
export
const
ScrollContainer
=
withInstall
(
ScrollContainerLib
)
;
export
const
CollapseContainer
=
withInstall
(
CollapseContainerLib
);
export
default
withInstall
(
ScrollContainer
,
CollapseContainer
,
LazyContainer
);
export
const
LazyContainer
=
withInstall
(
LazyContainerLib
);
src/components/CountTo/index.ts
View file @
b71e4e51
// Transform vue-count-to to support vue3 version
// Transform vue-count-to to support vue3 version
import
CountTo
from
'
./src/index.vue
'
;
import
CountTo
Lib
from
'
./src/index.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
CountTo
};
export
const
CountTo
=
withInstall
(
CountToLib
);
export
default
withInstall
(
CountTo
);
src/components/Dropdown/index.ts
View file @
b71e4e51
import
Dropdown
from
'
./src/Dropdown
'
;
import
Dropdown
Lib
from
'
./src/Dropdown
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
*
from
'
./src/types
'
;
export
*
from
'
./src/types
'
;
export
{
Dropdown
};
export
const
Dropdown
=
withInstall
(
DropdownLib
);
export
default
withInstall
(
Dropdown
);
src/components/Excel/index.ts
View file @
b71e4e51
import
ImportExcel
from
'
./src/ImportExcel.vue
'
;
import
ImportExcel
Lib
from
'
./src/ImportExcel.vue
'
;
import
ExportExcelModel
from
'
./src/ExportExcelModel.vue
'
;
import
ExportExcelModel
Lib
from
'
./src/ExportExcelModel.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
...
@@ -7,6 +7,5 @@ export * from './src/types';
...
@@ -7,6 +7,5 @@ export * from './src/types';
export
{
jsonToSheetXlsx
,
aoaToSheetXlsx
}
from
'
./src/Export2Excel
'
;
export
{
jsonToSheetXlsx
,
aoaToSheetXlsx
}
from
'
./src/Export2Excel
'
;
export
{
ImportExcel
,
ExportExcelModel
};
export
const
ImportExcel
=
withInstall
(
ImportExcelLib
);
export
const
ExportExcelModel
=
withInstall
(
ExportExcelModelLib
);
export
default
withInstall
(
ImportExcel
,
ExportExcelModel
);
src/components/Markdown/index.ts
View file @
b71e4e51
import
MarkDown
from
'
./src/index.vue
'
;
import
MarkDown
Lib
from
'
./src/index.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
*
from
'
./src/types
'
;
export
*
from
'
./src/types
'
;
export
{
MarkDown
};
export
default
withInstall
(
MarkDown
);
export
const
MarkDown
=
withInstall
(
MarkDownLib
);
src/components/Menu/index.ts
View file @
b71e4e51
import
BasicMenu
from
'
./src/BasicMenu
'
;
import
BasicMenu
Lib
from
'
./src/BasicMenu
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
default
withInstall
(
BasicMenu
);
export
const
BasicMenu
=
withInstall
(
BasicMenuLib
);
export
{
BasicMenu
};
src/components/Page/index.ts
View file @
b71e4e51
import
PageFooter
from
'
./src/PageFooter.vue
'
;
import
PageFooter
Lib
from
'
./src/PageFooter.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
PageFooter
};
export
const
PageFooter
=
withInstall
(
PageFooterLib
);
export
default
withInstall
(
PageFooter
);
src/components/StrengthMeter/index.tsx
View file @
b71e4e51
import
StrengthMeter
from
'
./src/index
'
;
import
StrengthMeter
Lib
from
'
./src/index
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
StrengthMeter
};
export
const
StrengthMeter
=
withInstall
(
StrengthMeterLib
);
export
default
withInstall
(
StrengthMeter
);
src/components/Tinymce/index.ts
View file @
b71e4e51
import
Tinymce
from
'
./src/Editor.vue
'
;
import
Tinymce
Lib
from
'
./src/Editor.vue
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
Tinymce
};
export
const
Tinymce
=
withInstall
(
TinymceLib
);
export
default
withInstall
(
Tinymce
);
src/components/Verify/index.ts
View file @
b71e4e51
import
BasicDragVerify
from
'
./src/DragVerify
'
;
import
BasicDragVerify
Lib
from
'
./src/DragVerify
'
;
import
RotateDragVerify
from
'
./src/ImgRotate
'
;
import
RotateDragVerify
Lib
from
'
./src/ImgRotate
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
*
from
'
./src/types
'
;
export
*
from
'
./src/types
'
;
export
{
RotateDragVerify
,
BasicDragVerify
};
export
const
RotateDragVerify
=
withInstall
(
RotateDragVerifyLib
);
export
const
BasicDragVerify
=
withInstall
(
BasicDragVerifyLib
);
export
default
withInstall
(
RotateDragVerify
,
BasicDragVerify
);
src/components/VirtualScroll/index.ts
View file @
b71e4e51
import
VirtualScroll
from
'
./src/index
'
;
import
VirtualScroll
Lib
from
'
./src/index
'
;
import
{
withInstall
}
from
'
../util
'
;
import
{
withInstall
}
from
'
../util
'
;
export
{
VirtualScroll
};
export
const
VirtualScroll
=
withInstall
(
VirtualScrollLib
);
export
default
withInstall
(
VirtualScroll
);
src/components/util.ts
View file @
b71e4e51
import
type
{
VNodeChild
}
from
'
vue
'
;
import
type
{
VNodeChild
,
Plugin
}
from
'
vue
'
;
import
type
{
App
,
Component
}
from
'
vue
'
;
import
type
{
App
}
from
'
vue
'
;
export
function
withInstall
(...
components
:
Component
[])
{
export
function
withInstall
<
T
>
(
component
:
T
)
{
return
(
app
:
App
)
=>
{
const
comp
=
component
as
any
;
components
.
forEach
((
comp
)
=>
{
comp
.
install
=
(
app
:
App
)
=>
{
comp
.
name
&&
app
.
component
(
comp
.
name
,
comp
);
app
.
component
(
comp
.
displayName
||
comp
.
name
,
comp
);
});
return
app
;
};
};
return
comp
as
T
&
Plugin
;
}
}
export
function
convertToUnit
(
export
function
convertToUnit
(
...
...
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