web-component-gallery 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/index.js +14 -0
- package/package.json +1 -1
- /package/{utils → extensions}/Rem.js +0 -0
package/extensions/index.js
CHANGED
|
@@ -24,6 +24,14 @@ import PageLoading from "./PageLoading"
|
|
|
24
24
|
* */
|
|
25
25
|
import setTheme from './Theme'
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* 全局挂载组件自定义指令
|
|
29
|
+
* @key no-data 暂无数据
|
|
30
|
+
*/
|
|
31
|
+
import { Directives } from '../lib/index'
|
|
32
|
+
/** 行内样式自适应转换指令 */
|
|
33
|
+
import remDirective from './Rem'
|
|
34
|
+
|
|
27
35
|
export default {
|
|
28
36
|
install(Vue) {
|
|
29
37
|
|
|
@@ -50,5 +58,11 @@ export default {
|
|
|
50
58
|
Vue.use(Dialog)
|
|
51
59
|
Vue.use(PageLoading)
|
|
52
60
|
Vue.use(setTheme)
|
|
61
|
+
|
|
62
|
+
// 指令注册
|
|
63
|
+
Object.keys(Directives).forEach(key => {
|
|
64
|
+
Vue.directive(key, Directives[key](Vue))
|
|
65
|
+
})
|
|
66
|
+
Vue.directive('rem', remDirective)
|
|
53
67
|
}
|
|
54
68
|
}
|
package/package.json
CHANGED
|
File without changes
|