eoss-mobiles 0.2.10 → 0.2.12

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 (73) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/lib/action-sheet.js +2 -2
  3. package/lib/button-group.js +2 -2
  4. package/lib/button.js +2 -2
  5. package/lib/calendar.js +2 -2
  6. package/lib/cascader.js +2 -2
  7. package/lib/cell.js +2 -2
  8. package/lib/checkbox.js +112 -112
  9. package/lib/circle.js +2 -2
  10. package/lib/count-down.js +2 -2
  11. package/lib/date.js +34 -4
  12. package/lib/empty.js +2 -2
  13. package/lib/eoss-mobile.common.js +344 -137
  14. package/lib/esign.js +2 -2
  15. package/lib/field.js +2 -2
  16. package/lib/flow.js +193 -194
  17. package/lib/form.js +2 -2
  18. package/lib/grid-item.js +2 -2
  19. package/lib/grid.js +2 -2
  20. package/lib/image-preview.js +2 -2
  21. package/lib/image.js +2 -2
  22. package/lib/index.js +1 -1
  23. package/lib/list.js +2 -2
  24. package/lib/loading.js +2 -2
  25. package/lib/nav-bar.js +2 -2
  26. package/lib/notice-bar.js +273 -0
  27. package/lib/pagination.js +2 -2
  28. package/lib/picker.js +111 -111
  29. package/lib/popover.js +2 -2
  30. package/lib/popup.js +2 -2
  31. package/lib/pull-refresh.js +2 -2
  32. package/lib/radio.js +111 -111
  33. package/lib/rate.js +2 -2
  34. package/lib/search.js +2 -2
  35. package/lib/selector.js +112 -112
  36. package/lib/skeleton.js +2 -2
  37. package/lib/stepper.js +2 -2
  38. package/lib/swipe.js +2 -2
  39. package/lib/switch.js +2 -2
  40. package/lib/tab.js +2 -2
  41. package/lib/table-column.js +687 -147
  42. package/lib/table.js +114 -115
  43. package/lib/tabs.js +2 -2
  44. package/lib/tag.js +2 -2
  45. package/lib/theme-chalk/flow.css +1 -1
  46. package/lib/theme-chalk/fonts/iconfont.scss +7 -3
  47. package/lib/theme-chalk/index.css +1 -1
  48. package/lib/theme-chalk/notice-bar.css +0 -0
  49. package/lib/theme-chalk/selector.css +1 -1
  50. package/lib/uploader.js +2 -2
  51. package/package.json +1 -1
  52. package/packages/date/src/main.vue +14 -0
  53. package/packages/flow/src/components/Handle.vue +1 -1
  54. package/packages/flow/src/components/Opinion.vue +4 -4
  55. package/packages/flow/src/components/Reject.vue +1 -2
  56. package/packages/flow/src/components/StartFlow.vue +2 -3
  57. package/packages/flow/src/components/TaskRead.vue +1 -2
  58. package/packages/flow/src/components/taskUnionExamine.vue +3 -3
  59. package/packages/flow/src/main.vue +2 -0
  60. package/packages/notice-bar/index.js +5 -0
  61. package/packages/notice-bar/src/main.vue +15 -0
  62. package/packages/table/src/main.vue +0 -1
  63. package/packages/table-column/src/main.vue +272 -199
  64. package/packages/theme-chalk/lib/flow.css +1 -1
  65. package/packages/theme-chalk/lib/fonts/iconfont.scss +7 -3
  66. package/packages/theme-chalk/lib/index.css +1 -1
  67. package/packages/theme-chalk/lib/notice-bar.css +0 -0
  68. package/packages/theme-chalk/lib/selector.css +1 -1
  69. package/packages/theme-chalk/src/flow.scss +2 -0
  70. package/packages/theme-chalk/src/fonts/iconfont.scss +7 -3
  71. package/packages/theme-chalk/src/index.scss +1 -0
  72. package/packages/theme-chalk/src/notice-bar.scss +0 -0
  73. package/src/index.js +7 -4
package/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
1
  ## 更新日志
2
2
 
3
- ### 0.2.4
3
+ ### 0.2.11
4
4
 
5
+ - 2024-01-03
6
+ - fix:<br/>1. 新增 Swipe 轮播组件<br/>2. selector 组件优化
7
+ - 版本号:0.2.11
5
8
  - 2023-12-20
