@lingxiteam/theme-utils 0.2.0 → 0.2.1

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 (57) hide show
  1. package/README.md +11 -5
  2. package/dist/config/Button.js +1 -1
  3. package/dist/config/Card.js +1 -1
  4. package/dist/config/Cascader.d.ts +1 -0
  5. package/dist/config/Cascader.js +2 -1
  6. package/dist/config/Checkbox.d.ts +1 -0
  7. package/dist/config/Checkbox.js +2 -1
  8. package/dist/config/CheckboxGroup.d.ts +1 -0
  9. package/dist/config/CheckboxGroup.js +2 -1
  10. package/dist/config/Container.d.ts +1 -0
  11. package/dist/config/Container.js +1 -0
  12. package/dist/config/DatePicker.d.ts +1 -0
  13. package/dist/config/DatePicker.js +2 -1
  14. package/dist/config/Description.d.ts +1 -0
  15. package/dist/config/Description.js +1 -0
  16. package/dist/config/Form.d.ts +1 -0
  17. package/dist/config/Form.js +2 -1
  18. package/dist/config/Radio.d.ts +1 -0
  19. package/dist/config/Radio.js +2 -1
  20. package/dist/config/RangePicker.d.ts +1 -0
  21. package/dist/config/RangePicker.js +2 -1
  22. package/dist/config/Select.d.ts +1 -0
  23. package/dist/config/Select.js +2 -1
  24. package/dist/config/StdUpload.d.ts +1 -0
  25. package/dist/config/StdUpload.js +2 -1
  26. package/dist/config/Tabs.js +1 -1
  27. package/dist/config/Tag.js +1 -1
  28. package/dist/config/TimePicker.d.ts +1 -0
  29. package/dist/config/TimePicker.js +2 -1
  30. package/dist/config/TreeSelect.d.ts +1 -0
  31. package/dist/config/TreeSelect.js +2 -1
  32. package/dist/css.d.ts +1 -1
  33. package/dist/css.js +2 -1
  34. package/dist/h5config/Accordion.d.ts +1 -0
  35. package/dist/h5config/Accordion.js +2 -1
  36. package/dist/h5config/Card.d.ts +1 -0
  37. package/dist/h5config/Card.js +2 -1
  38. package/dist/h5config/DForm.d.ts +2 -0
  39. package/dist/h5config/DForm.js +3 -1
  40. package/dist/h5config/DformFile.d.ts +1 -0
  41. package/dist/h5config/DformFile.js +2 -1
  42. package/dist/h5config/DformSwitch.d.ts +1 -0
  43. package/dist/h5config/DformSwitch.js +2 -1
  44. package/dist/h5config/FilterItems.d.ts +1 -0
  45. package/dist/h5config/FilterItems.js +2 -1
  46. package/dist/h5config/Grid.js +1 -1
  47. package/dist/h5config/NoticeBarPlus.js +1 -1
  48. package/dist/h5config/SearchView.js +1 -1
  49. package/dist/h5config/StaticTabs.d.ts +1 -18
  50. package/dist/h5config/StaticTabs.js +12 -23
  51. package/dist/h5config/Table.d.ts +2 -1
  52. package/dist/h5config/Table.js +4 -3
  53. package/dist/lx-mobile.d.ts +2 -0
  54. package/dist/lx-mobile.js +16 -6
  55. package/dist/lx.d.ts +2 -0
  56. package/dist/lx.js +14 -4
  57. package/package.json +1 -1
package/README.md CHANGED
@@ -87,12 +87,16 @@ insertLink('12312', 'http://xxx.css', true);
87
87
  ```ts
88
88
  {
89
89
  type: '类型',
90
+ // 所有的 css 有一个父级类名,理论上每一个都需要这个配置,是为了兼容第一版本的数据,因为组件太多,要全部重写一遍需要工作量,所以只修改了异常的组件
91
+ hasPrefixClass: true,
92
+ // 隐藏自定义类名按钮,当前只有pc端容器
93
+ hiddenCustomCss: true,
90
94
  variable: {
91
95
  // 允许配置项
92
- fontSize: {
96
+ fontSize: {
93
97
  // 对应编辑器的类型,px color select marginInput 四种
94
- type: 'px',
95
- label: '尺寸',
98
+ type: 'px',
99
+ label: '尺寸',
96
100
  groupsName: '文字' ,
97
101
  desc: '说明文字',
98
102
  // 继承其他组件属性时要标记不可编辑
@@ -112,6 +116,8 @@ insertLink('12312', 'http://xxx.css', true);
112
116
  ],
113
117
  // 根据上面的配置项和下面的模版解析得到最终挂在的 css
114
118
  tpl: '.hh { font-size: fontSize}',
119
+ // 如果它被别人继承,并且自己需要自定义样式,如父级自定义样式为 .aa.list{ .item { } } 子级的自定义样式为 .aa.item { }
120
+ itemCustomTpl: '',
115
121
  // 预览用数据,编辑器中推拽出来的 dsl ,可直接复制,View 下的 components,维护时如预览页面有变更,可直接替换这个数据,无需详细比对
116
122
  components: [],
117
123
  };
@@ -124,5 +130,5 @@ insertLink('12312', 'http://xxx.css', true);
124
130
  如: theme-utils/src/lx-mobile.ts#L63 和 theme-utils/src/lx.ts#L62
125
131
 
126
132
  ```ts
127
- const extend: any = { }
128
- ```
133
+ const extend: any = {};
134
+ ```
@@ -52,7 +52,7 @@ export var Button = {
52
52
  fontSize: '14px',
53
53
  backgroundColor: '#47e',
54
54
  borderColor: '#D8E0EC',
55
- borderRadius: '8px',
55
+ borderRadius: '2px',
56
56
  paddingValue: '4px 24px 4px 24px',
57
57
  marginValue: '0px'
58
58
  }],
@@ -104,7 +104,7 @@ export var Card = {
104
104
  bodyColor: '#fff',
105
105
  lineColor: '#f0f0f0'
106
106
  }],
