openatc-components 0.0.1 → 0.0.2

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 (154) hide show
  1. package/.babelrc +18 -18
  2. package/.editorconfig +9 -9
  3. package/.eslintignore +5 -5
  4. package/.eslintrc.js +29 -29
  5. package/.postcssrc.js +10 -10
  6. package/README.md +30 -30
  7. package/build/build.js +41 -41
  8. package/build/check-versions.js +54 -54
  9. package/build/package.config.js +58 -58
  10. package/build/package.dev.config.js +25 -25
  11. package/build/package.prod.config.js +60 -60
  12. package/build/utils.js +101 -101
  13. package/build/vue-loader.conf.js +22 -22
  14. package/build/webpack.base.conf.js +109 -109
  15. package/build/webpack.dev.conf.js +95 -95
  16. package/build/webpack.prod.conf.js +149 -149
  17. package/config/dev.env.js +7 -7
  18. package/config/index.js +76 -76
  19. package/config/prod.env.js +4 -4
  20. package/config/test.env.js +7 -7
  21. package/index.html +12 -12
  22. package/package/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  23. package/package/kisscomps/components/CircleMenu/index.js +2 -2
  24. package/package/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  25. package/package/kisscomps/components/DashBoard/dashboard.js +471 -471
  26. package/package/kisscomps/components/DashBoard/dashboard.vue +57 -57
  27. package/package/kisscomps/components/DashBoard/index.js +2 -2
  28. package/package/kisscomps/components/Horizontal/KissHorizontal.vue +146 -146
  29. package/package/kisscomps/components/Horizontal/index.js +2 -2
  30. package/package/kisscomps/components/HorizontalChildren/KissHorizontalChildren.vue +196 -196
  31. package/package/kisscomps/components/HorizontalChildren/index.js +2 -2
  32. package/package/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  33. package/package/kisscomps/components/KissCircleMenu/index.js +2 -2
  34. package/package/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  35. package/package/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  36. package/package/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  37. package/package/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  38. package/package/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  39. package/package/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  40. package/package/kisscomps/components/KissMessageBox/KissMessageBox.vue +108 -108
  41. package/package/kisscomps/components/KissMessageBox/index.js +2 -2
  42. package/package/kisscomps/components/KissSearchInput/index.js +2 -2
  43. package/package/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  44. package/package/kisscomps/components/KissSimulationProgress/KissSimulationProgress.vue +294 -294
  45. package/package/kisscomps/components/KissSimulationProgress/index.js +2 -2
  46. package/package/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  47. package/package/kisscomps/components/StatusBar/index.js +2 -2
  48. package/package/kisscomps/components/TragResize/index.js +2 -2
  49. package/package/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  50. package/package/kisscomps/components/TragResize/util/dom.js +23 -23
  51. package/package/kisscomps/components/TragResize/util/fns.js +3 -3
  52. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  53. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  54. package/package/kisscomps/components/XRDDirSelector/index.js +2 -2
  55. package/package/kisscomps/components/button/index.js +2 -2
  56. package/package/kisscomps/components/button/kissbutton.vue +168 -168
  57. package/package/kisscomps/components/compass3D/compass.vue +180 -180
  58. package/package/kisscomps/components/compass3D/index.js +2 -2
  59. package/package/kisscomps/components/header/index.js +2 -2
  60. package/package/kisscomps/components/header/kissHead.vue +83 -83
  61. package/package/kisscomps/components/horizontalMenu/index.js +2 -2
  62. package/package/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  63. package/package/kisscomps/components/input/index.js +2 -2
  64. package/package/kisscomps/components/input/kissinput.vue +57 -57
  65. package/package/kisscomps/components/menu/index.js +2 -2
  66. package/package/kisscomps/components/menu/kissmenu.vue +324 -324
  67. package/package/kisscomps/components/mutipletips/Tdrag.js +585 -585
  68. package/package/kisscomps/components/mutipletips/index.js +2 -2
  69. package/package/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  70. package/package/kisscomps/components/panel/index.js +2 -2
  71. package/package/kisscomps/components/panel/kissPanel.vue +151 -151
  72. package/package/kisscomps/components/select/chosen.jquery.min.js +3 -3
  73. package/package/kisscomps/components/select/index.js +2 -2
  74. package/package/kisscomps/components/select/kissselect.vue +527 -527
  75. package/package/kisscomps/components/tablebutton/index.js +2 -2
  76. package/package/kisscomps/components/tablebutton/tablebutton.vue +97 -97
  77. package/package/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  78. package/package/kisscomps/components/timectrl/index.js +2 -2
  79. package/package/kisscomps/components/timectrl/timectrl.css +851 -851
  80. package/package/kisscomps/components/tip/Tdrag.js +585 -585
  81. package/package/kisscomps/components/tip/index.js +2 -2
  82. package/package/kisscomps/components/tip/kisstips.1.vue +154 -154
  83. package/package/kisscomps/components/tip/kisstips.vue +154 -154
  84. package/package/kisscomps/components/tip/kisstips.vue.bak +211 -211
  85. package/package/kisscomps/index.js +71 -71
  86. package/package/kissui.js +203 -203
  87. package/package/kissui.min.js +203 -203
  88. package/package.json +1 -1
  89. package/src/App.vue +25 -25
  90. package/src/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  91. package/src/kisscomps/components/CircleMenu/index.js +2 -2
  92. package/src/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  93. package/src/kisscomps/components/DashBoard/dashboard.js +471 -471
  94. package/src/kisscomps/components/DashBoard/dashboard.vue +57 -57
  95. package/src/kisscomps/components/DashBoard/index.js +2 -2
  96. package/src/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  97. package/src/kisscomps/components/KissCircleMenu/index.js +2 -2
  98. package/src/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  99. package/src/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  100. package/src/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  101. package/src/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  102. package/src/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  103. package/src/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  104. package/src/kisscomps/components/KissSearchInput/index.js +2 -2
  105. package/src/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  106. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +193 -0
  107. package/src/kisscomps/components/SchemeConfig/index.js +2 -0
  108. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +214 -0
  109. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +176 -0
  110. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +294 -0
  111. package/src/kisscomps/components/SchemeConfig/schemeconfig.vue +711 -0
  112. package/src/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  113. package/src/kisscomps/components/StatusBar/index.js +2 -2
  114. package/src/kisscomps/components/TragResize/index.js +2 -2
  115. package/src/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  116. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  117. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  118. package/src/kisscomps/components/XRDDirSelector/index.js +2 -2
  119. package/src/kisscomps/components/button/index.js +2 -2
  120. package/src/kisscomps/components/button/kissbutton.vue +168 -168
  121. package/src/kisscomps/components/compass3D/compass.vue +180 -180
  122. package/src/kisscomps/components/compass3D/index.js +2 -2
  123. package/src/kisscomps/components/horizontalMenu/index.js +2 -2
  124. package/src/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  125. package/src/kisscomps/components/input/index.js +2 -2
  126. package/src/kisscomps/components/input/kissinput.vue +57 -57
  127. package/src/kisscomps/components/menu/index.js +2 -2
  128. package/src/kisscomps/components/menu/kissmenu.vue +324 -324
  129. package/src/kisscomps/components/mutipletips/Tdrag.js +585 -585
  130. package/src/kisscomps/components/mutipletips/index.js +2 -2
  131. package/src/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  132. package/src/kisscomps/components/select/chosen.jquery.min.js +3 -3
  133. package/src/kisscomps/components/select/index.js +2 -2
  134. package/src/kisscomps/components/select/kissselect.vue +527 -527
  135. package/src/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  136. package/src/kisscomps/components/timectrl/index.js +2 -2
  137. package/src/kisscomps/components/tip/Tdrag.js +585 -585
  138. package/src/kisscomps/components/tip/index.js +2 -2
  139. package/src/kisscomps/components/tip/kisstips.1.vue +154 -154
  140. package/src/kisscomps/components/tip/kisstips.vue +154 -154
  141. package/src/kisscomps/components/tip/kisstips.vue.bak +211 -211
  142. package/src/kisscomps/index.js +73 -71
  143. package/src/main.js +23 -23
  144. package/src/router/index.js +15 -15
  145. package/src/views/home.1.vue +479 -479
  146. package/src/views/home.vue +196 -196
  147. package/test/e2e/custom-assertions/elementCount.js +27 -27
  148. package/test/e2e/nightwatch.conf.js +46 -46
  149. package/test/e2e/runner.js +48 -48
  150. package/test/e2e/specs/test.js +19 -19
  151. package/test/unit/.eslintrc +7 -7
  152. package/test/unit/jest.conf.js +30 -30
  153. package/test/unit/setup.js +3 -3
  154. package/test/unit/specs/HelloWorld.spec.js +11 -11
