-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (24 loc) · 923 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { dateFormat } from './src/v4.0/styles/cssframework/ls/vue/dateFormat'
import { download } from './src/v4.0/styles/cssframework/ls/vue/download'
import { lsExtends } from './src/v4.0/styles/cssframework/ls/vue/extends'
import Buttons from './src/v4.0/styles/cssframework/ls/vue/buttons'
import Title from './src/v4.0/styles/cssframework/ls/vue/title'
import './src/v4.0/styles/dist/theme-pc.min.css'
const lsmade = {
install : function (Vue) {
lsExtends();
Vue.prototype.$dateFormat = function (date, format) {
return dateFormat(date, format);
}
Vue.prototype.$download = function (url, param, filename){
return download(url, param, filename)
}
Buttons.install(Vue)
Title.install(Vue)
}
};
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
window.vue.use(lsmade);
}
export default lsmade;