eoss-mobiles 0.1.13

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 (285) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +28 -0
  3. package/lib/action-sheet.js +313 -0
  4. package/lib/button-group.js +421 -0
  5. package/lib/button.js +278 -0
  6. package/lib/calendar.js +301 -0
  7. package/lib/cascader.js +336 -0
  8. package/lib/cell.js +366 -0
  9. package/lib/checkbox.js +2170 -0
  10. package/lib/circle.js +299 -0
  11. package/lib/config/api.js +31 -0
  12. package/lib/count-down.js +299 -0
  13. package/lib/date.js +956 -0
  14. package/lib/empty.js +274 -0
  15. package/lib/eoss-mobile.common.js +15072 -0
  16. package/lib/field.js +440 -0
  17. package/lib/flow.js +5664 -0
  18. package/lib/form.js +714 -0
  19. package/lib/grid-item.js +274 -0
  20. package/lib/grid.js +317 -0
  21. package/lib/image-preview.js +325 -0
  22. package/lib/index.js +1 -0
  23. package/lib/list.js +315 -0
  24. package/lib/loading.js +279 -0
  25. package/lib/nav-bar.js +283 -0
  26. package/lib/pagination.js +323 -0
  27. package/lib/picker.js +2714 -0
  28. package/lib/popover.js +306 -0
  29. package/lib/popup.js +297 -0
  30. package/lib/radio.js +2137 -0
  31. package/lib/rate.js +300 -0
  32. package/lib/search.js +316 -0
  33. package/lib/selector.js +3496 -0
  34. package/lib/skeleton.js +277 -0
  35. package/lib/stepper.js +300 -0
  36. package/lib/switch.js +304 -0
  37. package/lib/tab.js +274 -0
  38. package/lib/table-column.js +2991 -0
  39. package/lib/table.js +2652 -0
  40. package/lib/tabs.js +315 -0
  41. package/lib/tag.js +281 -0
  42. package/lib/theme-chalk/action-sheet.css +0 -0
  43. package/lib/theme-chalk/base.css +1 -0
  44. package/lib/theme-chalk/button-group.css +1 -0
  45. package/lib/theme-chalk/button.css +1 -0
  46. package/lib/theme-chalk/calendar.css +1 -0
  47. package/lib/theme-chalk/cascader.css +1 -0
  48. package/lib/theme-chalk/cell.css +1 -0
  49. package/lib/theme-chalk/checkbox.css +1 -0
  50. package/lib/theme-chalk/circle.css +1 -0
  51. package/lib/theme-chalk/count-down.css +0 -0
  52. package/lib/theme-chalk/date.css +0 -0
  53. package/lib/theme-chalk/empty.css +0 -0
  54. package/lib/theme-chalk/field.css +1 -0
  55. package/lib/theme-chalk/flow.css +1 -0
  56. package/lib/theme-chalk/fonts/iconfont.scss +530 -0
  57. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  58. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  59. package/lib/theme-chalk/form.css +0 -0
  60. package/lib/theme-chalk/grid-item.css +1 -0
  61. package/lib/theme-chalk/grid.css +0 -0
  62. package/lib/theme-chalk/icon.css +1 -0
  63. package/lib/theme-chalk/image-preview.css +0 -0
  64. package/lib/theme-chalk/index.css +1 -0
  65. package/lib/theme-chalk/list.css +0 -0
  66. package/lib/theme-chalk/loading.css +0 -0
  67. package/lib/theme-chalk/nav-bar.css +0 -0
  68. package/lib/theme-chalk/navbar.css +1 -0
  69. package/lib/theme-chalk/pagination.css +1 -0
  70. package/lib/theme-chalk/picker.css +1 -0
  71. package/lib/theme-chalk/popover.css +0 -0
  72. package/lib/theme-chalk/popup.css +0 -0
  73. package/lib/theme-chalk/radio.css +1 -0
  74. package/lib/theme-chalk/rate.css +0 -0
  75. package/lib/theme-chalk/search.css +0 -0
  76. package/lib/theme-chalk/selector.css +1 -0
  77. package/lib/theme-chalk/skeleton.css +0 -0
  78. package/lib/theme-chalk/stepper.css +1 -0
  79. package/lib/theme-chalk/switch.css +1 -0
  80. package/lib/theme-chalk/tab.css +0 -0
  81. package/lib/theme-chalk/table-column.css +0 -0
  82. package/lib/theme-chalk/table.css +1 -0
  83. package/lib/theme-chalk/tabs.css +1 -0
  84. package/lib/theme-chalk/tag.css +1 -0
  85. package/lib/theme-chalk/theme.css +0 -0
  86. package/lib/theme-chalk/tree.css +1 -0
  87. package/lib/theme-chalk/uploader.css +0 -0
  88. package/lib/uploader.js +307 -0
  89. package/lib/utils/axios.js +199 -0
  90. package/lib/utils/date-util.js +320 -0
  91. package/lib/utils/http.js +74 -0
  92. package/lib/utils/rules.js +21 -0
  93. package/lib/utils/store.js +24 -0
  94. package/lib/utils/util.js +1315 -0
  95. package/package.json +153 -0
  96. package/packages/action-sheet/index.js +5 -0
  97. package/packages/action-sheet/src/main.vue +32 -0
  98. package/packages/button/index.js +5 -0
  99. package/packages/button/src/main.vue +15 -0
  100. package/packages/button-group/index.js +5 -0
  101. package/packages/button-group/src/main.vue +80 -0
  102. package/packages/calendar/index.js +5 -0
  103. package/packages/calendar/src/main.vue +34 -0
  104. package/packages/cascader/index.js +5 -0
  105. package/packages/cascader/src/main.vue +40 -0
  106. package/packages/cell/index.js +5 -0
  107. package/packages/cell/src/main.vue +72 -0
  108. package/packages/checkbox/index.js +5 -0
  109. package/packages/checkbox/src/main.vue +149 -0
  110. package/packages/circle/index.js +5 -0
  111. package/packages/circle/src/main.vue +27 -0
  112. package/packages/count-down/index.js +5 -0
  113. package/packages/count-down/src/main.vue +27 -0
  114. package/packages/date/index.js +5 -0
  115. package/packages/date/src/date-time.vue +290 -0
  116. package/packages/date/src/main.vue +319 -0
  117. package/packages/empty/index.js +5 -0
  118. package/packages/empty/src/main.vue +16 -0
  119. package/packages/field/index.js +5 -0
  120. package/packages/field/src/main.vue +130 -0
  121. package/packages/flow/index.js +5 -0
  122. package/packages/flow/src/components/Handle.vue +1031 -0
  123. package/packages/flow/src/components/Message.vue +96 -0
  124. package/packages/flow/src/components/Opinion.vue +112 -0
  125. package/packages/flow/src/components/Reject.vue +202 -0
  126. package/packages/flow/src/components/StartFlow.vue +440 -0
  127. package/packages/flow/src/components/TaskRead.vue +237 -0
  128. package/packages/flow/src/main.vue +43 -0
  129. package/packages/form/index.js +5 -0
  130. package/packages/form/src/main.vue +158 -0
  131. package/packages/grid/index.js +5 -0
  132. package/packages/grid/src/main.vue +28 -0
  133. package/packages/grid-item/index.js +5 -0
  134. package/packages/grid-item/src/main.vue +16 -0
  135. package/packages/image-preview/index.js +5 -0
  136. package/packages/image-preview/src/main.vue +34 -0
  137. package/packages/list/index.js +5 -0
  138. package/packages/list/src/main.vue +32 -0
  139. package/packages/loading/index.js +5 -0
  140. package/packages/loading/src/main.vue +20 -0
  141. package/packages/nav-bar/index.js +5 -0
  142. package/packages/nav-bar/src/main.vue +16 -0
  143. package/packages/pagination/index.js +5 -0
  144. package/packages/pagination/src/main.vue +29 -0
  145. package/packages/picker/index.js +5 -0
  146. package/packages/picker/src/main.vue +500 -0
  147. package/packages/popover/index.js +5 -0
  148. package/packages/popover/src/main.vue +32 -0
  149. package/packages/popup/index.js +5 -0
  150. package/packages/popup/src/main.vue +27 -0
  151. package/packages/radio/index.js +5 -0
  152. package/packages/radio/src/main.vue +147 -0
  153. package/packages/rate/index.js +5 -0
  154. package/packages/rate/src/main.vue +27 -0
  155. package/packages/search/index.js +5 -0
  156. package/packages/search/src/main.vue +39 -0
  157. package/packages/selector/index.js +5 -0
  158. package/packages/selector/src/main.vue +77 -0
  159. package/packages/selector/src/selector-field.vue +225 -0
  160. package/packages/selector/src/selector-tree.vue +472 -0
  161. package/packages/selector/src/tree.vue +179 -0
  162. package/packages/skeleton/index.js +5 -0
  163. package/packages/skeleton/src/main.vue +17 -0
  164. package/packages/stepper/index.js +5 -0
  165. package/packages/stepper/src/main.vue +25 -0
  166. package/packages/switch/index.js +5 -0
  167. package/packages/switch/src/main.vue +29 -0
  168. package/packages/tab/index.js +5 -0
  169. package/packages/tab/src/main.vue +16 -0
  170. package/packages/table/index.js +5 -0
  171. package/packages/table/src/main.vue +830 -0
  172. package/packages/table-column/index.js +5 -0
  173. package/packages/table-column/src/main.vue +742 -0
  174. package/packages/table-column/src/mixins/table.js +12 -0
  175. package/packages/tabs/index.js +5 -0
  176. package/packages/tabs/src/main.vue +34 -0
  177. package/packages/tag/index.js +5 -0
  178. package/packages/tag/src/main.vue +16 -0
  179. package/packages/theme-chalk/README.md +33 -0
  180. package/packages/theme-chalk/lib/action-sheet.css +0 -0
  181. package/packages/theme-chalk/lib/base.css +1 -0
  182. package/packages/theme-chalk/lib/button-group.css +1 -0
  183. package/packages/theme-chalk/lib/button.css +1 -0
  184. package/packages/theme-chalk/lib/calendar.css +1 -0
  185. package/packages/theme-chalk/lib/cascader.css +1 -0
  186. package/packages/theme-chalk/lib/cell.css +1 -0
  187. package/packages/theme-chalk/lib/checkbox.css +1 -0
  188. package/packages/theme-chalk/lib/circle.css +1 -0
  189. package/packages/theme-chalk/lib/count-down.css +0 -0
  190. package/packages/theme-chalk/lib/date.css +0 -0
  191. package/packages/theme-chalk/lib/empty.css +0 -0
  192. package/packages/theme-chalk/lib/field.css +1 -0
  193. package/packages/theme-chalk/lib/flow.css +1 -0
  194. package/packages/theme-chalk/lib/fonts/iconfont.scss +530 -0
  195. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  196. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  197. package/packages/theme-chalk/lib/form.css +0 -0
  198. package/packages/theme-chalk/lib/grid-item.css +1 -0
  199. package/packages/theme-chalk/lib/grid.css +0 -0
  200. package/packages/theme-chalk/lib/icon.css +1 -0
  201. package/packages/theme-chalk/lib/image-preview.css +0 -0
  202. package/packages/theme-chalk/lib/index.css +1 -0
  203. package/packages/theme-chalk/lib/list.css +0 -0
  204. package/packages/theme-chalk/lib/loading.css +0 -0
  205. package/packages/theme-chalk/lib/nav-bar.css +0 -0
  206. package/packages/theme-chalk/lib/navbar.css +1 -0
  207. package/packages/theme-chalk/lib/pagination.css +1 -0
  208. package/packages/theme-chalk/lib/picker.css +1 -0
  209. package/packages/theme-chalk/lib/popover.css +0 -0
  210. package/packages/theme-chalk/lib/popup.css +0 -0
  211. package/packages/theme-chalk/lib/radio.css +1 -0
  212. package/packages/theme-chalk/lib/rate.css +0 -0
  213. package/packages/theme-chalk/lib/search.css +0 -0
  214. package/packages/theme-chalk/lib/selector.css +1 -0
  215. package/packages/theme-chalk/lib/skeleton.css +0 -0
  216. package/packages/theme-chalk/lib/stepper.css +1 -0
  217. package/packages/theme-chalk/lib/switch.css +1 -0
  218. package/packages/theme-chalk/lib/tab.css +0 -0
  219. package/packages/theme-chalk/lib/table-column.css +0 -0
  220. package/packages/theme-chalk/lib/table.css +1 -0
  221. package/packages/theme-chalk/lib/tabs.css +1 -0
  222. package/packages/theme-chalk/lib/tag.css +1 -0
  223. package/packages/theme-chalk/lib/theme.css +0 -0
  224. package/packages/theme-chalk/lib/tree.css +1 -0
  225. package/packages/theme-chalk/lib/uploader.css +0 -0
  226. package/packages/theme-chalk/package.json +35 -0
  227. package/packages/theme-chalk/src/action-sheet.scss +0 -0
  228. package/packages/theme-chalk/src/base.scss +182 -0
  229. package/packages/theme-chalk/src/button-group.scss +26 -0
  230. package/packages/theme-chalk/src/button.scss +3 -0
  231. package/packages/theme-chalk/src/calendar.scss +12 -0
  232. package/packages/theme-chalk/src/cascader.scss +12 -0
  233. package/packages/theme-chalk/src/cell.scss +14 -0
  234. package/packages/theme-chalk/src/checkbox.scss +10 -0
  235. package/packages/theme-chalk/src/circle.scss +7 -0
  236. package/packages/theme-chalk/src/common/var.scss +1525 -0
  237. package/packages/theme-chalk/src/count-down.scss +0 -0
  238. package/packages/theme-chalk/src/date.scss +0 -0
  239. package/packages/theme-chalk/src/empty.scss +0 -0
  240. package/packages/theme-chalk/src/field.scss +28 -0
  241. package/packages/theme-chalk/src/flow.scss +542 -0
  242. package/packages/theme-chalk/src/fonts/iconfont.scss +530 -0
  243. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  244. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  245. package/packages/theme-chalk/src/form.scss +15 -0
  246. package/packages/theme-chalk/src/grid-item.scss +8 -0
  247. package/packages/theme-chalk/src/grid.scss +0 -0
  248. package/packages/theme-chalk/src/icon.scss +1661 -0
  249. package/packages/theme-chalk/src/image-preview.scss +0 -0
  250. package/packages/theme-chalk/src/index.scss +38 -0
  251. package/packages/theme-chalk/src/list.scss +0 -0
  252. package/packages/theme-chalk/src/loading.scss +0 -0
  253. package/packages/theme-chalk/src/mixins/color.scss +117 -0
  254. package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
  255. package/packages/theme-chalk/src/nav-bar.scss +0 -0
  256. package/packages/theme-chalk/src/navbar.scss +6 -0
  257. package/packages/theme-chalk/src/pagination.scss +10 -0
  258. package/packages/theme-chalk/src/picker.scss +27 -0
  259. package/packages/theme-chalk/src/popover.scss +0 -0
  260. package/packages/theme-chalk/src/popup.scss +0 -0
  261. package/packages/theme-chalk/src/radio.scss +7 -0
  262. package/packages/theme-chalk/src/rate.scss +0 -0
  263. package/packages/theme-chalk/src/search.scss +0 -0
  264. package/packages/theme-chalk/src/selector.scss +218 -0
  265. package/packages/theme-chalk/src/skeleton.scss +0 -0
  266. package/packages/theme-chalk/src/stepper.scss +10 -0
  267. package/packages/theme-chalk/src/switch.scss +6 -0
  268. package/packages/theme-chalk/src/tab.scss +0 -0
  269. package/packages/theme-chalk/src/table-column.scss +0 -0
  270. package/packages/theme-chalk/src/table.scss +42 -0
  271. package/packages/theme-chalk/src/tabs.scss +21 -0
  272. package/packages/theme-chalk/src/tag.scss +13 -0
  273. package/packages/theme-chalk/src/theme.scss +2 -0
  274. package/packages/theme-chalk/src/tree.scss +115 -0
  275. package/packages/theme-chalk/src/uploader.scss +0 -0
  276. package/packages/uploader/index.js +5 -0
  277. package/packages/uploader/src/main.vue +31 -0
  278. package/src/config/api.js +29 -0
  279. package/src/index.js +130 -0
  280. package/src/utils/axios.js +198 -0
  281. package/src/utils/date-util.js +312 -0
  282. package/src/utils/http.js +66 -0
  283. package/src/utils/rules.js +18 -0
  284. package/src/utils/store.js +21 -0
  285. package/src/utils/util.js +1346 -0
