@deanwu/vue-component-library 1.0.33 → 1.0.34

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.
@@ -53981,6 +53981,17 @@ module.exports = function (NAME) {
53981
53981
  };
53982
53982
 
53983
53983
 
53984
+ /***/ }),
53985
+
53986
+ /***/ "7498":
53987
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
53988
+
53989
+ "use strict";
53990
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eacd");
53991
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0__);
53992
+ /* unused harmony reexport * */
53993
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default.a);
53994
+
53984
53995
  /***/ }),
53985
53996
 
53986
53997
  /***/ "77e9":
@@ -76155,6 +76166,13 @@ module.exports = function (done, value) {
76155
76166
  };
76156
76167
 
76157
76168
 
76169
+ /***/ }),
76170
+
76171
+ /***/ "eacd":
76172
+ /***/ (function(module, exports, __webpack_require__) {
76173
+
76174
+ // extracted by mini-css-extract-plugin
76175
+
76158
76176
  /***/ }),
76159
76177
 
76160
76178
  /***/ "ec5e":
@@ -78336,14 +78354,20 @@ var fonts = __webpack_require__("4e02");
78336
78354
  // EXTERNAL MODULE: ./src/assets/style/public.styl
78337
78355
  var style_public = __webpack_require__("1bfa");
78338
78356
 