6
9
  - fix:<br/>1. 新增 Esign 手写签批组件<br/>2. selector 组件新增 left-icon 方法
7
10
  - 版本号:0.2.4
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -277,7 +277,7 @@ render._withStripped = true
277
277
  // CONCATENATED MODULE: ./packages/action-sheet/src/main.vue?vue&type=script&lang=js&
278
278
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
279
279
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
280
- var componentNormalizer = __webpack_require__(0);
280
+ var componentNormalizer = __webpack_require__(1);
281
281
 
282
282
  // CONCATENATED MODULE: ./packages/action-sheet/src/main.vue
283
283
 
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -385,7 +385,7 @@ render._withStripped = true
385
385
  // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=script&lang=js&
386
386
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
387
387
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
388
- var componentNormalizer = __webpack_require__(0);
388
+ var componentNormalizer = __webpack_require__(1);
389
389
 
390
390
  // CONCATENATED MODULE: ./packages/button-group/src/main.vue
391
391
 
package/lib/button.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -242,7 +242,7 @@ render._withStripped = true
242
242
  // CONCATENATED MODULE: ./packages/button/src/main.vue?vue&type=script&lang=js&
243
243
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
244
244
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
245
- var componentNormalizer = __webpack_require__(0);
245
+ var componentNormalizer = __webpack_require__(1);
246
246
 
247
247
  // CONCATENATED MODULE: ./packages/button/src/main.vue
248
248
 
package/lib/calendar.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -265,7 +265,7 @@ render._withStripped = true
265
265
  // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=script&lang=js&
266
266
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
267
267
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
268
- var componentNormalizer = __webpack_require__(0);
268
+ var componentNormalizer = __webpack_require__(1);
269
269
 
270
270
  // CONCATENATED MODULE: ./packages/calendar/src/main.vue
271
271
 
package/lib/cascader.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -300,7 +300,7 @@ render._withStripped = true
300
300
  // CONCATENATED MODULE: ./packages/cascader/src/main.vue?vue&type=script&lang=js&
301
301
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
302
302
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
303
- var componentNormalizer = __webpack_require__(0);
303
+ var componentNormalizer = __webpack_require__(1);
304
304
 
305
305
  // CONCATENATED MODULE: ./packages/cascader/src/main.vue
306
306
 
package/lib/cell.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -330,7 +330,7 @@ render._withStripped = true
330
330
  // CONCATENATED MODULE: ./packages/cell/src/main.vue?vue&type=script&lang=js&
331
331
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
332
332
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
333
- var componentNormalizer = __webpack_require__(0);
333
+ var componentNormalizer = __webpack_require__(1);
334
334
 
335
335
  // CONCATENATED MODULE: ./packages/cell/src/main.vue
336
336
 
package/lib/checkbox.js CHANGED
@@ -91,112 +91,7 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
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
- /***/ 1:
196
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
-
198
- "use strict";
199
- /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
94
+ /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
200
95
  /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_eoss_design_color__WEBPACK_IMPORTED_MODULE_0__);
201
96
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
202
97
 
@@ -1510,6 +1405,111 @@ var exclAttribute = function exclAttribute(_ref4) {
1510
1405
  exportXls: exportXls
1511
1406
  });
1512
1407
 
