bm-admin-ui 1.1.4-alpha → 1.1.5-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.
@@ -838,9 +838,9 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
838
838
  onOk?: ((...args: any[]) => any) | undefined;
839
839
  onClose?: ((...args: any[]) => any) | undefined;
840
840
  }, {
841
+ size: string;
841
842
  width: string;
842
843
  visible: boolean;
843
- size: string;
844
844
  }>>;
845
845
  declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
846
846
  type: {
@@ -832,8 +832,8 @@ declare const _default: import("vue").DefineComponent<{
832
832
  onOk?: ((...args: any[]) => any) | undefined;
833
833
  onClose?: ((...args: any[]) => any) | undefined;
834
834
  }, {
835
+ size: string;
835
836
  width: string;
836
837
  visible: boolean;
837
- size: string;
838
838
  }>;
839
839
  export default _default;
@@ -19275,68 +19275,69 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19275
19275
  createTextVNode(toDisplayString(__props.rule.title.title) + " ", 1),
19276
19276
  createElementVNode("span", _hoisted_3$3, toDisplayString(unref(countText)), 1),
19277
19277
  createElementVNode("div", _hoisted_4$3, [
19278
- unref(exportFeature) && !__props.hidden ? (openBlock(), createBlock(unref(Button), {
19279
- key: 0,
19280
- disabled: __props.disabled,
19281
- onClick: handleExport
19282
- }, {
19283
- default: withCtx(() => [
19284
- createTextVNode("\u5BFC\u51FA")
19285
- ]),
19286
- _: 1
19287
- }, 8, ["disabled"])) : createCommentVNode("v-if", true),
19288
- createTextVNode("\xA0 "),
19289
- unref(importFeature) && !__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19290
- createElementVNode("input", {
19291
- ref_key: "inputRef",
19292
- ref: inputRef,
19293
- style: { "display": "none" },
19294
- name: "file",
19295
- type: "file",
19296
- accept: "text/csv",
19297
- onChange: handleChange
19298
- }, null, 544),
19299
- createVNode(unref(Button), {
19278
+ !__props.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19279
+ unref(exportFeature) ? (openBlock(), createBlock(unref(Button), {
19280
+ key: 0,
19281
+ disabled: __props.disabled,
19282
+ onClick: handleExport
19283
+ }, {
19284
+ default: withCtx(() => [
19285
+ createTextVNode("\u5BFC\u51FA")
19286
+ ]),
19287
+ _: 1
19288
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true),
19289
+ createTextVNode("\xA0 "),
19290
+ unref(importFeature) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19291
+ createElementVNode("input", {
19292
+ ref_key: "inputRef",
19293
+ ref: inputRef,
19294
+ style: { "display": "none" },
19295
+ name: "file",
19296
+ type: "file",
19297
+ accept: "text/csv",
19298
+ onChange: handleChange
19299
+ }, null, 544),
19300
+ createVNode(unref(Button), {
19301
+ disabled: __props.disabled,
19302
+ onClick: handleDownload
19303
+ }, {
19304
+ default: withCtx(() => [
19305
+ createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
19306
+ ]),
19307
+ _: 1
19308
+ }, 8, ["disabled"]),
19309
+ createVNode(unref(Button), {
19310
+ disabled: __props.disabled,
19311
+ onClick: handleImport
19312
+ }, {
19313
+ default: withCtx(() => [
19314
+ createTextVNode("\u6279\u91CF\u5BFC\u5165")
19315
+ ]),
19316
+ _: 1
19317
+ }, 8, ["disabled"])
19318
+ ], 64)) : createCommentVNode("v-if", true),
19319
+ unref(deleteFeature) ? (openBlock(), createBlock(unref(Button), {
19320
+ key: 2,
19300
19321
  disabled: __props.disabled,
19301
- onClick: handleDownload
19322
+ onClick: handleBatchDelete
19302
19323
  }, {
19303
19324
  default: withCtx(() => [
19304
- createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
19325
+ createTextVNode("\u6279\u91CF\u5220\u9664")
19305
19326
  ]),
19306
19327
  _: 1
19307
- }, 8, ["disabled"]),
19328
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true),
19308
19329
  createVNode(unref(Button), {
19330
+ type: "primary",
19309
19331
  disabled: __props.disabled,
19310
- onClick: handleImport
19332
+ onClick: handleAdd
19311
19333
  }, {
19312
19334
  default: withCtx(() => [
19313
- createTextVNode("\u6279\u91CF\u5BFC\u5165")
19335
+ createVNode(unref(PlusOutlined)),
19336
+ createTextVNode(" \u65B0\u589E ")
19314
19337
  ]),
19315
19338
  _: 1
19316
19339
  }, 8, ["disabled"])
19317
- ], 64)) : createCommentVNode("v-if", true),
19318
- unref(deleteFeature) && !__props.hidden ? (openBlock(), createBlock(unref(Button), {
19319
- key: 2,
19320
- disabled: __props.disabled,
19321
- onClick: handleBatchDelete
19322
- }, {
19323
- default: withCtx(() => [
19324
- createTextVNode("\u6279\u91CF\u5220\u9664")
19325
- ]),
19326
- _: 1
19327
- }, 8, ["disabled"])) : createCommentVNode("v-if", true),
19328
- !__props.hidden ? (openBlock(), createBlock(unref(Button), {
19329
- key: 3,
19330
- type: "primary",
19331
- disabled: __props.disabled,
19332
- onClick: handleAdd
19333
- }, {
19334
- default: withCtx(() => [
19335
- createVNode(unref(PlusOutlined)),
19336
- createTextVNode(" \u65B0\u589E ")
19337
- ]),
19338
- _: 1
19339
- }, 8, ["disabled"])) : createCommentVNode("v-if", true)
19340
+ ], 64)) : createCommentVNode("v-if", true)
19340
19341
  ])