78339
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70e68b08-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78340
- var buttonvue_type_template_id_66d63e1b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:"c-button",attrs:{"color":_vm.color,"size":_vm.size,"hollow":_vm.hollow,"disabled":!!_vm.disabled},on:{"click":function ($event) { return _vm.$emit('click', $event); }}},[_c('div',{staticClass:"flex-center"},[(_vm.icon)?_c('i',{staticClass:"c-icon",class:_vm.icon}):_vm._e(),_c('span',[_vm._t("default")],2)])])}
78357
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70e68b08-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/index.vue?vue&type=template&id=4d4ff9bd&
78358
+ var componentsvue_type_template_id_4d4ff9bd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('fieldset',[_c('legend',[_vm._v("消息弹窗")]),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.message()}}},[_vm._v("普通消息框")]),_c('c-button',{on:{"click":function($event){return _vm.message('success')}}},[_vm._v("成功消息框")]),_c('c-button',{on:{"click":function($event){return _vm.message('warn')}}},[_vm._v("警告消息框")]),_c('c-button',{on:{"click":function($event){return _vm.message('fail')}}},[_vm._v("失败消息框")])],1),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.notice()}}},[_vm._v("普通通知框")]),_c('c-button',{on:{"click":function($event){return _vm.notice('success')}}},[_vm._v("成功通知框")]),_c('c-button',{on:{"click":function($event){return _vm.notice('warn')}}},[_vm._v("警告通知框")]),_c('c-button',{on:{"click":function($event){return _vm.notice('fail')}}},[_vm._v("失败通知框")]),_c('c-button',{on:{"click":function($event){return _vm.noticeButton()}}},[_vm._v("带按钮的通知框")])],1),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.confirm('enquire')}}},[_vm._v("询问确认框")]),_c('c-button',{on:{"click":function($event){return _vm.confirm('warn')}}},[_vm._v("提醒确认框")])],1),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.loading()}}},[_vm._v("普通加载框")]),_c('c-button',{on:{"click":function($event){return _vm.loading('加载中')}}},[_vm._v("带文案加载框")])],1)]),_c('fieldset',[_c('legend',[_vm._v("会话弹窗")]),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.dialog('popup')}}},[_vm._v("弹出模式会话框")]),_c('c-button',{on:{"click":function($event){return _vm.dialog('slide')}}},[_vm._v("侧滑模式会话框")])],1)]),_c('c-dialog',{ref:"popup",attrs:{"title":"会话框标题"}},[_c('div',{staticStyle:{"height":"199px"}},[_vm._v(" 会话框内容 ")])]),_c('c-dialog',{ref:"slide",attrs:{"mode":"slide","title":"会话框标题"}},[_c('div',{staticStyle:{"height":"199px"}},[_vm._v(" 会话框内容 ")])]),_c('fieldset',[_c('legend',[_vm._v("媒体预览")]),_c('div',[_c('c-button',{on:{"click":function($event){return _vm.preview('https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg')}}},[_vm._v("图片预览")]),_c('c-button',{on:{"click":function($event){return _vm.preview('https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4')}}},[_vm._v("视频预览")])],1)]),_c('fieldset',[_c('legend',[_vm._v("按钮(点击按钮复制代码)")]),_vm._l((_vm.buttonSize),function(size,i){return _c('div',{key:i},[_c('c-button',{key:("n" + i),attrs:{"size":size}},[_vm._v("测试")]),_vm._l((_vm.buttonHollow),function(hollow,j){return _vm._l((_vm.buttonColor),function(color,k){return _c('c-button',{key:("" + j + k),attrs:{"size":size,"color":color,"hollow":hollow}},[_vm._v("测试")])})})],2)}),_c('div',[_c('c-button',{attrs:{"size":"l","disabled":""}},[_vm._v("测试")])],1)],2),_c('fieldset',[_c('legend',[_vm._v("输入框")]),_c('div',{staticStyle:{"width":"400px"}},[_c('p',[_c('c-input')],1),_c('br'),_c('p',[_c('c-input',{attrs:{"disabled":""}})],1),_c('br'),_c('p',[_c('c-input',{attrs:{"type":"number","decimal":"2","range":"0,9999","unit":"元"}})],1),_c('br'),_c('p',[_c('c-input',{attrs:{"type":"stepper","step":"10","range":"0,100"}})],1),_c('br'),_c('p',[_c('c-input',{attrs:{"type":"stepper","step":"0.1","range":"0,1","step-controls":"side"}})],1),_c('br'),_c('p',[_c('c-input',{attrs:{"type":"password","visible":""}})],1),_c('br'),_c('p',[_c('c-input',{attrs:{"type":"textarea","maxlength":"100"}})],1)])]),_c('fieldset',[_c('legend',[_vm._v("单复选框")]),_c('div',[_c('p',[_c('c-radio-group',{attrs:{"value":"2"}},_vm._l((_vm.options),function(item,i){return _c('c-radio',{key:i,attrs:{"value":item.value}},[_vm._v(_vm._s(item.name))])}),1)],1),_c('p',[_c('c-radio-group',{attrs:{"options":_vm.options,"value":"3","disabled":""}})],1),_c('p',[_c('c-checkbox-group',{attrs:{"limit":"2"}},_vm._l((_vm.options),function(item,i){return _c('c-checkbox',{key:i,attrs:{"value":item.value}},[_vm._v(_vm._s(item.name))])}),1)],1),_c('p',[_c('c-checkbox-group',{attrs:{"options":_vm.options,"value":"2,3","disabled":""}})],1)])]),_c('fieldset',[_c('legend',[_vm._v("选择器")]),_c('div',{staticStyle:{"width":"400px"}},[_c('p',[_c('c-select',{attrs:{"options":_vm.options,"multiple":""}})],1),_c('br'),_c('p',[_c('c-select',{attrs:{"options":_vm.options,"value":"1"}})],1),_c('br'),_c('p',[_c('c-region',{attrs:{"province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),_c('br'),_c('p',[_c('c-datetime')],1),_c('br'),_c('p',[_c('c-datetime',{attrs:{"range":""}})],1),_c('br'),_c('p',[_c('c-color')],1),_c('br'),_c('p',[_c('c-switch')],1)])]),_c('fieldset',[_c('legend',[_vm._v("编辑器")]),_c('div',{staticStyle:{"width":"800px"}},[_c('c-editor')],1)]),_c('fieldset',[_c('legend',[_vm._v("文件")]),_c('div',[_c('p',[_c('c-upload-file',{attrs:{"value":"http://placehold.it/750x750/666/fff.png,https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4","type":"image,video","limit":"3","media":""},scopedSlots:_vm._u([{key:"tip",fn:function(ref){
78359
+ var type = ref.type;
78360
+ return [_c('p',[_vm._v("tip插槽")]),_c('p',[_vm._v(_vm._s(type))])]}}])})],1),_c('br'),_c('p',[_c('c-upload-file',{attrs:{"value":"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png","type":"word,excel","tip":"tip属性"}})],1),_c('br'),_c('p',[_c('c-file',{attrs:{"src":"http://placehold.it/750x750/666/fff.png"}})],1),_c('br'),_c('p',[_c('c-file',{attrs:{"src":"http://placehold.it/750x750/666/fff.png","media":""}})],1)])]),_c('fieldset',[_c('legend',[_vm._v("链接")]),_c('div',[_c('p',[_c('c-link',{attrs:{"href":"https://www.baidu.com/","target":"_blank"}})],1),_c('br'),_c('p',[_c('c-link',{attrs:{"href":"https://www.baidu.com/","target":"_blank"}},[_vm._v("链接名称")])],1)])]),_c('fieldset',[_c('legend',[_vm._v("表格")]),_c('div',[_c('c-table',{ref:"table",attrs:{"height":"auto","border":"","data":_vm.tableData}},[_c('c-table-column',{attrs:{"type":"selector"}}),_c('c-table-column',{attrs:{"label":"展开列","type":"expand"}}),_c('c-table-column',{attrs:{"label":"普通列","name":"state"}}),_c('c-table-column',{attrs:{"label":"自定义内容列"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
78361
+ var data = ref.data;
78362
+ return [_c('span',[_vm._v("id: "+_vm._s(data.id))])]}}])}),_c('c-table-column',{attrs:{"label":"排序列","type":"sort"}}),_c('c-table-column',{attrs:{"label":"多级表头"}},[_c('c-table-column',{attrs:{"label":"子级"}}),_c('c-table-column',{attrs:{"label":"子级"}})],1),_c('c-table-column',{attrs:{"type":"button","fixed":"right","label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
78363
+ var data = ref.data;
78364
+ return [_c('c-table-button',[_vm._v("按钮")])]}}])})],1)],1)]),_c('fieldset',[_c('legend',[_vm._v("表单")]),_c('div',[_c('c-form',{ref:"form"},[_c('c-form-item',{attrs:{"label":"字段名"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"带星号的字段","required":""}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"提示信息","tip":"提示信息"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"自定义提示信息"},scopedSlots:_vm._u([{key:"tip",fn:function(){return [_c('c-link',{attrs:{"href":"https://www.baidu.com/"}},[_vm._v("查看说明")])]},proxy:true}])},[_c('c-input',{attrs:{"name":"input"}})],1)],1),_c('c-button',{on:{"click":_vm.getFormData}},[_vm._v("获取数据")]),_c('c-button',{on:{"click":_vm.setFormData}},[_vm._v("回填数据")]),_c('c-button',{on:{"click":_vm.clearFormData}},[_vm._v("清空数据")])],1)]),_c('fieldset',[_c('legend',[_vm._v("一行多项表单")]),_c('div',[_c('c-form',{attrs:{"column":"2"}},[_c('c-form-item',{attrs:{"label":"字段1"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"字段2"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"字段3","colspan":"2","tip":"单独设置占一行"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"字段4"}},[_c('c-input',{attrs:{"name":"input"}})],1)],1)],1)]),_c('fieldset',[_c('legend',[_vm._v("多列表单")]),_c('div',[_c('c-form',{attrs:{"column":"2"}},[_c('c-form-column',[_c('c-form-item',{attrs:{"label":"字段1"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"字段2"}},[_c('c-input',{attrs:{"name":"input"}})],1)],1),_c('c-form-column',[_c('c-form-item',{attrs:{"label":"字段3"}},[_c('c-input',{attrs:{"name":"input"}})],1),_c('c-form-item',{attrs:{"label":"字段4"}},[_c('c-input',{attrs:{"name":"input"}})],1)],1)],1)],1)]),_c('fieldset',[_c('legend',[_vm._v("详情")]),_c('div',[_c('c-detail',{attrs:{"column":"3"}},[_c('c-detail-item',{attrs:{"label":"字段名"}},[_vm._v(" 内容 ")]),_c('c-detail-item',{attrs:{"label":"字段名"}},[_vm._v(" 内容 ")]),_c('c-detail-item',{attrs:{"label":"字段名"}},[_vm._v(" 内容 ")]),_c('c-detail-item',{attrs:{"label":"字段名","colspan":"2"}},[_vm._v(" 单独设置占两列 ")]),_c('c-detail-item',{attrs:{"label":"字段名"}},[_vm._v(" 内容 ")])],1)],1)])],1)}
78341
78365
  var staticRenderFns = []
