xrk-components 0.4.2-beta.11 → 0.4.2-beta.13
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/index.esm.js
CHANGED
|
@@ -42722,7 +42722,7 @@ var script$n = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$n
|
|
|
42722
42722
|
: (openBlock(), createElementBlock("div", {
|
|
42723
42723
|
key: 1,
|
|
42724
42724
|
class: normalizeClass(["xrk-custom-image-viewer", { 'hide-close': __props.hideClose }]),
|
|
42725
|
-
style: normalizeStyle({ width: __props.style.width, height: __props.style.height })
|
|
42725
|
+
style: normalizeStyle(__props.style ? { width: __props.style.width, height: __props.style.height } : {})
|
|
42726
42726
|
}, [
|
|
42727
42727
|
createElementVNode("div", {
|
|
42728
42728
|
style: { "width": "100%", "height": "100%" },
|
|
@@ -43317,7 +43317,28 @@ var script$f = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$f
|
|
|
43317
43317
|
|
|
43318
43318
|
script$f.__file = "packages/base/date-picker/date-picker.vue";
|
|
43319
43319
|
|
|
43320
|
-
var BaseDatePicker = script$f;
|
|
43320
|
+
var BaseDatePicker = script$f;
|
|
43321
|
+
/**
|
|
43322
|
+
*
|
|
43323
|
+
* @param dayDis year month day 可选择范围
|
|
43324
|
+
* @returns disabledDate?: (date: Date, startDt: Date | null) => boolean;
|
|
43325
|
+
*/
|
|
43326
|
+
var createDisabledDate = function (dayDis) {
|
|
43327
|
+
var _a = dayDis.year, year = _a === void 0 ? 0 : _a, _b = dayDis.month, month = _b === void 0 ? 0 : _b, _c = dayDis.day, day = _c === void 0 ? 0 : _c;
|
|
43328
|
+
return function (date, startDate) {
|
|
43329
|
+
if (date && startDate) {
|
|
43330
|
+
var rangeStart = new Date(startDate.getTime());
|
|
43331
|
+
var rangeEnd = new Date(startDate.getTime());
|
|
43332
|
+
var rangeMid = date.getTime();
|
|
43333
|
+
return !(rangeStart.setFullYear(startDate.getFullYear() - year, startDate.getMonth() - month, startDate.getDate() - day) <= rangeMid &&
|
|
43334
|
+
rangeMid <=
|
|
43335
|
+
rangeEnd.setFullYear(startDate.getFullYear() + year, startDate.getMonth() + month, startDate.getDate() + day));
|
|
43336
|
+
}
|
|
43337
|
+
else {
|
|
43338
|
+
return false;
|
|
43339
|
+
}
|
|
43340
|
+
};
|
|
43341
|
+
};
|
|
43321
43342
|
|
|
43322
43343
|
var __default__$e = {
|
|
43323
43344
|
name: 'base-input'
|
|
@@ -45820,4 +45841,4 @@ var index = {
|
|
|
45820
45841
|
install: install
|
|
45821
45842
|
};
|
|
45822
45843
|
|
|
45823
|
-
export { BaseButton, BaseCascader, BaseCheckbox, BaseCheckboxButton, BaseCheckboxGroup, BaseDatePicker, BaseDialog, BaseForm, BaseFormItem, BaseIcon, BaseImage, BaseImageViewer, BaseInput, BasePagination, BaseRadio, BaseRadioButton, BaseRadioGroup, BaseSelect, BaseSwitch, BaseTable, BaseTag, BaseTagGroup, XrkMessage, XrkSearch, XrkTable, createDialog, createImageViewer, index as default, useCascaderColumn, useCreateModal, useDatePickerColumn, useInputColumn, useOtherComponents, useResetBtn, useSearchBtn, useSearchColumns, useSelectColumn, useTableColumn };
|
|
45844
|
+
export { BaseButton, BaseCascader, BaseCheckbox, BaseCheckboxButton, BaseCheckboxGroup, BaseDatePicker, BaseDialog, BaseForm, BaseFormItem, BaseIcon, BaseImage, BaseImageViewer, BaseInput, BasePagination, BaseRadio, BaseRadioButton, BaseRadioGroup, BaseSelect, BaseSwitch, BaseTable, BaseTag, BaseTagGroup, XrkMessage, XrkSearch, XrkTable, createDialog, createDisabledDate, createImageViewer, index as default, useCascaderColumn, useCreateModal, useDatePickerColumn, useInputColumn, useOtherComponents, useResetBtn, useSearchBtn, useSearchColumns, useSelectColumn, useTableColumn };
|
package/lib/index.umd.js
CHANGED
|
@@ -42725,7 +42725,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42725
42725
|
: (vue.openBlock(), vue.createElementBlock("div", {
|
|
42726
42726
|
key: 1,
|
|
42727
42727
|
class: vue.normalizeClass(["xrk-custom-image-viewer", { 'hide-close': __props.hideClose }]),
|
|
42728
|
-
style: vue.normalizeStyle({ width: __props.style.width, height: __props.style.height })
|
|
42728
|
+
style: vue.normalizeStyle(__props.style ? { width: __props.style.width, height: __props.style.height } : {})
|
|
42729
42729
|
}, [
|
|
42730
42730
|
vue.createElementVNode("div", {
|
|
42731
42731
|
style: { "width": "100%", "height": "100%" },
|
|
@@ -43320,7 +43320,28 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
43320
43320
|
|
|
43321
43321
|
script$f.__file = "packages/base/date-picker/date-picker.vue";
|
|
43322
43322
|
|
|
43323
|
-
var BaseDatePicker = script$f;
|
|
43323
|
+
var BaseDatePicker = script$f;
|
|
43324
|
+
/**
|
|
43325
|
+
*
|
|
43326
|
+
* @param dayDis year month day 可选择范围
|
|
43327
|
+
* @returns disabledDate?: (date: Date, startDt: Date | null) => boolean;
|
|
43328
|
+
*/
|
|
43329
|
+
var createDisabledDate = function (dayDis) {
|
|
43330
|
+
var _a = dayDis.year, year = _a === void 0 ? 0 : _a, _b = dayDis.month, month = _b === void 0 ? 0 : _b, _c = dayDis.day, day = _c === void 0 ? 0 : _c;
|
|
43331
|
+
return function (date, startDate) {
|
|
43332
|
+
if (date && startDate) {
|
|
43333
|
+
var rangeStart = new Date(startDate.getTime());
|
|
43334
|
+
var rangeEnd = new Date(startDate.getTime());
|
|
43335
|
+
var rangeMid = date.getTime();
|
|
43336
|
+
return !(rangeStart.setFullYear(startDate.getFullYear() - year, startDate.getMonth() - month, startDate.getDate() - day) <= rangeMid &&
|
|
43337
|
+
rangeMid <=
|
|
43338
|
+
rangeEnd.setFullYear(startDate.getFullYear() + year, startDate.getMonth() + month, startDate.getDate() + day));
|
|
43339
|
+
}
|
|
43340
|
+
else {
|
|
43341
|
+
return false;
|
|
43342
|
+
}
|
|
43343
|
+
};
|
|
43344
|
+
};
|
|
43324
43345
|
|
|
43325
43346
|
var __default__$e = {
|
|
43326
43347
|
name: 'base-input'
|
|
@@ -45849,6 +45870,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
45849
45870
|
exports.XrkSearch = XrkSearch;
|
|
45850
45871
|
exports.XrkTable = XrkTable;
|
|
45851
45872
|
exports.createDialog = createDialog;
|
|
45873
|
+
exports.createDisabledDate = createDisabledDate;
|
|
45852
45874
|
exports.createImageViewer = createImageViewer;
|
|
45853
45875
|
exports["default"] = index;
|
|
45854
45876
|
exports.useCascaderColumn = useCascaderColumn;
|
|
@@ -49,3 +49,13 @@ export declare type BaseDatePickerListener<S extends Record<string, any> = any>
|
|
|
49
49
|
onCalendarChange?: (val: [Date, Date | null], searchValue?: S) => void;
|
|
50
50
|
};
|
|
51
51
|
export declare const BaseDatePicker: DefineComponent<BaseDatePickerProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseDatePickerProps>, {}>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param dayDis year month day 可选择范围
|
|
55
|
+
* @returns disabledDate?: (date: Date, startDt: Date | null) => boolean;
|
|
56
|
+
*/
|
|
57
|
+
export declare const createDisabledDate: (dayDis: {
|
|
58
|
+
year?: number | undefined;
|
|
59
|
+
month?: number | undefined;
|
|
60
|
+
day?: number | undefined;
|
|
61
|
+
}) => (date: Date, startDate: Date | null) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { useTableColumn } from './base/table';
|
|
2
2
|
export { createDialog } from './base/dialog';
|
|
3
3
|
export { createImageViewer } from './base/image';
|
|
4
|
+
export { createDisabledDate } from './base/date-picker';
|
|
4
5
|
export { useInputColumn, useSearchColumns, useSelectColumn, useSearchBtn, useResetBtn, useDatePickerColumn, useCascaderColumn, useOtherComponents } from './xrk/search/hooks/use-search';
|
|
5
6
|
export { XrkMessage } from './xrk/message';
|