19341
19342
  ]),
19342
19343
  createElementVNode("div", _hoisted_5$3, [
@@ -21139,7 +21140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21139
21140
  "formPermissions",
21140
21141
  "resolveRulesConfig"
21141
21142
  ],
21142
- emits: ["update:value"],
21143
+ emits: ["update:value", "change"],
21143
21144
  setup(__props, { expose, emit: emits }) {
21144
21145
  const props = __props;
21145
21146
  const formRuleList = computed(() => {
@@ -21299,6 +21300,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21299
21300
  immediate: true
21300
21301
  }
21301
21302
  );
21303
+ function onChange(...reset) {
21304
+ emits("change", ...reset);
21305
+ }
21302
21306
  expose({ fApi });
21303
21307
  return (_ctx, _cache) => {
21304
21308
  const _component_formCreate = resolveComponent("formCreate", true);
@@ -21313,7 +21317,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21313
21317
  "model-value": __props.value,
21314
21318
  option: unref(option),
21315
21319
  rule: rule.value,
21316
- "onUpdate:modelValue": handleValue
21320
+ "onUpdate:modelValue": handleValue,
21321
+ onChange
21317
21322
  }, null, 8, ["api", "model-value", "option", "rule"])
21318
21323
  ], 64);
21319
21324
  };
@@ -1879,11 +1879,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1879
1879
  emits("mouseleave");
1880
1880
  }
1881
1881
  function emitSetActiveRuleEvt(rule) {
1882
+ if (rule?.config.immutable)
1883
+ return;
1882
1884
  emits("set-active-rule", rule, tableRule.value);
1883
1885
  }
1884
1886
  function handleClick(element) {
1885
- if (element?.config.immutable)
1886
- return;
1887
1887
  emitSetActiveRuleEvt(element);
1888
1888
  }
