yuang-framework-ui-pc 1.1.32 → 1.1.34

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 (60) hide show
  1. package/es/core-components.d.ts +4 -2
  2. package/es/core-components.js +59 -56
  3. package/es/ele-app/plus.d.ts +4 -6
  4. package/es/ele-cropper-modal/index.d.ts +2 -2
  5. package/es/ele-cropper-modal/index.js +4 -4
  6. package/es/ele-cropper-modal/props.d.ts +2 -2
  7. package/es/ele-data-table/index.d.ts +4 -4
  8. package/es/ele-map-picker/index.d.ts +2 -2
  9. package/es/ele-map-picker/index.js +4 -4
  10. package/es/ele-map-picker/props.d.ts +2 -2
  11. package/es/ele-pro-layout/index.d.ts +1 -1
  12. package/es/ele-pro-table/components/tool-export.d.ts +3 -3
  13. package/es/ele-pro-table/components/tool-export.js +4 -4
  14. package/es/ele-pro-table/components/tool-print.d.ts +3 -3
  15. package/es/ele-pro-table/components/tool-print.js +4 -4
  16. package/es/ele-pro-table/types.d.ts +3 -3
  17. package/es/ele-test/index.d.ts +2 -0
  18. package/es/ele-test/index.js +18 -0
  19. package/es/ele-test/style/css-var.scss +8 -0
  20. package/es/ele-test/style/index.d.ts +1 -0
  21. package/es/ele-test/style/index.js +2 -0
  22. package/es/ele-test/style/index.scss +100 -0
  23. package/es/style/plus.scss +0 -2
  24. package/es/yu-test/index.d.ts +2 -0
  25. package/es/yu-test/index.js +18 -0
  26. package/es/yu-test/style/css-var.scss +8 -0
  27. package/es/yu-test/style/index.d.ts +1 -0
  28. package/es/yu-test/style/index.js +2 -0
  29. package/es/yu-test/style/index.scss +100 -0
  30. package/lib/core-components.cjs +110 -107
  31. package/lib/core-components.d.ts +4 -2
  32. package/lib/ele-app/plus.d.ts +4 -6
  33. package/lib/ele-cropper-modal/index.cjs +4 -4
  34. package/lib/ele-cropper-modal/index.d.ts +2 -2
  35. package/lib/ele-cropper-modal/props.d.ts +2 -2
  36. package/lib/ele-data-table/index.d.ts +4 -4
  37. package/lib/ele-map-picker/index.cjs +4 -4
  38. package/lib/ele-map-picker/index.d.ts +2 -2
  39. package/lib/ele-map-picker/props.d.ts +2 -2
  40. package/lib/ele-pro-layout/index.d.ts +1 -1
  41. package/lib/ele-pro-table/components/tool-export.cjs +4 -4
  42. package/lib/ele-pro-table/components/tool-export.d.ts +3 -3
  43. package/lib/ele-pro-table/components/tool-print.cjs +4 -4
  44. package/lib/ele-pro-table/components/tool-print.d.ts +3 -3
  45. package/lib/ele-pro-table/types.d.ts +3 -3
  46. package/lib/ele-test/index.cjs +17 -0
  47. package/lib/ele-test/index.d.ts +2 -0
  48. package/lib/ele-test/style/css-var.scss +8 -0
  49. package/lib/ele-test/style/index.cjs +3 -0
  50. package/lib/ele-test/style/index.d.ts +1 -0
  51. package/lib/ele-test/style/index.scss +100 -0
  52. package/lib/style/plus.scss +0 -2
  53. package/lib/yu-test/index.cjs +17 -0
  54. package/lib/yu-test/index.d.ts +2 -0
  55. package/lib/yu-test/style/css-var.scss +8 -0
  56. package/lib/yu-test/style/index.cjs +3 -0
  57. package/lib/yu-test/style/index.d.ts +1 -0
  58. package/lib/yu-test/style/index.scss +100 -0
  59. package/package.json +1 -1
  60. package/typings/global.d.ts +1 -2
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ElFormInstance } from '../../ele-app/el';
3
- import { EleModalProps } from '../../ele-app/plus';
3
+ import { EleDialogProps } from '../../ele-app/plus';
4
4
  import { Columns, DataItem, SpanMethod, SummaryMethod, TreeProps } from '../../ele-data-table/types';
5
5
  import { TableLocale, ExportDataType, BeforeExport, Datasource, FetchFunction, ColItem, TableExportParams } from '../types';