package/lib/date.js ADDED
@@ -0,0 +1,956 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 13);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 13:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ // ESM COMPAT FLAG
200
+ __webpack_require__.r(__webpack_exports__);
201
+
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date/src/main.vue?vue&type=template&id=317fd916&
203
+ var render = function () {
204
+ var _vm = this
205
+ var _h = _vm.$createElement
206
+ var _c = _vm._self._c || _h
207
+ return _c(
208
+ "div",
209
+ { staticClass: "em-date" },
210
+ [
211
+ _c(
212
+ "em-input",
213
+ _vm._b(
214
+ {
215
+ attrs: {
216
+ readonly: "",
217
+ clickable: "",
218
+ label: _vm.label,
219
+ value: _vm.pickerValue,
220
+ "label-align": _vm.labelAlign,
221
+ "input-align": _vm.inputAlign,
222
+ "label-width": _vm.labelWidth,
223
+ center: _vm.center,
224
+ required: _vm.required,
225
+ hideLabel: _vm.hideLabel,
226
+ disabled: _vm.disabled,
227
+ placeholder: _vm.disabled
228
+ ? "暂无数据"
229
+ : _vm.placeholder || "请选择" + _vm.label,
230
+ },
231
+ on: { click: _vm.handlePicker },
232
+ },
233
+ "em-input",
234
+ _vm.$attrs,
235
+ false
236
+ )
237
+ ),
238
+ _c(
239
+ "van-popup",
240
+ {
241
+ attrs: { round: "", position: "bottom" },
242
+ on: { close: _vm.onCancel },
243
+ model: {
244
+ value: _vm.showPicker,
245
+ callback: function ($$v) {
246
+ _vm.showPicker = $$v
247
+ },
248
+ expression: "showPicker",
249
+ },
250
+ },
251
+ [
252
+ _vm.type == "datetimeSecond"
253
+ ? _c("EmDateTime", {
254
+ attrs: {
255
+ values: _vm.value,
256
+ joinStr: _vm.joinStr,
257
+ title: _vm.label,
258
+ "min-date": _vm.$attrs["min-date"],
259
+ "max-date": _vm.$attrs["max-date"],
260
+ },
261
+ on: {
262
+ confirm: _vm.onConfirm,
263
+ cancel: function () {
264
+ return (_vm.showPicker = false)
265
+ },
266
+ },
267
+ })
268
+ : _c(
269
+ "van-datetime-picker",
270
+ _vm._g(
271
+ _vm._b(
272
+ {
273
+ attrs: {
274
+ "show-toolbar": "",
275
+ loading: _vm.newLoading,
276
+ type: _vm.type,
277
+ },
278
+ on: { cancel: _vm.onCancel, confirm: _vm.onConfirm },
279
+ model: {
280
+ value: _vm.newValue,
281
+ callback: function ($$v) {
282
+ _vm.newValue = $$v
283
+ },
284
+ expression: "newValue",
285
+ },
286
+ },
287
+ "van-datetime-picker",
288
+ _vm.$attrs,
289
+ false
290
+ ),
291
+ _vm.$listeners
292
+ ),
293
+ [
294
+ _vm._l(_vm.$slots, function (index, name) {
295
+ return _c("template", { slot: name }, [_vm._t(name)], 2)
296
+ }),
297
+ ],
298
+ 2
299
+ ),
300
+ ],
301
+ 1
302
+ ),
303
+ ],
304
+ 1
305
+ )
306
+ }
307
+ var staticRenderFns = []
308
+ render._withStripped = true
309
+
310
+
311
+ // CONCATENATED MODULE: ./packages/date/src/main.vue?vue&type=template&id=317fd916&
312
+
313
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date/src/date-time.vue?vue&type=template&id=df431e74&
314
+ var date_timevue_type_template_id_df431e74_render = function () {
315
+ var _vm = this
316
+ var _h = _vm.$createElement
317
+ var _c = _vm._self._c || _h
318
+ return _c(
319
+ "van-picker",
320
+ {
321
+ ref: "picker",
322
+ attrs: { "show-toolbar": "", title: "请选择时间", columns: _vm.columns },
323
+ on: {
324
+ change: _vm.onChange,
325
+ cancel: _vm.cancelOn,
326
+ confirm: _vm.onConfirm,
327
+ },
328
+ },
329
+ [_c("template", { slot: "title" }, [_vm._v(_vm._s(_vm.title))])],
330
+ 2
331
+ )
332
+ }
333
+ var date_timevue_type_template_id_df431e74_staticRenderFns = []
334
+ date_timevue_type_template_id_df431e74_render._withStripped = true
335
+
336
+
337
+ // CONCATENATED MODULE: ./packages/date/src/date-time.vue?vue&type=template&id=df431e74&
338
+
339
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date/src/date-time.vue?vue&type=script&lang=js&
340
+ //
341
+ //
342
+ //
343
+ //
344
+ //
345
+ //
346
+ //
347
+ //
348
+ //
349
+ //
350
+ //
351
+ //
352
+ //
353
+ //
354
+ //
355
+
356
+ /* harmony default export */ var date_timevue_type_script_lang_js_ = ({
357
+ name: 'EmDateTime',
358
+ props: {
359
+ values: { type: [String, Object, Date] },
360
+ joinStr: { type: String },
361
+ minDate: { type: [String, Object, Date] },
362
+ maxDate: { type: [String, Object, Date] },
363
+ title: { type: String, default: '请选择时间' }
364
+ },
365
+ data: function data() {
366
+ return {
367
+ columns: [], //所有时间
368
+ Mdays: '', //弹窗关闭时月份所在值
369
+ Dindex: null
370
+ };
371
+ },
372
+
373
+ watch: {
374
+ isPicker: function isPicker(val) {
375
+ this.columns = [];
376
+ this.getcolumns();
377
+ },
378
+ values: function values(val) {
379
+ if (val == '') {
380
+ this.Mdays = '';
381
+ this.Dindex = null;
382
+ }
383
+ }
384
+ },
385
+ mounted: function mounted() {
386
+ this.columns = [];
387
+ this.getcolumns();
388
+ },
389
+
390
+ methods: {
391
+ getCountDays: function getCountDays(year, month) {
392
+ //获取某年某月多少天
393
+ var day = new Date(year, month, 0);
394
+ return day.getDate();
395
+ },
396
+ getDateVal: function getDateVal(date) {
397
+ var newY = date.getFullYear();
398
+ var newM = date.getMonth();
399
+ var newD = date.getDate();
400
+ var newh = date.getHours();
401
+ var newm = date.getMinutes();
402
+ var news = date.getSeconds();
403
+ return { newY: newY, newM: newM, newD: newD, newh: newh, newm: newm, news: news };
404
+ },
405
+ getcolumns: function getcolumns() {
406
+ var _that = this;
407
+ var newDate = this.values;
408
+ if (typeof this.values == 'string') {
409
+ newDate = newDate.replace('年', '/');
410
+ newDate = newDate.replace('月', '/');
411
+ newDate = newDate.replace('日', ' ');
412
+ newDate = newDate.replace('时', ':');
413
+ newDate = newDate.replace('分', ':');
414
+ newDate = newDate.replace('秒', '');
415
+ newDate = newDate.replace(/-/g, '/');
416
+ newDate = newDate.trim();
417
+ }
418
+ // var strtime = this.values;
419
+ var date = new Date(newDate);
420
+ var vmoduletime = date.getTime();
421
+ if (this.values != '') {
422
+ var vmoduledate = new Date(vmoduletime);
423
+ } else {
424
+ var vmoduledate = new Date(); //没有传入时间则默认当前时刻
425
+ }
426
+ var minY,
427
+ minM,
428
+ minD,
429
+ minh,
430
+ minm,
431
+ mins,
432
+ maxY,
433
+ maxM,
434
+ maxD,
435
+ maxh,
436
+ maxm,
437
+ maxs = '';
438
+ if (this.minDate) {
439
+ var _getDateVal = this.getDateVal(this.minDate),
440
+ newY = _getDateVal.newY,
441
+ newM = _getDateVal.newM,
442
+ newD = _getDateVal.newD,
443
+ newh = _getDateVal.newh,
444
+ newm = _getDateVal.newm,
445
+ news = _getDateVal.news;
446
+
447
+ minY = newY;
448
+ minM = newM;
449
+ minD = newD;
450
+ minh = newh;
451
+ minm = newm;
452
+ mins = news;
453
+ }
454
+ if (this.maxDate) {
455
+ var _getDateVal2 = this.getDateVal(this.maxDate),
456
+ _newY = _getDateVal2.newY,
457
+ _newM = _getDateVal2.newM,
458
+ _newD = _getDateVal2.newD,
459
+ _newh = _getDateVal2.newh,
460
+ _newm = _getDateVal2.newm,
461
+ _news = _getDateVal2.news;
462
+
463
+ maxY = _newY;
464
+ maxM = _newM;
465
+ maxD = _newD;
466
+ maxh = _newh;
467
+ maxm = _newm;
468
+ maxs = _news;
469
+ }
470
+
471
+ var Y = vmoduledate.getFullYear();
472
+ var M = vmoduledate.getMonth();
473
+ var D = vmoduledate.getDate();
474
+ var h = vmoduledate.getHours();
475
+ var m = vmoduledate.getMinutes();
476
+ var s = vmoduledate.getSeconds();
477
+ var year = {}; //获取前后十年数组
478
+ year.values = [];
479
+ var Currentday = new Date().getFullYear();
480
+ for (var i = minY || Currentday - 10; i < (maxY + 1 || Currentday + 10); i++) {
481
+ year.values.push(i + (_that.joinStr ? '' : '年'));
482
+ }
483
+ year.defaultIndex = year.values.indexOf(Y + (_that.joinStr ? '' : '年')); //设置默认选项当前年
484
+ _that.columns.push(year);
485
+ var month = {}; //获取12月数组
486
+ month.defaultIndex = M;
487
+ month.values = Object.keys(Array.apply(null, { length: 13 })).map(
488
+ // function(item) {
489
+ // if (
490
+ // ((minM != undefined ? minM + Number(item) + 1 : '') ||
491
+ // Number(item) + 1) <
492
+ // (maxM + 1 <= 10 && maxM != undefined ? maxM+ 1 : 10)
493
+ // ) {
494
+ // return (
495
+ // '0' +
496
+ // (minM != undefined ? minM + Number(item) + 1 : Number(item) + 1) +
497
+ // (_that.joinStr ? '' : '月')
498
+ // );
499
+ // } else if (
500
+ // 10 <=
501
+ // ((minM != '' ? minM + Number(item) + 1 : '') ||
502
+ // Number(item) + 1) &&
503
+ // ((minM != '' ? minM + Number(item) + 1 : '') || Number(item) + 1) <
504
+ // ( maxM
505
+ // ? maxM + 2
506
+ // : 12)
507
+ // ) {
508
+ // return (
509
+ // (minM != undefined ? minM + Number(item) + 1 : Number(item) + 1) +
510
+ // (_that.joinStr ? '' : '月')
511
+ // );
512
+ // }
513
+ // // else {
514
+ // // return (+item + 0).toString() + (_that.joinStr ? '' : '月');
515
+ // // }
516
+ // }
517
+ function (item) {
518
+ if (Number(item) < 10) {
519
+ return '0' + Number(item) + (_that.joinStr ? '' : '月');
520
+ } else if (10 <= Number(item) && Number(item) <= 12) {
521
+ return Number(item) + (_that.joinStr ? '' : '月');
522
+ }
523
+ });
524
+ month.values.splice(0, 1);
525
+ month.values = month.values.filter(function (x) {
526
+ return x != undefined;
527
+ });
528
+ this.columns.push(month);
529
+ //获取当月的天数
530
+ var days = this.getCountDays(Y, this.Mdays == '' ? M + 1 : this.Mdays);
531
+ var day = {}; //创建当月天数数组
532
+ day.defaultIndex = this.Dindex == null ? D - 1 : this.Dindex;
533
+ day.values = Object.keys(Array.apply(null, { length: days + 1 })).map(function (item) {
534
+ if (+item + 1 <= 10) {
535
+ return '0' + item + (_that.joinStr ? '' : '日');
536
+ } else if (+item + 1 == 11) {
537
+ return +item + (_that.joinStr ? '' : '日');
538
+ } else {
539
+ return (+item + 0).toString() + (_that.joinStr ? '' : '日');
540
+ }
541
+ });
542
+ day.values.splice(0, 1);
543
+ this.columns.push(day);
544
+ var hour = {}; //创建小时数组
545
+ hour.defaultIndex = h;
546
+ hour.values = Object.keys(Array.apply(null, { length: 24 })).map(function (item) {
547
+ if (+item + 1 <= 10) {
548
+ return '0' + item + (_that.joinStr ? '' : '时');
549
+ } else if (+item + 1 == 11) {
550
+ return +item + (_that.joinStr ? '' : '时');
551
+ } else {
552
+ return (+item + 0).toString() + (_that.joinStr ? '' : '时');
553
+ }
554
+ });
555
+ this.columns.push(hour);
556
+ var mi = {}; //创建分钟数组
557
+ mi.defaultIndex = m;
558
+ mi.values = Object.keys(Array.apply(null, { length: 60 })).map(function (item) {
559
+ if (+item + 1 <= 10) {
560
+ return '0' + item + (_that.joinStr ? '' : '分');
561
+ } else if (+item + 1 == 11) {
562
+ return +item + (_that.joinStr ? '' : '分');
563
+ } else {
564
+ return (+item + 0).toString() + (_that.joinStr ? '' : '分');
565
+ }
566
+ });
567
+ this.columns.push(mi);
568
+ var ss = {}; //创建秒数数组
569
+ ss.defaultIndex = s;
570
+ ss.values = Object.keys(Array.apply(null, { length: 60 })).map(function (item) {
571
+ if (+item + 1 <= 10) {
572
+ return '0' + item + (_that.joinStr ? '' : '秒');
573
+ } else if (+item + 1 == 11) {
574
+ return +item + (_that.joinStr ? '' : '秒');
575
+ } else {
576
+ return (+item + 0).toString() + (_that.joinStr ? '' : '秒');
577
+ }
578
+ });
579
+ this.columns.push(ss);
580
+ },
581
+ onChange: function onChange(values, a) {
582
+ var _that = this;
583
+ //a为所有列备选项值的数组
584
+ var days = this.getCountDays(a[0].substr(0, 4), a[1].substr(0, 2));
585
+ var newdays = {};
586
+ newdays.values = Object.keys(Array.apply(null, { length: days + 1 })).map(function (item) {
587
+ if (+item + 1 <= 10) {
588
+ return '0' + item + (_that.joinStr ? '' : '日');
589
+ } else if (+item + 1 == 11) {
590
+ return +item + (_that.joinStr ? '' : '日');
591
+ } else {
592
+ return (+item + 0).toString() + (_that.joinStr ? '' : '日');
593
+ }
594
+ });
595
+ newdays.values.splice(0, 1);
596
+ this.$refs.picker.setColumnValues(2, newdays.values); //设置第三列的值
597
+ this.$refs.picker.setColumnIndex(2, a[2].substr(0, 2) - 1); //设置第三列索引
598
+ },
599
+
600
+ // 关闭弹框
601
+ confirmOn: function confirmOn() {
602
+ var currentM = this.$refs.picker.getColumnValue(1);
603
+ this.Mdays = currentM.substr(0, 2);
604
+ this.Dindex = this.$refs.picker.getColumnIndex(2);
605
+ },
606
+
607
+ //时间选择器关闭
608
+ cancelOn: function cancelOn() {
609
+ this.$emit('cancel');
610
+ },
611
+
612
+ // 时间选择器确定
613
+ onConfirm: function onConfirm(val, index) {
614
+ var endval = val[0].substr(0, 4) + (this.joinStr || '年') + val[1].substr(0, 2) + (this.joinStr || '月') + val[2].substr(0, 2) + (this.joinStr ? ' ' : '日 ') + val[3].substr(0, 2) + (this.joinStr ? ':' : '时') + val[4].substr(0, 2) + (this.joinStr ? ':' : '分') + val[5].substr(0, 2) + (this.joinStr ? '' : '秒');
615
+ this.$emit('confirm', endval);
616
+ }
617
+ }
618
+ });
619
+ // CONCATENATED MODULE: ./packages/date/src/date-time.vue?vue&type=script&lang=js&
620
+ /* harmony default export */ var src_date_timevue_type_script_lang_js_ = (date_timevue_type_script_lang_js_);
621
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
622
+ var componentNormalizer = __webpack_require__(0);
623
+
624
+ // CONCATENATED MODULE: ./packages/date/src/date-time.vue
625
+
626
+
627
+
628
+
629
+
630
+ /* normalize component */
631
+
632
+ var component = Object(componentNormalizer["a" /* default */])(
633
+ src_date_timevue_type_script_lang_js_,
634
+ date_timevue_type_template_id_df431e74_render,
635
+ date_timevue_type_template_id_df431e74_staticRenderFns,
636
+ false,
637
+ null,
638
+ null,
639
+ null
640
+
641
+ )
642
+
643
+ /* harmony default export */ var date_time = (component.exports);
644
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date/src/main.vue?vue&type=script&lang=js&
645
+ //
646
+ //
647
+ //
648
+ //
649
+ //
650
+ //
651
+ //
652
+ //
653
+ //
654
+ //
655
+ //
656
+ //
657
+ //
658
+ //
659
+ //
660
+ //
661
+ //
662
+ //
663
+ //
664
+ //
665
+ //
666
+ //
667
+ //
668
+ //
669
+ //
670
+ //
671
+ //
672
+ //
673
+ //
674
+ //
675
+ //
676
+ //
677
+ //
678
+ //
679
+ //
680
+ //
681
+ //
682
+ //
683
+ //
684
+ //
685
+ //
686
+ //
687
+ //
688
+ //
689
+ //
690
+ //
691
+ //
692
+ //
693
+
694
+
695
+ /* harmony default export */ var mainvue_type_script_lang_js_ = ({
696
+ name: 'EmDate',
697
+ components: { EmDateTime: date_time },
698
+ inheritAttrs: false,
699
+ data: function data() {
700
+ return {
701
+ showPicker: false,
702
+ newLoading: false,
703
+ changeValue: true,
704
+ newValueKey: '',
705
+ newValue: '',
706
+ lastValue: '',
707
+ dateValues: '',
708
+ newColumns: [],
709
+ newDefaultIndex: 0,
710
+ isOnConfirm: false,
711
+ count: 0,
712
+ pickerValue: ''
713
+ };
714
+ },
715
+
716
+ props: {
717
+ disabled: {
718
+ type: Boolean,
719
+ default: false
720
+ },
721
+ required: {
722
+ type: Boolean,
723
+ default: false
724
+ },
725
+ hideLabel: {
726
+ type: Boolean,
727
+ default: false
728
+ },
729
+ // 绑定值
730
+ value: {
731
+ type: [String, Array, Object, Date],
732
+ default: ''
733
+ },
734
+ // 展示标题
735
+ label: {
736
+ type: String,
737
+ default: '日期选择'
738
+ },
739
+ // 输入框占位提示文字
740
+ placeholder: {
741
+ type: String,
742
+ default: ''
743
+ },
744
+ // 多级选择展示拼接字符
745
+ joinStr: {
746
+ type: String,
747
+ default: undefined
748
+ },
749
+
750
+ loading: {
751
+ type: Boolean,
752
+ default: false
753
+ },
754
+ //左侧文本宽度
755
+ labelWidth: {
756
+ type: String
757
+ },
758
+ // 左侧文本对齐方式
759
+ labelAlign: {
760
+ type: String
761
+ },
762
+ // 右侧内容对齐方式
763
+ inputAlign: {
764
+ type: String
765
+ },
766
+ // 是否使内容垂直居中
767
+ center: {
768
+ type: Boolean
769
+ },
770
+ type: {
771
+ type: String,
772
+ default: 'datetime'
773
+ }
774
+ },
775
+
776
+ watch: {
777
+ loading: {
778
+ handler: function handler(val) {
779
+ this.newLoading = val;
780
+ },
781
+
782
+ deep: true,
783
+ immediate: true
784
+ },
785
+ value: {
786
+ handler: function handler() {
787
+ this.changeValue && this.getValFun();
788
+ },
789
+
790
+ deep: true,
791
+ immediate: true
792
+ }
793
+ },
794
+
795
+ mounted: function mounted() {
796
+ console.log(this.value, 'asddd');
797
+ this.lastValue = this.value;
798
+ },
799
+
800
+ methods: {
801
+ getValFun: function getValFun(val) {
802
+ var _that = this;
803
+ if (_that.isOnConfirm) return;
804
+ if (!val) {
805
+ if (_that.value != undefined && _that.value || _that.value == undefined && _that.value) {
806
+ console.log(1);
807
+ _that.pickerValue = _that.getValue(_that.value);
808
+ } else {
809
+ console.log(2);
810
+ _that.pickerValue = _that.value;
811
+ }
812
+ } else {
813
+ console.log(3);
814
+ _that.pickerValue = _that.getValue(_that.val);
815
+ }
816
+
817
+ var type = _that.type;
818
+
819
+ if (type === 'time') {
820
+ _that.newValue = _that.value != undefined ? _that.value : _that.value;
821
+ return;
822
+ }
823
+ // if(_that.count == 0 || _that.value != undefined) {
824
+ // _that.count++
825
+ var date = _that.value;
826
+ if (typeof date == 'string') {
827
+ if (type != 'year') {
828
+ date = date.replace('年', '/');
829
+ } else {
830
+ date = date.replace('年', '');
831
+ }
832
+ if (type == 'year-month') {
833
+ date = date.replace('月', '');
834
+ } else {
835
+ date = date.replace('月', '/');
836
+ }
837
+ date = date.replace('日', ' ');
838
+ date = date.replace('时', ':');
839
+ date = date.replace('分', ':');
840
+ date = date.replace('秒', '');
841
+
842
+ // date = date.replace(/-/g, '/');
843
+ date = date.trim();
844
+ }
845
+ _that.isOnConfirm = false;
846
+ _that.newValue = date != undefined && date ? new Date(date || '') : date == undefined && _that.value ? new Date(_that.value || '') : new Date();
847
+ // }
848
+ },
849
+ onCancel: function onCancel() {
850
+ this.$emit('input', this.lastValue);
851
+ this.getValFun(this.lastValue);
852
+ this.showPicker = false;
853
+ },
854
+ onConfirm: function onConfirm(value) {
855
+ this.showPicker = false;
856
+ this.pickerValue = this.getValue(value);
857
+ this.isOnConfirm = true;
858
+ this.lastValue = value;
859
+ this.changeValue = false;
860
+ console.log(this.pickerValue, 'this.pickerValue');
861
+ console.log(this.value, 'this.value');
862
+ this.$emit('input', this.pickerValue);
863
+ if (this.type === 'datetimeSecond') this.$emit('confirm');
864
+ },
865
+ getValue: function getValue(val) {
866
+ var type = this.type;
867
+
868
+ var value = '';
869
+ if (!this.value && !val && this.value == undefined) return;
870
+ console.log(val, '1-1');
871
+ if (val && typeof val == 'string') {
872
+ return val;
873
+ }
874
+ console.log('1-2');
875
+ if (this.value && typeof this.value == 'string') {
876
+ return this.value;
877
+ }
878
+ var newValue = new Date(val || this.value);
879
+
880
+ if (typeof newValue == 'string') {
881
+ newValue = newValue.replace('年', '/');
882
+ newValue = newValue.replace('月', '/');
883
+ newValue = newValue.replace('日', ' ');
884
+ newValue = newValue.replace('时', ':');
885
+ newValue = newValue.replace('分', ':');
886
+ newValue = newValue.replace('秒', '');
887
+ newValue = newValue.replace(/-/g, '/');
888
+ newValue = newValue.trim();
889
+ }
890
+ var date = new Date(newValue);
891
+ var y = date.getFullYear();
892
+ var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
893
+ var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
894
+ var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
895
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
896
+ var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
897
+ if (type == 'date' && newValue != 'Invalid Date') {
898
+ value = y + (this.joinStr || '年') + m + (this.joinStr || '月') + d + (this.joinStr ? ' ' : '日 ');
899
+ } else if (type === 'year-month' && newValue != 'Invalid Date') {
900
+ value = y + (this.joinStr || '年') + m + (this.joinStr ? ' ' : '月');
901
+ } else if (type === 'month-day' && newValue != 'Invalid Date') {
902
+ value = m + (this.joinStr || '月') + d + (this.joinStr ? ' ' : '日');
903
+ } else if (type === 'time' && newValue.split(':').length >= 2) {
904
+ var time = [newValue.split(':')[0], newValue.split(':')[1]];
905
+ value = this.joinStr ? time.join(':') : time.join(':').replace(':', '时') + '分';
906
+ } else if ((type === 'datetime' || type === 'datetimeSecond') && newValue != 'Invalid Date') {
907
+ value = y + (this.joinStr || '年') + m + (this.joinStr || '月') + d + (this.joinStr ? ' ' : '日 ') + h + (this.joinStr ? ':' : '时') + minute + (this.joinStr ? type === 'datetimeSecond' ? ':' : '' : '分') + (type === 'datetimeSecond' ? s + (this.joinStr ? '' : '秒') : '');
908
+ } else if (type === 'datehour' && newValue != 'Invalid Date') {
909
+ value = y + (this.joinStr || '年') + m + (this.joinStr || '月') + d + (this.joinStr ? ' ' : '日 ') + h + (this.joinStr ? ' ' : '时');
910
+ } else if (type === 'year' && newValue != 'Invalid Date') {
911
+ value = y + (this.joinStr ? '' : '年');
912
+ }
913
+ return value;
914
+ },
915
+ handlePicker: function handlePicker() {
916
+ if (this.disabled) return;
917
+ this.showPicker = true;
918
+
919
+ this.$emit('showPicker');
920
+ }
921
+ }
922
+ });
923
+ // CONCATENATED MODULE: ./packages/date/src/main.vue?vue&type=script&lang=js&
924
+ /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
925
+ // CONCATENATED MODULE: ./packages/date/src/main.vue
926
+
927
+
928
+
929
+
930
+
931
+ /* normalize component */
932
+
933
+ var main_component = Object(componentNormalizer["a" /* default */])(
934
+ src_mainvue_type_script_lang_js_,
935
+ render,
936
+ staticRenderFns,
937
+ false,
938
+ null,
939
+ null,
940
+ null
941
+
942
+ )
943
+
944
+ /* harmony default export */ var main = (main_component.exports);
945
+ // CONCATENATED MODULE: ./packages/date/index.js
946
+
947
+
948
+ main.install = function (Vue) {
949
+ return Vue.component(main.name, main);
950
+ };
951
+
952
+ /* harmony default export */ var date = __webpack_exports__["default"] = (main);
953
+
954
+ /***/ })
955
+
956
+ /******/ });