@cimom-ui/standard-ui 1.1.12 → 1.1.13

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/README.md CHANGED
@@ -374,21 +374,22 @@ searchBar: {
374
374
  | --- | --- |
375
375
  | `<standard-toolbar-left :buttons>` | 工具栏左区;`buttons: [{ type, icon, text, title, method, show }]`,method 支持函数或方法名字符串;也支持默认插槽 |
376
376
  | `<standard-toolbar-right show-adjustment>` | 工具栏右区(插槽内容自动靠右);其内可放 `<standard-toolbar-query>` |
377
- | `<standard-toolbar-query>` | 右侧查询区,只能放在 `standard-toolbar-right` 内:输入框、查询、导出 |
377
+ | `<standard-toolbar-query>` | 右侧查询区,只能放在 `standard-toolbar-right` 内:输入框、查询,`show-export` 时再加导出 |
378
378
  | `<standard-toolbar-empty>` | 工具栏空占位(主组件内置,可省略) |
379
379
  | `<standard-column type/field/title/width/min-width/fixed/align/sortable/show-overflow/resizable/tree-node/formatter>` | 声明列;支持作用域插槽 `#default="{ row }"` |
380
380
  | `<standard-footer-left :text>` | 底部栏左侧文本 |
381
381
  | `<standard-footer-right :current-page :page-size :page-sizes :total :layout @page-change>` | 分页;`page-change` 参数 `{ currentPage, pageSize, type }` |
382
382
  | `<standard-footer-empty>` | 底部空占位(主组件内置,可省略) |
383
383
 
384
- **standard-toolbar-query**(单标签):只能作为 `<standard-toolbar-right>` 的子组件。放在其它位置时不渲染,并输出 `[StandardToolbarQuery]` 警告。内部从左到右固定为输入框、查询按钮、导出按钮,间距与工具栏其它按钮同为 6px。输入框回车与点击查询等效。
384
+ **standard-toolbar-query**(单标签):只能作为 `<standard-toolbar-right>` 的子组件。放在其它位置时不渲染,并输出 `[StandardToolbarQuery]` 警告。内部从左到右为输入框、查询按钮,`show-export` 为 true 时再显示导出按钮,间距与工具栏其它按钮同为 6px。输入框回车与点击查询等效。
385
385
 
386
386
  | 属性 | 类型 | 默认值 | 说明 |
387
387
  | --- | --- | --- | --- |
388
388
  | value | String/Number | `''` | v-model 绑定的查询关键字 |
389
389
  | placeholder | String | `'请输入关键字'` | 输入框占位文案 |
390
390
  | query-method | Function/String | `''` | 查询方法。函数直接调用;字符串沿父组件链查找同名方法。入参为当前关键字 |
391
- | export-method | Function/String | `''` | 导出方法,约定同 `query-method` |
391
+ | export-method | Function/String | `''` | 导出方法,约定同 `query-method`。需同时开启 `show-export` |
392
+ | show-export | Boolean | `false` | 是否显示导出按钮 |
392
393
  | loading | Boolean | `false` | 查询按钮加载态 |
393
394
 
394
395
  **事件**:`@input`(v-model)、`@query`、`@export`,后两个参数均为当前关键字。传入 `query-method` / `export-method` 时仍会派发对应事件。
@@ -399,6 +400,7 @@ searchBar: {
399
400
  v-model="keyword"
400
401
  placeholder="请输入编码/名称"
401
402
  query-method="onQuery"
403
+ show-export
402
404
  export-method="onExport"
403
405
  :loading="loading"
404
406
  />
@@ -123300,7 +123300,7 @@ var ToolbarLeft_component = normalizeComponent(
123300
123300
  * 工具栏右侧子组件(双标签组件):
123301
123301
  *
123302
123302
  * <standard-toolbar-right show-adjustment>
123303
- * <standard-toolbar-query query-method="onQuery" export-method="onExport" />
123303
+ * <standard-toolbar-query query-method="onQuery" show-export export-method="onExport" />
123304
123304
  * </standard-toolbar-right>
123305
123305
  *
123306
123306
  * 说明:
@@ -123377,8 +123377,8 @@ var ToolbarRight_component = normalizeComponent(
123377
123377
  )
123378
123378
 
123379
123379
  /* harmony default export */ const ToolbarRight = (ToolbarRight_component.exports);
123380
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=template&id=d3cc2f7c
123381
- var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123380
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=template&id=2b616fae
123381
+ var ToolbarQueryvue_type_template_id_2b616fae_render = function render() {
123382
123382
  var _vm = this,
123383
123383
  _c = _vm._self._c;
123384
123384
  return _vm.placedCorrectly ? _c('div', {
@@ -123402,7 +123402,7 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123402
123402
  on: {
123403
123403
  "click": _vm.onQuery
123404
123404
  }
123405
- }), _c('standard-button', {
123405
+ }), _vm.showExport ? _c('standard-button', {
123406
123406
  attrs: {
123407
123407
  "icon": "el-icon-upload2",
123408
123408
  "label": "导出"
@@ -123410,9 +123410,9 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123410
123410
  on: {
123411
123411
  "click": _vm.onExport
123412
123412
  }
123413
- })], 1) : _vm._e();
123413
+ }) : _vm._e()], 1) : _vm._e();
123414
123414
  };
