xrk-components 0.4.2-beta.10 → 0.4.2-beta.12
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
|
@@ -42721,7 +42721,8 @@ var script$n = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$n
|
|
|
42721
42721
|
}, null, 8 /* PROPS */, ["style", "url-list", "hide-on-click-modal", "z-index", "initial-index", "close-on-press-escape", "zoom-rate", "infinite"]))
|
|
42722
42722
|
: (openBlock(), createElementBlock("div", {
|
|
42723
42723
|
key: 1,
|
|
42724
|
-
class: normalizeClass(["xrk-custom-image-viewer", { 'hide-close': __props.hideClose }])
|
|
42724
|
+
class: normalizeClass(["xrk-custom-image-viewer", { 'hide-close': __props.hideClose }]),
|
|
42725
|
+
style: normalizeStyle({ width: __props.style.width, height: __props.style.height })
|
|
42725
42726
|
}, [
|
|
42726
42727
|
createElementVNode("div", {
|
|
42727
42728
|
style: { "width": "100%", "height": "100%" },
|
|
@@ -42744,7 +42745,7 @@ var script$n = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$n
|
|
|
42744
42745
|
onClose: handleClose
|
|
42745
42746
|
}, null, 8 /* PROPS */, ["style", "url-list", "hide-on-click-modal", "z-index", "initial-index", "close-on-press-escape", "zoom-rate", "infinite"])
|
|
42746
42747
|
], 32 /* HYDRATE_EVENTS */)
|
|
42747
|
-
],
|
|
42748
|
+
], 6 /* CLASS, STYLE */))
|
|
42748
42749
|
]))
|
|
42749
42750
|
: createCommentVNode("v-if", true);
|
|
42750
42751
|
};
|
|
@@ -43316,7 +43317,28 @@ var script$f = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$f
|
|
|
43316
43317
|
|
|
43317
43318
|
script$f.__file = "packages/base/date-picker/date-picker.vue";
|
|
43318
43319
|
|
|
43319
|
-
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
|
+
};
|
|
43320
43342
|
|
|
43321
43343
|
var __default__$e = {
|
|
43322
43344
|
name: 'base-input'
|
|
@@ -45819,4 +45841,4 @@ var index = {
|
|
|
45819
45841
|
install: install
|
|
45820
45842
|
};
|
|
45821
45843
|
|
|
45822
|
-
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
|
@@ -42724,7 +42724,8 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42724
42724
|
}, null, 8 /* PROPS */, ["style", "url-list", "hide-on-click-modal", "z-index", "initial-index", "close-on-press-escape", "zoom-rate", "infinite"]))
|
|
42725
42725
|
: (vue.openBlock(), vue.createElementBlock("div", {
|
|
42726
42726
|
key: 1,
|
|
42727
|
-
class: vue.normalizeClass(["xrk-custom-image-viewer", { 'hide-close': __props.hideClose }])
|
|
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
42729
|
}, [
|
|
42729
42730
|
vue.createElementVNode("div", {
|
|
42730
42731
|
style: { "width": "100%", "height": "100%" },
|
|
@@ -42747,7 +42748,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42747
42748
|
onClose: handleClose
|
|
42748
42749
|
}, null, 8 /* PROPS */, ["style", "url-list", "hide-on-click-modal", "z-index", "initial-index", "close-on-press-escape", "zoom-rate", "infinite"])
|
|
42749
42750
|
], 32 /* HYDRATE_EVENTS */)
|
|
42750
|
-
],
|
|
42751
|
+
], 6 /* CLASS, STYLE */))
|
|
42751
42752
|
]))
|
|
42752
42753
|
: vue.createCommentVNode("v-if", true);
|
|
42753
42754
|
};
|
|
@@ -43319,7 +43320,28 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
43319
43320
|
|
|
43320
43321
|
script$f.__file = "packages/base/date-picker/date-picker.vue";
|
|
43321
43322
|
|
|
43322
|
-
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
|
+
};
|
|
43323
43345
|
|
|
43324
43346
|
var __default__$e = {
|
|
43325
43347
|
name: 'base-input'
|
|
@@ -45848,6 +45870,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
45848
45870
|
exports.XrkSearch = XrkSearch;
|
|
45849
45871
|
exports.XrkTable = XrkTable;
|
|
45850
45872
|
exports.createDialog = createDialog;
|
|
45873
|
+
exports.createDisabledDate = createDisabledDate;
|
|
45851
45874
|
exports.createImageViewer = createImageViewer;
|
|
45852
45875
|
exports["default"] = index;
|
|
45853
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';
|