@panpanzhao/component-ui 1.24.930 → 1.24.1105
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.
- package/lib/component-ui.common.js +51 -23
- package/lib/components/timeline.js +46 -18
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +2 -2
- package/lib/styles/index.css +2 -2
- package/lib/styles/timeline.css +1 -0
- package/package.json +2 -2
|
@@ -12470,8 +12470,8 @@ tree_line_src.install = function (Vue) {
|
|
|
12470
12470
|
Vue.component(tree_line_src.name, tree_line_src);
|
|
12471
12471
|
};
|
|
12472
12472
|
/* harmony default export */ var tree_line = (tree_line_src);
|
|
12473
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=template&id=
|
|
12474
|
-
var
|
|
12473
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=template&id=33f1a40a
|
|
12474
|
+
var srcvue_type_template_id_33f1a40a_render = function render() {
|
|
12475
12475
|
var _vm = this,
|
|
12476
12476
|
_c = _vm._self._c
|
|
12477
12477
|
return _c(
|
|
@@ -12485,7 +12485,7 @@ var srcvue_type_template_id_34b55949_render = function render() {
|
|
|
12485
12485
|
return _c(
|
|
12486
12486
|
"TimeItem",
|
|
12487
12487
|
_vm._b(
|
|
12488
|
-
{ key: index, attrs: { data: item } },
|
|
12488
|
+
{ key: index, attrs: { leftWidth: _vm.leftWidth, data: item } },
|
|
12489
12489
|
"TimeItem",
|
|
12490
12490
|
_vm.layout,
|
|
12491
12491
|
false
|
|
@@ -12495,14 +12495,14 @@ var srcvue_type_template_id_34b55949_render = function render() {
|
|
|
12495
12495
|
1
|
|
12496
12496
|
)
|
|
12497
12497
|
}
|
|
12498
|
-
var
|
|
12499
|
-
|
|
12498
|
+
var srcvue_type_template_id_33f1a40a_staticRenderFns = []
|
|
12499
|
+
srcvue_type_template_id_33f1a40a_render._withStripped = true
|
|
12500
12500
|
|
|
12501
12501
|
|
|
12502
|
-
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=
|
|
12502
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=33f1a40a
|
|
12503
12503
|
|
|
12504
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=template&id=
|
|
12505
|
-
var
|
|
12504
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=template&id=5f314a3e
|
|
12505
|
+
var time_itemvue_type_template_id_5f314a3e_render = function render() {
|
|
12506
12506
|
var _vm = this,
|
|
12507
12507
|
_c = _vm._self._c
|
|
12508
12508
|
return _c("li", { staticClass: "el-timeline-item" }, [
|
|
@@ -12536,7 +12536,11 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
12536
12536
|
_c("div", { staticClass: "el-timeline-item__wrapper" }, [
|
|
12537
12537
|
!_vm.hideTimestamp && _vm.placement === "top"
|
|
12538
12538
|
? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
|
|
12539
|
-
|
|
12539
|
+
_c(
|
|
12540
|
+
"div",
|
|
12541
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
12542
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
12543
|
+
),
|
|
12540
12544
|
])
|
|
12541
12545
|
: _vm._e(),
|
|
12542
12546
|
!_vm.hideTimestamp && _vm.placement === "left"
|
|
@@ -12544,9 +12548,15 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
12544
12548
|
"div",
|
|
12545
12549
|
{
|
|
12546
12550
|
staticClass: "el-timeline-item__timestamp is-left",
|
|
12547
|
-
style: { left: "
|
|
12551
|
+
style: { left: "-" + _vm.leftWidth, width: _vm.leftWidth },
|
|
12548
12552
|
},
|
|
12549
|
-
[
|
|
12553
|
+
[
|
|
12554
|
+
_c(
|
|
12555
|
+
"div",
|
|
12556
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
12557
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
12558
|
+
),
|
|
12559
|
+
]
|
|
12550
12560
|
)
|
|
12551
12561
|
: _vm._e(),
|
|
12552
12562
|
_c(
|
|
@@ -12563,17 +12573,21 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
12563
12573
|
),
|
|
12564
12574
|
!_vm.hideTimestamp && _vm.placement === "bottom"
|
|
12565
12575
|
? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
|
|
12566
|
-
|
|
12576
|
+
_c(
|
|
12577
|
+
"div",
|
|
12578
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
12579
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
12580
|
+
),
|
|
12567
12581
|
])
|
|
12568
12582
|
: _vm._e(),
|
|
12569
12583
|
]),
|
|
12570
12584
|
])
|
|
12571
12585
|
}
|
|
12572
|
-
var
|
|
12573
|
-
|
|
12586
|
+
var time_itemvue_type_template_id_5f314a3e_staticRenderFns = []
|
|
12587
|
+
time_itemvue_type_template_id_5f314a3e_render._withStripped = true
|
|
12574
12588
|
|
|
12575
12589
|
|
|
12576
|
-
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=
|
|
12590
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=5f314a3e
|
|
12577
12591
|
|
|
12578
12592
|
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
12579
12593
|
|
|
@@ -12584,9 +12598,10 @@ time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
|
12584
12598
|
},
|
|
12585
12599
|
props: {
|
|
12586
12600
|
timestamp: String,
|
|
12601
|
+
timestampStyle: Object,
|
|
12587
12602
|
leftWidth: {
|
|
12588
12603
|
type: String,
|
|
12589
|
-
default: '
|
|
12604
|
+
default: '0'
|
|
12590
12605
|
},
|
|
12591
12606
|
hideTimestamp: {
|
|
12592
12607
|
type: Boolean,
|
|
@@ -12616,11 +12631,23 @@ time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
|
12616
12631
|
default: function _default() {
|
|
12617
12632
|
return {};
|
|
12618
12633
|
}
|
|
12634
|
+
},
|
|
12635
|
+
slots: {
|
|
12636
|
+
type: Object,
|
|
12637
|
+
default: function _default() {
|
|
12638
|
+
return {};
|
|
12639
|
+
}
|
|
12619
12640
|
}
|
|
12620
12641
|
},
|
|
12621
12642
|
computed: {
|
|
12622
|
-
|
|
12623
|
-
|
|
12643
|
+
timestampFormat: function timestampFormat() {
|
|
12644
|
+
var _this$slots;
|
|
12645
|
+
if (typeof ((_this$slots = this.slots) == null ? void 0 : _this$slots.timestamp) === 'function') {
|
|
12646
|
+
return this.slots.timestamp.call(this, {
|
|
12647
|
+
data: this.data
|
|
12648
|
+
});
|
|
12649
|
+
}
|
|
12650
|
+
return this.timestamp && this.data[this.timestamp];
|
|
12624
12651
|
},
|
|
12625
12652
|
formLayout: function formLayout() {
|
|
12626
12653
|
return Object.assign({}, this.$attrs, {
|
|
@@ -12644,8 +12671,8 @@ time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
|
12644
12671
|
|
|
12645
12672
|
var time_item_component = normalizeComponent(
|
|
12646
12673
|
src_time_itemvue_type_script_lang_js,
|
|
12647
|
-
|
|
12648
|
-
|
|
12674
|
+
time_itemvue_type_template_id_5f314a3e_render,
|
|
12675
|
+
time_itemvue_type_template_id_5f314a3e_staticRenderFns,
|
|
12649
12676
|
false,
|
|
12650
12677
|
null,
|
|
12651
12678
|
null,
|
|
@@ -12658,6 +12685,7 @@ var time_item_component = normalizeComponent(
|
|
|
12658
12685
|
|
|
12659
12686
|
/* harmony default export */ var timeline_srcvue_type_script_lang_js = ({
|
|
12660
12687
|
name: "Timeline",
|
|
12688
|
+
componentName: "Timeline",
|
|
12661
12689
|
components: {
|
|
12662
12690
|
TimeItem: time_item
|
|
12663
12691
|
},
|
|
@@ -12687,7 +12715,7 @@ var time_item_component = normalizeComponent(
|
|
|
12687
12715
|
},
|
|
12688
12716
|
computed: {
|
|
12689
12717
|
itemDatas: function itemDatas() {
|
|
12690
|
-
return this.reverse ? this.
|
|
12718
|
+
return this.reverse ? this.data.reverse() : this.data;
|
|
12691
12719
|
}
|
|
12692
12720
|
}
|
|
12693
12721
|
});
|
|
@@ -12703,8 +12731,8 @@ var time_item_component = normalizeComponent(
|
|
|
12703
12731
|
|
|
12704
12732
|
var timeline_src_component = normalizeComponent(
|
|
12705
12733
|
components_timeline_srcvue_type_script_lang_js,
|
|
12706
|
-
|
|
12707
|
-
|
|
12734
|
+
srcvue_type_template_id_33f1a40a_render,
|
|
12735
|
+
srcvue_type_template_id_33f1a40a_staticRenderFns,
|
|
12708
12736
|
false,
|
|
12709
12737
|
null,
|
|
12710
12738
|
null,
|
|
@@ -412,7 +412,7 @@ src.install = function (Vue) {
|
|
|
412
412
|
// ESM COMPAT FLAG
|
|
413
413
|
__webpack_require__.r(__webpack_exports__);
|
|
414
414
|
|
|
415
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=template&id=
|
|
415
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=template&id=33f1a40a
|
|
416
416
|
var render = function render() {
|
|
417
417
|
var _vm = this,
|
|
418
418
|
_c = _vm._self._c
|
|
@@ -427,7 +427,7 @@ var render = function render() {
|
|
|
427
427
|
return _c(
|
|
428
428
|
"TimeItem",
|
|
429
429
|
_vm._b(
|
|
430
|
-
{ key: index, attrs: { data: item } },
|
|
430
|
+
{ key: index, attrs: { leftWidth: _vm.leftWidth, data: item } },
|
|
431
431
|
"TimeItem",
|
|
432
432
|
_vm.layout,
|
|
433
433
|
false
|
|
@@ -441,10 +441,10 @@ var staticRenderFns = []
|
|
|
441
441
|
render._withStripped = true
|
|
442
442
|
|
|
443
443
|
|
|
444
|
-
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=
|
|
444
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=33f1a40a
|
|
445
445
|
|
|
446
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=template&id=
|
|
447
|
-
var
|
|
446
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=template&id=5f314a3e
|
|
447
|
+
var time_itemvue_type_template_id_5f314a3e_render = function render() {
|
|
448
448
|
var _vm = this,
|
|
449
449
|
_c = _vm._self._c
|
|
450
450
|
return _c("li", { staticClass: "el-timeline-item" }, [
|
|
@@ -478,7 +478,11 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
478
478
|
_c("div", { staticClass: "el-timeline-item__wrapper" }, [
|
|
479
479
|
!_vm.hideTimestamp && _vm.placement === "top"
|
|
480
480
|
? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
|
|
481
|
-
|
|
481
|
+
_c(
|
|
482
|
+
"div",
|
|
483
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
484
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
485
|
+
),
|
|
482
486
|
])
|
|
483
487
|
: _vm._e(),
|
|
484
488
|
!_vm.hideTimestamp && _vm.placement === "left"
|
|
@@ -486,9 +490,15 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
486
490
|
"div",
|
|
487
491
|
{
|
|
488
492
|
staticClass: "el-timeline-item__timestamp is-left",
|
|
489
|
-
style: { left: "
|
|
493
|
+
style: { left: "-" + _vm.leftWidth, width: _vm.leftWidth },
|
|
490
494
|
},
|
|
491
|
-
[
|
|
495
|
+
[
|
|
496
|
+
_c(
|
|
497
|
+
"div",
|
|
498
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
499
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
500
|
+
),
|
|
501
|
+
]
|
|
492
502
|
)
|
|
493
503
|
: _vm._e(),
|
|
494
504
|
_c(
|
|
@@ -505,17 +515,21 @@ var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
|
505
515
|
),
|
|
506
516
|
!_vm.hideTimestamp && _vm.placement === "bottom"
|
|
507
517
|
? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
|
|
508
|
-
|
|
518
|
+
_c(
|
|
519
|
+
"div",
|
|
520
|
+
{ staticClass: "timestamp-node", style: _vm.timestampStyle },
|
|
521
|
+
[_vm._v(_vm._s(_vm.timestampFormat))]
|
|
522
|
+
),
|
|
509
523
|
])
|
|
510
524
|
: _vm._e(),
|
|
511
525
|
]),
|
|
512
526
|
])
|
|
513
527
|
}
|
|
514
|
-
var
|
|
515
|
-
|
|
528
|
+
var time_itemvue_type_template_id_5f314a3e_staticRenderFns = []
|
|
529
|
+
time_itemvue_type_template_id_5f314a3e_render._withStripped = true
|
|
516
530
|
|
|
517
531
|
|
|
518
|
-
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=
|
|
532
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=5f314a3e
|
|
519
533
|
|
|
520
534
|
// EXTERNAL MODULE: ./src/components/form-view/index.js + 1 modules
|
|
521
535
|
var form_view = __webpack_require__(6);
|
|
@@ -529,9 +543,10 @@ var form_view = __webpack_require__(6);
|
|
|
529
543
|
},
|
|
530
544
|
props: {
|
|
531
545
|
timestamp: String,
|
|
546
|
+
timestampStyle: Object,
|
|
532
547
|
leftWidth: {
|
|
533
548
|
type: String,
|
|
534
|
-
default: '
|
|
549
|
+
default: '0'
|
|
535
550
|
},
|
|
536
551
|
hideTimestamp: {
|
|
537
552
|
type: Boolean,
|
|
@@ -561,11 +576,23 @@ var form_view = __webpack_require__(6);
|
|
|
561
576
|
default: function _default() {
|
|
562
577
|
return {};
|
|
563
578
|
}
|
|
579
|
+
},
|
|
580
|
+
slots: {
|
|
581
|
+
type: Object,
|
|
582
|
+
default: function _default() {
|
|
583
|
+
return {};
|
|
584
|
+
}
|
|
564
585
|
}
|
|
565
586
|
},
|
|
566
587
|
computed: {
|
|
567
|
-
|
|
568
|
-
|
|
588
|
+
timestampFormat: function timestampFormat() {
|
|
589
|
+
var _this$slots;
|
|
590
|
+
if (typeof ((_this$slots = this.slots) == null ? void 0 : _this$slots.timestamp) === 'function') {
|
|
591
|
+
return this.slots.timestamp.call(this, {
|
|
592
|
+
data: this.data
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
return this.timestamp && this.data[this.timestamp];
|
|
569
596
|
},
|
|
570
597
|
formLayout: function formLayout() {
|
|
571
598
|
return Object.assign({}, this.$attrs, {
|
|
@@ -592,8 +619,8 @@ var componentNormalizer = __webpack_require__(1);
|
|
|
592
619
|
|
|
593
620
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
594
621
|
src_time_itemvue_type_script_lang_js,
|
|
595
|
-
|
|
596
|
-
|
|
622
|
+
time_itemvue_type_template_id_5f314a3e_render,
|
|
623
|
+
time_itemvue_type_template_id_5f314a3e_staticRenderFns,
|
|
597
624
|
false,
|
|
598
625
|
null,
|
|
599
626
|
null,
|
|
@@ -606,6 +633,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
606
633
|
|
|
607
634
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
|
608
635
|
name: "Timeline",
|
|
636
|
+
componentName: "Timeline",
|
|
609
637
|
components: {
|
|
610
638
|
TimeItem: time_item
|
|
611
639
|
},
|
|
@@ -635,7 +663,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
635
663
|
},
|
|
636
664
|
computed: {
|
|
637
665
|
itemDatas: function itemDatas() {
|
|
638
|
-
return this.reverse ? this.
|
|
666
|
+
return this.reverse ? this.data.reverse() : this.data;
|
|
639
667
|
}
|
|
640
668
|
}
|
|
641
669
|
});
|