123415
- var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123415
+ var ToolbarQueryvue_type_template_id_2b616fae_staticRenderFns = [];
123416
123416
 
123417
123417
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=script&lang=js
123418
123418
 
@@ -123426,16 +123426,18 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123426
123426
  * v-model="keyword"
123427
123427
  * placeholder="请输入关键字"
123428
123428
  * query-method="onQuery"
123429
+ * show-export
123429
123430
  * export-method="onExport"
123430
123431
  * />
123431
123432
  * </standard-toolbar-right>
123432
123433
  *
123433
123434
  * 说明:
123434
123435
  * 1. 只能作为 standard-toolbar-right 的子组件使用,放在其它位置时不渲染并给出警告;
123435
- * 2. 默认包含输入框、查询按钮、导出按钮(从左到右);输入框回车与点击查询等效;
123436
+ * 2. 默认包含输入框、查询按钮;showExport(模板写法 show-export)为 true 时再显示导出按钮。
123437
+ * 输入框回车与点击查询等效;
123436
123438
  * 3. queryMethod / exportMethod(模板写法 query-method / export-method)
123437
123439
  * 支持函数(直接调用)与字符串(沿父组件链查找页面方法),入参为当前关键字;
123438
- * 4. 同时派发 query / export 事件,参数同样为当前关键字。
123440
+ * 4. 同时派发 query / export 事件,参数同样为当前关键字。export 仅在导出按钮显示时由点击触发。
123439
123441
  */
123440
123442
  /* harmony default export */ const ToolbarQueryvue_type_script_lang_js = ({
123441
123443
  name: 'StandardToolbarQuery',
@@ -123468,6 +123470,11 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123468
123470
  type: [Function, String],
123469
123471
  "default": ''
123470
123472
  },
123473
+ // 是否显示导出按钮,默认不显示
123474
+ showExport: {
123475
+ type: Boolean,
123476
+ "default": false
123477
+ },
123471
123478
  // 查询按钮加载态
123472
123479
  loading: {
123473
123480
  type: Boolean,
@@ -123553,8 +123560,8 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123553
123560
  ;
123554
123561
  var ToolbarQuery_component = normalizeComponent(
123555
123562
  StandardTable_ToolbarQueryvue_type_script_lang_js,
123556
- ToolbarQueryvue_type_template_id_d3cc2f7c_render,
123557
- ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns,
123563
+ ToolbarQueryvue_type_template_id_2b616fae_render,
123564
+ ToolbarQueryvue_type_template_id_2b616fae_staticRenderFns,
123558
123565
  false,
123559
123566
  null,
123560
123567
  null,
@@ -123310,7 +123310,7 @@ var ToolbarLeft_component = normalizeComponent(
123310
123310
  * 工具栏右侧子组件(双标签组件):
123311
123311
  *
123312
123312
  * <standard-toolbar-right show-adjustment>
123313
- * <standard-toolbar-query query-method="onQuery" export-method="onExport" />
123313
+ * <standard-toolbar-query query-method="onQuery" show-export export-method="onExport" />
123314
123314
  * </standard-toolbar-right>
123315
123315
  *
123316
123316
  * 说明:
@@ -123387,8 +123387,8 @@ var ToolbarRight_component = normalizeComponent(
123387
123387
  )
123388
123388
 
123389
123389
  /* harmony default export */ const ToolbarRight = (ToolbarRight_component.exports);
123390
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=template&id=d3cc2f7c
123391
- var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123390
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=template&id=2b616fae
123391
+ var ToolbarQueryvue_type_template_id_2b616fae_render = function render() {
123392
123392
  var _vm = this,
123393
123393
  _c = _vm._self._c;
123394
123394
  return _vm.placedCorrectly ? _c('div', {
@@ -123412,7 +123412,7 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123412
123412
  on: {
123413
123413
  "click": _vm.onQuery
123414
123414
  }
123415
- }), _c('standard-button', {
123415
+ }), _vm.showExport ? _c('standard-button', {
123416
123416
  attrs: {
123417
123417
  "icon": "el-icon-upload2",
123418
123418
  "label": "导出"
@@ -123420,9 +123420,9 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_render = function render() {
123420
123420
  on: {
123421
123421
  "click": _vm.onExport
123422
123422
  }
123423
- })], 1) : _vm._e();
123423
+ }) : _vm._e()], 1) : _vm._e();
123424
123424
  };
