@panpanzhao/component-ui 1.24.1104 → 1.24.1119
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 +65 -33
- package/lib/components/form-input.js +65 -33
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/src/index.js +89 -0
|
@@ -2778,8 +2778,8 @@ var DatePicker_component = normalizeComponent(
|
|
|
2778
2778
|
)
|
|
2779
2779
|
|
|
2780
2780
|
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
|
|
2781
|
-
// 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/form/src/item/UploadProcess.vue?vue&type=template&id=
|
|
2782
|
-
var
|
|
2781
|
+
// 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/form/src/item/UploadProcess.vue?vue&type=template&id=080e65b0
|
|
2782
|
+
var UploadProcessvue_type_template_id_080e65b0_render = function render() {
|
|
2783
2783
|
var _vm = this,
|
|
2784
2784
|
_c = _vm._self._c
|
|
2785
2785
|
return _c(
|
|
@@ -2797,15 +2797,17 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2797
2797
|
false
|
|
2798
2798
|
),
|
|
2799
2799
|
[
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2800
|
+
!_vm.isReadonly
|
|
2801
|
+
? _c(
|
|
2802
|
+
"el-button",
|
|
2803
|
+
{
|
|
2804
|
+
attrs: { slot: "trigger", size: "small", type: "primary" },
|
|
2805
|
+
slot: "trigger",
|
|
2806
|
+
},
|
|
2807
|
+
[_vm._v("选取文件")]
|
|
2808
|
+
)
|
|
2809
|
+
: _vm._e(),
|
|
2810
|
+
!_vm.isReadonly && !_vm.autoUpload && _vm.uploadButton
|
|
2809
2811
|
? _c(
|
|
2810
2812
|
"span",
|
|
2811
2813
|
{ staticStyle: { "padding-left": "10px" } },
|
|
@@ -2823,7 +2825,7 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2823
2825
|
1
|
|
2824
2826
|
)
|
|
2825
2827
|
: _vm._e(),
|
|
2826
|
-
_vm.uploadDesc && _vm.fileList.length > 0
|
|
2828
|
+
!_vm.isReadonly && _vm.uploadDesc && _vm.fileList.length > 0
|
|
2827
2829
|
? _c("div", { staticClass: "el-upload__tip" }, [
|
|
2828
2830
|
_c("div", { staticClass: "file-desc" }, [
|
|
2829
2831
|
_c("span", [
|
|
@@ -2966,20 +2968,22 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2966
2968
|
},
|
|
2967
2969
|
})
|
|
2968
2970
|
: _vm._e(),
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2971
|
+
!_vm.isReadonly
|
|
2972
|
+
? _c("el-button", {
|
|
2973
|
+
attrs: {
|
|
2974
|
+
type: "danger",
|
|
2975
|
+
circle: "",
|
|
2976
|
+
icon: "el-icon-delete",
|
|
2977
|
+
title: "删除",
|
|
2978
|
+
},
|
|
2979
|
+
on: {
|
|
2980
|
+
click: function ($event) {
|
|
2981
|
+
$event.stopPropagation()
|
|
2982
|
+
return _vm.handDelete(file, index)
|
|
2983
|
+
},
|
|
2984
|
+
},
|
|
2985
|
+
})
|
|
2986
|
+
: _vm._e(),
|
|
2983
2987
|
],
|
|
2984
2988
|
1
|
|
2985
2989
|
),
|
|
@@ -3044,11 +3048,11 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
3044
3048
|
1
|
|
3045
3049
|
)
|
|
3046
3050
|
}
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3051
|
+
var UploadProcessvue_type_template_id_080e65b0_staticRenderFns = []
|
|
3052
|
+
UploadProcessvue_type_template_id_080e65b0_render._withStripped = true
|
|
3049
3053
|
|
|
3050
3054
|
|
|
3051
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/UploadProcess.vue?vue&type=template&id=
|
|
3055
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/UploadProcess.vue?vue&type=template&id=080e65b0
|
|
3052
3056
|
|
|
3053
3057
|
// EXTERNAL MODULE: external "element-ui/lib/message"
|
|
3054
3058
|
var message_ = __webpack_require__(6);
|
|
@@ -3132,6 +3136,10 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
3132
3136
|
rules: {
|
|
3133
3137
|
type: Array
|
|
3134
3138
|
},
|
|
3139
|
+
readonly: {
|
|
3140
|
+
type: [Function, Boolean],
|
|
3141
|
+
default: false
|
|
3142
|
+
},
|
|
3135
3143
|
isPreview: Function,
|
|
3136
3144
|
isDelete: Function
|
|
3137
3145
|
},
|
|
@@ -3140,8 +3148,25 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
3140
3148
|
// 解决重置第一个元素为null
|
|
3141
3149
|
if (val && val[0] === null) {
|
|
3142
3150
|
this.fileValue = [];
|
|
3151
|
+
this.fileList = [];
|
|
3143
3152
|
this.$emit("input", this.fileValue);
|
|
3144
3153
|
}
|
|
3154
|
+
if (val === this.fileValue) {
|
|
3155
|
+
return false;
|
|
3156
|
+
}
|
|
3157
|
+
this.fileValue = [];
|
|
3158
|
+
this.fileList = [];
|
|
3159
|
+
if (val && val.length) {
|
|
3160
|
+
var _this$fileValue, _this$fileList;
|
|
3161
|
+
var valList = this.value.map(function (item) {
|
|
3162
|
+
item.state = 200;
|
|
3163
|
+
item.percentage = 100; // 进度条
|
|
3164
|
+
item.name = item.fileName;
|
|
3165
|
+
return item;
|
|
3166
|
+
});
|
|
3167
|
+
(_this$fileValue = this.fileValue).push.apply(_this$fileValue, valList);
|
|
3168
|
+
(_this$fileList = this.fileList).push.apply(_this$fileList, valList);
|
|
3169
|
+
}
|
|
3145
3170
|
}
|
|
3146
3171
|
},
|
|
3147
3172
|
computed: {
|
|
@@ -3197,6 +3222,12 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
3197
3222
|
return this.fileList && this.fileList.filter(function (item) {
|
|
3198
3223
|
return item.state === 500;
|
|
3199
3224
|
});
|
|
3225
|
+
},
|
|
3226
|
+
isReadonly: function isReadonly() {
|
|
3227
|
+
if (typeof this.readonly === "function") {
|
|
3228
|
+
return this.readonly.call(this);
|
|
3229
|
+
}
|
|
3230
|
+
return this.readonly;
|
|
3200
3231
|
}
|
|
3201
3232
|
},
|
|
3202
3233
|
data: function data() {
|
|
@@ -3235,9 +3266,10 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
3235
3266
|
this.extend.that = this;
|
|
3236
3267
|
}
|
|
3237
3268
|
if (this.value && this.value[0] !== null) {
|
|
3238
|
-
var _this$
|
|
3239
|
-
(_this$
|
|
3269
|
+
var _this$fileList2;
|
|
3270
|
+
(_this$fileList2 = this.fileList).push.apply(_this$fileList2, this.value.map(function (item) {
|
|
3240
3271
|
item.state = 200;
|
|
3272
|
+
item.percentage = 100; // 进度条
|
|
3241
3273
|
item.name = item.fileName;
|
|
3242
3274
|
return item;
|
|
3243
3275
|
}));
|
|
@@ -3438,8 +3470,8 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
3438
3470
|
|
|
3439
3471
|
var UploadProcess_component = normalizeComponent(
|
|
3440
3472
|
item_UploadProcessvue_type_script_lang_js,
|
|
3441
|
-
|
|
3442
|
-
|
|
3473
|
+
UploadProcessvue_type_template_id_080e65b0_render,
|
|
3474
|
+
UploadProcessvue_type_template_id_080e65b0_staticRenderFns,
|
|
3443
3475
|
false,
|
|
3444
3476
|
null,
|
|
3445
3477
|
null,
|
|
@@ -2271,8 +2271,8 @@ var DatePicker_component = Object(componentNormalizer["a" /* default */])(
|
|
|
2271
2271
|
)
|
|
2272
2272
|
|
|
2273
2273
|
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
|
|
2274
|
-
// 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/form/src/item/UploadProcess.vue?vue&type=template&id=
|
|
2275
|
-
var
|
|
2274
|
+
// 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/form/src/item/UploadProcess.vue?vue&type=template&id=080e65b0
|
|
2275
|
+
var UploadProcessvue_type_template_id_080e65b0_render = function render() {
|
|
2276
2276
|
var _vm = this,
|
|
2277
2277
|
_c = _vm._self._c
|
|
2278
2278
|
return _c(
|
|
@@ -2290,15 +2290,17 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2290
2290
|
false
|
|
2291
2291
|
),
|
|
2292
2292
|
[
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2293
|
+
!_vm.isReadonly
|
|
2294
|
+
? _c(
|
|
2295
|
+
"el-button",
|
|
2296
|
+
{
|
|
2297
|
+
attrs: { slot: "trigger", size: "small", type: "primary" },
|
|
2298
|
+
slot: "trigger",
|
|
2299
|
+
},
|
|
2300
|
+
[_vm._v("选取文件")]
|
|
2301
|
+
)
|
|
2302
|
+
: _vm._e(),
|
|
2303
|
+
!_vm.isReadonly && !_vm.autoUpload && _vm.uploadButton
|
|
2302
2304
|
? _c(
|
|
2303
2305
|
"span",
|
|
2304
2306
|
{ staticStyle: { "padding-left": "10px" } },
|
|
@@ -2316,7 +2318,7 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2316
2318
|
1
|
|
2317
2319
|
)
|
|
2318
2320
|
: _vm._e(),
|
|
2319
|
-
_vm.uploadDesc && _vm.fileList.length > 0
|
|
2321
|
+
!_vm.isReadonly && _vm.uploadDesc && _vm.fileList.length > 0
|
|
2320
2322
|
? _c("div", { staticClass: "el-upload__tip" }, [
|
|
2321
2323
|
_c("div", { staticClass: "file-desc" }, [
|
|
2322
2324
|
_c("span", [
|
|
@@ -2459,20 +2461,22 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2459
2461
|
},
|
|
2460
2462
|
})
|
|
2461
2463
|
: _vm._e(),
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2464
|
+
!_vm.isReadonly
|
|
2465
|
+
? _c("el-button", {
|
|
2466
|
+
attrs: {
|
|
2467
|
+
type: "danger",
|
|
2468
|
+
circle: "",
|
|
2469
|
+
icon: "el-icon-delete",
|
|
2470
|
+
title: "删除",
|
|
2471
|
+
},
|
|
2472
|
+
on: {
|
|
2473
|
+
click: function ($event) {
|
|
2474
|
+
$event.stopPropagation()
|
|
2475
|
+
return _vm.handDelete(file, index)
|
|
2476
|
+
},
|
|
2477
|
+
},
|
|
2478
|
+
})
|
|
2479
|
+
: _vm._e(),
|
|
2476
2480
|
],
|
|
2477
2481
|
1
|
|
2478
2482
|
),
|
|
@@ -2537,11 +2541,11 @@ var UploadProcessvue_type_template_id_f0c82e34_render = function render() {
|
|
|
2537
2541
|
1
|
|
2538
2542
|
)
|
|
2539
2543
|
}
|
|
2540
|
-
var
|
|
2541
|
-
|
|
2544
|
+
var UploadProcessvue_type_template_id_080e65b0_staticRenderFns = []
|
|
2545
|
+
UploadProcessvue_type_template_id_080e65b0_render._withStripped = true
|
|
2542
2546
|
|
|
2543
2547
|
|
|
2544
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/UploadProcess.vue?vue&type=template&id=
|
|
2548
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/UploadProcess.vue?vue&type=template&id=080e65b0
|
|
2545
2549
|
|
|
2546
2550
|
// EXTERNAL MODULE: external "element-ui/lib/message"
|
|
2547
2551
|
var message_ = __webpack_require__(12);
|
|
@@ -2625,6 +2629,10 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
2625
2629
|
rules: {
|
|
2626
2630
|
type: Array
|
|
2627
2631
|
},
|
|
2632
|
+
readonly: {
|
|
2633
|
+
type: [Function, Boolean],
|
|
2634
|
+
default: false
|
|
2635
|
+
},
|
|
2628
2636
|
isPreview: Function,
|
|
2629
2637
|
isDelete: Function
|
|
2630
2638
|
},
|
|
@@ -2633,8 +2641,25 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
2633
2641
|
// 解决重置第一个元素为null
|
|
2634
2642
|
if (val && val[0] === null) {
|
|
2635
2643
|
this.fileValue = [];
|
|
2644
|
+
this.fileList = [];
|
|
2636
2645
|
this.$emit("input", this.fileValue);
|
|
2637
2646
|
}
|
|
2647
|
+
if (val === this.fileValue) {
|
|
2648
|
+
return false;
|
|
2649
|
+
}
|
|
2650
|
+
this.fileValue = [];
|
|
2651
|
+
this.fileList = [];
|
|
2652
|
+
if (val && val.length) {
|
|
2653
|
+
var _this$fileValue, _this$fileList;
|
|
2654
|
+
var valList = this.value.map(function (item) {
|
|
2655
|
+
item.state = 200;
|
|
2656
|
+
item.percentage = 100; // 进度条
|
|
2657
|
+
item.name = item.fileName;
|
|
2658
|
+
return item;
|
|
2659
|
+
});
|
|
2660
|
+
(_this$fileValue = this.fileValue).push.apply(_this$fileValue, valList);
|
|
2661
|
+
(_this$fileList = this.fileList).push.apply(_this$fileList, valList);
|
|
2662
|
+
}
|
|
2638
2663
|
}
|
|
2639
2664
|
},
|
|
2640
2665
|
computed: {
|
|
@@ -2690,6 +2715,12 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
2690
2715
|
return this.fileList && this.fileList.filter(function (item) {
|
|
2691
2716
|
return item.state === 500;
|
|
2692
2717
|
});
|
|
2718
|
+
},
|
|
2719
|
+
isReadonly: function isReadonly() {
|
|
2720
|
+
if (typeof this.readonly === "function") {
|
|
2721
|
+
return this.readonly.call(this);
|
|
2722
|
+
}
|
|
2723
|
+
return this.readonly;
|
|
2693
2724
|
}
|
|
2694
2725
|
},
|
|
2695
2726
|
data: function data() {
|
|
@@ -2728,9 +2759,10 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
2728
2759
|
this.extend.that = this;
|
|
2729
2760
|
}
|
|
2730
2761
|
if (this.value && this.value[0] !== null) {
|
|
2731
|
-
var _this$
|
|
2732
|
-
(_this$
|
|
2762
|
+
var _this$fileList2;
|
|
2763
|
+
(_this$fileList2 = this.fileList).push.apply(_this$fileList2, this.value.map(function (item) {
|
|
2733
2764
|
item.state = 200;
|
|
2765
|
+
item.percentage = 100; // 进度条
|
|
2734
2766
|
item.name = item.fileName;
|
|
2735
2767
|
return item;
|
|
2736
2768
|
}));
|
|
@@ -2931,8 +2963,8 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
|
2931
2963
|
|
|
2932
2964
|
var UploadProcess_component = Object(componentNormalizer["a" /* default */])(
|
|
2933
2965
|
item_UploadProcessvue_type_script_lang_js,
|
|
2934
|
-
|
|
2935
|
-
|
|
2966
|
+
UploadProcessvue_type_template_id_080e65b0_render,
|
|
2967
|
+
UploadProcessvue_type_template_id_080e65b0_staticRenderFns,
|
|
2936
2968
|
false,
|
|
2937
2969
|
null,
|
|
2938
2970
|
null,
|