1889
1889
  function handleUpdate({ newIndex }) {
@@ -1047,8 +1047,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;
@@ -1047,8 +1047,8 @@ declare const _default: import("vue").DefineComponent<{
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;
@@ -838,9 +838,9 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
838
838
  onOk?: ((...args: any[]) => any) | undefined;
839
839
  onClose?: ((...args: any[]) => any) | undefined;
840
840
  }, {
841
+ size: string;
841
842
  width: string;
842
843
  visible: boolean;
843
- size: string;
844
844
  }>>;
845
845
  declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
846
846
  type: {
@@ -832,8 +832,8 @@ declare const _default: import("vue").DefineComponent<{
832
832
  onOk?: ((...args: any[]) => any) | undefined;
833
833
  onClose?: ((...args: any[]) => any) | undefined;
834
834
  }, {
835
+ size: string;
835
836
  width: string;
836
837
  visible: boolean;
837
- size: string;
838
838
  }>;
839
839
  export default _default;
@@ -19286,68 +19286,69 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
19286
19286
  vue.createTextVNode(vue.toDisplayString(__props.rule.title.title) + " ", 1),
19287
19287
  vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(vue.unref(countText)), 1),
19288
19288
  vue.createElementVNode("div", _hoisted_4$3, [
19289
- vue.unref(exportFeature) && !__props.hidden ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
19290
- key: 0,
19291
- disabled: __props.disabled,
19292
- onClick: handleExport
19293
- }, {
19294
- default: vue.withCtx(() => [
19295
- vue.createTextVNode("\u5BFC\u51FA")
19296
- ]),
19297
- _: 1
19298
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
19299
- vue.createTextVNode("\xA0 "),
19300
- vue.unref(importFeature) && !__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
19301
- vue.createElementVNode("input", {
19302
- ref_key: "inputRef",
19303
- ref: inputRef,
19304
- style: { "display": "none" },
19305
- name: "file",
19306
- type: "file",
19307
- accept: "text/csv",
19308
- onChange: handleChange
19309
- }, null, 544),
19310
- vue.createVNode(vue.unref(antDesignVue.Button), {
19289
+ !__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
19290
+ vue.unref(exportFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
19291
+ key: 0,
19292
+ disabled: __props.disabled,
19293
+ onClick: handleExport
19294
+ }, {
19295
+ default: vue.withCtx(() => [
19296
+ vue.createTextVNode("\u5BFC\u51FA")
19297
+ ]),
19298
+ _: 1
19299
+ }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
19300
+ vue.createTextVNode("\xA0 "),
19301
+ vue.unref(importFeature) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
19302
+ vue.createElementVNode("input", {
19303
+ ref_key: "inputRef",
19304
+ ref: inputRef,
19305
+ style: { "display": "none" },
19306
+ name: "file",
19307
+ type: "file",
19308
+ accept: "text/csv",
19309
+ onChange: handleChange
19310
+ }, null, 544),
19311
+ vue.createVNode(vue.unref(antDesignVue.Button), {
19312
+ disabled: __props.disabled,
19313
+ onClick: handleDownload
19314
+ }, {
19315
+ default: vue.withCtx(() => [
19316
+ vue.createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
19317
+ ]),
19318
+ _: 1
19319
+ }, 8, ["disabled"]),
19320
+ vue.createVNode(vue.unref(antDesignVue.Button), {
19321
+ disabled: __props.disabled,
19322
+ onClick: handleImport
19323
+ }, {
19324
+ default: vue.withCtx(() => [
19325
+ vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
19326
+ ]),
19327
+ _: 1
19328
+ }, 8, ["disabled"])
19329
+ ], 64)) : vue.createCommentVNode("v-if", true),
19330
+ vue.unref(deleteFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
19331
+ key: 2,
19311
19332
  disabled: __props.disabled,
19312
- onClick: handleDownload
19333
+ onClick: handleBatchDelete
19313
19334
  }, {
19314
19335
  default: vue.withCtx(() => [
19315
- vue.createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
19336
+ vue.createTextVNode("\u6279\u91CF\u5220\u9664")
19316
19337
  ]),
19317
19338
  _: 1
19318
- }, 8, ["disabled"]),
19339
+ }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
19319
19340
  vue.createVNode(vue.unref(antDesignVue.Button), {
19341
+ type: "primary",
19320
19342
  disabled: __props.disabled,
19321
- onClick: handleImport
19343
+ onClick: handleAdd
19322
19344
  }, {
19323
19345
  default: vue.withCtx(() => [
19324
- vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
19346
+ vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
19347
+ vue.createTextVNode(" \u65B0\u589E ")
19325
19348
  ]),
19326
19349
  _: 1
19327
19350
  }, 8, ["disabled"])