@@ -1,211 +1,211 @@
1
- <template>
2
- <!-- <vue-draggable-resizable
3
- ref="drag"
4
- :w="dragAreaW"
5
- :h="dragAreaH"
6
- @dragging="onDrag"
7
- @resizing="onResize"
8
- :draggable="dragable"
9
- :resizable="resizeable"> -->
10
- <div
11
- :class="kisstipsbgclass"
12
- :value="value"
13
- v-if="visable"
14
- :style="bgstyle"
15
- ref="main"
16
- >
17
- <div
18
- class="kiss-tips-close"
19
- @click="handleClose"
20
- v-if="isClose"
21
- ref="close"
22
- style=""
23
- ></div>
24
- <div class="kiss-tips-contents">
25
- <slot></slot>
26
- </div>
27
- </div>
28
- <!-- </vue-draggable-resizable> -->
29
- </template>
30
- <script>
31
- import $ from 'jquery'
32
- import './Tdrag.js'
33
- // import VueDraggableResizable from '../TragResize/index'
34
- export default {
35
- // components: {
36
- // VueDraggableResizable
37
- // },
38
- name: 'kiss-tip',
39
- data () {
40
- return {
41
- visable: true,
42
- bgstyle: {
43
- width: '',
44
- height: ''
45
- },
46
- // dragAreaW: 0,
47
- // dragAreaH: 0,
48
- kisstipsbgclass: ''
49
- }
50
- },
51
- props: {
52
- value: {
53
- type: Boolean,
54
- default: true
55
- },
56
- isClose: {
57
- type: Boolean,
58
- default: true
59
- },
60
- width: {
61
- type: String,
62
- default: '523px'
63
- },
64
- height: {
65
- type: String,
66
- default: '364px'
67
- },
68
- type: {
69
- type: String,
70
- default: 'default' // alarm
71
- },
72
- zindex: {
73
- type: Number,
74
- default: 100
75
- }
76
- // dragable: {
77
- // type: Boolean,
78
- // default: false
79
- // },
80
- // resizeable: {
81
- // type: Boolean,
82
- // default: false
83
- // }
84
- },
85
- watch: {
86
- value: function (val) {
87
- this.visable = val
88
- },
89
- visable: function (val) {
90
- this.change(val)
91
- },
92
- deep: true,
93
- immediate: true
94
- },
95
- methods: {
96
- handleClose () {
97
- this.visable = false
98
- },
99
- // onDrag () {
100
- // },
101
- change (val) {
102
- this.$emit('input', val)
103
- }
104
- // onResize (x, y, width, height) {
105
- // this.bgstyle.width = width + 'px'
106
- // this.bgstyle.height = height + 'px'
107
- // }
108
- },
109
- // created () {
110
- // this.dragAreaW = parseInt(this.width)
111
- // this.dragAreaH = parseInt(this.height)
112
- // },
113
- mounted () {
114
- this.visable = this.value
115
- let zindex = 100
116
- switch (this.type) {
117
- case 'default':
118
- this.bgstyle.height = this.height + 'px'
119
- this.bgstyle.width = this.width + 'px'
120
- this.kisstipsbgclass = 'kiss-tips-bg'
121
- zindex = this.zindex === undefined ? 100 : this.zindex
122
- break
123
- case 'alarm':
124
- this.bgstyle.height = '99px'
125
- this.bgstyle.width = '276px'
126
- this.kisstipsbgclass = 'kiss-alarm-tips-bg'
127
- this.$refs.close.style.marginRight = '-1px'
128
- this.$refs.close.style.marginTop = '0.5px'
129
- zindex = 9999
130
- break
131
- default: break
132
- }
133
- this.$refs.main.style.zIndex = zindex
134
- console.log(this.$refs.main.style)
135
-
136
- var self = this
137
- if (this.isTrag) {
138
- $(function () {
139
- $('.' + self.kisstipsbgclass).Tdrag({})
140
- })
141
- }
142
- },
143
- updated () {
144
- // this.bgstyle.height = '99px'
145
- // this.bgstyle.width = '276px'
146
- if (this.type === 'alarm') {
147
- if (this.$refs.close === undefined) {
148
- return false
149
- }
150
- this.$refs.close.style.marginRight = '-1px'
151
- this.$refs.close.style.marginTop = '0.5px'
152
- }
153
- }
154
- }
155
- </script>
156
-
157
- <style scoped>
158
- .kiss-tips-bg {
159
- /* display: inline-block; */
160
- display: block;
161
- /* text-align: center; */
162
- position: relative;
163
- /* z-index: 100; */
164
- margin: 0;
165
- padding: none;
166
- /* background: #1f2e2e;
167
- opacity: 0.8; */
168
- background: rgb(31, 46, 46, 0.8);
169
- border: 1px solid #0096ba;
170
- box-shadow: 0.1 0.1 0.1 0.1 #0096ba;
171
- }
172
- /* alarm 报警的弹框 */
173
- .kiss-alarm-tips-bg {
174
- /* display: inline-block; */
175
- display: block;
176
- /* text-align: center; */
177
- position: relative;
178
- /* z-index: 9999; */
179
- margin: 0;
180
- padding: none;
181
- background: url("../image/tipdlg/alarmbg.png");
182
- background-repeat: no-repeat;
183
- }
184
- /* .kips-tips-header{
185
- padding-top: 1px;
186
- display: block;
187
- width:522px;
188
- height: 50;
189
- } */
190
- .kiss-tips-close {
191
- width: 47px;
192
- height: 47px;
193
- margin-right: -2px;
194
- margin-top: -1px;
195
- /* position: relative; */
196
- cursor: pointer;
197
- float: right;
198
- background: url("../image/tipdlg/close.png");
199
- background-repeat: no-repeat;
200
- }
201
-
202
- .kiss-tips-close:hover {
203
- background: url("../image/tipdlg/closehover.png");
204
- background-repeat: no-repeat;
205
- }
206
-
207
- .kiss-tips-contents {
208
- width: 100%;
209
- height: 100%;
210
- }
211
- </style>
1
+ <template>
2
+ <!-- <vue-draggable-resizable
3
+ ref="drag"
4
+ :w="dragAreaW"
5
+ :h="dragAreaH"
6
+ @dragging="onDrag"
7
+ @resizing="onResize"
8
+ :draggable="dragable"
9
+ :resizable="resizeable"> -->
10
+ <div
11
+ :class="kisstipsbgclass"
12
+ :value="value"
13
+ v-if="visable"
14
+ :style="bgstyle"
15
+ ref="main"
16
+ >
17
+ <div
18
+ class="kiss-tips-close"
19
+ @click="handleClose"
20
+ v-if="isClose"
21
+ ref="close"
22
+ style=""
23
+ ></div>
24
+ <div class="kiss-tips-contents">
25
+ <slot></slot>
26
+ </div>
27
+ </div>
28
+ <!-- </vue-draggable-resizable> -->
29
+ </template>
30
+ <script>
31
+ import $ from 'jquery'
32
+ import './Tdrag.js'
33
+ // import VueDraggableResizable from '../TragResize/index'
34
+ export default {
35
+ // components: {
36
+ // VueDraggableResizable
37
+ // },
38
+ name: 'kiss-tip',
39
+ data () {
40
+ return {
41
+ visable: true,
42
+ bgstyle: {
43
+ width: '',
44
+ height: ''
45
+ },
46
+ // dragAreaW: 0,
47
+ // dragAreaH: 0,
48
+ kisstipsbgclass: ''
49
+ }
50
+ },
51
+ props: {
52
+ value: {
53
+ type: Boolean,
54
+ default: true
55
+ },
56
+ isClose: {
57
+ type: Boolean,
58
+ default: true
59
+ },
60
+ width: {
61
+ type: String,
62
+ default: '523px'
63
+ },
64
+ height: {
65
+ type: String,
66
+ default: '364px'
67
+ },
68
+ type: {
69
+ type: String,
70
+ default: 'default' // alarm
71
+ },
72
+ zindex: {
73
+ type: Number,
74
+ default: 100
75
+ }
76
+ // dragable: {
77
+ // type: Boolean,
78
+ // default: false
79
+ // },
80
+ // resizeable: {
81
+ // type: Boolean,
82
+ // default: false
83
+ // }
84
+ },
85
+ watch: {
86
+ value: function (val) {
87
+ this.visable = val
88
+ },
89
+ visable: function (val) {
90
+ this.change(val)
91
+ },
92
+ deep: true,
93
+ immediate: true
94
+ },
95
+ methods: {
96
+ handleClose () {
97
+ this.visable = false
98
+ },
99
+ // onDrag () {
100
+ // },
101
+ change (val) {
102
+ this.$emit('input', val)
103
+ }
104
+ // onResize (x, y, width, height) {
105
+ // this.bgstyle.width = width + 'px'
106
+ // this.bgstyle.height = height + 'px'
107
+ // }
108
+ },
109
+ // created () {
110
+ // this.dragAreaW = parseInt(this.width)
111
+ // this.dragAreaH = parseInt(this.height)
112
+ // },
113
+ mounted () {
114
+ this.visable = this.value
115
+ let zindex = 100
116
+ switch (this.type) {
117
+ case 'default':
118
+ this.bgstyle.height = this.height + 'px'
119
+ this.bgstyle.width = this.width + 'px'
120
+ this.kisstipsbgclass = 'kiss-tips-bg'
121
+ zindex = this.zindex === undefined ? 100 : this.zindex
122
+ break
123
+ case 'alarm':
124
+ this.bgstyle.height = '99px'
125
+ this.bgstyle.width = '276px'
126
+ this.kisstipsbgclass = 'kiss-alarm-tips-bg'
127
+ this.$refs.close.style.marginRight = '-1px'
128
+ this.$refs.close.style.marginTop = '0.5px'
129
+ zindex = 9999
130
+ break
131
+ default: break
132
+ }
133
+ this.$refs.main.style.zIndex = zindex
134
+ console.log(this.$refs.main.style)
135
+
136
+ var self = this
137
+ if (this.isTrag) {
138
+ $(function () {
139
+ $('.' + self.kisstipsbgclass).Tdrag({})
140
+ })
141
+ }
142
+ },
143
+ updated () {
144
+ // this.bgstyle.height = '99px'
145
+ // this.bgstyle.width = '276px'
146
+ if (this.type === 'alarm') {
147
+ if (this.$refs.close === undefined) {
148
+ return false
149
+ }
150
+ this.$refs.close.style.marginRight = '-1px'
151
+ this.$refs.close.style.marginTop = '0.5px'
152
+ }
153
+ }
154
+ }
155
+ </script>
156
+
157
+ <style scoped>
158
+ .kiss-tips-bg {
159
+ /* display: inline-block; */
160
+ display: block;
161
+ /* text-align: center; */
162
+ position: relative;
163
+ /* z-index: 100; */
164
+ margin: 0;
165
+ padding: none;
166
+ /* background: #1f2e2e;
167
+ opacity: 0.8; */
168
+ background: rgb(31, 46, 46, 0.8);
169
+ border: 1px solid #0096ba;
170
+ box-shadow: 0.1 0.1 0.1 0.1 #0096ba;
171
+ }
172
+ /* alarm 报警的弹框 */
173
+ .kiss-alarm-tips-bg {
174
+ /* display: inline-block; */
175
+ display: block;
176
+ /* text-align: center; */
177
+ position: relative;
178
+ /* z-index: 9999; */
179
+ margin: 0;
180
+ padding: none;
181
+ background: url("../image/tipdlg/alarmbg.png");
182
+ background-repeat: no-repeat;
183
+ }
184
+ /* .kips-tips-header{
185
+ padding-top: 1px;
186
+ display: block;
187
+ width:522px;
188
+ height: 50;
189
+ } */
190
+ .kiss-tips-close {
191
+ width: 47px;
192
+ height: 47px;
193
+ margin-right: -2px;
194
+ margin-top: -1px;
195
+ /* position: relative; */
196
+ cursor: pointer;
197
+ float: right;
198
+ background: url("../image/tipdlg/close.png");
199
+ background-repeat: no-repeat;
200
+ }
201
+
202
+ .kiss-tips-close:hover {
203
+ background: url("../image/tipdlg/closehover.png");
204
+ background-repeat: no-repeat;
205
+ }
206
+
207
+ .kiss-tips-contents {
208
+ width: 100%;
209
+ height: 100%;
210
+ }
211
+ </style>
@@ -1,71 +1,73 @@
1
- import Button from './components/button/index'
2
- import KissMenu from './components/menu/index'
3
- import KissInput from './components/input/index'
4
- import KissSearchInput from './components/KissSearchInput/index'
5
- import KissSelect from './components/select/index'
6
- import KissTips from './components/tip/index'
7
- import KissMutipleTips from './components/mutipletips/index'
8
- import KissDatePicker from './components/timectrl/index'
9
- import KissCompass from './components/compass3D/index'
10
- // import KissCircleMenu from './components/CircleMenu/index'
11
- // import CircleMenu from './components/KissCircleMenu/index'
12
- import KissDragResize from './components/TragResize/index'
13
- import XRDDirSelector from './components/XRDDirSelector/index'
14
- import SatausBar from './components/StatusBar/index'
15
- import DashBoard from './components/DashBoard/index'
16
- import KissPanel from './components/panel/index'
17
- import KissTableButton from './components/tablebutton/index'
18
- import KissHead from './components/header/index'
19
- import KissHorizontal from './components/Horizontal/index'
20
- import KissHorizontalChildren from './components/HorizontalChildren/index'
21
- import KissHorizontalMenu from './components/horizontalMenu/index'
22
- import KissSimulationProgress from './components/KissSimulationProgress/index'
23
- import KissMessageBox from './components/KissMessageBox/index'
24
- // 第三方插件
25
- import VTooltip from 'v-tooltip'
26
-
27
- const components = {
28
- Button,
29
- KissMenu,
30
- KissInput,
31
- KissSearchInput,
32
- KissSelect,
33
- KissTips,
34
- KissMutipleTips,
35
- KissDatePicker,
36
- KissCompass,
37
- // KissCircleMenu,
38
- // CircleMenu,
39
- KissDragResize,
40
- XRDDirSelector,
41
- SatausBar,
42
- DashBoard,
43
- KissPanel,
44
- KissTableButton,
45
- KissHead,
46
- KissHorizontal,
47
- KissHorizontalChildren,
48
- KissHorizontalMenu,
49
- KissSimulationProgress,
50
- KissMessageBox
51
- }
52
-
53
- const install = function (Vue) {
54
- if (install.installed) return
55
- Vue.use(VTooltip)
56
- // components.map(component => Vue.component(component.name, component))
57
- Object.keys(components).forEach(key => {
58
- Vue.component(components[key].name, components[key])
59
- })
60
- }
61
-
62
- if (typeof window !== 'undefined' && window.Vue) {
63
- install(window.Vue)
64
- }
65
-
66
- const API = {
67
- install,
68
- ...components
69
- }
70
-
71
- export default API
1
+ import Button from './components/button/index'
2
+ import KissMenu from './components/menu/index'
3
+ import KissInput from './components/input/index'
4
+ import KissSearchInput from './components/KissSearchInput/index'
5
+ import KissSelect from './components/select/index'
6
+ import KissTips from './components/tip/index'
7
+ import KissMutipleTips from './components/mutipletips/index'
8
+ import KissDatePicker from './components/timectrl/index'
9
+ import KissCompass from './components/compass3D/index'
10
+ // import KissCircleMenu from './components/CircleMenu/index'
11
+ // import CircleMenu from './components/KissCircleMenu/index'
12
+ import KissDragResize from './components/TragResize/index'
13
+ import XRDDirSelector from './components/XRDDirSelector/index'
14
+ import SatausBar from './components/StatusBar/index'
15
+ import DashBoard from './components/DashBoard/index'
16
+ import KissPanel from './components/panel/index'
17
+ import KissTableButton from './components/tablebutton/index'
18
+ import KissHead from './components/header/index'
19
+ import KissHorizontal from './components/Horizontal/index'
20
+ import KissHorizontalChildren from './components/HorizontalChildren/index'
21
+ import KissHorizontalMenu from './components/horizontalMenu/index'
22
+ import KissSimulationProgress from './components/KissSimulationProgress/index'
23
+ import KissMessageBox from './components/KissMessageBox/index'
24
+ import SchemeConfig from './components/SchemeConfig/index'
25
+ // 第三方插件
26
+ import VTooltip from 'v-tooltip'
27
+
28
+ const components = {
29
+ Button,
30
+ KissMenu,
31
+ KissInput,
32
+ KissSearchInput,
33
+ KissSelect,
34
+ KissTips,
35
+ KissMutipleTips,
36
+ KissDatePicker,
37
+ KissCompass,
38
+ // KissCircleMenu,
39
+ // CircleMenu,
40
+ KissDragResize,
41
+ XRDDirSelector,
42
+ SatausBar,
43
+ DashBoard,
44
+ KissPanel,
45
+ KissTableButton,
46
+ KissHead,
47
+ KissHorizontal,
48
+ KissHorizontalChildren,
49
+ KissHorizontalMenu,
50
+ KissSimulationProgress,
51
+ KissMessageBox,
52
+ SchemeConfig
53
+ }
54
+
55
+ const install = function (Vue) {
56
+ if (install.installed) return
57
+ Vue.use(VTooltip)
58
+ // components.map(component => Vue.component(component.name, component))
59
+ Object.keys(components).forEach(key => {
60
+ Vue.component(components[key].name, components[key])
61
+ })
62
+ }
63
+
64
+ if (typeof window !== 'undefined' && window.Vue) {
65
+ install(window.Vue)
66
+ }
67
+
68
+ const API = {
69
+ install,
70
+ ...components
71
+ }
72
+
73
+ export default API
package/src/main.js CHANGED
@@ -1,23 +1,23 @@
1
- // The Vue build version to load with the `import` command
2
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
- import Vue from 'vue'
4
- import App from './App'
5
- import router from './router'
6
- import kissui from './kisscomps/index'
7
- import ElementUI from 'element-ui'
8
- import 'element-ui/lib/theme-chalk/index.css'
9
- // import chosen from 'chosen-js'
10
- Vue.use(kissui)
11
- Vue.use(ElementUI)
12
- // Vue.use(chosen)
13
- // Vue.use($)
14
-
15
- Vue.config.productionTip = false
16
-
17
- /* eslint-disable no-new */
18
- new Vue({
19
- el: '#app',
20
- router,
21
- components: { App },
22
- template: '<App/>'
23
- })
1
+ // The Vue build version to load with the `import` command
2
+ // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
+ import Vue from 'vue'
4
+ import App from './App'
5
+ import router from './router'
6
+ import kissui from './kisscomps/index'
7
+ import ElementUI from 'element-ui'
8
+ import 'element-ui/lib/theme-chalk/index.css'
9
+ // import chosen from 'chosen-js'
10
+ Vue.use(kissui)
11
+ Vue.use(ElementUI)
12
+ // Vue.use(chosen)
13
+ // Vue.use($)
14
+
15
+ Vue.config.productionTip = false
16
+
17
+ /* eslint-disable no-new */
18
+ new Vue({
19
+ el: '#app',
20
+ router,
21
+ components: { App },
22
+ template: '<App/>'
23
+ })
@@ -1,15 +1,15 @@
1
- import Vue from 'vue'
2
- import Router from 'vue-router'
3
- Vue.use(Router)
4
-
5
- export default new Router({
6
- routes: [
7
- {
8
- path: '/',
9
- name: 'home',
10
- component: (resolve) => {
11
- require(['@/views/home'], resolve)
12
- }
13
- }
14
- ]
15
- })
1
+ import Vue from 'vue'
2
+ import Router from 'vue-router'
3
+ Vue.use(Router)
4
+
5
+ export default new Router({
6
+ routes: [
7
+ {
8
+ path: '/',
9
+ name: 'home',
10
+ component: (resolve) => {
11
+ require(['@/views/home'], resolve)
12
+ }
13
+ }
14
+ ]
15
+ })