6
6
 
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<{
13
13
  /** 缓存本地的名称 */
14
14
  cacheKey: StringConstructor;
15
15
  /** 弹窗参数 */
16
- modalProps: PropType<EleModalProps>;
16
+ modalProps: PropType<EleDialogProps>;
17
17
  /** 列数据 */
18
18
  columns: PropType<Columns>;
19
19
  /** 表格选中数据 */
@@ -100,7 +100,7 @@ declare const _default: import('vue').DefineComponent<{
100
100
  /** 缓存本地的名称 */
101
101
  cacheKey: StringConstructor;
102
102
  /** 弹窗参数 */
103
- modalProps: PropType<EleModalProps>;
103
+ modalProps: PropType<EleDialogProps>;
104
104
  /** 列数据 */
105
105
  columns: PropType<Columns>;
106
106
  /** 表格选中数据 */
@@ -2,7 +2,7 @@
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
4
  const core = require("../../utils/core");
5
- const EleModal = require("../../ele-dialog/index");
5
+ const EleDialog = require("../../ele-dialog/index");
6
6
  const ElePrinter = require("../../ele-printer/index");
7
7
  const EleTable = require("../../ele-table/index");
8
8
  const util = require("../../ele-virtual-table/util");
@@ -20,7 +20,7 @@ const _sfc_main = vue.defineComponent({
20
20
  ElOption: elementPlus.ElOption,
21
21
  ElCheckbox: elementPlus.ElCheckbox,
22
22
  ElButton: elementPlus.ElButton,
23
- EleModal,
23
+ EleDialog,
24
24
  ElePrinter,
25
25
  EleTable,
26
26
  CellRender: util.CellRender,
@@ -373,14 +373,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
373
373
  const _component_ToolColumnList = vue.resolveComponent("ToolColumnList");
374
374
  const _component_ElForm = vue.resolveComponent("ElForm");
375
375
  const _component_ElButton = vue.resolveComponent("ElButton");
376
- const _component_EleModal = vue.resolveComponent("EleModal");
376
+ const _component_EleDialog = vue.resolveComponent("EleDialog");
377
377
  const _component_ToolPrintHeaderCell = vue.resolveComponent("ToolPrintHeaderCell");
378
378
  const _component_ToolPrintBodyCell = vue.resolveComponent("ToolPrintBodyCell");
379
379
  const _component_CellRender = vue.resolveComponent("CellRender");
380
380
  const _component_EleTable = vue.resolveComponent("EleTable");
381
381
  const _component_ElePrinter = vue.resolveComponent("ElePrinter");
382
382
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
383
- vue.createVNode(_component_EleModal, vue.mergeProps({
383
+ vue.createVNode(_component_EleDialog, vue.mergeProps({
384
384
  form: true,
385
385
  width: "460px",
386
386
  title: _ctx.locale.print,
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { EleModalProps, ElePrinterProps, EleTableProps } from '../../ele-app/plus';
2
+ import { EleDialogProps, ElePrinterProps, EleTableProps } from '../../ele-app/plus';
3
3
  import { Columns, DataItem, SpanMethod, SummaryMethod, CellStyle, CellClass, HeaderCellStyle, HeaderCellClass, TreeProps } from '../../ele-data-table/types';
4
4
  import { TableLocale, ExportDataType, BeforeExport, Datasource, FetchFunction, ColItem, TablePrintOptions, TableExportParams } from '../types';
5
5
 
@@ -12,7 +12,7 @@ declare const _default: import('vue').DefineComponent<{
12
12
  /** 缓存本地的名称 */
13
13
  cacheKey: StringConstructor;
14
14
  /** 弹窗参数 */
15
- modalProps: PropType<EleModalProps>;
15
+ modalProps: PropType<EleDialogProps>;
16
16
  /** 打印组件参数 */
17
17
  printerProps: PropType<ElePrinterProps>;
18
18
  /** 打印表格参数 */
@@ -104,7 +104,7 @@ declare const _default: import('vue').DefineComponent<{
104
104
  /** 缓存本地的名称 */
105
105
  cacheKey: StringConstructor;
106
106
  /** 弹窗参数 */
107
- modalProps: PropType<EleModalProps>;
107
+ modalProps: PropType<EleDialogProps>;
108
108
  /** 打印组件参数 */
109
109
  printerProps: PropType<ElePrinterProps>;
110
110
  /** 打印表格参数 */
@@ -1,4 +1,4 @@
1
- import type { EleDataTableInstance, EleVirtualTableInstance, ElePaginationProps, EleModalProps, ElePrinterProps, EleTableProps } from '../ele-app/plus';
1
+ import type { EleDataTableInstance, EleVirtualTableInstance, ElePaginationProps, EleDialogProps, ElePrinterProps, EleTableProps } from '../ele-app/plus';
2
2
  import type { PaginationTotal } from '../ele-pagination/types';
3
3
  import type { DataItem, Column, Columns, Sorter, Filter, TableColumn, TableSize, ResolveFunction } from '../ele-data-table/types';
4
4
  import type { BodyColumns } from '../ele-virtual-table/types';
@@ -368,7 +368,7 @@ export type BeforeExport = (params: BeforeExportParams) => boolean | void;
368
368
  */
369
369
  export interface ExportConfig {
370
370
  /** 弹窗参数 */
371
- modalProps?: EleModalProps;
371
+ modalProps?: EleDialogProps;
372
372
  /** 表格全部数据 */
373
373
  datasource?: Datasource;
374
374
  /** 导出前的钩子函数 */
@@ -392,7 +392,7 @@ export interface ExportConfig {
392
392
  */
393
393
  export interface PrintConfig {
394
394
  /** 弹窗参数 */
395
- modalProps?: EleModalProps;
395
+ modalProps?: EleDialogProps;
396
396
  /** 打印组件参数 */
397
397
  printerProps?: ElePrinterProps;
398
398
  /** 打印表格参数 */
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "EleTest"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ return vue.openBlock(), vue.createElementBlock("div", null, "测试");
15
+ }
16
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
17
+ module.exports = index;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ @use '../../style/util.scss' as *;
2
+
3
+ /* 文本主题变量 */
4
+ @mixin set-text-var($var) {
5
+ .ele-text {
6
+ @include set-ele-var('test', $var);
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ require("element-plus/es/components/icon/style/index");
3
+ require("./index.scss");
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,100 @@
1
+ @use '../../style/themes/default.scss' as *;
2
+ @use '../../style/util.scss' as *;
3
+ @use './css-var.scss' as *;
4
+
5
+ @include set-text-var($ele);
6
+
7
+ .yu-test {
8
+ color: elVar('text-color', 'regular');
9
+ font-size: elVar('font-size', 'base');
10
+ box-sizing: border-box;
11
+
12
+ /* 类型 */
13
+ &.is-heading {
14
+ color: elVar('text-color', 'primary');
15
+ font-weight: eleVar('text', 'heading-weight');
16
+ }
17
+
18
+ &.is-secondary {
19
+ color: elVar('text-color', 'secondary');
20
+ }
21
+
22
+ &.is-placeholder {
23
+ color: elVar('text-color', 'placeholder');
24
+ }
25
+
26
+ &.is-primary {
27
+ color: elVar('color-primary');
28
+ }
29
+
30
+ &.is-success {
31
+ color: elVar('color-success');
32
+ }
33
+
34
+ &.is-warning {
35
+ color: elVar('color-warning');
36
+ }
37
+
38
+ &.is-danger {
39
+ color: elVar('color-danger');
40
+ }
41
+
42
+ &.is-info {
43
+ color: elVar('color-info');
44
+ }
45
+
46
+ /* 尺寸 */
47
+ &.is-xs {
48
+ font-size: elVar('font-size', 'extra-small');
49
+ }
50
+
51
+ &.is-sm {
52
+ font-size: elVar('font-size', 'small');
53
+ }
54
+
55
+ &.is-md {
56
+ font-size: elVar('font-size', 'medium');
57
+ }
58
+
59
+ &.is-lg {
60
+ font-size: elVar('font-size', 'large');
61
+ }
62
+
63
+ &.is-xl {
64
+ font-size: elVar('font-size', 'extra-large');
65
+ }
66
+
67
+ &.is-xxl {
68
+ font-size: eleVar('text', 'xxl');
69
+ }
70
+
71
+ &.is-xxxl {
72
+ font-size: eleVar('text', 'xxxl');
73
+ }
74
+
75
+ /* 其它 */
76
+ &.is-delete {
77
+ text-decoration: line-through;
78
+ }
79
+
80
+ &.is-underline {
81
+ text-decoration: underline;
82
+
83
+ &.is-delete {
84
+ text-decoration: line-through underline;
85
+ }
86
+ }
87
+
88
+ &.is-strong {
89
+ font-weight: bold;
90
+ }
91
+
92
+ &.is-italic {
93
+ font-style: italic;
94
+ }
95
+
96
+ /* 图标 */
97
+ &.is-icon > .el-icon {
98
+ vertical-align: -2px;
99
+ }
100
+ }
@@ -22,8 +22,6 @@
22
22
  @use '../ele-loading/style/index.scss' as loading;
23
23
  @use '../ele-map-picker/style/index.scss' as mapPicker;
24
24
  @use '../ele-menus/style/index.scss' as menus;
25
- // temp
26
- @use '../ele-dialog/style/index.scss' as modal;
27
25
  @use '../ele-dialog/style/index.scss' as dialog;
28
26
  @use '../ele-page/style/index.scss' as page;
29
27
  @use '../ele-pagination/style/index.scss' as pagination;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "YuTest"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ return vue.openBlock(), vue.createElementBlock("div", null, "测试");
15
+ }
16
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
17
+ module.exports = index;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ @use '../../style/util.scss' as *;
2
+
3
+ /* 文本主题变量 */
4
+ @mixin set-text-var($var) {
5
+ .ele-text {
6
+ @include set-ele-var('test', $var);
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ require("element-plus/es/components/icon/style/index");
3
+ require("./index.scss");
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,100 @@
1
+ @use '../../style/themes/default.scss' as *;
2
+ @use '../../style/util.scss' as *;
3
+ @use './css-var.scss' as *;
4
+
5
+ @include set-text-var($ele);
6
+
7
+ .yu-test {
8
+ color: elVar('text-color', 'regular');
9
+ font-size: elVar('font-size', 'base');
10
+ box-sizing: border-box;
11
+
12
+ /* 类型 */
13
+ &.is-heading {
14
+ color: elVar('text-color', 'primary');
15
+ font-weight: eleVar('text', 'heading-weight');
16
+ }
17
+
18
+ &.is-secondary {
19
+ color: elVar('text-color', 'secondary');
20
+ }
21
+
22
+ &.is-placeholder {
23
+ color: elVar('text-color', 'placeholder');
24
+ }
25
+
26
+ &.is-primary {
27
+ color: elVar('color-primary');
28
+ }
29
+
30
+ &.is-success {
31
+ color: elVar('color-success');
32
+ }
33
+
34
+ &.is-warning {
35
+ color: elVar('color-warning');
36
+ }
37
+
38
+ &.is-danger {
39
+ color: elVar('color-danger');
40
+ }
41
+
42
+ &.is-info {
43
+ color: elVar('color-info');
44
+ }
45
+
46
+ /* 尺寸 */
47
+ &.is-xs {
48
+ font-size: elVar('font-size', 'extra-small');
49
+ }
50
+
51
+ &.is-sm {
52
+ font-size: elVar('font-size', 'small');
53
+ }
54
+
55
+ &.is-md {
56
+ font-size: elVar('font-size', 'medium');
57
+ }
58
+
59
+ &.is-lg {
60
+ font-size: elVar('font-size', 'large');
61
+ }
62
+
63
+ &.is-xl {
64
+ font-size: elVar('font-size', 'extra-large');
65
+ }
66
+
67
+ &.is-xxl {
68
+ font-size: eleVar('text', 'xxl');
69
+ }
70
+
71
+ &.is-xxxl {
72
+ font-size: eleVar('text', 'xxxl');
73
+ }
74
+
75
+ /* 其它 */
76
+ &.is-delete {
77
+ text-decoration: line-through;
78
+ }
79
+
80
+ &.is-underline {
81
+ text-decoration: underline;
82
+
83
+ &.is-delete {
84
+ text-decoration: line-through underline;
85
+ }
86
+ }
87
+
88
+ &.is-strong {
89
+ font-weight: bold;
90
+ }
91
+
92
+ &.is-italic {
93
+ font-style: italic;
94
+ }
95
+
96
+ /* 图标 */
97
+ &.is-icon > .el-icon {
98
+ vertical-align: -2px;
99
+ }
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",
@@ -49,6 +49,7 @@ declare module '@vue/runtime-core' {
49
49
  EleTable: (typeof import('yuang-framework-ui-pc'))['EleTable'];
50
50
  EleTableSelect: (typeof import('yuang-framework-ui-pc'))['EleTableSelect'];
51
51
  EleTabs: (typeof import('yuang-framework-ui-pc'))['EleTabs'];
52
+ EleTest: (typeof import('yuang-framework-ui-pc'))['EleTest'];
52
53
  EleText: (typeof import('yuang-framework-ui-pc'))['EleText'];
53
54
  EleTool: (typeof import('yuang-framework-ui-pc'))['EleTool'];
54
55
  EleToolbar: (typeof import('yuang-framework-ui-pc'))['EleToolbar'];
@@ -59,8 +60,6 @@ declare module '@vue/runtime-core' {
59
60
  EleVirtualTable: (typeof import('yuang-framework-ui-pc'))['EleVirtualTable'];
60
61
  EleWatermark: (typeof import('yuang-framework-ui-pc'))['EleWatermark'];
61
62
  EleXgPlayer: (typeof import('yuang-framework-ui-pc'))['EleXgPlayer'];
62
-
63
- YuSliderCaptchaDialog: (typeof import('yuang-framework-ui-pc'))['YuSliderCaptchaDialog'];
64
63
  }
65
64
  }
66
65
  export {};