1408
+ /***/ }),
1409
+
1410
+ /***/ 1:
1411
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1412
+
1413
+ "use strict";
1414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
1415
+ /* globals __VUE_SSR_CONTEXT__ */
1416
+
1417
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1418
+ // This module is a runtime utility for cleaner component module output and will
1419
+ // be included in the final webpack user bundle.
1420
+
1421
+ function normalizeComponent(
1422
+ scriptExports,
1423
+ render,
1424
+ staticRenderFns,
1425
+ functionalTemplate,
1426
+ injectStyles,
1427
+ scopeId,
1428
+ moduleIdentifier /* server only */,
1429
+ shadowMode /* vue-cli only */
1430
+ ) {
1431
+ // Vue.extend constructor export interop
1432
+ var options =
1433
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1434
+
1435
+ // render functions
1436
+ if (render) {
1437
+ options.render = render
1438
+ options.staticRenderFns = staticRenderFns
1439
+ options._compiled = true
1440
+ }
1441
+
1442
+ // functional template
1443
+ if (functionalTemplate) {
1444
+ options.functional = true
1445
+ }
1446
+
1447
+ // scopedId
1448
+ if (scopeId) {
1449
+ options._scopeId = 'data-v-' + scopeId
1450
+ }
1451
+
1452
+ var hook
1453
+ if (moduleIdentifier) {
1454
+ // server build
1455
+ hook = function (context) {
1456
+ // 2.3 injection
1457
+ context =
1458
+ context || // cached call
1459
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1460
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1461
+ // 2.2 with runInNewContext: true
1462
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1463
+ context = __VUE_SSR_CONTEXT__
1464
+ }
1465
+ // inject component styles
1466
+ if (injectStyles) {
1467
+ injectStyles.call(this, context)
1468
+ }
1469
+ // register component module identifier for async chunk inferrence
1470
+ if (context && context._registeredComponents) {
1471
+ context._registeredComponents.add(moduleIdentifier)
1472
+ }
1473
+ }
1474
+ // used by ssr in case component is cached and beforeCreate
1475
+ // never gets called
1476
+ options._ssrRegister = hook
1477
+ } else if (injectStyles) {
1478
+ hook = shadowMode
1479
+ ? function () {
1480
+ injectStyles.call(
1481
+ this,
1482
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1483
+ )
1484
+ }
1485
+ : injectStyles
1486
+ }
1487
+
1488
+ if (hook) {
1489
+ if (options.functional) {
1490
+ // for template-only hot-reload because in that case the render fn doesn't
1491
+ // go through the normalizer
1492
+ options._injectStyles = hook
1493
+ // register for functional component in vue file
1494
+ var originalRender = options.render
1495
+ options.render = function renderWithStyleInjection(h, context) {
1496
+ hook.call(context)
1497
+ return originalRender(h, context)
1498
+ }
1499
+ } else {
1500
+ // inject component registration as beforeCreate hook
1501
+ var existing = options.beforeCreate
1502
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1503
+ }
1504
+ }
1505
+
1506
+ return {
1507
+ exports: scriptExports,
1508
+ options: options
1509
+ }
1510
+ }
1511
+
1512
+
1513
1513
  /***/ }),
1514
1514
 
1515
1515
  /***/ 2:
@@ -1546,7 +1546,7 @@ var exclAttribute = function exclAttribute(_ref4) {
1546
1546
  /* unused harmony export toTwoOfficesDispatch */
1547
1547
  /* unused harmony export twoOfficesDispatch */
1548
1548
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isCanStartSubFlow; });
1549
- /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1549
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1550
1550
 
1551
1551
  var activiti = '/bpm';
1552
1552
  var pending = '/bpm';
@@ -1639,10 +1639,10 @@ var external_axios_ = __webpack_require__(7);
1639
1639
  var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
1640
1640
 
1641
1641
  // EXTERNAL MODULE: external "eoss-mobile-vant"
1642
- var external_eoss_mobile_vant_ = __webpack_require__(6);
1642
+ var external_eoss_mobile_vant_ = __webpack_require__(5);
1643
1643
 
1644
1644
  // EXTERNAL MODULE: ./src/utils/util.js
1645
- var util = __webpack_require__(1);
1645
+ var util = __webpack_require__(0);
1646
1646
 
1647
1647
  // EXTERNAL MODULE: external "qs"
1648
1648
  var external_qs_ = __webpack_require__(4);
@@ -2208,7 +2208,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2208
2208
  // CONCATENATED MODULE: ./packages/checkbox/src/main.vue?vue&type=script&lang=js&
2209
2209
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
2210
2210
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2211
- var componentNormalizer = __webpack_require__(0);
2211
+ var componentNormalizer = __webpack_require__(1);
2212
2212
 
2213
2213
  // CONCATENATED MODULE: ./packages/checkbox/src/main.vue
2214
2214
 
@@ -2251,14 +2251,14 @@ module.exports = require("qs");
2251
2251
  /***/ 5:
2252
2252
  /***/ (function(module, exports) {
2253
2253
 
2254
- module.exports = require("@eoss-design/color");
2254
+ module.exports = require("eoss-mobile-vant");
2255
2255
 
2256
2256
  /***/ }),
2257
2257
 
2258
2258
  /***/ 6:
2259
2259
  /***/ (function(module, exports) {
2260
2260
 
2261
- module.exports = require("eoss-mobile-vant");
2261
+ module.exports = require("@eoss-design/color");
2262
2262
 
2263
2263
  /***/ }),