107
- tpl: "\n .pcfactory-card{\n border-radius: borderRadius;\n }\n .ued-card.pcfactory-card-bordered .pcfactory-card-head {\n background-color: backgroundColor;\n border-color: lineColor;\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n .ued-card.pcfactory-card-bordered {\n border-color: borderColor;\n }\n .ued-card.pcfactory-card-bordered {\n border-color: borderColor;\n }\n .ued-card .ued-card-title-icon-auto>i {\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title-icon-auto span{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title::before {\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n }\n .ued-card .ued-card-title-icon-auto span svg{\n width: tagSize;\n height: tagSize;\n }\n .ued-card .pcfactory-card-body{\n background-color: bodyColor;\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }",
107
+ tpl: "\n .pcfactory-card{\n border-radius: borderRadius;\n }\n .ued-card.pcfactory-card-bordered .pcfactory-card-head {\n background-color: backgroundColor;\n border-color: lineColor;\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n .ued-card.pcfactory-card-bordered {\n border-color: borderColor;\n }\n .ued-card.pcfactory-card-bordered {\n border-color: borderColor;\n }\n .ued-card .ued-card-title-icon-auto>i {\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title-icon-auto span{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title::before {\n color: titleColor;\n background: titleColor;\n margin-right: tagMargin;\n }\n .ued-card .ued-card-title-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n }\n .ued-card .ued-card-title-icon-auto span svg{\n width: tagSize;\n height: tagSize;\n }\n .ued-card .pcfactory-card-body{\n background-color: bodyColor;\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }",
108
108
  components: [{
109
109
  id: 'Card_813627',
110
110
  label: '卡片',
@@ -1,5 +1,6 @@
1
1
  export declare const Cascader: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Cascader = {
2
2
  type: 'Cascader',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -82,7 +83,7 @@ export var Cascader = {
82
83
  iconTop: '16px',
83
84
  iconColor: 'rgba(28,36,46,.25)'
84
85
  }],
85
- tpl: ".ued-cascader-wrap .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-cascader-wrap .pcfactory-select-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }",
86
+ tpl: ".ued-cascader-wrap {\n .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-select-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n\n }",
86
87
  components: [{
87
88
  id: 'Form_180373',
88
89
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const Checkbox: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Checkbox = {
2
2
  type: 'Checkbox',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -77,7 +78,7 @@ export var Checkbox = {
77
78
  radioSeBorderColor: '#47e',
78
79
  radioSeBgColor: '#47e'
79
80
  }],
80
- tpl: ".pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n.pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox], .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }",
81
+ tpl: ".ued-checkbox-wrap{\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n.pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox], .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
81
82
  components: [{
82
83
  id: 'Form_180373',
83
84
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const CheckboxGroup: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var CheckboxGroup = {
2
2
  type: 'CheckboxGroup',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -77,7 +78,7 @@ export var CheckboxGroup = {
77
78
  radioSeBorderColor: '#47e',
78
79
  radioSeBgColor: '#47e'
79
80
  }],
80
- tpl: ".pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n .pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }",
81
+ tpl: ".ued-checkboxgroup-wrap {\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n .pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
81
82
  components: [{
82
83
  id: 'Form_180373',
83
84
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const Container: {
2
2
  type: string;
3
+ hiddenCustomCss: boolean;
3
4
  variable: {
4
5
  textColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Container = {
2
2
  type: 'Container',
3
+ hiddenCustomCss: true,
3
4
  variable: {
4
5
  textColor: {
5
6
  type: 'color',
@@ -1,5 +1,6 @@
1
1
  export declare const DatePicker: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var DatePicker = {
2
2
  type: 'DatePicker',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -75,7 +76,7 @@ export var DatePicker = {
75
76
  iconFontSize: '14px',
76
77
  iconColor: '#0085D0'
77
78
  }],
78
- tpl: ".ued-datePicker-wrap .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-datePicker-wrap .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }",
79
+ tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
79
80
  components: [{
80
81
  id: 'Form_180373',
81
82
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const Description: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  borderColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Description = {
2
2
  type: 'Description',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  borderColor: {
5
6
  type: 'color',
@@ -1,5 +1,6 @@
1
1
  export declare const Form: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Form = {
2
2
  type: 'Form',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: 'color',
@@ -86,7 +87,7 @@ export var Form = {
86
87
  // 下拉单选与下拉复选样式一致
87
88
  // 滑动输入条没有边框样式
88
89
  // TODO: 树选择器,联级选择器效果待确认
89
- tpl: "\n .ued-legacy-form-wrap{\n background-color: backgroundColor;\n }\n .ued-legacy-form-wrap.pcfactory-form-vertical .pcfactory-form-item-label>label{\n color: labelTextColor;\n line-height: labelLineHeight;\n font-size: labelFontSize;\n }\n .pcfactory-input-affix-wrapper {\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .pcfactory-input{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n color: textColor;\n font-size: fontSize;\n }\n .ued-inputNumber-wrap.pcfactory-input-number{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n color: textColor;\n font-size: fontSize;\n }\n .verificationCodePC-inputContent{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n height: auto;\n min-height: 32px;\n }\n .pcfactory-radio-wrapper{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-checkbox-wrapper{\n color: textColor;\n font-size: fontSize;\n }\n .ued-select-wrap .pcfactory-select{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-select-multiple .ued-select-checked-tag{\n color: textColor;\n font-size: fontSize;\n min-height: 24px;\n height: auto;\n padding: 4px 8px 4px 8px;\n }\n .pcfactory-select-single:not(.pcfactory-select-customize-input) .pcfactory-select-selector::after{\n line-height: fontSize;\n }\n span.pcfactory-radio+*{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-select-selector{\n height: auto;\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .ued-select-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-checkbox+span{\n color: textColor;\n font-size: fontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button{\n height: auto;\n }\n .ued-cascader-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .ued-treeSelect-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-picker-input > input{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-picker{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button>span{\n color: textColor;\n font-size: fontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .pcfactory-select:not(.pcfactory-select-customize-input) .pcfactory-select-selector{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n height: auto;\n min-height: 32px;\n }\n .pcfactory-select-single .pcfactory-select-selector .pcfactory-select-selection-item, .pcfactory-select-single .pcfactory-select-selector .pcfactory-select-selection-placeholder{\n line-height: 2;\n font-size: fontSize;\n }\n .pcfactory-select-multiple .pcfactory-select-selection-placeholder{\n font-size: fontSize;\n }\n .ued-rateContainer .pcfactory-rate{\n font-size: fontSize;\n }\n .ued-rateContainer-rateText{\n color: textColor;\n font-size: fontSize;\n }\n ",
90
+ tpl: ".ued-legacy-form-wrap{\n background-color: backgroundColor;\n &.pcfactory-form-vertical .pcfactory-form-item-label>label{\n color: labelTextColor;\n line-height: labelLineHeight;\n font-size: labelFontSize;\n }\n .pcfactory-input-affix-wrapper {\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .pcfactory-input{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n color: textColor;\n font-size: fontSize;\n }\n .ued-inputNumber-wrap.pcfactory-input-number{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n color: textColor;\n font-size: fontSize;\n }\n .verificationCodePC-inputContent{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n height: auto;\n min-height: 32px;\n }\n .pcfactory-radio-wrapper{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-checkbox-wrapper{\n color: textColor;\n font-size: fontSize;\n }\n .ued-select-wrap .pcfactory-select{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-select-multiple .ued-select-checked-tag{\n color: textColor;\n font-size: fontSize;\n min-height: 24px;\n height: auto;\n padding: 4px 8px 4px 8px;\n }\n .pcfactory-select-single:not(.pcfactory-select-customize-input) .pcfactory-select-selector::after{\n line-height: fontSize;\n }\n span.pcfactory-radio+*{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-select-selector{\n height: auto;\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .ued-select-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-checkbox+span{\n color: textColor;\n font-size: fontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button{\n height: auto;\n }\n .ued-cascader-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .ued-treeSelect-wrap .pcfactory-select-selection-item{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-picker-input > input{\n color: textColor;\n font-size: fontSize;\n }\n .pcfactory-picker{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button>span{\n color: textColor;\n font-size: fontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload.pcfactory-upload-select.pcfactory-upload-select-text button{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n }\n .pcfactory-select:not(.pcfactory-select-customize-input) .pcfactory-select-selector{\n border-color: itemBorderColor;\n border-radius: itemBorderRadius;\n height: auto;\n min-height: 32px;\n }\n .pcfactory-select-single .pcfactory-select-selector .pcfactory-select-selection-item, .pcfactory-select-single .pcfactory-select-selector .pcfactory-select-selection-placeholder{\n line-height: 2;\n font-size: fontSize;\n }\n .pcfactory-select-multiple .pcfactory-select-selection-placeholder{\n font-size: fontSize;\n }\n .ued-rateContainer .pcfactory-rate{\n font-size: fontSize;\n }\n .ued-rateContainer-rateText{\n color: textColor;\n font-size: fontSize;\n }\n }\n \n ",
90
91
  components: [{
91
92
  id: 'Form_180373',
92
93
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const Radio: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Radio = {
2
2
  type: 'Radio',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -77,7 +78,7 @@ export var Radio = {
77
78
  radioSeBorderColor: '#47e',
78
79
  radioSeBgColor: '#fff'
79
80
  }],
80
- tpl: ".pcfactory-radio-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-radio-input:focus+.pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-radio-wrapper:hover .pcfactory-radio{\n border-color: radioSeBorderColor;\n}\n .pcfactory-radio:hover .pcfactory-radio-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner:after{\n background: radioSeBorderColor;\n margin-left:0px;\n margin-top:0px;\n top:-1%;\n left:-3%;\n border-radius: radioSize;\n width: radioSize;\n height: radioSize;\n }",
81
+ tpl: ".ued-radio-wrap {\n .pcfactory-radio-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-radio-input:focus+.pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-radio-wrapper:hover .pcfactory-radio{\n border-color: radioSeBorderColor;\n}\n .pcfactory-radio:hover .pcfactory-radio-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner:after{\n background: radioSeBorderColor;\n margin-left:0px;\n margin-top:0px;\n top:-1%;\n left:-3%;\n border-radius: radioSize;\n width: radioSize;\n height: radioSize;\n }\n}",
81
82
  components: [{
82
83
  id: 'Form_180373',
83
84
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const RangePicker: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var RangePicker = {
2
2
  type: 'RangePicker',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -81,7 +82,7 @@ export var RangePicker = {
81
82
  iconColor: '#0085D0',
82
83
  lineColor: '#1c242e'
83
84
  }],
84
- tpl: ".ued-datePicker-wrap .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-datePicker-wrap .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-datePicker-wrap .pcfactory-picker-range-separator{\n color: lineColor;\n }",
85
+ tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-range-separator{\n color: lineColor;\n }\n }",
85
86
  components: [{
86
87
  id: 'Form_180373',
87
88
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const Select: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Select = {
2
2
  type: 'Select',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -82,7 +83,7 @@ export var Select = {
82
83
  iconTop: '16px',
83
84
  iconColor: 'rgba(28,36,46,.25)'
84
85
  }],
85
- tpl: ".ued-select-wrap .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-select-wrap .pcfactory-select-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }",
86
+ tpl: ".ued-select-wrap {\n .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-select-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
86
87
  components: [{
87
88
  id: 'Form_180373',
88
89
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const StdUpload: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var StdUpload = {
2
2
  type: 'StdUpload',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -87,7 +88,7 @@ export var StdUpload = {
87
88
  listIconColor: 'rgba(0,0,0,.45)',
88
89
  lisIconSize: '14px'
89
90
  }],
90
- tpl: "\n .ued-stdupload-wrap .pcfactory-upload-list-item-info .anticon-loading .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .pcfactory-upload-list-item-info .pcfactory-upload-text-icon .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .ued-stdupload-wrap .pcfactory-upload-list-item-error{\n color: #ff7474;\n }\n .pcfactory-upload-list-item-error .pcfactory-upload-list-item-name{\n color: #ff7474;\n }\n .pcfactory-upload-list-item-error .pcfactory-upload-text-icon>.anticon{\n color: #ff7474;\n }\n .ued-stdupload-wrap .pcfactory-upload-list-item-info a{\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload-list-item-info:hover a{\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdupload-wrap .pcfactory-upload-list-item-card-actions .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }",
91
+ tpl: ".ued-stdupload-wrap {\n \n .ued-stdUpload-item-info a {\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdUpload-item-info:hover a{\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdUpload-item-icon .anticon-loading .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .ued-stdUpload-item-icon .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .ued-stdUpload-item-error .ued-stdUpload-item-icon .anticon-loading .anticon{\n color: #ff7474;\n }\n .ued-stdUpload-item-error .ued-stdUpload-item-icon .anticon{\n color: #ff7474;\n }\n }\n ",
91
92
  components: [{
92
93
  id: 'Form_180373',
93
94
  label: '表单',
@@ -128,7 +128,7 @@ export var Tabs = {
128
128
  fontWeight: '300',
129
129
  activeFontWeight: '300'
130
130
  }],
131
- tpl: ".ued-tabs-wrap .pcfactory-tabs > .pcfactory-tabs-nav .pcfactory-tabs-nav-wrap{\n background-color: headBgColor;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab-active{\n background-color: activeBgColor;\n border-top-left-radius: activeRadius;\n border-top-right-radius: activeRadius;\n\n }\n .ued-tabs-wrap .pcfactory-tabs-ink-bar{\n background-color: activeFColor;\n }\n .ued-tabs-wrap .pcfactory-tabs{\n background-color: bodyColor;\n border-radius: borderRadius;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab{\n padding: paddingValue;\n margin: marginValue;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab .pcfactory-tabs-tab-btn{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n font-weight: fontWeight;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab-active .pcfactory-tabs-tab-btn{\n color: activeTextColor;\n font-weight: activeFontWeight;\n }",
131
+ tpl: ".pcfactory-tabs .pcfactory-tabs > .pcfactory-tabs-nav .pcfactory-tabs-nav-wrap{\n background-color: headBgColor;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab-active{\n background-color: activeBgColor;\n border-top-left-radius: activeRadius;\n border-top-right-radius: activeRadius;\n }\n .pcfactory-tabs .pcfactory-tabs-ink-bar{\n background-color: activeFColor;\n }\n .pcfactory-tabs{\n background-color: bodyColor;\n border-radius: borderRadius;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab{\n padding: paddingValue;\n margin: marginValue;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab .pcfactory-tabs-tab-btn{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n font-weight: fontWeight;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab-active .pcfactory-tabs-tab-btn{\n color: activeTextColor;\n font-weight: activeFontWeight;\n }",
132
132
  components: [{
133
133
  id: 'Tabs_9165146',
134
134
  label: '标签页',
@@ -46,7 +46,7 @@ export var Tag = {
46
46
  closeColor: 'rgba(0,0,0,.45)',
47
47
  closeSize: '10px'
48
48
  }],
49
- tpl: ".ued-tag-wrap .pcfactory-tag{\n background: backgroundColor;\n padding: paddingValue;\n border-radius: borderRadius;\n font-size: fontSize;\n }\n .ued-tag-wrap .pcfactory-tag .pcfactory-tag-close-icon { \n color: closeColor;\n > svg{\n width: closeSize;\n height: closeSize;\n }\n }",
49
+ tpl: ".pcfactory-tag{\n background: backgroundColor;\n padding: paddingValue;\n border-radius: borderRadius;\n font-size: fontSize;\n }\n .pcfactory-tag .pcfactory-tag-close-icon { \n color: closeColor;\n > svg{\n width: closeSize;\n height: closeSize;\n }\n }",
50
50
  components: [{
51
51
  id: 'Tag_6939955',
52
52
  label: '标签',
@@ -1,5 +1,6 @@
1
1
  export declare const TimePicker: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var TimePicker = {
2
2
  type: 'TimePicker',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -75,7 +76,7 @@ export var TimePicker = {
75
76
  iconFontSize: '14px',
76
77
  iconColor: '#0085D0'
77
78
  }],
78
- tpl: ".ued-datePicker-wrap .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-datePicker-wrap .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }",
79
+ tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
79
80
  components: [{
80
81
  id: 'Form_180373',
81
82
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const TreeSelect: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var TreeSelect = {
2
2
  type: 'TreeSelect',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  labelTextColor: {
5
6
  type: 'color',
@@ -82,7 +83,7 @@ export var TreeSelect = {
82
83
  iconColor: 'rgba(28,36,46,.25)',
83
84
  iconTop: '16px'
84
85
  }],
85
- tpl: ".ued-treeSelect-wrap .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .ued-treeSelect-wrap .pcfactory-select-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }",
86
+ tpl: ".ued-treeSelect-wrap {\n .pcfactory-select-arrow{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-select-clear {\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n top: iconTop;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
86
87
  components: [{
87
88
  id: 'Form_180373',
88
89
  label: '表单',
package/dist/css.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare function stringifyCss(tpl: string, values: any): string;
2
2
  export declare function parseCss(tpl: string, a: string): any;
3
3
  export declare function normalizeCSS(css: string, selector?: string): string;
4
- export declare function prefixCSS(css: string, prefix?: string): string;
4
+ export declare function prefixAnyCSS(css: string, prefix?: string, hasPrefix?: boolean): string;
5
5
  export declare function insertRules(id: string, rules: string, selector?: HTMLHeadElement): void;
6
6
  export declare function insertLink(id: string, href: string, insertBefore?: boolean): void;
package/dist/css.js CHANGED
@@ -84,10 +84,11 @@ export function normalizeCSS(css, selector) {
84
84
  }
85
85
 
86
86
  // 这个解法不是特别好,但是组件有些是有嵌套的 div 有些是没有嵌套,所以给可用的 class 添加一个 &. 的样式前缀
87
- export function prefixCSS(css, prefix) {
87
+ export function prefixAnyCSS(css, prefix, hasPrefix) {
88
88
  if (prefix) {
89
89
  var hasD = prefix.startsWith('.') || prefix.startsWith('#');
90
90
  var prefixCss = "".concat(hasD ? '' : '.').concat(prefix);
91
+ if (hasPrefix) return "".concat(prefixCss).concat(css);
91
92
  return css.split('\n').map(function (i) {
92
93
  if (i.trimStart().startsWith('.')) {
93
94
  return "".concat(prefixCss).concat(i.trimStart());
@@ -76,6 +76,7 @@ export declare const Accordion: {
76
76
  groupsName: string;
77
77
  };
78
78
  };
79
+ hasPrefixClass: boolean;
79
80
  groupsName: string;
80
81
  icon: string;
81
82
  title: string;
@@ -88,6 +88,7 @@ export var Accordion = {
88
88
  groupsName: '边框'
89
89
  }
90
90
  },
91
+ hasPrefixClass: true,
91
92
  groupsName: '容器',
92
93
  icon: 'icon-ico-comp-app-Accordion',
93
94
  title: '折叠面板',
@@ -107,7 +108,7 @@ export var Accordion = {
107
108
  borderColor: '#DDD',
108
109
  borderRadius: '4px'
109
110
  }],
110
- tpl: "\n .lcdp-accordion .lcdp-accordion-header{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n background: backgroundColor;\n }\n .lcdp-accordion .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .adm-list-item-content{\n border-color: lineColor;\n }\n\n .lcdp-accordion .adm-collapse-arrow svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-accordion .adm-list-item-content-main{\n background: bodyBgColor;\n }\n .lcdp-accordion{\n .adm-collapse{\n border-radius: borderRadius;\n border-color: borderColor !important;\n }\n }",
111
+ tpl: ".lcdp-accordion {\n .lcdp-accordion-header{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n background: backgroundColor;\n }\n .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .adm-list-item-content{\n border-color: lineColor;\n }\n \n .adm-collapse-arrow svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .adm-list-item-content-main{\n background: bodyBgColor;\n }\n .adm-collapse{\n border-radius: borderRadius;\n border-color: borderColor !important;\n }\n }\n ",
111
112
  components: [{
112
113
  id: 'Accordion_960849',
113
114
  label: '折叠面板',
@@ -1,5 +1,6 @@
1
1
  export declare const Card: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  textColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var Card = {
2
2
  type: 'Card',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  textColor: {
5
6
  type: 'color',
@@ -119,7 +120,7 @@ export var Card = {
119
120
  borderColor: 'rgba(0,0,0,0)',
120
121
  borderRadius: '4px'
121
122
  }],
122
- tpl: ".lcdp-h5-card-title{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n }\n .lcdp-h5-card-hStyle{\n background: titleColor;\n margin-right: tagMargin;\n position: static;\n width: tagSize;\n }\n .lcdp-h5-card-vStyle{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .lcdp-h5-card-icon{\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-icon svg{\n color: titleColor;\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-icon{\n margin-right: tagMargin;\n }\n .lcdp-h5-card-extra-icon{\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-h5-card-extra-icon svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-h5-card .adm-card-header:not(:last-child){\n border-color: lineColor !important;\n }\n .lcdp-h5-card .adm-card-header{\n border-color: lineColor !important;\n background: backgroundColor !important;\n }\n .lcdp-h5-card .adm-card-body{\n background: bodyBgColor;\n }\n .lcdp-card-footer-draw-box-border{\n border-color: bodyLineColor;\n background: footBgColor;\n }\n .lcdp-h5-card {\n border-radius: borderRadius;\n border: 1PX solid borderColor;\n }\n ",
123
+ tpl: ".lcdp-h5-card {\n border-radius: borderRadius;\n border: 1PX solid borderColor;\n\n .adm-card-header:not(:last-child){\n border-color: lineColor !important;\n }\n .adm-card-header{\n border-color: lineColor !important;\n background: backgroundColor !important;\n }\n .adm-card-body{\n background: bodyBgColor;\n }\n\n .adm-card-header-title .lcdp-h5-card-title{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n }\n\n .lcdp-h5-card-hStyle{\n background: titleColor;\n margin-right: tagMargin;\n position: static;\n width: tagSize;\n }\n .lcdp-h5-card-vStyle{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .lcdp-h5-card-icon{\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-icon svg{\n color: titleColor;\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-icon{\n margin-right: tagMargin;\n }\n .lcdp-h5-card-extra-icon{\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-h5-card-extra-icon svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-card-footer-draw-box-border{\n border-color: bodyLineColor;\n background: footBgColor;\n }\n }\n \n ",
123
124
  components: [{
124
125
  id: 'Card_4143673',
125
126
  label: '卡片',
@@ -1,5 +1,6 @@
1
1
  export declare const DForm: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: string;
@@ -110,6 +111,7 @@ export declare const DForm: {
110
111
  iconSize: string;
111
112
  }[];
112
113
  tpl: string;
114
+ itemCustomTpl: string;
113
115
  components: {
114
116
  id: string;
115
117
  label: string;
@@ -1,5 +1,6 @@
1
1
  export var DForm = {
2
2
  type: 'DForm',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: 'color',
@@ -151,7 +152,8 @@ export var DForm = {
151
152
  iconColor: 'rgba(0, 0, 0, 0.45)',
152
153
  iconSize: '16px'
153
154
  }],
154
- tpl: "\n .dynamic-form-wrapper{\n background-color: backgroundColor;\n --color: textColor;\n --font-size: fontSize;\n }\n .adm-text-area{\n --color: textColor;\n --font-size: fontSize;\n }\n .lingxiteam-dform-title {\n color: labelTextColor;\n font-size: labelFontSize !important;\n line-height: labelLineHeight;\n font-weight: labelFontWeight;\n text-align: headTextAlign;\n}\n.lingxiteam-dform-input-item-value input{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n}\n\n.lingxiteam-dform-radio-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n\n}\n.lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n text-align: headTextAlign;\n font-size: fontSize;\n\n}\n.lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n}\n.lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-date-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n}\n.lingxiteam-dform-rangdate-h-value{\n color: textColor;\n line-height: lineHeight;\n text-align: headTextAlign;\n font-size: fontSize;\n padding: paddingValue;\n font-weight: fontWeight;\n}\n.lingxiteam-dform-area-group-value-area textarea{\n line-height: lineHeight;\n padding: paddingValue;\n font-weight: fontWeight;\n font-size: fontSize;\n color: textColor;\n text-align: headTextAlign;\n\n}\n.cust-icon{\n width: iconSize;\n height: iconSize;\n}\n.cust-icon svg{\n color: iconColor;\n fill: iconColor;\n width: iconSize;\n height: iconSize;\n}\n.lingxiteam-dform-right-content{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n}\n.lingxiteam-dform-arrow-horizontal{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n}\n.lingxiteam-dform-arrow-horizontal::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\nbackground-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2226%22%20viewBox%3D%220%200%2016%2026%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%20id%3D%22UI-KIT_%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%229.9%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20transform%3D%22translate%28-5809.000000%2C%20-8482.000000%29%22%20fill%3D%22%23C7C7CC%22%3E%3Cpolygon%20id%3D%22Disclosure-Indicator%22%20points%3D%225811%208482%205809%208484%205820.5%208495%205809%208506%205811%208508%205825%208495%22%3E%3C%2Fpolygon%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\nbackground-repeat: round;\ntransform: translateX(-100%);\nbackground-size: 100%;\n filter: drop-shadow(iconSize 0 iconColor);\n}",
155
+ tpl: ".dynamic-form-wrapper {\n background-color: backgroundColor;\n .lcdp-form-item {\n --color: textColor;\n --font-size: fontSize;\n .adm-text-area{\n --color: textColor;\n --font-size: fontSize;\n }\n .lingxiteam-dform-title {\n color: labelTextColor;\n font-size: labelFontSize !important;\n line-height: labelLineHeight;\n font-weight: labelFontWeight;\n text-align: headTextAlign;\n }\n .lingxiteam-dform-input-item-value input{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n }\n \n .lingxiteam-dform-radio-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n \n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n text-align: headTextAlign;\n font-size: fontSize;\n \n }\n .lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-date-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-rangdate-h-value{\n color: textColor;\n line-height: lineHeight;\n text-align: headTextAlign;\n font-size: fontSize;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-area-group-value-area textarea{\n line-height: lineHeight;\n padding: paddingValue;\n font-weight: fontWeight;\n font-size: fontSize;\n color: textColor;\n text-align: headTextAlign;\n \n }\n .cust-icon{\n width: iconSize;\n height: iconSize;\n }\n .cust-icon svg{\n color: iconColor;\n fill: iconColor;\n width: iconSize;\n height: iconSize;\n }\n .lingxiteam-dform-right-content{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n }\n .lingxiteam-dform-arrow-horizontal{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .lingxiteam-dform-arrow-horizontal::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2226%22%20viewBox%3D%220%200%2016%2026%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%20id%3D%22UI-KIT_%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%229.9%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20transform%3D%22translate%28-5809.000000%2C%20-8482.000000%29%22%20fill%3D%22%23C7C7CC%22%3E%3Cpolygon%20id%3D%22Disclosure-Indicator%22%20points%3D%225811%208482%205809%208484%205820.5%208495%205809%208506%205811%208508%205825%208495%22%3E%3C%2Fpolygon%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n transform: translateX(-100%);\n background-size: 100%;\n filter: drop-shadow(iconSize 0 iconColor);\n }\n }\n }\n ",
156
+ itemCustomTpl: ".lcdp-form-item {\n --color: textColor;\n --font-size: fontSize;\n .adm-text-area{\n --color: textColor;\n --font-size: fontSize;\n }\n .lingxiteam-dform-title {\n color: labelTextColor;\n font-size: labelFontSize !important;\n line-height: labelLineHeight;\n font-weight: labelFontWeight;\n text-align: headTextAlign;\n }\n .lingxiteam-dform-input-item-value input{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n }\n \n .lingxiteam-dform-radio-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n padding: paddingValue;\n text-align: headTextAlign;\n font-size: fontSize;\n \n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-label{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n text-align: headTextAlign;\n font-size: fontSize;\n \n }\n .lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-text-item-content .lingxiteam-dform-text-item-date-text{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n text-align: headTextAlign;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-rangdate-h-value{\n color: textColor;\n line-height: lineHeight;\n text-align: headTextAlign;\n font-size: fontSize;\n padding: paddingValue;\n font-weight: fontWeight;\n }\n .lingxiteam-dform-area-group-value-area textarea{\n line-height: lineHeight;\n padding: paddingValue;\n font-weight: fontWeight;\n font-size: fontSize;\n color: textColor;\n text-align: headTextAlign;\n \n }\n .cust-icon{\n width: iconSize;\n height: iconSize;\n }\n .cust-icon svg{\n color: iconColor;\n fill: iconColor;\n width: iconSize;\n height: iconSize;\n }\n .lingxiteam-dform-right-content{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n }\n .lingxiteam-dform-arrow-horizontal{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .lingxiteam-dform-arrow-horizontal::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2226%22%20viewBox%3D%220%200%2016%2026%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%20id%3D%22UI-KIT_%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%229.9%E5%9F%BA%E7%A1%80%E5%85%83%E4%BB%B6%22%20transform%3D%22translate%28-5809.000000%2C%20-8482.000000%29%22%20fill%3D%22%23C7C7CC%22%3E%3Cpolygon%20id%3D%22Disclosure-Indicator%22%20points%3D%225811%208482%205809%208484%205820.5%208495%205809%208506%205811%208508%205825%208495%22%3E%3C%2Fpolygon%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n transform: translateX(-100%);\n background-size: 100%;\n filter: drop-shadow(iconSize 0 iconColor);\n }\n }",
155
157
  components: [{
156
158
  id: 'DForm_458695',
157
159
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const DformFile: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  btnBgColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var DformFile = {
2
2
  type: 'DformFile',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  btnBgColor: {
5
6
  type: 'color',
@@ -73,7 +74,7 @@ export var DformFile = {
73
74
  btnIconColor: '#108ee9',
74
75
  btnBorderRadius: '100px'
75
76
  }],
76
- tpl: ".lingxiteam-dform-file-extra-btn{\n border-radius: btnBorderRadius;\n background: btnBgColor;\n > span {\n color: btnIconColor;\n }\n }",
77
+ tpl: ".lcdp-form-item {\n .lingxiteam-dform-file-extra-btn{\n border-radius: btnBorderRadius;\n background: btnBgColor;\n > span {\n color: btnIconColor;\n }\n }\n }",
77
78
  components: [{
78
79
  id: 'DForm_333712',
79
80
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const DformSwitch: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  openColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var DformSwitch = {
2
2
  type: 'DformSwitch',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  openColor: {
5
6
  type: 'color',
@@ -75,7 +76,7 @@ export var DformSwitch = {
75
76
  openColor: '#108ee9',
76
77
  closeColor: '#ddd'
77
78
  }],
78
- tpl: "\n .adm-switch.adm-switch-checked .adm-switch-checkbox{\n background: openColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox{\n background: closeColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox::before{\n background: closeColor;\n }",
79
+ tpl: ".lcdp-form-item {\n .adm-switch.adm-switch-checked .adm-switch-checkbox{\n background: openColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox{\n background: closeColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox::before{\n background: closeColor;\n }\n }\n ",
79
80
  components: [{
80
81
  id: 'DForm_333712',
81
82
  label: '表单',
@@ -1,5 +1,6 @@
1
1
  export declare const FilterItems: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
1
  export var FilterItems = {
2
2
  type: 'FilterItems',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  backgroundColor: {
5
6
  type: 'color',
@@ -83,7 +84,7 @@ export var FilterItems = {
83
84
  iconSize: '16px',
84
85
  iconCloseColor: 'rgba(0,0,0,0.3)'
85
86
  }],
86
- tpl: "\n .alita-filter-item-content{\n background: backgroundColor;\n font-size: fontSize;\n border-radius: borderRadius;\n border: 1px solid borderColor;\n }\n .alita-filter-item-active-text{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n }\n .alita-filter-item-noraml-icon{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n }\n .alita-filter-item-icon-up{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-up::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-171.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%2851.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23BFBFBF%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n transform: translateX(-100%);\n background-size: 100%;\n filter: drop-shadow(iconSize 0 iconCloseColor);\n }\n .alita-filter-item-icon-down{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-down::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-295.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%28175.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2892.000000%2C%2018.000000%29%20scale%281%2C%20-1%29%20translate%28-92.000000%2C%20-18.000000%29%20translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%231677ff%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%231677ff%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n background-size: 100%;\n transform: translateX(-100%);\n filter: drop-shadow(iconSize 0 iconColor);\n}\n",
87
+ tpl: ".use-app-filteritems{\n .alita-filter-item-content{\n background: backgroundColor;\n font-size: fontSize;\n border-radius: borderRadius;\n border: 1px solid borderColor;\n }\n .alita-filter-item-active-text{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n }\n .alita-filter-item-noraml-icon{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n }\n .alita-filter-item-icon-up{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-up::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-171.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%2851.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23BFBFBF%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n transform: translateX(-100%);\n background-size: 100%;\n filter: drop-shadow(iconSize 0 iconCloseColor);\n }\n .alita-filter-item-icon-down{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-down::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-295.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%28175.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2892.000000%2C%2018.000000%29%20scale%281%2C%20-1%29%20translate%28-92.000000%2C%20-18.000000%29%20translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%231677ff%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%231677ff%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n background-size: 100%;\n transform: translateX(-100%);\n filter: drop-shadow(iconSize 0 iconColor);\n}\n }\n \n",
87
88
  components: [{
88
89
  id: 'FilterItems_7957386',
89
90
  label: '筛选项',
@@ -77,7 +77,7 @@ export var Grid = {
77
77
  fontSize: '12px',
78
78
  fontWeight: '400'
79
79
  }],
80
- tpl: "\n .use-app-grid{\n background-color: backgroundColor;\n border-radius: borderRadius;\n }\n .am-grid {\n background-color: backgroundColor;\n border-radius: borderRadius;\n --adm-font-size-4: fontSize;\n --adm-color-text: textColor\n }\n .am-grid.am-grid-line:not(.am-grid-carousel){\n border:1PX solid borderColor;\n border-bottom:none;\n }\n .am-grid.am-grid-line .am-grid-flex:last-child{\n border-color: borderColor;\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n .am-grid.am-grid-line .am-grid-flex:first-child{\n border-top-left-radius: borderRadius;\n }\n .am-grid.am-grid-line .am-grid-flex .am-grid-flex-item:first-child{\n border: none;\n }\n .am-grid.am-grid-line .am-grid-flex{\n border-color: lineColor;\n }\n .am-grid.am-grid-square .am-grid-item .am-grid-item-inner-content .am-grid-icon{\n width: iconSize;\n }\n .am-grid .am-grid-flex .am-grid-flex-item .am-grid-item-content .am-grid-item-inner-content .am-grid-text{\n line-height: lineHeight;\n font-weight: fontWeight;\n }",
80
+ tpl: ".use-app-grid{\n background-color: backgroundColor;\n border-radius: borderRadius;\n .am-grid {\n border-radius: borderRadius;\n --adm-font-size-4: fontSize;\n --adm-color-text: textColor\n }\n .am-grid.am-grid-line:not(.am-grid-carousel){\n border:1PX solid borderColor;\n border-bottom:none;\n }\n .am-grid.am-grid-line .am-grid-flex:last-child{\n border-color: borderColor;\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n .am-grid.am-grid-line .am-grid-flex:first-child{\n border-top-left-radius: borderRadius;\n }\n .am-grid.am-grid-line .am-grid-flex .am-grid-flex-item:first-child{\n border: none;\n }\n .am-grid.am-grid-line .am-grid-flex{\n border-color: lineColor;\n }\n .am-grid.am-grid-square .am-grid-item .am-grid-item-inner-content .am-grid-icon{\n width: iconSize;\n }\n .am-grid .am-grid-flex .am-grid-flex-item .am-grid-item-content .am-grid-item-inner-content .am-grid-text{\n line-height: lineHeight;\n font-weight: fontWeight;\n }\n }\n",
81
81
  components: [{
82
82
  id: 'Grid_842271',
83
83
  label: '宫格',
@@ -73,7 +73,7 @@ export var NoticeBarPlus = {
73
73
  iconSize: '20px',
74
74
  fontWeight: '400'
75
75
  }],
76
- tpl: "\n .alita-notice-bar{\n --adm-color-background: backgroundColor;\n border-color: borderColor;\n border-radius: borderRadius;\n font-size: fontSize;\n // line-height: lineHeight;\n font-weight:fontWeight;\n color: textColor;\n > div {\n\n > svg {\n color: iconColor;\n\nwidth: iconSize;\nheight: iconSize;\n }\n }\n }",
76
+ tpl: ".use-app-noticebarplus{\n .alita-notice-bar{\n --adm-color-background: backgroundColor;\n border-color: borderColor;\n border: 1px solid borderColor;\n border-radius: borderRadius;\n font-size: fontSize;\n // line-height: lineHeight;\n font-weight:fontWeight;\n color: textColor;\n > div {\n > svg {\n color: iconColor;\n width: iconSize;\n height: iconSize;\n }\n }\n }\n }\n ",
77
77
  components: [{
78
78
  id: 'NoticeBarPlus_0162497',
79
79
  label: '公告栏',
@@ -97,7 +97,7 @@ export var SearchView = {
97
97
  sBorderColor: 'rgba(0,0,0,0)',
98
98
  sBorderRadius: '18px'
99
99
  }],
100
- tpl: "\n .alita-search-view-wrap{\n --adm-color-background: backgroundColor;\n padding: paddingValue;\n border: 1PX solid borderColor;\n border-radius: borderRadius;\n }\n .alita-search-view-wrap .alita-search-bar-input{\n background-color: sBackgroundColor;\ncolor: textColor;\nfont-size: fontSize;\nfont-weight: fontWeight;\npadding: sPaddingValue;\nborder-radius: sBorderRadius;\nborder: 1PX solid sBorderColor;\n }\n .alita-search-view-wrap .alita-search-bar-search{\n width: iconSize;\n height: iconSize;\n }",
100
+ tpl: "\n .alita-search-view-wrap{\n --adm-color-background: backgroundColor;\n padding: paddingValue;\n border: 1PX solid borderColor;\n border-radius: borderRadius;\n }\n .alita-search-bar-input{\n background-color: sBackgroundColor;\ncolor: textColor;\nfont-size: fontSize;\nfont-weight: fontWeight;\npadding: sPaddingValue;\nborder-radius: sBorderRadius;\nborder: 1PX solid sBorderColor;\n }\n .alita-search-bar-search{\n width: iconSize;\n height: iconSize;\n }",
101
101
  components: [{
102
102
  id: 'SearchView_197467',
103
103
  label: '搜索',
@@ -1,5 +1,6 @@
1
1
  export declare const StaticTabs: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  selectBgColor: {
5
6
  type: string;
@@ -35,11 +36,6 @@ export declare const StaticTabs: {
35
36
  label: string;
36
37
  groupsName: string;
37
38
  };
38
- lineHeight: {
39
- type: string;
40
- label: string;
41
- groupsName: string;
42
- };
43
39
  fontSize: {
44
40
  type: string;
45
41
  label: string;
@@ -54,16 +50,6 @@ export declare const StaticTabs: {
54
50
  value: string;
55
51
  }[];
56
52
  };
57
- borderColor: {
58
- type: string;
59
- label: string;
60
- groupsName: string;
61
- };
62
- lineColor: {
63
- type: string;
64
- label: string;
65
- groupsName: string;
66
- };
67
53
  bodyBgColor: {
68
54
  type: string;
69
55
  label: string;
@@ -81,11 +67,8 @@ export declare const StaticTabs: {
81
67
  selectFontWeight: string;
82
68
  fontWeight: string;
83
69
  fontSize: string;
84
- lineHeight: string;
85
70
  selectBorderRadius: string;
86
71
  bodyBgColor: string;
87
- borderColor: string;
88
- lineColor: string;
89
72
  }[];
90
73
  tpl: string;
91
74
  components: {
@@ -1,5 +1,6 @@
1
1
  export var StaticTabs = {
2
2
  type: 'StaticTabs',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  // TODO: 代码中写死
5
6
  // headBgColor: {
@@ -58,11 +59,6 @@ export var StaticTabs = {
58
59
  label: '选项文本颜色',
59
60
  groupsName: '选项'
60
61
  },
61
- lineHeight: {
62
- type: 'px',
63
- label: '选项文本行高',
64
- groupsName: '选项'
65
- },
66
62
  fontSize: {
67
63
  type: 'px',
68
64
  label: '选项文本尺寸',
@@ -89,16 +85,11 @@ export var StaticTabs = {
89
85
  value: '500'
90
86
  }]
91
87
  },
92
- borderColor: {
93
- type: 'color',
94
- label: '边框颜色',
95
- groupsName: '选项'
96
- },
97
- lineColor: {
98
- type: 'color',
99
- label: '头部下分割线颜色',
100
- groupsName: '边框'
101
- },
88
+ // lineColor: {
89
+ // type: 'color',
90
+ // label: '头部下分割线颜色',
91
+ // groupsName: '边框',
92
+ // },
102
93
  bodyBgColor: {
103
94
  type: 'color',
104
95
  label: '内容区域背景颜色',
@@ -110,20 +101,18 @@ export var StaticTabs = {
110
101
  title: '静态标签页',
111
102
  defaultValue: [{
112
103
  selectTextColor: '#108ee9',
113
- textColor: '#108ee9',
104
+ textColor: '#FFF',
114
105
  selectBgColor: '#FFF',
115
- backgroundColor: '#FFF',
106
+ backgroundColor: '#108ee9',
116
107
  selectFontWeight: '400',
117
108
  fontWeight: '400',
118
109
  fontSize: '15px',
119
- lineHeight: '100%',
120
110
  selectBorderRadius: '12px',
121
- // paddingValue:'8px 0 8px 0',
122
- bodyBgColor: 'rgba(0,0,0,0)',
123
- borderColor: 'rgba(0,0,0,0)',
124
- lineColor: '#108ee9'
111
+ bodyBgColor: 'rgba(0,0,0,0)'
112
+ // lineColor: '#108ee9',
125
113
  }],
126
- tpl: "\n .am-tabs-default-bar-top .am-tabs-default-bar-tab{\nfont-weight: fontWeight;\nborder-top-left-radius: selectBorderRadius;\n border-top-right-radius: selectBorderRadius;\n color: textColor;\nfont-size: fontSize;\nborder: 1px solid borderColor;\nbackground-color: backgroundColor;\n }\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::before, .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::after{\n background: selectBgColor;\n }\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::before{\n left: 0;\n }\n .am-tabs-bottom, .am-tabs-top{\n border-radius: selectBorderRadius;\n }\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active {\n background-color: selectBgColor;\n color: selectTextColor;\nfont-weight: selectFontWeight;\n }\n .am-tabs-pane-wrap{\n background-color: bodyBgColor;\n }\n .am-tabs-default-bar-animated .am-tabs-default-bar-underline{\n border-color: lineColor;\n }",
114
+
115
+ tpl: ".use-app-statictabs {\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active{\n background: selectBgColor;\n color: selectTextColor;\n position: relative;\n border-top-left-radius: selectBorderRadius;\n border-top-right-radius: selectBorderRadius;\n transform: perspective(200px) rotateX(25deg);\n transform-origin: top center;\n font-weight: selectFontWeight;\n }\n .am-tabs-default-bar-bottom .am-tabs-default-bar-content, .am-tabs-default-bar-top .am-tabs-default-bar-content{\n background: backgroundColor;\n }\n .am-tabs-bottom, .am-tabs-top{\n border-radius: selectBorderRadius;\n }\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::before, .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::after{\n background: radial-gradient(0.24rem at 0.3rem 0, transparent 0.3rem, selectBgColor 0.23rem);\n }\n .am-tabs-default-bar-tab{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n }\n .am-tabs-pane-wrap {\n background-color: bodyBgColor;\n }\n }\n",
127
116
  components: [{
128
117
  id: 'StaticTabs_828878',
129
118
  label: '静态标签页',
@@ -1,5 +1,6 @@
1
- export declare const DynamicTable: {
1
+ export declare const Table: {
2
2
  type: string;
3
+ hasPrefixClass: boolean;
3
4
  variable: {
4
5
  textColor: {
5
6
  type: string;
@@ -1,5 +1,6 @@
1
- export var DynamicTable = {
2
- type: 'DynamicTable',
1
+ export var Table = {
2
+ type: 'Table',
3
+ hasPrefixClass: true,
3
4
  variable: {
4
5
  textColor: {
5
6
  type: 'color',
@@ -117,7 +118,7 @@ export var DynamicTable = {
117
118
  // fHeadBgColor: '#FAFAFA',
118
119
  }],
119
120
 
120
- tpl: "\n .appDynamicTable {\n .table-header{\n font-weight: fontWeight;\n font-size: fontSize;\n color: textColor;\n }\n .ag-header-row{\n font-size: headFontSize;\n }\n .table-body{\n --dynamic-table-header-bg-color: headBgColor;\n --ag-odd-row-background-color: bodyBgColor;\n --dynamic-table-header-color: headTextColor;\n }\n .ag-root-wrapper{\n border-radius: borderRadius;\n }\n .ag-theme-segmentation {\n --ag-background-color: bodyBgColor;\n --ag-borders-critical: borderColor;\n --ag-row-border-color: borderColor;\n --ag-header-border-color: borderColor;\n }\n .ag-theme-zebra {\n --ag-background-color: bodyBgColor;\n --ag-odd-row-background-color: zebraBgColor;\n --ag-borders: none;\n --ag-row-border-color: none;\n}\n .ag-theme-border {\n --ag-background-color: bodyBgColor;\n --ag-border-color: borderColor;\n --ag-cell-horizontal-border: solid borderColor;\n}\n }\n",
121
+ tpl: ".appDynamicTable {\n .table-header{\n font-weight: fontWeight;\n font-size: fontSize;\n color: textColor;\n }\n .ag-header-row{\n font-size: headFontSize;\n }\n .table-body{\n --dynamic-table-header-bg-color: headBgColor;\n --ag-odd-row-background-color: bodyBgColor;\n --dynamic-table-header-color: headTextColor;\n }\n .ag-root-wrapper{\n border-radius: borderRadius;\n }\n .ag-theme-segmentation {\n --ag-background-color: bodyBgColor;\n --ag-borders-critical: borderColor;\n --ag-row-border-color: borderColor;\n --ag-header-border-color: borderColor;\n }\n .ag-theme-zebra {\n --ag-background-color: bodyBgColor;\n --ag-odd-row-background-color: zebraBgColor;\n --ag-borders: none;\n --ag-row-border-color: none;\n}\n .ag-theme-border {\n --ag-background-color: bodyBgColor;\n --ag-border-color: borderColor;\n --ag-cell-horizontal-border: solid borderColor;\n}\n }\n",
121
122
  // tpl: `
122
123
  // .appDynamicTable {
123
124
  // .table-body{
@@ -1,4 +1,5 @@
1
1
  export declare const MOBILE_ASSETS_CSS_TPL: any;
2
+ export declare const mobileExtend: any;
2
3
  export declare const MOBILE_ASSETS_COMPONENT_LIST: unknown[];
3
4
  export declare function getMobileItemByType(type: string): any;
4
5
  export declare function px2rem(obj: any): any;
@@ -7,3 +8,4 @@ export declare function parseValueRem(values: any): any;
7
8
  export declare function stringifyMobileCssByTypePreview(type: string, values: any): string;
8
9
  export declare function stringifyMobileCssByType(type: string, values: any): string;
9
10
  export declare function parseMobileCssByType(type: string, css: string): any;
11
+ export declare function prefixMobileCSS(type: string, values: any, prefix: string): string;
package/dist/lx-mobile.js CHANGED
@@ -4,10 +4,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
6
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- import { stringifyCss, parseCss } from "./css";
7
+ import { stringifyCss, parseCss, prefixAnyCSS } from "./css";
8
8
  import { objToListByGroupsName } from "./utils";
9
9
  import { Button } from "./h5config/Button";
10
- import { DynamicTable } from "./h5config/Table";
10
+ import { Table } from "./h5config/Table";
11
11
  import { FilterItems } from "./h5config/FilterItems";
12
12
  import { NoticeBarPlus } from "./h5config/NoticeBarPlus";
13
13
  import { StaticTabs } from "./h5config/StaticTabs";
@@ -39,7 +39,7 @@ export var MOBILE_ASSETS_CSS_TPL = {
39
39
  // TODO: 分割线 style 写死,最后修改方案
40
40
  // Divider,
41
41
  Card: Card,
42
- DynamicTable: DynamicTable,
42
+ Table: Table,
43
43
  FilterItems: FilterItems,
44
44
  NoticeBarPlus: NoticeBarPlus,
45
45
  StaticTabs: StaticTabs,
@@ -64,7 +64,7 @@ export var MOBILE_ASSETS_CSS_TPL = {
64
64
  DformFile: DformFile,
65
65
  Accordion: Accordion
66
66
  };
67
- var extend = {
67
+ export var mobileExtend = {
68
68
  DformInput: 'DForm',
69
69
  DformTextArea: 'DForm',
70
70
  DformInputNumber: 'DForm',
@@ -131,8 +131,8 @@ export function parseValueRem(values) {
131
131
 
132
132
  // 临时解决方案,将只对它有影响的值,生成继承的样式
133
133
  export function stringifyMobileCssByTypePreview(type, values) {
134
- if (extend[type]) {
135
- var cfg = getMobileItemByType(extend[type]);
134
+ if (mobileExtend[type]) {
135
+ var cfg = getMobileItemByType(mobileExtend[type]);
136
136
  var _item = getMobileItemByType(type);
137
137
  return stringifyCss(cfg.tpl, px2rem(_objectSpread(_objectSpread({}, cfg.defaultValue[0]), values))) + stringifyCss(_item.tpl, px2rem(values));
138
138
  }
@@ -146,4 +146,14 @@ export function stringifyMobileCssByType(type, values) {
146
146
  export function parseMobileCssByType(type, css) {
147
147
  var item = getMobileItemByType(type);
148
148
  return parseValueRem(parseCss(item.tpl, css));
149
+ }
150
+ export function prefixMobileCSS(type, values, prefix) {
151
+ if (mobileExtend[type]) {
152
+ var _cfg$itemCustomTpl;
153
+ var cfg = getMobileItemByType(mobileExtend[type]);
154
+ var _item2 = getMobileItemByType(type);
155
+ return prefixAnyCSS(stringifyCss((_cfg$itemCustomTpl = cfg === null || cfg === void 0 ? void 0 : cfg.itemCustomTpl) !== null && _cfg$itemCustomTpl !== void 0 ? _cfg$itemCustomTpl : cfg === null || cfg === void 0 ? void 0 : cfg.tpl, px2rem(_objectSpread(_objectSpread({}, cfg.defaultValue[0]), values))), prefix, cfg === null || cfg === void 0 ? void 0 : cfg.hasPrefixClass) + prefixAnyCSS(stringifyCss(_item2.tpl, px2rem(values)), prefix, _item2 === null || _item2 === void 0 ? void 0 : _item2.hasPrefixClass);
156
+ }
157
+ var item = getMobileItemByType(type);
158
+ return prefixAnyCSS(stringifyCss(item.tpl, px2rem(values)), prefix, item === null || item === void 0 ? void 0 : item.hasPrefixClass);
149
159
  }
package/dist/lx.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export declare const ASSETS_CSS_TPL: any;
2
+ export declare const pcExtend: any;
2
3
  export declare const ASSETS_COMPONENT_LIST: unknown[];
3
4
  export declare function getItemByType(type: string): any;
4
5
  export declare function stringifyCssByType(type: string, values: any): string;
5
6
  export declare function stringifyCssByTypePreview(type: string, values: any): string;
6
7
  export declare function parseCssByType(type: string, css: string): any;
8
+ export declare function prefixCSS(type: string, values: any, prefix: string): string;
package/dist/lx.js CHANGED
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
6
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- import { stringifyCss, parseCss } from "./css";
7
+ import { stringifyCss, parseCss, prefixAnyCSS } from "./css";
8
8
  import { objToListByGroupsName } from "./utils";
9
9
  import { Button } from "./config/Button";
10
10
  // 文本放在不同的组件下,会有不同的效果,暂不支持配置
@@ -64,7 +64,7 @@ export var ASSETS_CSS_TPL = {
64
64
  Tree: Tree,
65
65
  Description: Description
66
66
  };
67
- var extend = {
67
+ export var pcExtend = {
68
68
  Input: 'Form',
69
69
  TextArea: 'Form',
70
70
  InputNumber: 'Form',
@@ -97,8 +97,8 @@ export function stringifyCssByType(type, values) {
97
97
 
98
98
  // 临时解决方案,将只对它有影响的值,生成继承的样式
99
99
  export function stringifyCssByTypePreview(type, values) {
100
- if (extend[type]) {
101
- var cfg = getItemByType(extend[type]);
100
+ if (pcExtend[type]) {
101
+ var cfg = getItemByType(pcExtend[type]);
102
102
  var _item = getItemByType(type);
103
103
  return stringifyCss(cfg.tpl, _objectSpread(_objectSpread({}, cfg.defaultValue[0]), values)) + stringifyCss(_item.tpl, values);
104
104
  }
@@ -108,4 +108,14 @@ export function stringifyCssByTypePreview(type, values) {
108
108
  export function parseCssByType(type, css) {
109
109
  var item = getItemByType(type);
110
110
  return parseCss(item.tpl, css);
111
+ }
112
+ export function prefixCSS(type, values, prefix) {
113
+ if (pcExtend[type]) {
114
+ var _cfg$itemCustomTpl;
115
+ var cfg = getItemByType(pcExtend[type]);
116
+ var _item2 = getItemByType(type);
117
+ return prefixAnyCSS(stringifyCss((_cfg$itemCustomTpl = cfg === null || cfg === void 0 ? void 0 : cfg.itemCustomTpl) !== null && _cfg$itemCustomTpl !== void 0 ? _cfg$itemCustomTpl : cfg === null || cfg === void 0 ? void 0 : cfg.tpl, _objectSpread(_objectSpread({}, cfg.defaultValue[0]), values)), prefix, cfg === null || cfg === void 0 ? void 0 : cfg.hasPrefixClass) + prefixAnyCSS(stringifyCss(_item2.tpl, values), prefix, _item2 === null || _item2 === void 0 ? void 0 : _item2.hasPrefixClass);
118
+ }
119
+ var item = getItemByType(type);
120
+ return prefixAnyCSS(stringifyCss(item.tpl, values), prefix, item === null || item === void 0 ? void 0 : item.hasPrefixClass);
111
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/theme-utils",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",