bm-admin-ui 0.1.1-7 → 1.0.0-alpha
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/.pnpm-debug.log +16 -0
- package/es/components/button/index.d.ts +39 -17
- package/es/components/button/index.js +18 -9
- package/es/components/button/src/button.d.ts +10 -1
- package/es/components/button/src/button.vue.d.ts +45 -21
- package/es/components/flow-designer/index.js +1 -1
- package/es/components/form-designer/index.js +1 -1
- package/es/components/search-filter/index.d.ts +23 -5250
- package/es/components/search-filter/index.js +11 -9
- package/es/components/search-filter/src/search-filter.vue.d.ts +23 -5251
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -270
- package/es/components/search-filter/src/serach-filter.d.ts +3 -4
- package/index.esm.js +1007 -4293
- package/index.js +1006 -4292
- package/lib/components/button/index.d.ts +39 -17
- package/lib/components/button/index.js +17 -8
- package/lib/components/button/src/button.d.ts +10 -1
- package/lib/components/button/src/button.vue.d.ts +45 -21
- package/lib/components/flow-designer/index.js +1 -1
- package/lib/components/form-designer/index.js +1 -1
- package/lib/components/search-filter/index.d.ts +23 -5250
- package/lib/components/search-filter/index.js +10 -8
- package/lib/components/search-filter/src/search-filter.vue.d.ts +23 -5251
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -270
- package/lib/components/search-filter/src/serach-filter.d.ts +3 -4
- package/package.json +5 -5
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/button/index.d.ts +39 -17
- package/types/components/button/src/button.d.ts +10 -1
- package/types/components/button/src/button.vue.d.ts +45 -21
- package/types/components/search-filter/index.d.ts +23 -5250
- package/types/components/search-filter/src/search-filter.vue.d.ts +23 -5251
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -270
- package/types/components/search-filter/src/serach-filter.d.ts +3 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { h, nextTick, createVNode, defineComponent, ref, openBlock, createElementBlock, createTextVNode, toDisplayString, createBlock, unref, normalizeStyle, createCommentVNode, withCtx, reactive, computed, onBeforeUnmount, watch } from 'vue';
|
|
2
|
+
import { h, nextTick, createVNode, defineComponent, ref, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createBlock, unref, normalizeStyle, createCommentVNode, withCtx, reactive, computed, onBeforeUnmount, watch } from 'vue';
|
|
3
3
|
import FormCreateCtr from '@form-create/ant-design-vue';
|
|
4
|
-
import { Button } from 'ant-design-vue';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Take input from [0, n] and return it as [0, 1]
|
|
@@ -1168,7 +1167,9 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
1168
1167
|
},
|
|
1169
1168
|
}, value: {
|
|
1170
1169
|
type: Object,
|
|
1171
|
-
|
|
1170
|
+
default() {
|
|
1171
|
+
return {};
|
|
1172
|
+
},
|
|
1172
1173
|
}, ruleSpan: {
|
|
1173
1174
|
type: Object,
|
|
1174
1175
|
default() {
|
|
@@ -1208,6 +1209,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1208
1209
|
emits("reset");
|
|
1209
1210
|
}
|
|
1210
1211
|
return (_ctx, _cache) => {
|
|
1212
|
+
const _component_a_button = resolveComponent("a-button");
|
|
1211
1213
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1212
1214
|
props.showExpandBtn ? (openBlock(), createElementBlock("span", {
|
|
1213
1215
|
key: 0,
|
|
@@ -1223,7 +1225,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1223
1225
|
style: normalizeStyle(Object.assign(expandBtnStyle))
|
|
1224
1226
|
}, null, 8, ["style"]))
|
|
1225
1227
|
])) : createCommentVNode("v-if", true),
|
|
1226
|
-
createVNode(
|
|
1228
|
+
createVNode(_component_a_button, {
|
|
1227
1229
|
type: "primary",
|
|
1228
1230
|
onClick: handleSubmit
|
|
1229
1231
|
}, {
|
|
@@ -1232,7 +1234,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1232
1234
|
]),
|
|
1233
1235
|
_: 1
|
|
1234
1236
|
}),
|
|
1235
|
-
createVNode(
|
|
1237
|
+
createVNode(_component_a_button, { onClick: handleReset }, {
|
|
1236
1238
|
default: withCtx(() => [
|
|
1237
1239
|
_hoisted_3
|
|
1238
1240
|
]),
|
|
@@ -1242,7 +1244,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1242
1244
|
};
|
|
1243
1245
|
}
|
|
1244
1246
|
});
|
|
1245
|
-
var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "
|
|
1247
|
+
var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/hesiying/work/bm-admin-ui/packages/components/search-filter/src/search-reset-btn.vue"]]);
|
|
1246
1248
|
|
|
1247
1249
|
const _hoisted_1 = { class: "bm-search-filter" };
|
|
1248
1250
|
const __default__ = {
|
|
@@ -1254,7 +1256,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1254
1256
|
emits: ["update:value", "submit", "reset"],
|
|
1255
1257
|
setup(__props, { expose, emit: emits }) {
|
|
1256
1258
|
const props = __props;
|
|
1257
|
-
const FormCreate = FormCreateCtr.$form();
|
|
1258
1259
|
FormCreateCtr.component("SearchResetBtn", SearchResetBtn);
|
|
1259
1260
|
const isExpand = ref(false);
|
|
1260
1261
|
const searchResetBtnRule = reactive([
|
|
@@ -1340,8 +1341,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1340
1341
|
fApi
|
|
1341
1342
|
});
|
|
1342
1343
|
return (_ctx, _cache) => {
|
|
1344
|
+
const _component_form_create = resolveComponent("form-create");
|
|
1343
1345
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1344
|
-
createVNode(
|
|
1346
|
+
createVNode(_component_form_create, {
|
|
1345
1347
|
api: fApi.value,
|
|
1346
1348
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
1347
1349
|
"model-value": _ctx.value,
|
|
@@ -1353,7 +1355,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1353
1355
|
};
|
|
1354
1356
|
}
|
|
1355
1357
|
});
|
|
1356
|
-
var SearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
1358
|
+
var SearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/hesiying/work/bm-admin-ui/packages/components/search-filter/src/search-filter.vue"]]);
|
|
1357
1359
|
|
|
1358
1360
|
const BmSearchFilter = withInstall(SearchFilter);
|
|
1359
1361
|
|