2264
2264
 
package/lib/circle.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -263,7 +263,7 @@ render._withStripped = true
263
263
  // CONCATENATED MODULE: ./packages/circle/src/main.vue?vue&type=script&lang=js&
264
264
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
265
265
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
266
- var componentNormalizer = __webpack_require__(0);
266
+ var componentNormalizer = __webpack_require__(1);
267
267
 
268
268
  // CONCATENATED MODULE: ./packages/circle/src/main.vue
269
269
 
package/lib/count-down.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -263,7 +263,7 @@ render._withStripped = true
263
263
  // CONCATENATED MODULE: ./packages/count-down/src/main.vue?vue&type=script&lang=js&
264
264
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
265
265
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
266
- var componentNormalizer = __webpack_require__(0);
266
+ var componentNormalizer = __webpack_require__(1);
267
267
 
268
268
  // CONCATENATED MODULE: ./packages/count-down/src/main.vue
269
269
 
package/lib/date.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
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=7d5ec10e&
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=32e3f04e&
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -248,6 +248,23 @@ var render = function () {
248
248
  ),
249
249
  ]),
250
250
  ]),
251
+ _vm.clearable
252
+ ? _c("template", { slot: "right-icon" }, [
253
+ _c(
254
+ "span",
255
+ {
256
+ on: {
257
+ click: function ($event) {
258
+ $event.stopPropagation()
259
+ return _vm.handleClear($event)
260
+ },
261
+ },
262
+ },
263
+ [_c("van-icon", { attrs: { name: "close" } })],
264
+ 1
265
+ ),
266
+ ])
267
+ : _vm._e(),
251
268
  ],
252
269
  2
253
270
  ),
@@ -322,7 +339,7 @@ var staticRenderFns = []
322
339
  render._withStripped = true
323
340
 
324
341
 
325
- // CONCATENATED MODULE: ./packages/date/src/main.vue?vue&type=template&id=7d5ec10e&
342
+ // CONCATENATED MODULE: ./packages/date/src/main.vue?vue&type=template&id=32e3f04e&
326
343
 
327
344
  // 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&
328
345
  var date_timevue_type_template_id_df431e74_render = function () {
@@ -633,7 +650,7 @@ date_timevue_type_template_id_df431e74_render._withStripped = true
633
650
  // CONCATENATED MODULE: ./packages/date/src/date-time.vue?vue&type=script&lang=js&
634
651
  /* harmony default export */ var src_date_timevue_type_script_lang_js_ = (date_timevue_type_script_lang_js_);
635
652
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
636
- var componentNormalizer = __webpack_require__(0);
653
+ var componentNormalizer = __webpack_require__(1);
637
654
 
638
655
  // CONCATENATED MODULE: ./packages/date/src/date-time.vue
639
656
 
@@ -832,6 +849,10 @@ var date_picker_component = Object(componentNormalizer["a" /* default */])(
832
849
  //
833
850
  //
834
851
  //
852
+ //
853
+ //
854
+ //
855
+ //
835
856
 
836
857
 
837
858
 
@@ -917,6 +938,10 @@ var date_picker_component = Object(componentNormalizer["a" /* default */])(
917
938
  type: {
918
939
  type: String,
919
940
  default: 'datetime'
941
+ },
942
+ clearable: {
943
+ type: Boolean,
944
+ default: false
920
945
  }
921
946
  },
922
947
 
@@ -944,6 +969,11 @@ var date_picker_component = Object(componentNormalizer["a" /* default */])(
944
969
  },
945
970
 
946
971
  methods: {
972
+ handleClear: function handleClear() {
973
+ this.pickerValue = '';
974
+ this.lastValue = '';
975
+ this.$emit('input', this.pickerValue);
976
+ },
947
977
  onChange: function onChange(picker) {
948
978
  this.$emit('change', picker);
949
979
  },
package/lib/empty.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 1:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -238,7 +238,7 @@ render._withStripped = true
238
238
  // CONCATENATED MODULE: ./packages/empty/src/main.vue?vue&type=script&lang=js&
239
239
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
240
240
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
241
- var componentNormalizer = __webpack_require__(0);
241
+ var componentNormalizer = __webpack_require__(1);
242
242
 
243
243
  // CONCATENATED MODULE: ./packages/empty/src/main.vue
244
244