@panpanzhao/component-ui 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.js +0 -67
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@panpanzhao/component-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A Component Library for Vue.js.",
5
- "main": "src/index.js",
5
+ "main": "lib/component-ui.common.js",
6
6
  "unpkg": "lib/index.js",
7
7
  "style": "lib/styles/component-ui.css",
8
8
  "files": [
@@ -64,4 +64,4 @@
64
64
  "element-ui": "^2.15.13",
65
65
  "lodash": "^4.17.21"
66
66
  }
67
- }
67
+ }
package/src/index.js DELETED
@@ -1,67 +0,0 @@
1
- import Form from "./components/form/index.js"
2
- import FormInput from "./components/form-input/index.js"
3
- import FormItem from "./components/form-item/index.js"
4
- import FormGroup from "./components/form-group/index.js"
5
- import FormDialog from "./components/form-dialog/index.js"
6
- import FormView from "./components/form-view/index.js"
7
- import FormViewGroup from "./components/form-view-group/index.js"
8
- import FormViewDialog from "./components/form-view-dialog/index.js"
9
- import Table from "./components/table/index.js"
10
- import TableColumn from "./components/table-column/index.js"
11
- import TableSearch from "./components/table-search/index.js"
12
- import TableEditable from "./components/table-editable/index.js"
13
- import Crud from "./components/crud/index.js"
14
- import Formula from "./components/formula/index.js"
15
- import Dialog from "./components/dialog/index.js"
16
- const components = [
17
- Form,
18
- FormInput,
19
- FormItem,
20
- FormGroup,
21
- FormDialog,
22
- FormView,
23
- FormViewGroup,
24
- FormViewDialog,
25
- Table,
26
- TableColumn,
27
- TableSearch,
28
- TableEditable,
29
- Crud,
30
- Formula,
31
- Dialog
32
- ];
33
-
34
- const install = function(Vue, opts = {}) {
35
- components.forEach(component => {
36
- Vue.component(component.name, component);
37
- });
38
- Vue.prototype.$COMPONENT = opts
39
- Vue.prototype.$ELEMENT = {
40
- size: opts.size || 'small',
41
- zIndex: opts.zIndex || 2000
42
- };
43
- };
44
-
45
- /* istanbul ignore if */
46
- if (typeof window !== 'undefined' && window.Vue) {
47
- install(window.Vue);
48
- }
49
- export default {
50
- version: '0.0.1',
51
- install,
52
- Form,
53
- FormInput,
54
- FormItem,
55
- FormGroup,
56
- FormDialog,
57
- FormView,
58
- FormViewGroup,
59
- FormViewDialog,
60
- Table,
61
- TableColumn,
62
- TableSearch,
63
- TableEditable,
64
- Crud,
65
- Formula,
66
- Dialog
67
- };