78342
78366
 
78343
78367
 
78344
- // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78368
+ // CONCATENATED MODULE: ./src/components/index.vue?vue&type=template&id=4d4ff9bd&
78345
78369
 
78346
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/unit/button.vue?vue&type=script&lang=js&
78370
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/index.vue?vue&type=script&lang=js&
78347
78371
  //
78348
78372
  //
78349
78373
  //
@@ -78353,28 +78377,407 @@ var staticRenderFns = []
78353
78377
  //
78354
78378
  //
78355
78379
  //
78356
- /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
78357
- name: 'cButton',
78358
- props: {
78359
- size: {
78360
- // 按钮尺寸(s:小号;m:中号;l:大号)
78361
- type: String,
78362
- default: 's'
78380
+ //
78381
+ //
78382
+ //
78383
+ //
78384
+ //
78385
+ //
78386
+ //
78387
+ //
78388
+ //
78389
+ //
78390
+ //
78391
+ //
78392
+ //
78393
+ //
78394
+ //
78395
+ //
78396
+ //
78397
+ //
78398
+ //
78399
+ //
78400
+ //
78401
+ //
78402
+ //
78403
+ //
78404
+ //
78405
+ //
78406
+ //
78407
+ //
78408
+ //
78409
+ //
78410
+ //
78411
+ //
78412
+ //
78413
+ //
78414
+ //
78415
+ //
78416
+ //
78417
+ //
78418
+ //
78419
+ //
78420
+ //
78421
+ //
78422
+ //
78423
+ //
78424
+ //
78425
+ //
78426
+ //
78427
+ //
78428
+ //
78429
+ //
78430
+ //
78431
+ //
78432
+ //
78433
+ //
78434
+ //
78435
+ //
78436
+ //
78437
+ //
78438
+ //
78439
+ //
78440
+ //
78441
+ //
78442
+ //
78443
+ //
78444
+ //
78445
+ //
78446
+ //
78447
+ //
78448
+ //
78449
+ //
78450
+ //
78451
+ //
78452
+ //
78453
+ //
78454
+ //
78455
+ //
78456
+ //
78457
+ //
78458
+ //
78459
+ //
78460
+ //
78461
+ //
78462
+ //
78463
+ //
78464
+ //
78465
+ //
78466
+ //
78467
+ //
78468
+ //
78469
+ //
78470
+ //
78471
+ //
78472
+ //
78473
+ //
78474
+ //
78475
+ //
78476
+ //
78477
+ //
78478
+ //
78479
+ //
78480
+ //
78481
+ //
78482
+ //
78483
+ //
78484
+ //
78485
+ //
78486
+ //
78487
+ //
78488
+ //
78489
+ //
78490
+ //
78491
+ //
78492
+ //
78493
+ //
78494
+ //
78495
+ //
78496
+ //
78497
+ //
78498
+ //
78499
+ //
78500
+ //
78501
+ //
78502
+ //
78503
+ //
78504
+ //
78505
+ //
78506
+ //
78507
+ //
78508
+ //
78509
+ //
78510
+ //
78511
+ //
78512
+ //
78513
+ //
78514
+ //
78515
+ //
78516
+ //
78517
+ //
78518
+ //
78519
+ //
78520
+ //
78521
+ //
78522
+ //
78523
+ //
78524
+ //
78525
+ //
78526
+ //
78527
+ //
78528
+ //
78529
+ //
78530
+ //
78531
+ //
78532
+ //
78533
+ //
78534
+ //
78535
+ //
78536
+ //
78537
+ //
78538
+ //
78539
+ //
78540
+ //
78541
+ //
78542
+ //
78543
+ //
78544
+ //
78545
+ //
78546
+ //
78547
+ //
78548
+ //
78549
+ //
78550
+ //
78551
+ //
78552
+ //
78553
+ //
78554
+ //
78555
+ //
78556
+ //
78557
+ //
78558
+ //
78559
+ //
78560
+ //
78561
+ //
78562
+ //
78563
+ //
78564
+ //
78565
+ //
78566
+ //
78567
+ //
78568
+ //
78569
+ //
78570
+ //
78571
+ //
78572
+ //
78573
+ //
78574
+ //
78575
+ //
78576
+ //
78577
+ //
78578
+ //
78579
+ //
78580
+ //
78581
+ //
78582
+ //
78583
+ //
78584
+ //
78585
+ //
78586
+ //
78587
+ //
78588
+ //
78589
+ //
78590
+ //
78591
+ //
78592
+ //
78593
+ //
78594
+ //
78595
+ //
78596
+ //
78597
+ //
78598
+ //
78599
+ //
78600
+ //
78601
+ //
78602
+ //
78603
+ //
78604
+ //
78605
+ //
78606
+ //
78607
+ //
78608
+ //
78609
+ //
78610
+ //
78611
+ //
78612
+ //
78613
+ //
78614
+ //
78615
+ //
78616
+ //
78617
+ //
78618
+ //
78619
+ //
78620
+ //
78621
+ //
78622
+ //
78623
+ //
78624
+ //
78625
+ //
78626
+ //
78627
+ //
78628
+ //
78629
+ //
78630
+ //
78631
+ //
78632
+ //
78633
+ //
78634
+ //
78635
+ //
78636
+ //
78637
+ //
78638
+ //
78639
+ //
78640
+ //
78641
+ //
78642
+ //
78643
+ //
78644
+ //
78645
+ //
78646
+ //
78647
+ //
78648
+ //
78649
+ //
78650
+ //
78651
+ //
78652
+ //
78653
+ //
78654
+ //
78655
+ //
78656
+ //
78657
+ //
78658
+ //
78659
+ //
78660
+ //
78661
+ //
78662
+ //
78663
+ //
78664
+ //
78665
+ //
78666
+ //
78667
+ //
78668
+ //
78669
+ //
78670
+ //
78671
+ //
78672
+ /* harmony default export */ var componentsvue_type_script_lang_js_ = ({
78673
+ name: 'vueComponentLibrary',
78674
+ data: function data() {
78675
+ return {
78676
+ buttonSize: ['s', 'm', 'l'],
78677
+ buttonColor: ['red', 'green', 'blue', 'yellow'],
78678
+ buttonHollow: [true, false],
78679
+ options: [{
78680
+ name: '选项一',
78681
+ value: 1
78682
+ }, {
78683
+ name: '选项二',
78684
+ value: 2,
78685
+ children: [{
78686
+ name: '选项二 1',
78687
+ value: 21
78688
+ }, {
78689
+ name: '选项二 2',
78690
+ value: 22,
78691
+ children: []
78692
+ }, {
78693
+ name: '选项二 3',
78694
+ value: 23
78695
+ }]
78696
+ }, {
78697
+ name: '选项三',
78698
+ value: 3
78699
+ }],
78700
+ tableData: [{
78701
+ id: 1,
78702
+ state: 1
78703
+ }, {
78704
+ id: 2,
78705
+ state: 2
78706
+ }, {
78707
+ id: 3,
78708
+ state: 2
78709
+ }]
78710
+ };
78711
+ },
78712
+ methods: {
78713
+ message: function message(type) {
78714
+ this.$message({
78715
+ type: type,
78716
+ message: '消息框内容'
78717
+ });
78363
78718
  },
78364
- color: String,
78365
- // 按钮颜色(default: 系统辅色;sys:系统主色;)
78366
- hollow: Boolean,
78367
- // 是否为空心按钮
78368
- disabled: Boolean,
78369
- // 禁用
78370
- icon: String // 按钮图标
78371
-
78719
+ notice: function notice(type) {
78720
+ this.$notice({
78721
+ type: type,
78722
+ title: '通知标题',
78723
+ message: '通知框内容'
78724
+ });
78725
+ },
78726
+ noticeButton: function noticeButton() {
78727
+ this.$notice({
78728
+ title: '通知标题',
78729
+ message: '通知框内容',
78730
+ button: [{
78731
+ name: '不再提醒',
78732
+ callback: function callback() {
78733
+ console.log(0);
78734
+ }
78735
+ }]
78736
+ });
78737
+ },
78738
+ confirm: function confirm(type) {
78739
+ this.$confirm({
78740
+ type: type,
78741
+ title: '确认框',
78742
+ message: '确认内容',
78743
+ resolve: function resolve() {
78744
+ console.log('resolve');
78745
+ },
78746
+ cancel: function cancel() {
78747
+ console.log('cancel');
78748
+ }
78749
+ });
78750
+ },
78751
+ loading: function loading(message) {
78752
+ this.$loading({
78753
+ message: message
78754
+ });
78755
+ },
78756
+ dialog: function dialog(name) {
78757
+ this.$refs[name].open();
78758
+ },
78759
+ preview: function preview(src) {
78760
+ this.$preview({
78761
+ src: src
78762
+ });
78763
+ },
78764
+ setFormData: function setFormData() {
78765
+ this.$refs.form.set({
78766
+ input: '1'
78767
+ });
78768
+ },
78769
+ getFormData: function getFormData() {
78770
+ console.log(this.$refs.form.get());
78771
+ },
78772
+ clearFormData: function clearFormData() {
78773
+ this.$refs.form.clear();
78774
+ }
78372
78775
  }
78373
78776
  });
78374
- // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
78375
- /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
78376
- // EXTERNAL MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=66d63e1b&lang=stylus&scoped=true&
78377
- var buttonvue_type_style_index_0_id_66d63e1b_lang_stylus_scoped_true_ = __webpack_require__("3229");
78777
+ // CONCATENATED MODULE: ./src/components/index.vue?vue&type=script&lang=js&
78778
+ /* harmony default export */ var src_componentsvue_type_script_lang_js_ = (componentsvue_type_script_lang_js_);
78779
+ // EXTERNAL MODULE: ./src/components/index.vue?vue&type=style&index=0&lang=stylus&
78780
+ var componentsvue_type_style_index_0_lang_stylus_ = __webpack_require__("7498");
78378
78781
 
78379
78782
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
78380
78783
  /* globals __VUE_SSR_CONTEXT__ */
@@ -78476,7 +78879,7 @@ function normalizeComponent (
78476
78879
  }
78477
78880
  }
78478
78881
 
78479
- // CONCATENATED MODULE: ./src/components/unit/button.vue
78882
+ // CONCATENATED MODULE: ./src/components/index.vue
78480
78883
 
78481
78884
 
78482
78885
 
@@ -78486,9 +78889,70 @@ function normalizeComponent (
78486
78889
  /* normalize component */
78487
78890
 
78488
78891
  var component = normalizeComponent(
78892
+ src_componentsvue_type_script_lang_js_,
78893
+ componentsvue_type_template_id_4d4ff9bd_render,
78894
+ staticRenderFns,
78895
+ false,
78896
+ null,
78897
+ null,
78898
+ null
78899
+
78900
+ )
78901
+
78902
+ /* harmony default export */ var components = (component.exports);
78903
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70e68b08-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78904
+ var buttonvue_type_template_id_66d63e1b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:"c-button",attrs:{"color":_vm.color,"size":_vm.size,"hollow":_vm.hollow,"disabled":!!_vm.disabled},on:{"click":function ($event) { return _vm.$emit('click', $event); }}},[_c('div',{staticClass:"flex-center"},[(_vm.icon)?_c('i',{staticClass:"c-icon",class:_vm.icon}):_vm._e(),_c('span',[_vm._t("default")],2)])])}
78905
+ var buttonvue_type_template_id_66d63e1b_scoped_true_staticRenderFns = []
78906
+
78907
+
78908
+ // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78909
+
78910
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/unit/button.vue?vue&type=script&lang=js&
78911
+ //
78912
+ //
78913
+ //
78914
+ //
78915
+ //
78916
+ //
78917
+ //
78918
+ //
78919
+ //
78920
+ /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
78921
+ name: 'cButton',
78922
+ props: {
78923
+ size: {
78924
+ // 按钮尺寸(s:小号;m:中号;l:大号)
78925
+ type: String,
78926
+ default: 's'
78927
+ },
78928
+ color: String,
78929
+ // 按钮颜色(default: 系统辅色;sys:系统主色;)
78930
+ hollow: Boolean,
78931
+ // 是否为空心按钮
78932
+ disabled: Boolean,
78933
+ // 禁用
78934
+ icon: String // 按钮图标
78935
+
78936
+ }
78937
+ });
78938
+ // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
78939
+ /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
78940
+ // EXTERNAL MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=66d63e1b&lang=stylus&scoped=true&
78941
+ var buttonvue_type_style_index_0_id_66d63e1b_lang_stylus_scoped_true_ = __webpack_require__("3229");
78942
+
78943
+ // CONCATENATED MODULE: ./src/components/unit/button.vue
78944
+
78945
+
78946
+
78947
+
78948
+
78949
+
78950
+ /* normalize component */
78951
+
78952
+ var button_component = normalizeComponent(
78489
78953
  unit_buttonvue_type_script_lang_js_,
78490
78954
  buttonvue_type_template_id_66d63e1b_scoped_true_render,
78491
- staticRenderFns,
78955
+ buttonvue_type_template_id_66d63e1b_scoped_true_staticRenderFns,
78492
78956
  false,
78493
78957
  null,
78494
78958
  "66d63e1b",
@@ -78496,7 +78960,7 @@ var component = normalizeComponent(
78496
78960
 
78497
78961
  )
78498
78962
 
78499
- /* harmony default export */ var unit_button = (component.exports);
78963
+ /* harmony default export */ var unit_button = (button_component.exports);
78500
78964
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70e68b08-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/unit/input.vue?vue&type=template&id=8c6235c2&scoped=true&
78501
78965
  var inputvue_type_template_id_8c6235c2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.type != 'hidden'),expression:"type != 'hidden'"}],staticClass:"c-input",class:{'c-textarea': _vm.type == 'textarea', 'z-dis': _vm.disabled}},[(_vm.type == 'textarea')?_c('div',[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.valueData),expression:"valueData"}],ref:"input",style:({'padding-bottom': _vm.maxlength ? '20px' : '8px'}),attrs:{"placeholder":_vm.placeholder,"maxlength":_vm.maxlength,"disabled":_vm.disabled,"readonly":_vm.readonly},domProps:{"value":(_vm.valueData)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.valueData=$event.target.value},_vm.inputHandle],"focus":_vm.inputHandle,"blur":_vm.inputHandle,"change":function($event){return _vm.$emit('change')}}}),(_vm.maxlength)?_c('span',{staticClass:"c-input-length"},[_vm._v(_vm._s(_vm.valueData.length)+" / "+_vm._s(_vm.maxlength))]):_vm._e()]):_c('div',{staticClass:"flex"},[(_vm.type == 'stepper' && _vm.stepControls == 'both')?_c('button',{staticClass:"c-input-step flex-center",class:{'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData},on:{"click":function($event){return _vm.stepHandle(-1)}}},[_c('i',{staticClass:"c-icon c-icon-minus"})]):_vm._e(),((_vm.compType)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.valueData),expression:"valueData"}],ref:"input",staticClass:"flex-grow",attrs:{"placeholder":_vm.placeholder,"maxlength":_vm.maxlength,"disabled":_vm.disabled,"readonly":_vm.readonly,"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.valueData)?_vm._i(_vm.valueData,null)>-1:(_vm.valueData)},on:{"input":_vm.inputHandle,"focus":_vm.inputHandle,"blur":_vm.inputHandle,"change":[function($event){var $$a=_vm.valueData,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.valueData=$$a.concat([$$v]))}else{$$i>-1&&(_vm.valueData=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.valueData=$$c}},function($event){return _vm.$emit('change')}]}}):((_vm.compType)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.valueData),expression:"valueData"}],ref:"input",staticClass:"flex-grow",attrs:{"placeholder":_vm.placeholder,"maxlength":_vm.maxlength,"disabled":_vm.disabled,"readonly":_vm.readonly,"type":"radio"},domProps:{"checked":_vm._q(_vm.valueData,null)},on:{"input":_vm.inputHandle,"focus":_vm.inputHandle,"blur":_vm.inputHandle,"change":[function($event){_vm.valueData=null},function($event){return _vm.$emit('change')}]}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.valueData),expression:"valueData"}],ref:"input",staticClass:"flex-grow",attrs:{"placeholder":_vm.placeholder,"maxlength":_vm.maxlength,"disabled":_vm.disabled,"readonly":_vm.readonly,"type":_vm.compType},domProps:{"value":(_vm.valueData)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.valueData=$event.target.value},_vm.inputHandle],"focus":_vm.inputHandle,"blur":_vm.inputHandle,"change":function($event){return _vm.$emit('change')}}}),(_vm.clear && _vm.valueData)?_c('a',{staticClass:"c-input-handle clear flex-center",on:{"click":_vm.clearHandle}},[_c('i',{staticClass:"c-icon c-icon-clear"})]):_vm._e(),(_vm.visible)?_c('a',{staticClass:"c-input-handle flex-center",on:{"click":function($event){_vm.visibleState = !_vm.visibleState}}},[_c('i',{staticClass:"c-icon c-icon-eyes",class:{'c-icon-eyes-close': _vm.visibleState}})]):_vm._e(),_c('div',{staticClass:"flex-column"},[(_vm.type == 'stepper')?_c('button',{staticClass:"c-input-step flex-center flex-grow",class:{'z-dis': _vm.valueData !== '' && _vm.maxRange !== false && _vm.maxRange == _vm.valueData},on:{"click":function($event){return _vm.stepHandle(1)}}},[_c('i',{staticClass:"c-icon c-icon-plus"})]):_vm._e(),(_vm.type == 'stepper' && _vm.stepControls == 'side')?_c('button',{staticClass:"c-input-step flex-center flex-grow",class:{'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData},on:{"click":function($event){return _vm.stepHandle(-1)}}},[_c('i',{staticClass:"c-icon c-icon-minus"})]):_vm._e()]),(_vm.unit)?_c('span',{staticClass:"c-input-unit flex-center"},[_vm._v(_vm._s(_vm.unit))]):_vm._e()])])}