123425
- var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123425
+ var ToolbarQueryvue_type_template_id_2b616fae_staticRenderFns = [];
123426
123426
 
123427
123427
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarQuery.vue?vue&type=script&lang=js
123428
123428
 
@@ -123436,16 +123436,18 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123436
123436
  * v-model="keyword"
123437
123437
  * placeholder="请输入关键字"
123438
123438
  * query-method="onQuery"
123439
+ * show-export
123439
123440
  * export-method="onExport"
123440
123441
  * />
123441
123442
  * </standard-toolbar-right>
123442
123443
  *
123443
123444
  * 说明:
123444
123445
  * 1. 只能作为 standard-toolbar-right 的子组件使用,放在其它位置时不渲染并给出警告;
123445
- * 2. 默认包含输入框、查询按钮、导出按钮(从左到右);输入框回车与点击查询等效;
123446
+ * 2. 默认包含输入框、查询按钮;showExport(模板写法 show-export)为 true 时再显示导出按钮。
123447
+ * 输入框回车与点击查询等效;
123446
123448
  * 3. queryMethod / exportMethod(模板写法 query-method / export-method)
123447
123449
  * 支持函数(直接调用)与字符串(沿父组件链查找页面方法),入参为当前关键字;
123448
- * 4. 同时派发 query / export 事件,参数同样为当前关键字。
123450
+ * 4. 同时派发 query / export 事件,参数同样为当前关键字。export 仅在导出按钮显示时由点击触发。
123449
123451
  */
123450
123452
  /* harmony default export */ const ToolbarQueryvue_type_script_lang_js = ({
123451
123453
  name: 'StandardToolbarQuery',
@@ -123478,6 +123480,11 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123478
123480
  type: [Function, String],
123479
123481
  "default": ''
123480
123482
  },
123483
+ // 是否显示导出按钮,默认不显示
123484
+ showExport: {
123485
+ type: Boolean,
123486
+ "default": false
123487
+ },
123481
123488
  // 查询按钮加载态
123482
123489
  loading: {
123483
123490
  type: Boolean,
@@ -123563,8 +123570,8 @@ var ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns = [];
123563
123570
  ;
123564
123571
  var ToolbarQuery_component = normalizeComponent(
123565
123572
  StandardTable_ToolbarQueryvue_type_script_lang_js,
123566
- ToolbarQueryvue_type_template_id_d3cc2f7c_render,
123567
- ToolbarQueryvue_type_template_id_d3cc2f7c_staticRenderFns,
123573
+ ToolbarQueryvue_type_template_id_2b616fae_render,
123574
+ ToolbarQueryvue_type_template_id_2b616fae_staticRenderFns,
123568
123575
  false,
123569
123576
  null,
123570
123577
  null,