@deanwu/vue-component-library 1.0.33 → 1.0.35

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.
@@ -50247,6 +50247,17 @@ if (typeof window !== 'undefined' && window.Vue) {
50247
50247
 
50248
50248
  /***/ }),
50249
50249
 
50250
+ /***/ "5f19":
50251
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50252
+
50253
+ "use strict";
50254
+ /* 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_id_75b9b38d_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7603");
50255
+ /* 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_id_75b9b38d_lang_stylus_scoped_true___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_id_75b9b38d_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
50256
+ /* unused harmony reexport * */
50257
+ /* 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_id_75b9b38d_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
50258
+
50259
+ /***/ }),
50260
+
50250
50261
  /***/ "5f86":
50251
50262
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
50252
50263
 
@@ -53972,6 +53983,13 @@ module.exports = function (NAME) {
53972
53983
  };
53973
53984
 
53974
53985
 
53986
+ /***/ }),
53987
+
53988
+ /***/ "7603":
53989
+ /***/ (function(module, exports, __webpack_require__) {
53990
+
53991
+ // extracted by mini-css-extract-plugin
53992
+
53975
53993
  /***/ }),
53976
53994
 
53977
53995
  /***/ "77e9":
@@ -78327,14 +78345,20 @@ var fonts = __webpack_require__("4e02");
78327
78345
  // EXTERNAL MODULE: ./src/assets/style/public.styl
78328
78346
  var style_public = __webpack_require__("1bfa");
78329
78347
 
78330
- // 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&
78331
- 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)])])}
78348
+ // 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=75b9b38d&scoped=true&
78349
+ var componentsvue_type_template_id_75b9b38d_scoped_true_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){
78350
+ var type = ref.type;
78351
+ 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){
78352
+ var data = ref.data;
78353
+ 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){
78354
+ var data = ref.data;
78355
+ 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)}
78332
78356
  var staticRenderFns = []
78333
78357
 
78334
78358
 
78335
- // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78359
+ // CONCATENATED MODULE: ./src/components/index.vue?vue&type=template&id=75b9b38d&scoped=true&
78336
78360
 
78337
- // 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&
78361
+ // 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&
78338
78362
  //
78339
78363
  //
78340
78364
  //
@@ -78344,28 +78368,407 @@ var staticRenderFns = []
78344
78368
  //
78345
78369
  //
78346
78370
  //