78502
78966
  var inputvue_type_template_id_8c6235c2_scoped_true_staticRenderFns = []
@@ -82381,7 +82845,7 @@ var buttonvue_type_template_id_830bc42a_staticRenderFns = []
82381
82845
 
82382
82846
  /* normalize component */
82383
82847
 
82384
- var button_component = normalizeComponent(
82848
+ var table_button_component = normalizeComponent(
82385
82849
  components_table_buttonvue_type_script_lang_js_,
82386
82850
  buttonvue_type_template_id_830bc42a_render,
82387
82851
  buttonvue_type_template_id_830bc42a_staticRenderFns,
@@ -82392,7 +82856,7 @@ var button_component = normalizeComponent(
82392
82856
 
82393
82857
  )
82394
82858
 
82395
- /* harmony default export */ var table_button = (button_component.exports);
82859
+ /* harmony default export */ var table_button = (table_button_component.exports);
82396
82860
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70e68b08-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/index.vue?vue&type=template&id=4007987e&
82397
82861
  var formvue_type_template_id_4007987e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-form"},[_c('div',{staticClass:"c-form-content"},[_vm._t("default")],2)])}
82398
82862
  var formvue_type_template_id_4007987e_staticRenderFns = []
@@ -83106,7 +83570,8 @@ var theme_chalk = __webpack_require__("0fae");
83106
83570
 
83107
83571
 
83108
83572
 
83109
- var COMPS = [unit_button, input, unit_radio, radio_group, unit_checkbox, checkbox_group, unit_select, region, datetime, color, unit_switch, upload_file, file, editor, unit_link, dialog, components_table, column, table_button, components_form, form_item, form_column, detail, detail_item];
83573
+
83574
+ var COMPS = [components, unit_button, input, unit_radio, radio_group, unit_checkbox, checkbox_group, unit_select, region, datetime, color, unit_switch, upload_file, file, editor, unit_link, dialog, components_table, column, table_button, components_form, form_item, form_column, detail, detail_item];
83110
83575
  var DYNAMIC_COMPS = [loading, message, notice, popup_confirm, preview];
83111
83576
 
83112
83577
  var components_install = function install(Vue, config) {
@@ -83178,11 +83643,11 @@ var components_install = function install(Vue, config) {
83178
83643
  });
83179
83644
  };
83180
83645
 
83181
- /* harmony default export */ var components = (components_install);
83646
+ /* harmony default export */ var src_components = (components_install);
83182
83647
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
83183
83648
 
83184
83649
 
83185
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components);
83650
+ /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_components);
83186
83651
 
83187
83652
 
83188
83653