@funcho/ui 1.1.26 → 1.1.28
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/cjs/business/DataTable/DataTable.vue.js +10 -1
- package/dist/cjs/business/QueryForm/QueryForm.vue.js +3 -3
- package/dist/cjs/components/RichEditor/RichEditor.vue.js +1 -0
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/business/DataTable/DataTable.vue.mjs +10 -1
- package/dist/esm/business/QueryForm/QueryForm.vue.mjs +3 -3
- package/dist/esm/components/RichEditor/RichEditor.vue.mjs +1 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/style.css +1 -0
- package/dist/types/business/DataTable/DataTable.vue.d.ts +2 -0
- package/dist/types/business/DataTable/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -197,9 +197,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
197
197
|
pagination.value.pageSize = pageSize;
|
|
198
198
|
loadData();
|
|
199
199
|
};
|
|
200
|
+
const resetSearch = () => {
|
|
201
|
+
queryBoxRef.value?.resetFields();
|
|
202
|
+
handleResetClick();
|
|
203
|
+
};
|
|
200
204
|
__expose({
|
|
201
205
|
loadData,
|
|
202
|
-
|
|
206
|
+
// 刷新当前页
|
|
207
|
+
tableData,
|
|
208
|
+
reload: handleResetClick,
|
|
209
|
+
// 不清空表单,回到第一页刷新
|
|
210
|
+
resetSearch
|
|
211
|
+
// 清空表单,回到第一页刷新
|
|
203
212
|
});
|
|
204
213
|
return (_ctx, _cache) => {
|
|
205
214
|
const _directive_loading = vue.resolveDirective("loading");
|
|
@@ -159,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
if (type?.includes("Select") || type?.includes("Cascader") || type?.includes("DatePicker")) {
|
|
162
|
+
if (type?.includes("Select") || type?.includes("Cascader") || type?.includes("DatePicker") || type?.includes("TimePicker")) {
|
|
163
163
|
attrs.onClear = handleSearchClick;
|
|
164
164
|
attrs.onChange = handleSearchClick;
|
|
165
165
|
}
|
|
@@ -209,8 +209,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
209
209
|
ref: queryBoxRef,
|
|
210
210
|
class: vue.normalizeClass({ [vue.unref(ns).e("query-box")]: true, [vue.unref(ns).is("expanded")]: isExpanded.value }),
|
|
211
211
|
style: vue.normalizeStyle({
|
|
212
|
-
"--query-box-max-height": vue.unref(formHeight) +
|
|
213
|
-
"--query-box-first-row-height": formFirstRowHeight.value +
|
|
212
|
+
"--query-box-max-height": vue.unref(formHeight) + "px",
|
|
213
|
+
"--query-box-first-row-height": formFirstRowHeight.value + "px"
|
|
214
214
|
})
|
|
215
215
|
}, [
|
|
216
216
|
vue.createVNode(ProForm_vue_vue_type_script_setup_true_lang.default, {
|
|
@@ -120,6 +120,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
120
120
|
if (editorRef.value) {
|
|
121
121
|
if (_disabled.value || props.disabled || props.readonly) {
|
|
122
122
|
editorRef.value.disable();
|
|
123
|
+
editorRef.value.blur();
|
|
123
124
|
} else editorRef.value.enable();
|
|
124
125
|
}
|
|
125
126
|
});
|
|
@@ -193,9 +193,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
193
|
pagination.value.pageSize = pageSize;
|
|
194
194
|
loadData();
|
|
195
195
|
};
|
|
196
|
+
const resetSearch = () => {
|
|
197
|
+
queryBoxRef.value?.resetFields();
|
|
198
|
+
handleResetClick();
|
|
199
|
+
};
|
|
196
200
|
__expose({
|
|
197
201
|
loadData,
|
|
198
|
-
|
|
202
|
+
// 刷新当前页
|
|
203
|
+
tableData,
|
|
204
|
+
reload: handleResetClick,
|
|
205
|
+
// 不清空表单,回到第一页刷新
|
|
206
|
+
resetSearch
|
|
207
|
+
// 清空表单,回到第一页刷新
|
|
199
208
|
});
|
|
200
209
|
return (_ctx, _cache) => {
|
|
201
210
|
const _directive_loading = resolveDirective("loading");
|
|
@@ -155,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
if (type?.includes("Select") || type?.includes("Cascader") || type?.includes("DatePicker")) {
|
|
158
|
+
if (type?.includes("Select") || type?.includes("Cascader") || type?.includes("DatePicker") || type?.includes("TimePicker")) {
|
|
159
159
|
attrs.onClear = handleSearchClick;
|
|
160
160
|
attrs.onChange = handleSearchClick;
|
|
161
161
|
}
|
|
@@ -205,8 +205,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
205
|
ref: queryBoxRef,
|
|
206
206
|
class: normalizeClass({ [unref(ns).e("query-box")]: true, [unref(ns).is("expanded")]: isExpanded.value }),
|
|
207
207
|
style: normalizeStyle({
|
|
208
|
-
"--query-box-max-height": unref(formHeight) +
|
|
209
|
-
"--query-box-first-row-height": formFirstRowHeight.value +
|
|
208
|
+
"--query-box-max-height": unref(formHeight) + "px",
|
|
209
|
+
"--query-box-first-row-height": formFirstRowHeight.value + "px"
|
|
210
210
|
})
|
|
211
211
|
}, [
|
|
212
212
|
createVNode(_sfc_main$1, {
|
package/dist/style.css
CHANGED
|
@@ -17098,6 +17098,7 @@ to {
|
|
|
17098
17098
|
background-color: #e8efff;
|
|
17099
17099
|
border-radius: 2px;
|
|
17100
17100
|
padding: 8px;
|
|
17101
|
+
box-sizing: content-box !important;
|
|
17101
17102
|
max-height: var(--query-box-first-row-height);
|
|
17102
17103
|
overflow: hidden;
|
|
17103
17104
|
transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
|
|
@@ -1507,6 +1507,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
1507
1507
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
1508
1508
|
loadData: () => Promise<void>;
|
|
1509
1509
|
tableData: import('vue').Ref<any[], any[]>;
|
|
1510
|
+
reload: () => void;
|
|
1511
|
+
resetSearch: () => void;
|
|
1510
1512
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
1511
1513
|
height: number;
|
|
1512
1514
|
fields: Array<TProFormField>;
|
|
@@ -41,6 +41,8 @@ export declare const FcProDataTable: {
|
|
|
41
41
|
}> & Readonly<{}>, {
|
|
42
42
|
loadData: () => Promise<void>;
|
|
43
43
|
tableData: import('vue').Ref<any[], any[]>;
|
|
44
|
+
reload: () => void;
|
|
45
|
+
resetSearch: () => void;
|
|
44
46
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
45
47
|
height: number;
|
|
46
48
|
fields: Array<import('..').TProFormField>;
|
|
@@ -1593,6 +1595,8 @@ export declare const FcProDataTable: {
|
|
|
1593
1595
|
}> & Readonly<{}>, {
|
|
1594
1596
|
loadData: () => Promise<void>;
|
|
1595
1597
|
tableData: import('vue').Ref<any[], any[]>;
|
|
1598
|
+
reload: () => void;
|
|
1599
|
+
resetSearch: () => void;
|
|
1596
1600
|
}, {}, {}, {}, {
|
|
1597
1601
|
height: number;
|
|
1598
1602
|
fields: Array<import('..').TProFormField>;
|
|
@@ -1678,6 +1682,8 @@ export declare const FcProDataTable: {
|
|
|
1678
1682
|
}> & Readonly<{}>, {
|
|
1679
1683
|
loadData: () => Promise<void>;
|
|
1680
1684
|
tableData: import('vue').Ref<any[], any[]>;
|
|
1685
|
+
reload: () => void;
|
|
1686
|
+
resetSearch: () => void;
|
|
1681
1687
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
1682
1688
|
height: number;
|
|
1683
1689
|
fields: Array<import('..').TProFormField>;
|