xrk-components 0.3.2 → 0.3.5
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 +40 -28
- package/lib/index.umd.js +2998 -2986
- package/lib/packages/base/button/button.d.ts +124 -0
- package/lib/packages/base/button/index.d.ts +21 -0
- package/lib/packages/base/checkbox/checkbox-button.d.ts +85 -0
- package/lib/packages/base/checkbox/checkbox-group.d.ts +83 -0
- package/lib/packages/base/checkbox/checkbox.d.ts +102 -0
- package/lib/packages/base/checkbox/index.d.ts +44 -0
- package/lib/packages/base/date-picker/date-picker.d.ts +227 -0
- package/lib/packages/base/date-picker/index.d.ts +40 -0
- package/lib/packages/base/dialog/dialog.d.ts +223 -0
- package/lib/packages/base/dialog/index.d.ts +31 -0
- package/lib/packages/base/form/form-item.d.ts +87 -0
- package/lib/packages/base/form/form.d.ts +128 -0
- package/lib/packages/base/form/index.d.ts +30 -0
- package/lib/packages/base/input/index.d.ts +50 -0
- package/lib/packages/base/input/input.d.ts +284 -0
- package/lib/packages/base/pagination/index.d.ts +18 -0
- package/lib/packages/base/pagination/pagination.d.ts +95 -0
- package/lib/packages/base/radio/index.d.ts +43 -0
- package/lib/packages/base/radio/radio-button.d.ts +51 -0
- package/lib/packages/base/radio/radio-group.d.ts +59 -0
- package/lib/packages/base/radio/radio.d.ts +68 -0
- package/lib/packages/base/select/index.d.ts +102 -0
- package/lib/packages/base/select/select.d.ts +240 -0
- package/lib/packages/base/switch/index.d.ts +17 -0
- package/lib/packages/base/switch/switch.d.ts +114 -0
- package/lib/packages/base/table/hooks/use-table.d.ts +2 -0
- package/lib/packages/base/table/index.d.ts +5 -0
- package/lib/packages/base/table/store/index.d.ts +8 -0
- package/lib/packages/base/table/table-column.d.ts +291 -0
- package/lib/packages/base/table/table.d.ts +190 -0
- package/lib/packages/base/table/types/type.d.ts +156 -0
- package/lib/packages/base/tag/index.d.ts +38 -0
- package/lib/packages/base/tag/tag-group.d.ts +138 -0
- package/lib/packages/base/tag/tag.d.ts +81 -0
- package/lib/packages/base/tool-tip/index.d.ts +18 -0
- package/lib/packages/base/tool-tip/tool-tip.d.ts +106 -0
- package/lib/packages/components.d.ts +14 -0
- package/lib/packages/functions.d.ts +3 -0
- package/lib/packages/index.d.ts +10 -0
- package/lib/packages/types.d.ts +16 -0
- package/lib/packages/xrk/search/hooks/use-search.d.ts +45 -0
- package/lib/packages/xrk/search/index.d.ts +27 -0
- package/lib/packages/xrk/search/search.d.ts +59 -0
- package/lib/packages/xrk/search/types/type.d.ts +102 -0
- package/lib/packages/xrk/table/hooks/use-table.d.ts +6 -0
- package/lib/packages/xrk/table/index.d.ts +37 -0
- package/lib/packages/xrk/table/table.d.ts +50 -0
- package/lib/packages/xrk/table/types/type.d.ts +65 -0
- package/lib/tools/check.d.ts +1 -0
- package/package.json +11 -2
- package/tsconfig.json +4 -0
- package/rollup.config.js +0 -59
package/lib/index.esm.js
CHANGED
|
@@ -2,6 +2,8 @@ import ElementPlus, { ElButton, ElRadioButton, ElRadioGroup, vLoading, ElRadio,
|
|
|
2
2
|
import { defineComponent, ref, computed, openBlock, createBlock, unref, withCtx, renderSlot, withDirectives, createElementBlock, watch, withKeys, normalizeStyle, createElementVNode, isRef, Fragment, renderList, createVNode, toDisplayString, createTextVNode, createCommentVNode, nextTick, shallowRef, reactive, resolveDynamicComponent, mergeProps, createSlots, withModifiers, onMounted, render, h } from 'vue';
|
|
3
3
|
import { check, base } from 'xrk-tools';
|
|
4
4
|
|
|
5
|
+
var version = "0.3.5";
|
|
6
|
+
|
|
5
7
|
function getDefaultExportFromCjs (x) {
|
|
6
8
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
9
|
}
|
|
@@ -1008,7 +1010,7 @@ var script$c = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$c
|
|
|
1008
1010
|
renderSlot(_ctx.$slots, "content")
|
|
1009
1011
|
]; }),
|
|
1010
1012
|
default: withCtx(function () { return [
|
|
1011
|
-
(__props.overShow)
|
|
1013
|
+
(__props.trigger === 'hover' && __props.overShow)
|
|
1012
1014
|
? (openBlock(), createElementBlock("div", {
|
|
1013
1015
|
key: 0,
|
|
1014
1016
|
style: normalizeStyle([{ "width": "100%" }, __props.style]),
|
|
@@ -1092,7 +1094,7 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
1092
1094
|
loading.value = false;
|
|
1093
1095
|
// 避免多次请求接口 接口响应先后顺序不一致导致数据错乱
|
|
1094
1096
|
_options.value = Array.isArray(data)
|
|
1095
|
-
? data.filter(function (i) { return !val || "".concat(i[props.
|
|
1097
|
+
? data.filter(function (i) { return !val || "".concat(i[props.labelKey || 'label']).indexOf(val) > -1; })
|
|
1096
1098
|
: [];
|
|
1097
1099
|
return [3 /*break*/, 4];
|
|
1098
1100
|
case 3:
|
|
@@ -2617,6 +2619,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
2617
2619
|
removeSelectionRow: function (rowId) { var _a, _b; return (_b = (_a = XrkTablebaseTableRef.value) === null || _a === void 0 ? void 0 : _a.removeSelectionRow) === null || _b === void 0 ? void 0 : _b.call(_a, rowId); },
|
|
2618
2620
|
clearSelectionRows: function () { var _a, _b; return (_b = (_a = XrkTablebaseTableRef.value) === null || _a === void 0 ? void 0 : _a.clearSelectionRows) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
2619
2621
|
setSearchValue: function (key, value) { var _a, _b; return (_b = (_a = XrkSearchRef.value) === null || _a === void 0 ? void 0 : _a.setSearchValue) === null || _b === void 0 ? void 0 : _b.call(_a, key, value); },
|
|
2622
|
+
getSearchValue: function () { var _a, _b; return (_b = (_a = XrkSearchRef.value) === null || _a === void 0 ? void 0 : _a.getSearchValue) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
2620
2623
|
initCurrentList: function (customQuery) {
|
|
2621
2624
|
initSearchQuery();
|
|
2622
2625
|
getList === null || getList === void 0 ? void 0 : getList(__assign(__assign({}, (customQuery || {})), query.value));
|
|
@@ -2682,6 +2685,7 @@ var XrkTable = script$1;
|
|
|
2682
2685
|
|
|
2683
2686
|
var _hoisted_1 = { key: 1 };
|
|
2684
2687
|
var _hoisted_2 = { key: 1 };
|
|
2688
|
+
var _hoisted_3 = { key: 1 };
|
|
2685
2689
|
var __default__ = {
|
|
2686
2690
|
name: 'base-dialog'
|
|
2687
2691
|
};
|
|
@@ -2822,9 +2826,12 @@ var script = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__), {
|
|
|
2822
2826
|
render: __props.footerRender
|
|
2823
2827
|
}, null, 8 /* PROPS */, ["render"]))
|
|
2824
2828
|
: (__props.showFooter)
|
|
2825
|
-
? (openBlock(), createElementBlock("div",
|
|
2829
|
+
? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
2826
2830
|
(__props.cancelBtnConfig.show)
|
|
2827
|
-
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
2831
|
+
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
2832
|
+
key: 0,
|
|
2833
|
+
size: "large"
|
|
2834
|
+
}, __props.cancelBtnConfig, { click: handleCancelClick }), {
|
|
2828
2835
|
default: withCtx(function () { return [
|
|
2829
2836
|
createTextVNode(toDisplayString(__props.cancelBtnConfig.content), 1 /* TEXT */)
|
|
2830
2837
|
]; }),
|
|
@@ -2832,7 +2839,10 @@ var script = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__), {
|
|
|
2832
2839
|
}, 16 /* FULL_PROPS */))
|
|
2833
2840
|
: createCommentVNode("v-if", true),
|
|
2834
2841
|
(__props.confirmBtnConfig.show)
|
|
2835
|
-
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
2842
|
+
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
2843
|
+
key: 1,
|
|
2844
|
+
size: "large"
|
|
2845
|
+
}, __props.confirmBtnConfig, { click: handleConfirmClick }), {
|
|
2836
2846
|
default: withCtx(function () { return [
|
|
2837
2847
|
createTextVNode(toDisplayString(__props.confirmBtnConfig.content), 1 /* TEXT */)
|
|
2838
2848
|
]; }),
|
|
@@ -2848,7 +2858,9 @@ var script = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__), {
|
|
|
2848
2858
|
key: 0,
|
|
2849
2859
|
render: __props.contentRender
|
|
2850
2860
|
}, null, 8 /* PROPS */, ["render"]))
|
|
2851
|
-
:
|
|
2861
|
+
: (__props.content)
|
|
2862
|
+
? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.content), 1 /* TEXT */))
|
|
2863
|
+
: renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
2852
2864
|
]; }),
|
|
2853
2865
|
_: 3 /* FORWARDED */
|
|
2854
2866
|
}, 8 /* PROPS */, ["custom-class", "modelValue", "closeOnClickModal", "closeOnPressEscape", "appendToBody", "destroyOnClose", "center", "width", "showClose"]));
|
|
@@ -2886,27 +2898,27 @@ var createDialog = function (config) {
|
|
|
2886
2898
|
*/
|
|
2887
2899
|
|
|
2888
2900
|
var AllComponents = /*#__PURE__*/Object.freeze({
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2901
|
+
__proto__: null,
|
|
2902
|
+
BaseButton: BaseButton,
|
|
2903
|
+
BaseRadio: BaseRadio,
|
|
2904
|
+
BaseRadioGroup: BaseRadioGroup,
|
|
2905
|
+
BaseRadioButton: BaseRadioButton,
|
|
2906
|
+
BaseCheckbox: BaseCheckbox,
|
|
2907
|
+
BaseCheckboxGroup: BaseCheckboxGroup,
|
|
2908
|
+
BaseCheckboxButton: BaseCheckboxButton,
|
|
2909
|
+
BaseDatePicker: BaseDatePicker,
|
|
2910
|
+
BaseInput: BaseInput,
|
|
2911
|
+
BaseSelect: BaseSelect,
|
|
2912
|
+
BaseSwitch: BaseSwitch,
|
|
2913
|
+
BaseTag: BaseTag,
|
|
2914
|
+
BaseTagGroup: BaseTagGroup,
|
|
2915
|
+
BasePagination: BasePagination,
|
|
2916
|
+
BaseForm: BaseForm,
|
|
2917
|
+
BaseFormItem: BaseFormItem,
|
|
2918
|
+
XrkSearch: XrkSearch,
|
|
2919
|
+
BaseTable: BaseTable,
|
|
2920
|
+
XrkTable: XrkTable,
|
|
2921
|
+
BaseDialog: BaseDialog
|
|
2910
2922
|
});
|
|
2911
2923
|
|
|
2912
2924
|
/*
|
|
@@ -2951,7 +2963,7 @@ var install = function (app) {
|
|
|
2951
2963
|
});
|
|
2952
2964
|
};
|
|
2953
2965
|
var index = {
|
|
2954
|
-
version:
|
|
2966
|
+
version: version,
|
|
2955
2967
|
install: install
|
|
2956
2968
|
};
|
|
2957
2969
|
|