meixioacomponent 2.0.65 → 2.0.67

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 (31) hide show
  1. package/lib/components/index.d.ts +1 -0
  2. package/lib/components/index.d.ts.map +1 -1
  3. package/lib/components/index.js +9 -3
  4. package/lib/config/TransferTDComponent.d.ts +2 -0
  5. package/lib/config/TransferTDComponent.d.ts.map +1 -0
  6. package/lib/config/TransferTDComponent.js +31 -0
  7. package/lib/meixioacomponent.common.js +571 -117
  8. package/lib/meixioacomponent.umd.js +564 -110
  9. package/lib/meixioacomponent.umd.min.js +2 -2
  10. package/package.json +2 -2
  11. package/packages/components/base/baseArea/baseArea.vue +6 -6
  12. package/packages/components/base/baseDrawer/index.vue +1 -1
  13. package/packages/components/base/basePlainTable/basePlainTable.vue +1 -1
  14. package/packages/components/base/baseStoreSelect/index.vue +1 -1
  15. package/packages/components/base/baseText/index.vue +11 -4
  16. package/packages/components/base/baseToggle/toggle.vue +7 -7
  17. package/packages/components/base/tDateRangePicker/tDateRangePicker.vue +14 -5
  18. package/packages/components/base/tInput/index.js +6 -0
  19. package/packages/components/base/tInput/tInput.vue +149 -0
  20. package/packages/components/base/tInputNumber/index.js +6 -0
  21. package/packages/components/base/tInputNumber/tInputNumber.vue +104 -0
  22. package/packages/components/base/tSelect/index.js +0 -0
  23. package/packages/components/base/tSelect/tSelect.vue +176 -0
  24. package/packages/components/index.js +9 -3
  25. package/packages/components/index.ts +13 -5
  26. package/packages/components/mixins/tableSectionMixins.js +1 -0
  27. package/packages/components/proPageTable/oa_pro_table.vue +1 -1
  28. package/packages/config/TransferTDComponent.js +31 -0
  29. package/packages/config/TransferTDComponent.ts +23 -0
  30. package/packages/utils/utils.js +1 -1
  31. package/tsconfig.json +3 -3
@@ -29,7 +29,6 @@ var baseTimeTypeSelect_1 = require("./base/baseTimeTypeSelect");
29
29
  var baseToggle_1 = require("./base/baseToggle");
30
30
  var baseUploadItem_1 = require("./base/baseUpload/baseUploadItem");
31
31
  var baseUpload_1 = require("./base/baseUpload/baseUpload");
32
- var tDateRangePicker_1 = require("./base/tDateRangePicker");
33
32
  var baseTimeRangePicker_1 = require("./base/baseTimeRangePicker");
34
33
  var upload_1 = require("./base/upload");
35
34
  var dialogFormIndex_1 = require("./proForm/dialogForm/dialogFormIndex");
@@ -54,6 +53,9 @@ var oaProTableSearch_1 = require("./proPageTable/oaProTableSearch");
54
53
  var baseWait_1 = require("./base/baseWait");
55
54
  var vuedraggable_1 = require("vuedraggable");
56
55
  var baseButton_1 = require("./base/baseButton");
56
+ var tInput_1 = require("./base/tInput");
57
+ var tInputNumber_1 = require("./base/tInputNumber");
58
+ var tDateRangePicker_1 = require("./base/tDateRangePicker");
57
59
  // js 文件相关
58
60
  var theme_1 = require("../config/theme/theme");
59
61
  var dynamicmount_1 = require("./dynamicmount");
@@ -79,6 +81,7 @@ var executeConfirm_1 = require("../config/use/useConfirm/executeConfirm");
79
81
  var registerConfirm_1 = require("../config/use/useConfirm/registerConfirm");
80
82
  var UseNotify_1 = require("../config/use/useConfirm/UseNotify");
81
83
  var PluginByReferenceByOss_1 = require("../plugin/PluginByReferenceByOss");
