@dckj-npm/dc-material 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/goods-card-list/goods-card-list-common.js +9 -1
- package/es/components/goods-card-list/goods-card-list-common.scss +1 -2
- package/lib/components/goods-card-list/goods-card-list-common.js +9 -1
- package/lib/components/goods-card-list/goods-card-list-common.scss +1 -2
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -13,6 +13,14 @@ var GoodsCardListCommon = function GoodsCardListCommon(_ref) {
|
|
|
13
13
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
14
14
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
15
|
var _otherProps = otherProps || {};
|
|
16
|
+
var resolveResultDesc = function resolveResultDesc(desc) {
|
|
17
|
+
var htmlString = "<div>" + desc + "</div>";
|
|
18
|
+
// 创建一个虚拟的 DOM 容器
|
|
19
|
+
var tempDiv = document.createElement('div');
|
|
20
|
+
tempDiv.innerHTML = htmlString;
|
|
21
|
+
// 提取文本
|
|
22
|
+
return tempDiv.textContent || tempDiv.innerText;
|
|
23
|
+
};
|
|
16
24
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
17
25
|
className: "card-list-goods-common__container"
|
|
18
26
|
}, _otherProps), dataList.map(function (item) {
|
|
@@ -33,7 +41,7 @@ var GoodsCardListCommon = function GoodsCardListCommon(_ref) {
|
|
|
33
41
|
className: "card-list-goods__title"
|
|
34
42
|
}, item.title), /*#__PURE__*/React.createElement("div", {
|
|
35
43
|
className: "card-list-goods__desc"
|
|
36
|
-
}, item.desc), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
}, resolveResultDesc(item.desc)), /*#__PURE__*/React.createElement("div", {
|
|
37
45
|
className: "card-list-goods__bottom"
|
|
38
46
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39
47
|
className: "card-list-goods__unit"
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
transition: top 0.35s ease, left 0.35s ease, width 0.35s ease;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
border-radius: 8px;
|
|
13
|
-
|
|
14
|
-
box-shadow: var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);
|
|
13
|
+
box-shadow: 0 3px 9px 1px rgba(204, 204, 204, 0.35);
|
|
15
14
|
|
|
16
15
|
& > .card-list-goods__image {
|
|
17
16
|
height: 200px;
|
|
@@ -18,6 +18,14 @@ var GoodsCardListCommon = function GoodsCardListCommon(_ref) {
|
|
|
18
18
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
19
19
|
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
20
20
|
var _otherProps = otherProps || {};
|
|
21
|
+
var resolveResultDesc = function resolveResultDesc(desc) {
|
|
22
|
+
var htmlString = "<div>" + desc + "</div>";
|
|
23
|
+
// 创建一个虚拟的 DOM 容器
|
|
24
|
+
var tempDiv = document.createElement('div');
|
|
25
|
+
tempDiv.innerHTML = htmlString;
|
|
26
|
+
// 提取文本
|
|
27
|
+
return tempDiv.textContent || tempDiv.innerText;
|
|
28
|
+
};
|
|
21
29
|
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
22
30
|
className: "card-list-goods-common__container"
|
|
23
31
|
}, _otherProps), dataList.map(function (item) {
|
|
@@ -38,7 +46,7 @@ var GoodsCardListCommon = function GoodsCardListCommon(_ref) {
|
|
|
38
46
|
className: "card-list-goods__title"
|
|
39
47
|
}, item.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
48
|
className: "card-list-goods__desc"
|
|
41
|
-
}, item.desc), /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
+
}, resolveResultDesc(item.desc)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
50
|
className: "card-list-goods__bottom"
|
|
43
51
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
52
|
className: "card-list-goods__unit"
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
transition: top 0.35s ease, left 0.35s ease, width 0.35s ease;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
border-radius: 8px;
|
|
13
|
-
|
|
14
|
-
box-shadow: var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);
|
|
13
|
+
box-shadow: 0 3px 9px 1px rgba(204, 204, 204, 0.35);
|
|
15
14
|
|
|
16
15
|
& > .card-list-goods__image {
|
|
17
16
|
height: 200px;
|
package/lowcode_es/meta.js
CHANGED
|
@@ -93,7 +93,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
93
93
|
packageName = '@dckj-npm/dc-material';
|
|
94
94
|
}
|
|
95
95
|
if (version === void 0) {
|
|
96
|
-
version = '0.1.
|
|
96
|
+
version = '0.1.43';
|
|
97
97
|
}
|
|
98
98
|
if (basicLibraryVersion === void 0) {
|
|
99
99
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
98
98
|
packageName = '@dckj-npm/dc-material';
|
|
99
99
|
}
|
|
100
100
|
if (version === void 0) {
|
|
101
|
-
version = '0.1.
|
|
101
|
+
version = '0.1.43';
|
|
102
102
|
}
|
|
103
103
|
if (basicLibraryVersion === void 0) {
|
|
104
104
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dckj-npm/dc-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "dc低代码物料",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
},
|
|
104
104
|
"componentConfig": {
|
|
105
105
|
"isComponentLibrary": true,
|
|
106
|
-
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.
|
|
106
|
+
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.43/build/lowcode/assets-prod.json"
|
|
107
107
|
},
|
|
108
108
|
"lcMeta": {
|
|
109
109
|
"type": "component"
|
|
110
110
|
},
|
|
111
|
-
"homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.
|
|
111
|
+
"homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.43/build/index.html"
|
|
112
112
|
}
|