78347
- /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
78348
- name: 'cButton',
78349
- props: {
78350
- size: {
78351
- // 按钮尺寸(s:小号;m:中号;l:大号)
78352
- type: String,
78353
- default: 's'
78371
+ //
78372
+ //
78373
+ //
78374
+ //
78375
+ //
78376
+ //
78377
+ //
78378
+ //
78379
+ //
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
+ /* harmony default export */ var componentsvue_type_script_lang_js_ = ({
78664
+ name: 'vueComponentLibrary',
78665
+ data: function data() {
78666
+ return {
78667
+ buttonSize: ['s', 'm', 'l'],
78668
+ buttonColor: ['red', 'green', 'blue', 'yellow'],
78669
+ buttonHollow: [true, false],
78670
+ options: [{
78671
+ name: '选项一',
78672
+ value: 1
78673
+ }, {
78674
+ name: '选项二',
78675
+ value: 2,
78676
+ children: [{
78677
+ name: '选项二 1',
78678
+ value: 21
78679
+ }, {
78680
+ name: '选项二 2',
78681
+ value: 22,
78682
+ children: []
78683
+ }, {
78684
+ name: '选项二 3',
78685
+ value: 23
78686
+ }]
78687
+ }, {
78688
+ name: '选项三',
78689
+ value: 3
78690
+ }],
78691
+ tableData: [{
78692
+ id: 1,
78693
+ state: 1
78694
+ }, {
78695
+ id: 2,
78696
+ state: 2
78697
+ }, {
78698
+ id: 3,
78699
+ state: 2
78700
+ }]
78701
+ };
78702
+ },
78703
+ methods: {
78704
+ message: function message(type) {
78705
+ this.$message({
78706
+ type: type,
78707
+ message: '消息框内容'
78708
+ });
78354
78709
  },
78355
- color: String,
78356
- // 按钮颜色(default: 系统辅色;sys:系统主色;)
78357
- hollow: Boolean,
78358
- // 是否为空心按钮
78359
- disabled: Boolean,
78360
- // 禁用
78361
- icon: String // 按钮图标
78362
-
78710
+ notice: function notice(type) {
78711
+ this.$notice({
78712
+ type: type,
78713
+ title: '通知标题',
78714
+ message: '通知框内容'
78715
+ });
78716
+ },
78717
+ noticeButton: function noticeButton() {
78718
+ this.$notice({
78719
+ title: '通知标题',
78720
+ message: '通知框内容',
78721
+ button: [{
78722
+ name: '不再提醒',
78723
+ callback: function callback() {
78724
+ console.log(0);
78725
+ }
78726
+ }]
78727
+ });
78728
+ },
78729
+ confirm: function confirm(type) {
78730
+ this.$confirm({
78731
+ type: type,
78732
+ title: '确认框',
78733
+ message: '确认内容',
78734
+ resolve: function resolve() {
78735
+ console.log('resolve');
78736
+ },
78737
+ cancel: function cancel() {
78738
+ console.log('cancel');
78739
+ }
78740
+ });
78741
+ },
78742
+ loading: function loading(message) {
78743
+ this.$loading({
78744
+ message: message
78745
+ });
78746
+ },
78747
+ dialog: function dialog(name) {
78748
+ this.$refs[name].open();
78749
+ },
78750
+ preview: function preview(src) {
78751
+ this.$preview({
78752
+ src: src
78753
+ });
78754
+ },
78755
+ setFormData: function setFormData() {
78756
+ this.$refs.form.set({
78757
+ input: '1'
78758
+ });
78759
+ },
78760
+ getFormData: function getFormData() {
78761
+ console.log(this.$refs.form.get());
78762
+ },
78763
+ clearFormData: function clearFormData() {
78764
+ this.$refs.form.clear();
78765
+ }
78363
78766
  }
78364
78767
  });
78365
- // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
78366
- /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
78367
- // EXTERNAL MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=66d63e1b&lang=stylus&scoped=true&
78368
- var buttonvue_type_style_index_0_id_66d63e1b_lang_stylus_scoped_true_ = __webpack_require__("3229");
78768
+ // CONCATENATED MODULE: ./src/components/index.vue?vue&type=script&lang=js&
78769
+ /* harmony default export */ var src_componentsvue_type_script_lang_js_ = (componentsvue_type_script_lang_js_);
78770
+ // EXTERNAL MODULE: ./src/components/index.vue?vue&type=style&index=0&id=75b9b38d&lang=stylus&scoped=true&
78771
+ var componentsvue_type_style_index_0_id_75b9b38d_lang_stylus_scoped_true_ = __webpack_require__("5f19");
78369
78772
 
78370
78773
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
78371
78774
  /* globals __VUE_SSR_CONTEXT__ */
@@ -78467,7 +78870,7 @@ function normalizeComponent (
78467
78870
  }
78468
78871
  }
78469
78872
 
78470
- // CONCATENATED MODULE: ./src/components/unit/button.vue
78873
+ // CONCATENATED MODULE: ./src/components/index.vue
78471
78874
 
78472
78875
 
78473
78876
 
@@ -78477,9 +78880,70 @@ function normalizeComponent (
78477
78880
  /* normalize component */
78478
78881
 
78479
78882
  var component = normalizeComponent(
78883
+ src_componentsvue_type_script_lang_js_,
78884
+ componentsvue_type_template_id_75b9b38d_scoped_true_render,
78885
+ staticRenderFns,
78886
+ false,
78887
+ null,
78888
+ "75b9b38d",
78889
+ null
78890
+
78891
+ )
78892
+
78893
+ /* harmony default export */ var components = (component.exports);
78894
+ // 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&
78895
+ 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)])])}
78896
+ var buttonvue_type_template_id_66d63e1b_scoped_true_staticRenderFns = []
78897
+
78898
+
78899
+ // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=template&id=66d63e1b&scoped=true&
78900
+
78901
+ // 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&
78902
+ //
78903
+ //
78904
+ //
78905
+ //
78906
+ //
78907
+ //
78908
+ //
78909
+ //
78910
+ //
78911
+ /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
78912
+ name: 'cButton',
78913
+ props: {
78914
+ size: {
78915
+ // 按钮尺寸(s:小号;m:中号;l:大号)
78916
+ type: String,
78917
+ default: 's'
78918
+ },
78919
+ color: String,
78920
+ // 按钮颜色(default: 系统辅色;sys:系统主色;)
78921
+ hollow: Boolean,
78922
+ // 是否为空心按钮
78923
+ disabled: Boolean,
78924
+ // 禁用
78925
+ icon: String // 按钮图标
78926
+
78927
+ }
78928
+ });
78929
+ // CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
78930
+ /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
78931
+ // EXTERNAL MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=66d63e1b&lang=stylus&scoped=true&
78932
+ var buttonvue_type_style_index_0_id_66d63e1b_lang_stylus_scoped_true_ = __webpack_require__("3229");
78933
+
78934
+ // CONCATENATED MODULE: ./src/components/unit/button.vue
78935
+
78936
+
78937
+
78938
+
78939
+
78940
+
78941
+ /* normalize component */
78942
+
78943
+ var button_component = normalizeComponent(
78480
78944
  unit_buttonvue_type_script_lang_js_,
78481
78945
  buttonvue_type_template_id_66d63e1b_scoped_true_render,
78482
- staticRenderFns,
78946
+ buttonvue_type_template_id_66d63e1b_scoped_true_staticRenderFns,
78483
78947
  false,
78484
78948
  null,
78485
78949
  "66d63e1b",
@@ -78487,7 +78951,7 @@ var component = normalizeComponent(
78487
78951
 
78488
78952
  )
78489
78953
 
78490
- /* harmony default export */ var unit_button = (component.exports);
78954
+ /* harmony default export */ var unit_button = (button_component.exports);
78491
78955
  // 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&
78492
78956
  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()])])}