19328
- ], 64)) : vue.createCommentVNode("v-if", true),
19329
- vue.unref(deleteFeature) && !__props.hidden ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
19330
- key: 2,
19331
- disabled: __props.disabled,
19332
- onClick: handleBatchDelete
19333
- }, {
19334
- default: vue.withCtx(() => [
19335
- vue.createTextVNode("\u6279\u91CF\u5220\u9664")
19336
- ]),
19337
- _: 1
19338
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
19339
- !__props.hidden ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
19340
- key: 3,
19341
- type: "primary",
19342
- disabled: __props.disabled,
19343
- onClick: handleAdd
19344
- }, {
19345
- default: vue.withCtx(() => [
19346
- vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
19347
- vue.createTextVNode(" \u65B0\u589E ")
19348
- ]),
19349
- _: 1
19350
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
19351
+ ], 64)) : vue.createCommentVNode("v-if", true)
19351
19352
  ])
19352
19353
  ]),
19353
19354
  vue.createElementVNode("div", _hoisted_5$3, [
@@ -21150,7 +21151,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21150
21151
  "formPermissions",
21151
21152
  "resolveRulesConfig"
21152
21153
  ],
21153
- emits: ["update:value"],
21154
+ emits: ["update:value", "change"],
21154
21155
  setup(__props, { expose, emit: emits }) {
21155
21156
  const props = __props;
21156
21157
  const formRuleList = vue.computed(() => {
@@ -21310,6 +21311,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21310
21311
  immediate: true
21311
21312
  }
21312
21313
  );
21314
+ function onChange(...reset) {
21315
+ emits("change", ...reset);
21316
+ }
21313
21317
  expose({ fApi });
21314
21318
  return (_ctx, _cache) => {
21315
21319
  const _component_formCreate = vue.resolveComponent("formCreate", true);
@@ -21324,7 +21328,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21324
21328
  "model-value": __props.value,
21325
21329
  option: vue.unref(option),
21326
21330
  rule: rule.value,
21327
- "onUpdate:modelValue": handleValue
21331
+ "onUpdate:modelValue": handleValue,
21332
+ onChange
21328
21333
  }, null, 8, ["api", "model-value", "option", "rule"])
21329
21334
  ], 64);
21330
21335
  };
@@ -1889,11 +1889,11 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1889
1889
  emits("mouseleave");
1890
1890
  }
1891
1891
  function emitSetActiveRuleEvt(rule) {
1892
+ if (rule?.config.immutable)
1893
+ return;
1892
1894
  emits("set-active-rule", rule, tableRule.value);
1893
1895
  }
1894
1896
  function handleClick(element) {
1895
- if (element?.config.immutable)
1896
- return;
1897
1897
  emitSetActiveRuleEvt(element);
1898
1898
  }
1899
1899
  function handleUpdate({ newIndex }) {
@@ -1047,8 +1047,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;
@@ -1047,8 +1047,8 @@ declare const _default: import("vue").DefineComponent<{
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.1.4-alpha",
3
+ "version": "1.1.5-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",
@@ -838,9 +838,9 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
838
838
  onOk?: ((...args: any[]) => any) | undefined;
839
839
  onClose?: ((...args: any[]) => any) | undefined;
840
840
  }, {
841
+ size: string;
841
842
  width: string;
842
843
  visible: boolean;
843
- size: string;
844
844
  }>>;
845
845
  declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
846
846
  type: {
@@ -832,8 +832,8 @@ declare const _default: import("vue").DefineComponent<{
832
832
  onOk?: ((...args: any[]) => any) | undefined;
833
833
  onClose?: ((...args: any[]) => any) | undefined;
834
834
  }, {
835
+ size: string;
835
836
  width: string;
836
837
  visible: boolean;
837
- size: string;
838
838
  }>;
839
839
  export default _default;
@@ -1047,8 +1047,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;
@@ -1047,8 +1047,8 @@ declare const _default: import("vue").DefineComponent<{
1047
1047
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1048
1048
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1049
1049
  }, {
1050
- visible: boolean;
1051
1050
  title: string;
1051
+ visible: boolean;
1052
1052
  mode: string;
1053
1053
  showCount: boolean;
1054
1054
  unitStr: string;