84
+ var TransferTDComponent_1 = require("../config/TransferTDComponent");
82
85
  var meixicomponents = [
83
86
  baseAnchor_1["default"],
84
87
  baseAppendix_1["default"],
@@ -131,8 +134,10 @@ var meixicomponents = [
131
134
  vuedraggable_1["default"],
132
135
  baseUploadImgAndName_1["default"],
133
136
  baseButton_1["default"],
137
+ baseTimeRangePicker_1["default"],
138
+ tInput_1["default"],
139
+ tInputNumber_1["default"],
134
140
  tDateRangePicker_1["default"],
135
- baseTimeRangePicker_1["default"]
136
141
  ];
137
142
  var install = function (Vue) {
138
143
  componentConfig_1["default"].Vue = Vue;
@@ -235,7 +240,8 @@ var meixioacomponent = {
235
240
  },
236
241
  useNotify: function (type, options) {
237
242
  return new UseNotify_1["default"]().toMountedConfirm(type, options);
238
- }
243
+ },
244
+ TransferTDComponent: TransferTDComponent_1.TransferTDComponent
239
245
  };
240
246
  window["meixioacomponent"] = meixioacomponent;
241
247
  exports["default"] = meixioacomponent;
@@ -27,7 +27,6 @@ import baseTimeTypeSelect from "./base/baseTimeTypeSelect";
27
27
  import baseToggle from "./base/baseToggle";
28
28
  import baseUploadItem from "./base/baseUpload/baseUploadItem";
29
29
  import baseUpload from "./base/baseUpload/baseUpload";
30
- import tDateRangePicker from "./base/tDateRangePicker";
31
30
  import baseTimeRangePicker from "./base/baseTimeRangePicker";
32
31
  import upload from "./base/upload";
33
32
  import baseDialogForm from "./proForm/dialogForm/dialogFormIndex";
@@ -53,6 +52,12 @@ import baseWait from "./base/baseWait";
53
52
  import draggable from 'vuedraggable'
54
53
  import baseButton from "./base/baseButton";
55
54
 
55
+
56
+ import tInput from "./base/tInput"
57
+ import tInputNumber from "./base/tInputNumber";
58
+ import tDateRangePicker from "./base/tDateRangePicker";
59
+
60
+
56
61
  // js 文件相关
57
62
  import Theme from "../config/theme/theme";
58
63
  import DynamicMount from "./dynamicmount";
@@ -71,7 +76,6 @@ import useViewVideo from "../config/use/UseViewVideo";
71
76
  import useGuide from "../config/use/UseGuide";
72
77
  import LinkViewClass from "../config/LinkViewClass";
73
78
  import 'tdesign-vue/es/style/index.css';
74
-
75
79
  //组件库type类型
76
80
  import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
77
81
  import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
@@ -80,6 +84,7 @@ import {executeConfirm} from "../config/use/useConfirm/executeConfirm";
80
84
  import registerConfirm from "../config/use/useConfirm/registerConfirm";
81
85
  import UseNotify from "../config/use/useConfirm/UseNotify";
82
86
  import {PluginByReferenceByOss} from "../plugin/PluginByReferenceByOss";
87
+ import {TransferTDComponent} from "../config/TransferTDComponent";
83
88
 
84
89
 