78493
78957
  var inputvue_type_template_id_8c6235c2_scoped_true_staticRenderFns = []
@@ -82372,7 +82836,7 @@ var buttonvue_type_template_id_830bc42a_staticRenderFns = []
82372
82836
 
82373
82837
  /* normalize component */
82374
82838
 
82375
- var button_component = normalizeComponent(
82839
+ var table_button_component = normalizeComponent(
82376
82840
  components_table_buttonvue_type_script_lang_js_,
82377
82841
  buttonvue_type_template_id_830bc42a_render,
82378
82842
  buttonvue_type_template_id_830bc42a_staticRenderFns,
@@ -82383,7 +82847,7 @@ var button_component = normalizeComponent(
82383
82847
 
82384
82848
  )
82385
82849
 
82386
- /* harmony default export */ var table_button = (button_component.exports);
82850
+ /* harmony default export */ var table_button = (table_button_component.exports);
82387
82851
  // 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&
82388
82852
  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)])}
82389
82853
  var formvue_type_template_id_4007987e_staticRenderFns = []
@@ -83097,7 +83561,8 @@ var theme_chalk = __webpack_require__("0fae");
83097
83561
 
83098
83562
 
83099
83563
 
83100
- 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];
83564
+
83565
+ 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];
83101
83566
  var DYNAMIC_COMPS = [loading, message, notice, popup_confirm, preview];
83102
83567
 
83103
83568
  var components_install = function install(Vue, config) {
@@ -83169,11 +83634,11 @@ var components_install = function install(Vue, config) {
83169
83634
  });
83170
83635
  };
83171
83636
 
83172
- /* harmony default export */ var components = (components_install);
83637
+ /* harmony default export */ var src_components = (components_install);
83173
83638
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
83174
83639
 
83175
83640
 
83176
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components);
83641
+ /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_components);
83177
83642
 
83178
83643
 
83179
83644