next-element-vue 0.4.9 → 0.5.0
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/dist/index.js +43 -7
- package/dist/index.min.js +3 -3
- package/dist/index.umd.js +43 -7
- package/dist/index.umd.min.js +3 -3
- package/dist/packages/components/crud-table/src/config.d.ts +1 -0
- package/dist/packages/components/crud-table-virtualized/src/index.test.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 作 者:huangteng
|
|
4
4
|
* 邮 箱:htengweb@163.com
|
|
5
|
-
* 当前版本:0.
|
|
6
|
-
* 发布日期:2024-12-
|
|
5
|
+
* 当前版本:0.5.0 v
|
|
6
|
+
* 发布日期:2024-12-26
|
|
7
7
|
* 地 址:https://www.npmjs.com/package/next-element-vue
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -3802,6 +3802,21 @@ var NextSpinLoading$1 = defineComponent({
|
|
|
3802
3802
|
editable: col.searchEditable || !1
|
|
3803
3803
|
}, null);
|
|
3804
3804
|
}
|
|
3805
|
+
if ("daterange" === col.type) return createVNode(ElDatePicker, {
|
|
3806
|
+
modelValue: formParams[col.prop],
|
|
3807
|
+
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
3808
|
+
type: "daterange",
|
|
3809
|
+
"value-format": col.searchFormat || "YYYY-MM-DD",
|
|
3810
|
+
format: col.searchFormat || "YYYY-MM-DD",
|
|
3811
|
+
clearable: !0,
|
|
3812
|
+
"range-separator": t("next.date.rangeSeparator"),
|
|
3813
|
+
"start-placeholder": t("next.date.startPlaceholder"),
|
|
3814
|
+
"end-placeholder": t("next.date.endPlaceholder"),
|
|
3815
|
+
"disabled-date": col.searchDisabledDate || _defaultDisabledDate,
|
|
3816
|
+
disabled: _disabled,
|
|
3817
|
+
editable: col.searchEditable || !1,
|
|
3818
|
+
shortcuts: col.searchShortcuts || _defaultShortcuts
|
|
3819
|
+
}, null);
|
|
3805
3820
|
if ("datetimerange" === col.type) return createVNode(ElDatePicker, {
|
|
3806
3821
|
modelValue: formParams[col.prop],
|
|
3807
3822
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
@@ -5357,7 +5372,7 @@ var Element$7 = defineComponent({
|
|
|
5357
5372
|
valueFormat: col.format || "YYYY-MM-DD",
|
|
5358
5373
|
format: col.format || "YYYY-MM-DD",
|
|
5359
5374
|
clearable: valueExist(col.clearable, !0),
|
|
5360
|
-
disabledDate: col.disabledDate
|
|
5375
|
+
disabledDate: time => col.disabledDate ? col.disabledDate(time, formParams) : _defaultDisabledDate(time),
|
|
5361
5376
|
editable: valueExist(col.editable, !1),
|
|
5362
5377
|
disabled: valueExist(col.disabled, !1),
|
|
5363
5378
|
readonly: valueExist(col.readonly, !1)
|
|
@@ -5373,12 +5388,32 @@ var Element$7 = defineComponent({
|
|
|
5373
5388
|
valueFormat: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5374
5389
|
format: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5375
5390
|
clearable: valueExist(col.clearable, !0),
|
|
5376
|
-
disabledDate: col.disabledDate
|
|
5391
|
+
disabledDate: time => col.disabledDate ? col.disabledDate(time, formParams) : _defaultDisabledDate(time),
|
|
5377
5392
|
editable: valueExist(col.editable, !1),
|
|
5378
5393
|
disabled: valueExist(col.disabled, !1),
|
|
5379
5394
|
readonly: valueExist(col.readonly, !1)
|
|
5380
5395
|
}, null);
|
|
5381
5396
|
}
|
|
5397
|
+
if ("daterange" === col.type) {
|
|
5398
|
+
const placeholder = col.placeholder || t("next.form.select") + col.label;
|
|
5399
|
+
return createVNode(ElDatePicker, {
|
|
5400
|
+
modelValue: formParams[col.prop],
|
|
5401
|
+
"onUpdate:modelValue": [ $event => formParams[col.prop] = $event, event => col.onChange?.(event, col, formParams, formColumns) ],
|
|
5402
|
+
placeholder: placeholder,
|
|
5403
|
+
type: "daterange",
|
|
5404
|
+
valueFormat: col.format || "YYYY-MM-DD ",
|
|
5405
|
+
format: col.format || "YYYY-MM-DD",
|
|
5406
|
+
"range-separator": t("next.date.rangeSeparator"),
|
|
5407
|
+
"start-placeholder": t("next.date.startPlaceholder"),
|
|
5408
|
+
"end-placeholder": t("next.date.endPlaceholder"),
|
|
5409
|
+
disabledDate: time => col.disabledDate ? col.disabledDate(time, formParams) : _defaultDisabledDate(time),
|
|
5410
|
+
clearable: valueExist(col.clearable, !0),
|
|
5411
|
+
editable: valueExist(col.editable, !1),
|
|
5412
|
+
disabled: valueExist(col.disabled, !1),
|
|
5413
|
+
readonly: valueExist(col.readonly, !1),
|
|
5414
|
+
shortcuts: col.shortcuts || _defaultShortcuts
|
|
5415
|
+
}, null);
|
|
5416
|
+
}
|
|
5382
5417
|
if ("datetimerange" === col.type) {
|
|
5383
5418
|
const placeholder = col.placeholder || t("next.form.select") + col.label;
|
|
5384
5419
|
return createVNode(ElDatePicker, {
|
|
@@ -5391,7 +5426,7 @@ var Element$7 = defineComponent({
|
|
|
5391
5426
|
"range-separator": t("next.date.rangeSeparator"),
|
|
5392
5427
|
"start-placeholder": t("next.date.startPlaceholder"),
|
|
5393
5428
|
"end-placeholder": t("next.date.endPlaceholder"),
|
|
5394
|
-
disabledDate: col.disabledDate
|
|
5429
|
+
disabledDate: time => col.disabledDate ? col.disabledDate(time, formParams) : _defaultDisabledDate(time),
|
|
5395
5430
|
clearable: valueExist(col.clearable, !0),
|
|
5396
5431
|
editable: valueExist(col.editable, !1),
|
|
5397
5432
|
disabled: valueExist(col.disabled, !1),
|
|
@@ -5618,6 +5653,7 @@ var Element$6 = defineComponent({
|
|
|
5618
5653
|
clearable: valueExist(col.formClearable, col.clearable, !0),
|
|
5619
5654
|
readonly: valueExist(col.formReadonly, col.readonly, !1),
|
|
5620
5655
|
disabledDate: valueExist(col.formDisabledDate, col.disabledDate, !1),
|
|
5656
|
+
shortcuts: valueExist(col.formShortcuts, col.shortcuts, null),
|
|
5621
5657
|
tip: valueExist(col.formTip, col.tip, null),
|
|
5622
5658
|
rules: valueExist(col.formRules, col.rules, null),
|
|
5623
5659
|
span: valueExist(col.formSpan, col.span, null),
|
|
@@ -8489,7 +8525,7 @@ const zoomDialog = app => {
|
|
|
8489
8525
|
}));
|
|
8490
8526
|
}
|
|
8491
8527
|
});
|
|
8492
|
-
}, version = "0.
|
|
8528
|
+
}, version = "0.5.0", install = function(app) {
|
|
8493
8529
|
Object.keys(components).forEach((key => {
|
|
8494
8530
|
const component = components[key];
|
|
8495
8531
|
app.component(component.name, component);
|
|
@@ -8499,7 +8535,7 @@ const zoomDialog = app => {
|
|
|
8499
8535
|
};
|
|
8500
8536
|
|
|
8501
8537
|
var index = {
|
|
8502
|
-
version: "0.
|
|
8538
|
+
version: "0.5.0",
|
|
8503
8539
|
install: install
|
|
8504
8540
|
};
|
|
8505
8541
|
|