85
90
  const meixicomponents: any[] = [
@@ -134,9 +139,10 @@ const meixicomponents: any[] = [
134
139
  draggable,
135
140
  baseUploadImgAndName,
136
141
  baseButton,
142
+ baseTimeRangePicker,
143
+ tInput,
144
+ tInputNumber,
137
145
  tDateRangePicker,
138
- baseTimeRangePicker
139
-
140
146
  ];
141
147
 
142
148
  const install = (Vue) => {
@@ -147,6 +153,7 @@ const install = (Vue) => {
147
153
  Vue.use(DynamicMount);
148
154
  Vue.use(VueCropper);
149
155
  Vue.use(registerConfirm);
156
+
150
157
  window[`meixiComponentPlugin`] = {
151
158
  SelectStore: SelectStore,
152
159
  UseDrag: UseDrag,
@@ -241,7 +248,8 @@ const meixioacomponent = {
241
248
  },
242
249
  useNotify: (type: TypeByTheme, options: TypeByNotifyOptions) => {
243
250
  return new UseNotify().toMountedConfirm(type, options)
244
- }
251
+ },
252
+ TransferTDComponent
245
253
  };
246
254
 
247
255
  window[`meixioacomponent`] = meixioacomponent;
@@ -15,6 +15,7 @@ export const tableSectionMixins = {
15
15
  },
16
16
  computed: {
17
17
  name() {
18
+ console.log(this);
18
19
  return this.$options.name;
19
20
  },
20
21
  },
@@ -235,7 +235,7 @@ import proTableLocalConfigManage from "../../config/ProTableLocalConfigManage/Pr
235
235
  import {TransomTableCheckConfig, TransomTableConfig} from "../../utils/utils";
236
236
 
237
237
  const ColIndexStr = 'colIndex'
238
- const tableContentClassName = 't-table__content';
238
+ const tableContentClassName = 'tInputNumber-table__content';
239
239
  export default {
240
240
  name: "baseProTable",
241
241
  data() {
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.TransferTDComponent = void 0;
4
+ var TransferTDComponent = function (vueInstance, TDModule) {
5
+ console.log(TDModule);
6
+ Object.keys(TDModule).forEach(function (key) {
7
+ console.log(key);
8
+ if (TDModule[key]) {
9
+ if (/directive/i.test(key))
10
+ return;
11
+ if (key === 'DateRangePicker') {
12
+ TDModule[key].name = 'DateRangePicker';
13
+ vueInstance.component('DateRangePicker', TDModule[key]);
14
+ }
15
+ else if (key === 'Input') {
16
+ TDModule[key].options.name = 'Input';
17
+ vueInstance.component('Input', TDModule[key]);
18
+ }
19
+ else if (key === 'InputNumber') {
20
+ TDModule[key].name = 'InputNumber';
21
+ vueInstance.component('InputNumber', TDModule[key]);
22
+ }
23
+ else if (key === 'Select') {
24
+ TDModule[key].name = 'Select';
25
+ vueInstance.component('Select', TDModule[key]);
26
+ }
27
+ vueInstance.use(TDModule[key]);
28
+ }
29
+ });
30
+ };
31
+ exports.TransferTDComponent = TransferTDComponent;
@@ -0,0 +1,23 @@
1
+ export const TransferTDComponent = (vueInstance ,TDModule) => {
2
+ console.log(TDModule);
3
+ Object.keys(TDModule).forEach((key) => {
4
+ console.log(key);
5
+ if (TDModule[key]) {
6
+ if (/directive/i.test(key)) return;
7
+ if (key === 'DateRangePicker') {
8
+ TDModule[key].name = 'DateRangePicker';
9
+ vueInstance.component('DateRangePicker', TDModule[key]);
10
+ }else if(key==='Input'){
11
+ TDModule[key].options.name = 'Input';
12
+ vueInstance.component('Input', TDModule[key]);
13
+ }else if(key==='InputNumber'){
14
+ TDModule[key].name = 'InputNumber';
15
+ vueInstance.component('InputNumber', TDModule[key]);
16
+ }else if(key==='Select'){
17
+ TDModule[key].name = 'Select';
18
+ vueInstance.component('Select', TDModule[key]);
19
+ }
20
+ vueInstance.use(TDModule[key]);
21
+ }
22
+ });
23
+ }
@@ -72,7 +72,7 @@ export const formatHtml = (strHtml) => {
72
72
  strHtml = strHtml.replace(/<st1:chsdate.*?>(.*?)<\/st1:chsdate>/ig, "$1");
73
73
  //去掉多余的空格
74
74
  strHtml = strHtml.replace(/<(\w+?)\s+?>/ig, "<$1>");
75
- //去掉<o:lock v:ext="edit" aspectratio="t"></o:lock>此类代码
75
+ //去掉<o:lock v:ext="edit" aspectratio="tInputNumber"></o:lock>此类代码
76
76
  strHtml = strHtml.replace(/<o:.+?<\/o:\w+?>/ig, "");
77
77
  //去掉<v:> <\v:>
78
78
  strHtml = strHtml.replace(/<v:.+?>/g, "");
package/tsconfig.json CHANGED
@@ -76,7 +76,7 @@
76
76
 
77
77
  /* Interop Constraints */
78
78
  // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
79
- "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
79
+ "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn'tInputNumber have a default export. */,
80
80
  "esModuleInterop": true,
81
81
  /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
82
82
  // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
@@ -95,8 +95,8 @@
95
95
  // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
96
96
  // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
97
97
  // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
98
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
99
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
98
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren'tInputNumber read. */
99
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn'tInputNumber read. */
100
100
  // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
101
101
  // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
102
102
  // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */