@luzhaoqi/test 0.0.16 → 0.0.17

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.
Files changed (2) hide show
  1. package/dist/lib-cjs.js +301 -64
  2. package/package.json +1 -1
package/dist/lib-cjs.js CHANGED
@@ -17592,7 +17592,7 @@ var variables = {"menuColor":"#bfcbd9","menuLightColor":"rgba(0, 0, 0, 0.7)","me
17592
17592
 
17593
17593
  // import Item from './Item.vue'
17594
17594
 
17595
- var script$3 = {
17595
+ var script$5 = {
17596
17596
  name: 'k-icon',
17597
17597
  data() {
17598
17598
  return {
@@ -17701,10 +17701,10 @@ var normalizeComponent_1 = normalizeComponent;
17701
17701
  var __vue_normalize__ = /*@__PURE__*/getDefaultExportFromCjs(normalizeComponent_1);
17702
17702
 
17703
17703
  /* script */
17704
- const __vue_script__$3 = script$3;
17704
+ const __vue_script__$5 = script$5;
17705
17705
 
17706
17706
  /* template */
17707
- var __vue_render__$3 = function () {
17707
+ var __vue_render__$5 = function () {
17708
17708
  var _vm = this;
17709
17709
  var _h = _vm.$createElement;
17710
17710
  var _c = _vm._self._c || _h;
@@ -17716,17 +17716,17 @@ var __vue_render__$3 = function () {
17716
17716
  _vm._v("\n " + _vm._s(_vm.variables) + "\n"),
17717
17717
  ])
17718
17718
  };
17719
- var __vue_staticRenderFns__$3 = [];
17720
- __vue_render__$3._withStripped = true;
17719
+ var __vue_staticRenderFns__$5 = [];
17720
+ __vue_render__$5._withStripped = true;
17721
17721
 
17722
17722
  /* style */
17723
- const __vue_inject_styles__$3 = undefined;
17723
+ const __vue_inject_styles__$5 = undefined;
17724
17724
  /* scoped */
17725
- const __vue_scope_id__$3 = undefined;
17725
+ const __vue_scope_id__$5 = undefined;
17726
17726
  /* module identifier */
17727
- const __vue_module_identifier__$3 = undefined;
17727
+ const __vue_module_identifier__$5 = undefined;
17728
17728
  /* functional template */
17729
- const __vue_is_functional_template__$3 = false;
17729
+ const __vue_is_functional_template__$5 = false;
17730
17730
  /* style inject */
17731
17731
 
17732
17732
  /* style inject SSR */
@@ -17735,22 +17735,22 @@ __vue_render__$3._withStripped = true;
17735
17735
 
17736
17736
 
17737
17737
 
17738
- const __vue_component__$3 = /*#__PURE__*/__vue_normalize__(
17739
- { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
17740
- __vue_inject_styles__$3,
17741
- __vue_script__$3,
17742
- __vue_scope_id__$3,
17743
- __vue_is_functional_template__$3,
17744
- __vue_module_identifier__$3,
17738
+ const __vue_component__$5 = /*#__PURE__*/__vue_normalize__(
17739
+ { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
17740
+ __vue_inject_styles__$5,
17741
+ __vue_script__$5,
17742
+ __vue_scope_id__$5,
17743
+ __vue_is_functional_template__$5,
17744
+ __vue_module_identifier__$5,
17745
17745
  false,
17746
17746
  undefined,
17747
17747
  undefined,
17748
17748
  undefined
17749
17749
  );
17750
17750
 
17751
- __vue_component__$3.install = function (Vue, option) {
17751
+ __vue_component__$5.install = function (Vue, option) {
17752
17752
  setGolbalData(Vue, option);
17753
- Vue.component(__vue_component__$3.name, __vue_component__$3);
17753
+ Vue.component(__vue_component__$5.name, __vue_component__$5);
17754
17754
  };
17755
17755
 
17756
17756
  var axios$3 = {exports: {}};
@@ -94545,7 +94545,7 @@ var RouterZ = {
94545
94545
  //
94546
94546
  //
94547
94547
 
94548
- var script$2 = {
94548
+ var script$4 = {
94549
94549
  name: 'z-table',
94550
94550
  computed: {
94551
94551
  globalConfig() {
@@ -94690,10 +94690,10 @@ var browser = createInjector;
94690
94690
  var __vue_create_injector__ = /*@__PURE__*/getDefaultExportFromCjs(browser);
94691
94691
 
94692
94692
  /* script */
94693
- const __vue_script__$2 = script$2;
94693
+ const __vue_script__$4 = script$4;
94694
94694
 
94695
94695
  /* template */
94696
- var __vue_render__$2 = function () {
94696
+ var __vue_render__$4 = function () {
94697
94697
  var _vm = this;
94698
94698
  var _h = _vm.$createElement;
94699
94699
  var _c = _vm._self._c || _h;
@@ -94877,43 +94877,43 @@ var __vue_render__$2 = function () {
94877
94877
  1
94878
94878
  )
94879
94879
  };
94880
- var __vue_staticRenderFns__$2 = [];
94881
- __vue_render__$2._withStripped = true;
94880
+ var __vue_staticRenderFns__$4 = [];
94881
+ __vue_render__$4._withStripped = true;
94882
94882
 
94883
94883
  /* style */
94884
- const __vue_inject_styles__$2 = function (inject) {
94884
+ const __vue_inject_styles__$4 = function (inject) {
94885
94885
  if (!inject) return
94886
94886
  inject("data-v-7bdbe6c8_0", { source: ".z-table-comp .z-table-header-btn-group[data-v-7bdbe6c8] {\n padding-bottom: 10px;\n display: flex;\n}\n.z-table-comp .z-table-header-btn-group .leftMenu[data-v-7bdbe6c8] {\n flex: 1;\n margin-right: 20px;\n}\n.z-table-comp .btn-box[data-v-7bdbe6c8] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.z-table-comp .btn-box[data-v-7bdbe6c8] .el-button {\n padding: 0 !important;\n}\n.z-table-comp .pagination-box[data-v-7bdbe6c8] {\n text-align: right;\n}\n.z-table-comp .pagination-box[data-v-7bdbe6c8] .el-pagination {\n margin-top: 25px;\n}\n\n/*# sourceMappingURL=table.vue.map */", map: {"version":3,"sources":["D:\\workspace-my\\gitee\\rollup-demo\\lib\\packages\\table\\table.vue","table.vue"],"names":[],"mappings":"AA8JA;EACA,oBAAA;EACA,aAAA;AC7JA;AD8JA;EACA,OAAA;EACA,kBAAA;AC5JA;AD+JA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,WAAA;AC7JA;AD8JA;EACA,qBAAA;AC5JA;AD+JA;EACA,iBAAA;AC7JA;AD8JA;EACA,gBAAA;AC5JA;;AAEA,oCAAoC","file":"table.vue","sourcesContent":["<template>\r\n <div class=\"z-table-comp\">\r\n <!-- 头部按钮-->\r\n <div class=\"z-table-header-btn-group\" v-if=\"$slots.leftMenu || $slots.rightMenu\">\r\n <div class=\"leftMenu\">\r\n <slot name=\"leftMenu\"></slot>\r\n </div>\r\n <div class=\"rightMenu\">\r\n <slot name=\"rightMenu\"></slot>\r\n </div>\r\n </div>\r\n <!-- 表格 -->\r\n <el-table v-loading=\"loading\" :data=\"tableData\" ref=\"table\" :border=\"tableOption.border\">\r\n <template v-for=\"(o, i) in tableOption.column\">\r\n <!-- 序号和选中 -->\r\n <el-table-column\r\n :key=\"'item' + i\"\r\n v-if=\"o.type && !o.prop\"\r\n :type=\"o.type\"\r\n :width=\"o.width || 60\"\r\n :label=\"o.label\"\r\n :index=\"getIndex(i)\"\r\n :align=\"o.align || 'center'\"\r\n />\r\n <!-- 操作按钮 -->\r\n <el-table-column\r\n :align=\"o.align || 'center'\"\r\n :key=\"'item' + i\"\r\n v-else-if=\"o.slot && o.prop === 'menu'\"\r\n :label=\"o.label\"\r\n :width=\"o.width || null\"\r\n >\r\n <template #default=\"{ row, $index }\">\r\n <div class=\"btn-box\">\r\n <slot :name=\"o.prop\" :row=\"row\" :$index=\"$index\"></slot>\r\n </div>\r\n </template>\r\n </el-table-column>\r\n <!-- 插槽 -->\r\n <el-table-column :align=\"o.align || 'center'\" :key=\"'item' + i\" v-else-if=\"o.slot\" :label=\"o.label\" :width=\"o.width || null\">\r\n <template #default=\"{ row, $index }\">\r\n <div class=\"z-cell\">\r\n <slot :name=\"o.prop\" :row=\"row\" :$index=\"$index\"></slot>\r\n </div>\r\n </template>\r\n </el-table-column>\r\n <!-- 针对其他默认情况 -->\r\n <el-table-column :align=\"o.align || 'center'\" :key=\"'item' + i\" v-else :label=\"o.label\" :prop=\"o.prop\" :width=\"o.width || null\">\r\n </el-table-column>\r\n </template>\r\n </el-table>\r\n <div class=\"pagination-box\" v-if=\"tableOption.pagination || tableOption.pagination === undefined\">\r\n <!-- hide-on-single-page-->\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n :page-sizes=\"[10, 20, 30, 40, 50, 100]\"\r\n :page-size.sync=\"pageParams[globalConfig.pageSize]\"\r\n :current-page.sync=\"pageParams[globalConfig.pageNum]\"\r\n layout=\"total, sizes, prev, pager, next, jumper\"\r\n :total=\"total\"\r\n >\r\n </el-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'z-table',\r\n computed: {\r\n globalConfig() {\r\n if (!this.pageParamsConfig.isDefault) {\r\n return this.pageParamsConfig\r\n } else if (this.$z.list) {\r\n return this.$z.list\r\n }\r\n return this.pageParamsConfig\r\n }\r\n },\r\n props: {\r\n // 表格配置\r\n tableOption: {\r\n type: Object,\r\n required: true,\r\n default() {\r\n return {\r\n api: function () {\r\n return Promise.resolve()\r\n },\r\n column: []\r\n }\r\n }\r\n },\r\n // 表格数据\r\n tableData: {\r\n type: Array,\r\n default: () => {\r\n return []\r\n }\r\n },\r\n // 页码配置\r\n pageParamsConfig: {\r\n type: Object,\r\n default: () => {\r\n return {\r\n pageSize: 'pageSize',\r\n pageNum: 'pageNum',\r\n isDefault: true\r\n }\r\n }\r\n },\r\n // 页码参数\r\n pageParams: {\r\n type: Object,\r\n default: () => {\r\n return {\r\n pageSize: 10,\r\n pageNum: 1\r\n }\r\n }\r\n },\r\n total: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 禁用\r\n disabled: {\r\n type: Boolean,\r\n default: () => false\r\n },\r\n // 等待\r\n loading: {\r\n type: Boolean,\r\n default: () => false\r\n }\r\n },\r\n methods: {\r\n // 计算序号\r\n getIndex(index) {\r\n return index + 1 + (this.pageParams[this.globalConfig.pageNum] - 1) * this.pageParams[this.globalConfig.pageSize]\r\n },\r\n // 分数数量改变\r\n handleSizeChange() {\r\n this.pageParams[this.globalConfig.pageNum] = 1\r\n this.$emit('getData')\r\n },\r\n // 页码改变\r\n handleCurrentChange() {\r\n this.$emit('getData')\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n.z-table-comp {\r\n .z-table-header-btn-group {\r\n padding-bottom: 10px;\r\n display: flex;\r\n .leftMenu {\r\n flex: 1;\r\n margin-right: 20px;\r\n }\r\n }\r\n .btn-box {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n ::v-deep .el-button {\r\n padding: 0 !important;\r\n }\r\n }\r\n .pagination-box {\r\n text-align: right;\r\n ::v-deep .el-pagination {\r\n margin-top: 25px;\r\n }\r\n }\r\n}\r\n</style>\r\n",".z-table-comp .z-table-header-btn-group {\n padding-bottom: 10px;\n display: flex;\n}\n.z-table-comp .z-table-header-btn-group .leftMenu {\n flex: 1;\n margin-right: 20px;\n}\n.z-table-comp .btn-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.z-table-comp .btn-box ::v-deep .el-button {\n padding: 0 !important;\n}\n.z-table-comp .pagination-box {\n text-align: right;\n}\n.z-table-comp .pagination-box ::v-deep .el-pagination {\n margin-top: 25px;\n}\n\n/*# sourceMappingURL=table.vue.map */"]}, media: undefined });
94887
94887
 
94888
94888
  };
94889
94889
  /* scoped */
94890
- const __vue_scope_id__$2 = "data-v-7bdbe6c8";
94890
+ const __vue_scope_id__$4 = "data-v-7bdbe6c8";
94891
94891
  /* module identifier */
94892
- const __vue_module_identifier__$2 = undefined;
94892
+ const __vue_module_identifier__$4 = undefined;
94893
94893
  /* functional template */
94894
- const __vue_is_functional_template__$2 = false;
94894
+ const __vue_is_functional_template__$4 = false;
94895
94895
  /* style inject SSR */
94896
94896
 
94897
94897
  /* style inject shadow dom */
94898
94898
 
94899
94899
 
94900
94900
 
94901
- const __vue_component__$2 = /*#__PURE__*/__vue_normalize__(
94902
- { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
94903
- __vue_inject_styles__$2,
94904
- __vue_script__$2,
94905
- __vue_scope_id__$2,
94906
- __vue_is_functional_template__$2,
94907
- __vue_module_identifier__$2,
94901
+ const __vue_component__$4 = /*#__PURE__*/__vue_normalize__(
94902
+ { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
94903
+ __vue_inject_styles__$4,
94904
+ __vue_script__$4,
94905
+ __vue_scope_id__$4,
94906
+ __vue_is_functional_template__$4,
94907
+ __vue_module_identifier__$4,
94908
94908
  false,
94909
94909
  __vue_create_injector__,
94910
94910
  undefined,
94911
94911
  undefined
94912
94912
  );
94913
94913
 
94914
- __vue_component__$2.install = function (Vue, option = {}) {
94914
+ __vue_component__$4.install = function (Vue, option = {}) {
94915
94915
  setGolbalData(Vue, option);
94916
- Vue.component(__vue_component__$2.name, __vue_component__$2);
94916
+ Vue.component(__vue_component__$4.name, __vue_component__$4);
94917
94917
  };
94918
94918
 
94919
94919
  //
@@ -94941,7 +94941,7 @@ __vue_component__$2.install = function (Vue, option = {}) {
94941
94941
  //
94942
94942
  //
94943
94943
 
94944
- var script$1 = {
94944
+ var script$3 = {
94945
94945
  name: 'z-list',
94946
94946
  props: {
94947
94947
  // 表格配置
@@ -95045,10 +95045,10 @@ var script$1 = {
95045
95045
  };
95046
95046
 
95047
95047
  /* script */
95048
- const __vue_script__$1 = script$1;
95048
+ const __vue_script__$3 = script$3;
95049
95049
 
95050
95050
  /* template */
95051
- var __vue_render__$1 = function () {
95051
+ var __vue_render__$3 = function () {
95052
95052
  var _vm = this;
95053
95053
  var _h = _vm.$createElement;
95054
95054
  var _c = _vm._self._c || _h;
@@ -95133,43 +95133,43 @@ var __vue_render__$1 = function () {
95133
95133
  2
95134
95134
  )
95135
95135
  };
95136
- var __vue_staticRenderFns__$1 = [];
95137
- __vue_render__$1._withStripped = true;
95136
+ var __vue_staticRenderFns__$3 = [];
95137
+ __vue_render__$3._withStripped = true;
95138
95138
 
95139
95139
  /* style */
95140
- const __vue_inject_styles__$1 = function (inject) {
95140
+ const __vue_inject_styles__$3 = function (inject) {
95141
95141
  if (!inject) return
95142
95142
  inject("data-v-378264cd_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"list.vue"}, media: undefined });
95143
95143
 
95144
95144
  };
95145
95145
  /* scoped */
95146
- const __vue_scope_id__$1 = "data-v-378264cd";
95146
+ const __vue_scope_id__$3 = "data-v-378264cd";
95147
95147
  /* module identifier */
95148
- const __vue_module_identifier__$1 = undefined;
95148
+ const __vue_module_identifier__$3 = undefined;
95149
95149
  /* functional template */
95150
- const __vue_is_functional_template__$1 = false;
95150
+ const __vue_is_functional_template__$3 = false;
95151
95151
  /* style inject SSR */
95152
95152
 
95153
95153
  /* style inject shadow dom */
95154
95154
 
95155
95155
 
95156
95156
 
95157
- const __vue_component__$1 = /*#__PURE__*/__vue_normalize__(
95158
- { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
95159
- __vue_inject_styles__$1,
95160
- __vue_script__$1,
95161
- __vue_scope_id__$1,
95162
- __vue_is_functional_template__$1,
95163
- __vue_module_identifier__$1,
95157
+ const __vue_component__$3 = /*#__PURE__*/__vue_normalize__(
95158
+ { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
95159
+ __vue_inject_styles__$3,
95160
+ __vue_script__$3,
95161
+ __vue_scope_id__$3,
95162
+ __vue_is_functional_template__$3,
95163
+ __vue_module_identifier__$3,
95164
95164
  false,
95165
95165
  __vue_create_injector__,
95166
95166
  undefined,
95167
95167
  undefined
95168
95168
  );
95169
95169
 
95170
- __vue_component__$1.install = function (Vue, option = {}) {
95170
+ __vue_component__$3.install = function (Vue, option = {}) {
95171
95171
  setGolbalData(Vue, option);
95172
- Vue.component(__vue_component__$1.name, __vue_component__$1);
95172
+ Vue.component(__vue_component__$3.name, __vue_component__$3);
95173
95173
  };
95174
95174
 
95175
95175
  /**
@@ -95577,7 +95577,7 @@ var DictZ = {
95577
95577
  //
95578
95578
  //
95579
95579
 
95580
- var script = {
95580
+ var script$2 = {
95581
95581
  name: 'z-dict-tag',
95582
95582
  props: {
95583
95583
  options: {
@@ -95634,10 +95634,10 @@ var script = {
95634
95634
  };
95635
95635
 
95636
95636
  /* script */
95637
- const __vue_script__ = script;
95637
+ const __vue_script__$2 = script$2;
95638
95638
 
95639
95639
  /* template */
95640
- var __vue_render__ = function () {
95640
+ var __vue_render__$2 = function () {
95641
95641
  var _vm = this;
95642
95642
  var _h = _vm.$createElement;
95643
95643
  var _c = _vm._self._c || _h;
@@ -95696,17 +95696,252 @@ var __vue_render__ = function () {
95696
95696
  2
95697
95697
  )
95698
95698
  };
95699
+ var __vue_staticRenderFns__$2 = [];
95700
+ __vue_render__$2._withStripped = true;
95701
+
95702
+ /* style */
95703
+ const __vue_inject_styles__$2 = function (inject) {
95704
+ if (!inject) return
95705
+ inject("data-v-4dd7787c_0", { source: "\n.el-tag + .el-tag[data-v-4dd7787c] {\r\n margin-left: 10px;\n}\r\n", map: {"version":3,"sources":["D:\\workspace-my\\gitee\\rollup-demo\\lib\\packages\\dictTag\\dictTag.vue"],"names":[],"mappings":";AAmFA;EACA,iBAAA;AACA","file":"dictTag.vue","sourcesContent":["<template>\r\n <div>\r\n <template v-for=\"(item, index) in options\">\r\n <template v-if=\"values.includes(item.value)\">\r\n <span v-if=\"item.raw.listClass == 'default' || item.raw.listClass == ''\" :key=\"item.value\" :index=\"index\" :class=\"item.raw.cssClass\">{{\r\n item.label + ' '\r\n }}</span>\r\n <el-tag\r\n v-else\r\n :disable-transitions=\"true\"\r\n :key=\"item.value\"\r\n :index=\"index\"\r\n :type=\"item.raw.listClass == 'primary' ? '' : item.raw.listClass\"\r\n :class=\"item.raw.cssClass\"\r\n >\r\n {{ item.label + ' ' }}\r\n </el-tag>\r\n </template>\r\n </template>\r\n <template v-if=\"unmatch && showValue\">\r\n {{ unmatchArray | handleArray }}\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'z-dict-tag',\r\n props: {\r\n options: {\r\n type: Array,\r\n default: null\r\n },\r\n value: [Number, String, Array],\r\n // 当未找到匹配的数据时,显示value\r\n showValue: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n unmatchArray: [] // 记录未匹配的项\r\n }\r\n },\r\n computed: {\r\n values() {\r\n if (this.value !== null && typeof this.value !== 'undefined') {\r\n return Array.isArray(this.value) ? this.value : [String(this.value)]\r\n } else {\r\n return []\r\n }\r\n },\r\n unmatch() {\r\n this.unmatchArray = []\r\n if (this.value !== null && typeof this.value !== 'undefined') {\r\n // 传入值为非数组\r\n if (!Array.isArray(this.value)) {\r\n if (this.options.some((v) => v.value == this.value)) return false\r\n this.unmatchArray.push(this.value)\r\n return true\r\n }\r\n // 传入值为Array\r\n this.value.forEach((item) => {\r\n if (!this.options.some((v) => v.value == item)) this.unmatchArray.push(item)\r\n })\r\n return true\r\n }\r\n // 没有value不显示\r\n return false\r\n }\r\n },\r\n filters: {\r\n handleArray(array) {\r\n if (array.length === 0) return ''\r\n return array.reduce((pre, cur) => {\r\n return pre + ' ' + cur\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped>\r\n.el-tag + .el-tag {\r\n margin-left: 10px;\r\n}\r\n</style>\r\n"]}, media: undefined });
95706
+
95707
+ };
95708
+ /* scoped */
95709
+ const __vue_scope_id__$2 = "data-v-4dd7787c";
95710
+ /* module identifier */
95711
+ const __vue_module_identifier__$2 = undefined;
95712
+ /* functional template */
95713
+ const __vue_is_functional_template__$2 = false;
95714
+ /* style inject SSR */
95715
+
95716
+ /* style inject shadow dom */
95717
+
95718
+
95719
+
95720
+ const __vue_component__$2 = /*#__PURE__*/__vue_normalize__(
95721
+ { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
95722
+ __vue_inject_styles__$2,
95723
+ __vue_script__$2,
95724
+ __vue_scope_id__$2,
95725
+ __vue_is_functional_template__$2,
95726
+ __vue_module_identifier__$2,
95727
+ false,
95728
+ __vue_create_injector__,
95729
+ undefined,
95730
+ undefined
95731
+ );
95732
+
95733
+ __vue_component__$2.install = function (Vue, option = {}) {
95734
+ setGolbalData(Vue, option);
95735
+ Vue.component(__vue_component__$2.name, __vue_component__$2);
95736
+ };
95737
+
95738
+ //
95739
+ //
95740
+ //
95741
+ //
95742
+ //
95743
+ //
95744
+ //
95745
+ //
95746
+ //
95747
+ //
95748
+ //
95749
+ //
95750
+ //
95751
+ //
95752
+ //
95753
+ //
95754
+ //
95755
+
95756
+ var script$1 = {
95757
+ name: 'z-dialog',
95758
+ props: {
95759
+ visible: {
95760
+ type: Boolean,
95761
+ default: false
95762
+ },
95763
+ disabled: {
95764
+ type: Boolean,
95765
+ default: false
95766
+ }
95767
+ },
95768
+ computed: {
95769
+ zVisible: {
95770
+ get: function () {
95771
+ return this.visible
95772
+ },
95773
+ set: function (val) {
95774
+ this.$emit('update:visible', val);
95775
+ }
95776
+ }
95777
+ },
95778
+ methods: {
95779
+ // 给调用的组件初始化数据 再 关闭
95780
+ handleCancel() {
95781
+ this.zVisible = false;
95782
+ this.$emit('cancel');
95783
+ },
95784
+ handelOk() {
95785
+ this.$emit('ok', (message) => {
95786
+ if (message) {
95787
+ this.$message.success(message);
95788
+ }
95789
+ this.handleCancel();
95790
+ });
95791
+ }
95792
+ }
95793
+ };
95794
+
95795
+ /* script */
95796
+ const __vue_script__$1 = script$1;
95797
+
95798
+ /* template */
95799
+ var __vue_render__$1 = function () {
95800
+ var _vm = this;
95801
+ var _h = _vm.$createElement;
95802
+ var _c = _vm._self._c || _h;
95803
+ return _c(
95804
+ "el-dialog",
95805
+ _vm._b(
95806
+ {
95807
+ ref: "dialog",
95808
+ staticClass: "z-dialog",
95809
+ attrs: {
95810
+ visible: _vm.visible,
95811
+ "close-on-click-modal": false,
95812
+ "before-close": _vm.handleCancel,
95813
+ },
95814
+ scopedSlots: _vm._u(
95815
+ [
95816
+ {
95817
+ key: "title",
95818
+ fn: function () {
95819
+ return [_vm._t("title")]
95820
+ },
95821
+ proxy: true,
95822
+ },
95823
+ {
95824
+ key: "footer",
95825
+ fn: function () {
95826
+ return [
95827
+ _vm._t("footer", function () {
95828
+ return [
95829
+ _c(
95830
+ "div",
95831
+ { staticClass: "dialog-footer" },
95832
+ [
95833
+ !_vm.disabled
95834
+ ? _c(
95835
+ "el-button",
95836
+ {
95837
+ attrs: { type: "primary" },
95838
+ on: { click: _vm.handelOk },
95839
+ },
95840
+ [_vm._v("提 交")]
95841
+ )
95842
+ : _vm._e(),
95843
+ _vm._v(" "),
95844
+ _c("el-button", { on: { click: _vm.handleCancel } }, [
95845
+ _vm._v("取 消"),
95846
+ ]),
95847
+ ],
95848
+ 1
95849
+ ),
95850
+ ]
95851
+ }),
95852
+ ]
95853
+ },
95854
+ proxy: true,
95855
+ },
95856
+ ],
95857
+ null,
95858
+ true
95859
+ ),
95860
+ },
95861
+ "el-dialog",
95862
+ _vm.$attrs,
95863
+ false
95864
+ ),
95865
+ [_vm._t("default")],
95866
+ 2
95867
+ )
95868
+ };
95869
+ var __vue_staticRenderFns__$1 = [];
95870
+ __vue_render__$1._withStripped = true;
95871
+
95872
+ /* style */
95873
+ const __vue_inject_styles__$1 = function (inject) {
95874
+ if (!inject) return
95875
+ inject("data-v-be9be238_0", { source: ".z-dialog .el-dialog[data-v-be9be238] {\n border-radius: 10px;\n}\n.z-dialog .el-dialog .el-dialog__header[data-v-be9be238] {\n padding: 12px 20px;\n border-radius: 10px 10px 0 0;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__title[data-v-be9be238] {\n width: 100%;\n text-align: center;\n display: block;\n color: #fff;\n line-height: 24px;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__headerbtn[data-v-be9be238] {\n top: 16px;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close[data-v-be9be238] {\n color: #fff;\n}\n.z-dialog .el-dialog .el-dialog__footer[data-v-be9be238] {\n padding: 14px 20px;\n background: #f1f5ff;\n border-radius: 0 0 10px 10px;\n display: flex;\n justify-content: center;\n}\n.z-dialog .el-dialog .el-dialog__body[data-v-be9be238] {\n padding: 20px;\n}\n\n/*# sourceMappingURL=dialog.vue.map */", map: {"version":3,"sources":["D:\\workspace-my\\gitee\\rollup-demo\\lib\\packages\\dialog\\dialog.vue","dialog.vue"],"names":[],"mappings":"AA4DA;EACA,mBAAA;AC3DA;AD4DA;EAEA,kBAAA;EACA,4BAAA;AC3DA;AD4DA;EACA,WAAA;EACA,kBAAA;EACA,cAAA;EACA,WAAA;EACA,iBAAA;AC1DA;AD4DA;EACA,SAAA;AC1DA;AD2DA;EACA,WAAA;ACzDA;AD6DA;EACA,kBAAA;EACA,mBAAA;EACA,4BAAA;EACA,aAAA;EACA,uBAAA;AC3DA;AD6DA;EACA,aAAA;AC3DA;;AAEA,qCAAqC","file":"dialog.vue","sourcesContent":["<template>\r\n <el-dialog class=\"z-dialog\" :visible=\"visible\" ref=\"dialog\" :close-on-click-modal=\"false\" :before-close=\"handleCancel\" v-bind=\"$attrs\">\r\n <slot></slot>\r\n <template #title>\r\n <slot name=\"title\"></slot>\r\n </template>\r\n <template #footer>\r\n <slot name=\"footer\">\r\n <div class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"handelOk\" v-if=\"!disabled\">提 交</el-button>\r\n <el-button @click=\"handleCancel\">取 消</el-button>\r\n </div>\r\n </slot>\r\n </template>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'z-dialog',\r\n props: {\r\n visible: {\r\n type: Boolean,\r\n default: false\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n computed: {\r\n zVisible: {\r\n get: function () {\r\n return this.visible\r\n },\r\n set: function (val) {\r\n this.$emit('update:visible', val)\r\n }\r\n }\r\n },\r\n methods: {\r\n // 给调用的组件初始化数据 再 关闭\r\n handleCancel() {\r\n this.zVisible = false\r\n this.$emit('cancel')\r\n },\r\n handelOk() {\r\n this.$emit('ok', (message) => {\r\n if (message) {\r\n this.$message.success(message)\r\n }\r\n this.handleCancel()\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n.z-dialog {\r\n .el-dialog {\r\n border-radius: 10px;\r\n .el-dialog__header {\r\n //background: @theme;\r\n padding: 12px 20px;\r\n border-radius: 10px 10px 0 0;\r\n .el-dialog__title {\r\n width: 100%;\r\n text-align: center;\r\n display: block;\r\n color: #fff;\r\n line-height: 24px;\r\n }\r\n .el-dialog__headerbtn {\r\n top: 16px;\r\n .el-icon-close {\r\n color: #fff;\r\n }\r\n }\r\n }\r\n .el-dialog__footer {\r\n padding: 14px 20px;\r\n background: #f1f5ff;\r\n border-radius: 0 0 10px 10px;\r\n display: flex;\r\n justify-content: center;\r\n }\r\n .el-dialog__body {\r\n padding: 20px;\r\n }\r\n }\r\n}\r\n</style>\r\n",".z-dialog .el-dialog {\n border-radius: 10px;\n}\n.z-dialog .el-dialog .el-dialog__header {\n padding: 12px 20px;\n border-radius: 10px 10px 0 0;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__title {\n width: 100%;\n text-align: center;\n display: block;\n color: #fff;\n line-height: 24px;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__headerbtn {\n top: 16px;\n}\n.z-dialog .el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close {\n color: #fff;\n}\n.z-dialog .el-dialog .el-dialog__footer {\n padding: 14px 20px;\n background: #f1f5ff;\n border-radius: 0 0 10px 10px;\n display: flex;\n justify-content: center;\n}\n.z-dialog .el-dialog .el-dialog__body {\n padding: 20px;\n}\n\n/*# sourceMappingURL=dialog.vue.map */"]}, media: undefined });
95876
+
95877
+ };
95878
+ /* scoped */
95879
+ const __vue_scope_id__$1 = "data-v-be9be238";
95880
+ /* module identifier */
95881
+ const __vue_module_identifier__$1 = undefined;
95882
+ /* functional template */
95883
+ const __vue_is_functional_template__$1 = false;
95884
+ /* style inject SSR */
95885
+
95886
+ /* style inject shadow dom */
95887
+
95888
+
95889
+
95890
+ const __vue_component__$1 = /*#__PURE__*/__vue_normalize__(
95891
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
95892
+ __vue_inject_styles__$1,
95893
+ __vue_script__$1,
95894
+ __vue_scope_id__$1,
95895
+ __vue_is_functional_template__$1,
95896
+ __vue_module_identifier__$1,
95897
+ false,
95898
+ __vue_create_injector__,
95899
+ undefined,
95900
+ undefined
95901
+ );
95902
+
95903
+ __vue_component__$1.install = function (Vue, option = {}) {
95904
+ setGolbalData(Vue, option);
95905
+ Vue.component(__vue_component__$1.name, __vue_component__$1);
95906
+ };
95907
+
95908
+ //
95909
+ //
95910
+ //
95911
+ //
95912
+ //
95913
+ //
95914
+
95915
+ var script = {
95916
+ name: 'z-button'
95917
+ };
95918
+
95919
+ /* script */
95920
+ const __vue_script__ = script;
95921
+
95922
+ /* template */
95923
+ var __vue_render__ = function () {
95924
+ var _vm = this;
95925
+ var _h = _vm.$createElement;
95926
+ var _c = _vm._self._c || _h;
95927
+ return _c(
95928
+ "el-button",
95929
+ _vm._g(_vm._b({}, "el-button", _vm.$attrs, false), _vm.$listeners),
95930
+ [_vm.$slots.default ? _vm._t("default") : _vm._e()],
95931
+ 2
95932
+ )
95933
+ };
95699
95934
  var __vue_staticRenderFns__ = [];
95700
95935
  __vue_render__._withStripped = true;
95701
95936
 
95702
95937
  /* style */
95703
95938
  const __vue_inject_styles__ = function (inject) {
95704
95939
  if (!inject) return
95705
- inject("data-v-4dd7787c_0", { source: "\n.el-tag + .el-tag[data-v-4dd7787c] {\r\n margin-left: 10px;\n}\r\n", map: {"version":3,"sources":["D:\\workspace-my\\gitee\\rollup-demo\\lib\\packages\\dictTag\\dictTag.vue"],"names":[],"mappings":";AAmFA;EACA,iBAAA;AACA","file":"dictTag.vue","sourcesContent":["<template>\r\n <div>\r\n <template v-for=\"(item, index) in options\">\r\n <template v-if=\"values.includes(item.value)\">\r\n <span v-if=\"item.raw.listClass == 'default' || item.raw.listClass == ''\" :key=\"item.value\" :index=\"index\" :class=\"item.raw.cssClass\">{{\r\n item.label + ' '\r\n }}</span>\r\n <el-tag\r\n v-else\r\n :disable-transitions=\"true\"\r\n :key=\"item.value\"\r\n :index=\"index\"\r\n :type=\"item.raw.listClass == 'primary' ? '' : item.raw.listClass\"\r\n :class=\"item.raw.cssClass\"\r\n >\r\n {{ item.label + ' ' }}\r\n </el-tag>\r\n </template>\r\n </template>\r\n <template v-if=\"unmatch && showValue\">\r\n {{ unmatchArray | handleArray }}\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'z-dict-tag',\r\n props: {\r\n options: {\r\n type: Array,\r\n default: null\r\n },\r\n value: [Number, String, Array],\r\n // 当未找到匹配的数据时,显示value\r\n showValue: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n unmatchArray: [] // 记录未匹配的项\r\n }\r\n },\r\n computed: {\r\n values() {\r\n if (this.value !== null && typeof this.value !== 'undefined') {\r\n return Array.isArray(this.value) ? this.value : [String(this.value)]\r\n } else {\r\n return []\r\n }\r\n },\r\n unmatch() {\r\n this.unmatchArray = []\r\n if (this.value !== null && typeof this.value !== 'undefined') {\r\n // 传入值为非数组\r\n if (!Array.isArray(this.value)) {\r\n if (this.options.some((v) => v.value == this.value)) return false\r\n this.unmatchArray.push(this.value)\r\n return true\r\n }\r\n // 传入值为Array\r\n this.value.forEach((item) => {\r\n if (!this.options.some((v) => v.value == item)) this.unmatchArray.push(item)\r\n })\r\n return true\r\n }\r\n // 没有value不显示\r\n return false\r\n }\r\n },\r\n filters: {\r\n handleArray(array) {\r\n if (array.length === 0) return ''\r\n return array.reduce((pre, cur) => {\r\n return pre + ' ' + cur\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped>\r\n.el-tag + .el-tag {\r\n margin-left: 10px;\r\n}\r\n</style>\r\n"]}, media: undefined });
95940
+ inject("data-v-1411a826_0", { source: "\n\n/*# sourceMappingURL=button.vue.map */", map: {"version":3,"sources":["button.vue"],"names":[],"mappings":";;AAEA,qCAAqC","file":"button.vue"}, media: undefined });
95706
95941
 
95707
95942
  };
95708
95943
  /* scoped */
95709
- const __vue_scope_id__ = "data-v-4dd7787c";
95944
+ const __vue_scope_id__ = "data-v-1411a826";
95710
95945
  /* module identifier */
95711
95946
  const __vue_module_identifier__ = undefined;
95712
95947
  /* functional template */
@@ -95738,7 +95973,7 @@ __vue_component__.install = function (Vue, option = {}) {
95738
95973
  if (typeof window !== 'undefined' && window.Vue) {
95739
95974
  install(window.Vue);
95740
95975
  }
95741
- const components = [__vue_component__$3, RequestZ, RouterZ, __vue_component__$2, __vue_component__$1, DictZ, __vue_component__];
95976
+ const components = [__vue_component__$5, RequestZ, RouterZ, __vue_component__$4, __vue_component__$3, DictZ, __vue_component__$2, __vue_component__$1, __vue_component__];
95742
95977
  const install = (Vue, option = {}) => {
95743
95978
  setGolbalData(Vue, option);
95744
95979
  components.forEach((component) => {
@@ -95749,11 +95984,13 @@ var index = {
95749
95984
  install
95750
95985
  };
95751
95986
 
95752
- exports.DictTagZ = __vue_component__;
95987
+ exports.ButtonZ = __vue_component__;
95988
+ exports.DialogZ = __vue_component__$1;
95989
+ exports.DictTagZ = __vue_component__$2;
95753
95990
  exports.DictZ = DictZ;
95754
- exports.IconZ = __vue_component__$3;
95755
- exports.ListZ = __vue_component__$1;
95991
+ exports.IconZ = __vue_component__$5;
95992
+ exports.ListZ = __vue_component__$3;
95756
95993
  exports.RequestZ = RequestZ;
95757
95994
  exports.RouterZ = RouterZ;
95758
- exports.TableZ = __vue_component__$2;
95995
+ exports.TableZ = __vue_component__$4;
95759
95996
  exports.default = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzhaoqi/test",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "main": "dist/lib-cjs.js",
6
6
  "scripts": {