@dckj-npm/dc-material 0.1.32 → 0.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 (43) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/meta.design.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +1 -1
  10. package/dist/BizComps.css +1 -1
  11. package/dist/BizComps.js +1 -1
  12. package/dist/BizComps.js.map +1 -1
  13. package/es/components/bottom-navigation/index.scss +1 -0
  14. package/es/components/message-list/message-list.js +10 -1
  15. package/es/components/notice-bar/index.scss +3 -0
  16. package/es/components/notice-bar/notice-bar-item.d.ts +0 -13
  17. package/es/components/notice-bar/notice-bar-item.js +3 -7
  18. package/es/components/notice-bar/notice-bar-item.scss +6 -6
  19. package/es/components/notice-bar/notice-bar.d.ts +0 -13
  20. package/es/components/notice-bar/notice-bar.js +4 -4
  21. package/es/components/radio-group/index.scss +1 -1
  22. package/es/components/radio-group/radio-group.js +6 -4
  23. package/es/components/tab/index.scss +6 -5
  24. package/lib/components/bottom-navigation/index.scss +1 -0
  25. package/lib/components/message-list/message-list.js +12 -1
  26. package/lib/components/notice-bar/index.scss +3 -0
  27. package/lib/components/notice-bar/notice-bar-item.d.ts +0 -13
  28. package/lib/components/notice-bar/notice-bar-item.js +3 -7
  29. package/lib/components/notice-bar/notice-bar-item.scss +6 -6
  30. package/lib/components/notice-bar/notice-bar.d.ts +0 -13
  31. package/lib/components/notice-bar/notice-bar.js +4 -4
  32. package/lib/components/radio-group/index.scss +1 -1
  33. package/lib/components/radio-group/radio-group.js +6 -4
  34. package/lib/components/tab/index.scss +6 -5
  35. package/lowcode/message-list/meta.ts +0 -5
  36. package/lowcode/notice-bar/meta.ts +1 -69
  37. package/lowcode_es/message-list/meta.js +0 -7
  38. package/lowcode_es/meta.js +1 -1
  39. package/lowcode_es/notice-bar/meta.js +3 -68
  40. package/lowcode_lib/message-list/meta.js +0 -7
  41. package/lowcode_lib/meta.js +1 -1
  42. package/lowcode_lib/notice-bar/meta.js +3 -68
  43. package/package.json +3 -3
@@ -5,6 +5,7 @@
5
5
  padding: 9px 0px 6px 0px;
6
6
  width: 100%;
7
7
  position: fixed;
8
+ left: 0;
8
9
  bottom: 0;
9
10
  background-color: #fff;
10
11
  box-sizing: border-box;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["dataList", "readDataList", "unReadDataList", "onClick", "children", "images"];
4
- import React from 'react';
4
+ import React, { useEffect } from 'react';
5
5
  import "./index.scss";
6
6
  import { default as MessageListItem } from "./message-list-item";
7
7
  import { convertChildren } from "../../utils/children-node-handle";
@@ -18,17 +18,26 @@ var MessageList = function MessageList(_ref) {
18
18
  var _React$useState = React.useState(dataList),
19
19
  currentDataList = _React$useState[0],
20
20
  setCurrentDataList = _React$useState[1];
21
+ var _React$useState2 = React.useState('all'),
22
+ currentKey = _React$useState2[0],
23
+ setCurrentKey = _React$useState2[1];
21
24
  // 切换数据源
22
25
  var handleClick = function handleClick(key) {
23
26
  if (key === 'read') {
24
27
  setCurrentDataList(readDataList);
28
+ setCurrentKey('read');
25
29
  } else if (key === 'unRead') {
26
30
  setCurrentDataList(unReadDataList);
31
+ setCurrentKey('unRead');
27
32
  } else {
28
33
  setCurrentDataList(dataList);
34
+ setCurrentKey('all');
29
35
  }
30
36
  };
31
37
  images = images || [];
38
+ useEffect(function () {
39
+ handleClick(currentKey);
40
+ });
32
41
  return /*#__PURE__*/React.createElement("div", _extends({
33
42
  className: "message-list__panel"
34
43
  }, _otherProps), /*#__PURE__*/React.createElement("div", {
@@ -1,4 +1,5 @@
1
1
  .notice-bar__panel {
2
+ width: 100%;
2
3
  display: flex;
3
4
  align-items: center;
4
5
  height: 70px;
@@ -13,6 +14,7 @@
13
14
 
14
15
  }
15
16
  .notice-bar__panel__item-list {
17
+ width: calc(100% - 53px);
16
18
  display: flex;
17
19
  flex-direction: column;
18
20
  align-items: start;
@@ -20,6 +22,7 @@
20
22
  border-left: 1px solid #f1f1f1;
21
23
  padding-left: 10px;
22
24
  // .notice-bar__panel__item-loop {
25
+ // width: 100% !important;
23
26
  // padding-left: 10px;
24
27
  // }
25
28
  }
@@ -13,19 +13,6 @@ interface NoticeBarItemProps {
13
13
  * 是否置顶
14
14
  */
15
15
  isTop?: boolean;
16
- /**
17
- * 标签列表
18
- */
19
- tag: {
20
- /**
21
- * 标签名称
22
- */
23
- name: string;
24
- /**
25
- * 标签颜色
26
- */
27
- color: string;
28
- };
29
16
  }
30
17
  declare const NoticeBarItem: React.FC<NoticeBarItemProps>;
31
18
  export default NoticeBarItem;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["content", "releaseTime", "isTop", "tag", "onClick", "children"];
3
+ var _excluded = ["content", "releaseTime", "isTop", "children"];
4
4
  import React from 'react';
5
5
  import "./notice-bar-item.scss";
6
6
  import { convertChildren } from "../../utils/children-node-handle";
@@ -8,19 +8,15 @@ var NoticeBarItem = function NoticeBarItem(_ref) {
8
8
  var content = _ref.content,
9
9
  releaseTime = _ref.releaseTime,
10
10
  isTop = _ref.isTop,
11
- tag = _ref.tag,
12
- _ref$onClick = _ref.onClick,
13
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
14
11
  children = _ref.children,
15
12
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
16
13
  var _otherProps = otherProps || {};
17
14
  return /*#__PURE__*/React.createElement("div", _extends({
18
- className: "notice-bar__panel__item",
19
- onClick: onClick
15
+ className: "notice-bar__panel__item"
20
16
  }, _otherProps), /*#__PURE__*/React.createElement("div", {
21
17
  className: "notice-bar__panel__item-left"
22
18
  }, convertChildren(children, isTop ? 'teletext-tagc-1' : 'teletext-tagc-2', {
23
- name: tag.name
19
+ name: isTop ? '置顶' : '最新'
24
20
  }), /*#__PURE__*/React.createElement("div", {
25
21
  className: "notice-bar__panal__item__content"
26
22
  }, content)), /*#__PURE__*/React.createElement("div", {
@@ -1,5 +1,5 @@
1
1
  .notice-bar__panel__item {
2
- width: 260px;
2
+ width: calc(100vw - 90px);
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
@@ -10,11 +10,11 @@
10
10
  .notice-bar__panal__item__content{
11
11
  color: #676767;
12
12
  font-size: 12px;
13
- width: 140px;
14
- overflow: hidden;
15
- text-overflow: ellipsis;
16
- white-space: nowrap;
17
- margin-left: 4px;
13
+ width: 160px;
14
+ overflow: hidden;
15
+ text-overflow: ellipsis;
16
+ white-space: nowrap;
17
+ margin-left: 4px;
18
18
  }
19
19
  }
20
20
  .notice-bar__panel__item-releaseTime {
@@ -13,19 +13,6 @@ interface DataProps {
13
13
  * 是否置顶
14
14
  */
15
15
  isTop?: boolean;
16
- /**
17
- * 标签列表
18
- */
19
- tag?: {
20
- /**
21
- * 标签名称
22
- */
23
- name: string;
24
- /**
25
- * 标签颜色
26
- */
27
- color: string;
28
- };
29
16
  }
30
17
  export interface NoticeBarProps {
31
18
  /**
@@ -13,11 +13,11 @@ var NoticeBar = function NoticeBar(_ref) {
13
13
  children = _ref.children,
14
14
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
15
15
  var _otherProps = otherProps || {};
16
- var stickyItems = dataList.filter(function (item) {
17
- return item.isTop;
16
+ var stickyItems = (dataList || []).filter(function (item) {
17
+ return (item === null || item === void 0 ? void 0 : item.isTop) === true;
18
18
  });
19
- var loopItems = dataList.filter(function (item) {
20
- return !item.isTop;
19
+ var loopItems = (dataList || []).filter(function (item) {
20
+ return (item === null || item === void 0 ? void 0 : item.isTop) === false;
21
21
  });
22
22
  return /*#__PURE__*/React.createElement("div", _extends({
23
23
  className: "notice-bar__panel"
@@ -21,7 +21,7 @@
21
21
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
22
  transition-duration: 250ms;
23
23
  font-size: 12px;
24
- padding: 5px 11px;
24
+ padding: 5px 0;
25
25
 
26
26
  .radio-group-item__text__line {
27
27
  width: 100%;
@@ -8,6 +8,7 @@ function uuid() {
8
8
  return Math.random().toString(36).substring(2);
9
9
  }
10
10
  var RadioGroup = function RadioGroup(_ref) {
11
+ var _options$;
11
12
  var options = _ref.options,
12
13
  _ref$name = _ref.name,
13
14
  name = _ref$name === void 0 ? uuid() : _ref$name,
@@ -29,14 +30,15 @@ var RadioGroup = function RadioGroup(_ref) {
29
30
  children = _ref.children,
30
31
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
31
32
  var _otherProps = otherProps || {};
32
- var _useState = useState(defaultValue || ''),
33
+ var defaultV = (options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value) || defaultValue || '';
34
+ var _useState = useState(defaultV),
33
35
  selectedValue = _useState[0],
34
36
  setSelectedValue = _useState[1];
35
37
  useEffect(function () {
36
- if (defaultValue) {
37
- setSelectedValue(defaultValue);
38
+ if (defaultV) {
39
+ handleChange(defaultV);
38
40
  }
39
- }, [defaultValue]);
41
+ }, [defaultV]);
40
42
  var handleChange = function handleChange(value) {
41
43
  setSelectedValue(value);
42
44
  onChange(value);
@@ -1,19 +1,20 @@
1
1
  .tabs__container {
2
2
  display: inline-block;
3
- padding: 7px 15px;
4
- border-radius: 14px;
3
+ padding: 5px 17px;
4
+ border-radius: 19px;
5
5
  background-color: #FFFFFF;
6
6
  color: #666666;
7
7
  font-size: 15px;
8
8
  cursor: pointer;
9
- margin: 0;
9
+ margin-right: 6px;
10
+ letter-spacing: 2px;
10
11
  &--selected {
11
12
  background-color: #ED794A;
12
13
  color: #FFFFFF;
13
14
  }
14
15
  &--small {
15
- padding: 7px 15px;
16
- border-radius: 14px;
16
+ padding: 5px 16px;
17
+ border-radius: 19px;
17
18
  }
18
19
  &--large {
19
20
  padding: 14px 30px;
@@ -5,6 +5,7 @@
5
5
  padding: 9px 0px 6px 0px;
6
6
  width: 100%;
7
7
  position: fixed;
8
+ left: 0;
8
9
  bottom: 0;
9
10
  background-color: #fff;
10
11
  box-sizing: border-box;
@@ -5,11 +5,13 @@ exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
7
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
- var _react = _interopRequireDefault(require("react"));
8
+ var _react = _interopRequireWildcard(require("react"));
9
9
  require("./index.scss");
10
10
  var _messageListItem = _interopRequireDefault(require("./message-list-item"));
11
11
  var _childrenNodeHandle = require("../../utils/children-node-handle");
12
12
  var _excluded = ["dataList", "readDataList", "unReadDataList", "onClick", "children", "images"];
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
15
  var MessageList = function MessageList(_ref) {
14
16
  var dataList = _ref.dataList,
15
17
  readDataList = _ref.readDataList,
@@ -23,17 +25,26 @@ var MessageList = function MessageList(_ref) {
23
25
  var _React$useState = _react["default"].useState(dataList),
24
26
  currentDataList = _React$useState[0],
25
27
  setCurrentDataList = _React$useState[1];
28
+ var _React$useState2 = _react["default"].useState('all'),
29
+ currentKey = _React$useState2[0],
30
+ setCurrentKey = _React$useState2[1];
26
31
  // 切换数据源
27
32
  var handleClick = function handleClick(key) {
28
33
  if (key === 'read') {
29
34
  setCurrentDataList(readDataList);
35
+ setCurrentKey('read');
30
36
  } else if (key === 'unRead') {
31
37
  setCurrentDataList(unReadDataList);
38
+ setCurrentKey('unRead');
32
39
  } else {
33
40
  setCurrentDataList(dataList);
41
+ setCurrentKey('all');
34
42
  }
35
43
  };
36
44
  images = images || [];
45
+ (0, _react.useEffect)(function () {
46
+ handleClick(currentKey);
47
+ });
37
48
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
38
49
  className: "message-list__panel"
39
50
  }, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
@@ -1,4 +1,5 @@
1
1
  .notice-bar__panel {
2
+ width: 100%;
2
3
  display: flex;
3
4
  align-items: center;
4
5
  height: 70px;
@@ -13,6 +14,7 @@
13
14
 
14
15
  }
15
16
  .notice-bar__panel__item-list {
17
+ width: calc(100% - 53px);
16
18
  display: flex;
17
19
  flex-direction: column;
18
20
  align-items: start;
@@ -20,6 +22,7 @@
20
22
  border-left: 1px solid #f1f1f1;
21
23
  padding-left: 10px;
22
24
  // .notice-bar__panel__item-loop {
25
+ // width: 100% !important;
23
26
  // padding-left: 10px;
24
27
  // }
25
28
  }
@@ -13,19 +13,6 @@ interface NoticeBarItemProps {
13
13
  * 是否置顶
14
14
  */
15
15
  isTop?: boolean;
16
- /**
17
- * 标签列表
18
- */
19
- tag: {
20
- /**
21
- * 标签名称
22
- */
23
- name: string;
24
- /**
25
- * 标签颜色
26
- */
27
- color: string;
28
- };
29
16
  }
30
17
  declare const NoticeBarItem: React.FC<NoticeBarItemProps>;
31
18
  export default NoticeBarItem;
@@ -8,24 +8,20 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./notice-bar-item.scss");
10
10
  var _childrenNodeHandle = require("../../utils/children-node-handle");
11
- var _excluded = ["content", "releaseTime", "isTop", "tag", "onClick", "children"];
11
+ var _excluded = ["content", "releaseTime", "isTop", "children"];
12
12
  var NoticeBarItem = function NoticeBarItem(_ref) {
13
13
  var content = _ref.content,
14
14
  releaseTime = _ref.releaseTime,
15
15
  isTop = _ref.isTop,
16
- tag = _ref.tag,
17
- _ref$onClick = _ref.onClick,
18
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
19
16
  children = _ref.children,
20
17
  otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
21
18
  var _otherProps = otherProps || {};
22
19
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
23
- className: "notice-bar__panel__item",
24
- onClick: onClick
20
+ className: "notice-bar__panel__item"
25
21
  }, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
26
22
  className: "notice-bar__panel__item-left"
27
23
  }, (0, _childrenNodeHandle.convertChildren)(children, isTop ? 'teletext-tagc-1' : 'teletext-tagc-2', {
28
- name: tag.name
24
+ name: isTop ? '置顶' : '最新'
29
25
  }), /*#__PURE__*/_react["default"].createElement("div", {
30
26
  className: "notice-bar__panal__item__content"
31
27
  }, content)), /*#__PURE__*/_react["default"].createElement("div", {
@@ -1,5 +1,5 @@
1
1
  .notice-bar__panel__item {
2
- width: 260px;
2
+ width: calc(100vw - 90px);
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
@@ -10,11 +10,11 @@
10
10
  .notice-bar__panal__item__content{
11
11
  color: #676767;
12
12
  font-size: 12px;
13
- width: 140px;
14
- overflow: hidden;
15
- text-overflow: ellipsis;
16
- white-space: nowrap;
17
- margin-left: 4px;
13
+ width: 160px;
14
+ overflow: hidden;
15
+ text-overflow: ellipsis;
16
+ white-space: nowrap;
17
+ margin-left: 4px;
18
18
  }
19
19
  }
20
20
  .notice-bar__panel__item-releaseTime {
@@ -13,19 +13,6 @@ interface DataProps {
13
13
  * 是否置顶
14
14
  */
15
15
  isTop?: boolean;
16
- /**
17
- * 标签列表
18
- */
19
- tag?: {
20
- /**
21
- * 标签名称
22
- */
23
- name: string;
24
- /**
25
- * 标签颜色
26
- */
27
- color: string;
28
- };
29
16
  }
30
17
  export interface NoticeBarProps {
31
18
  /**
@@ -18,11 +18,11 @@ var NoticeBar = function NoticeBar(_ref) {
18
18
  children = _ref.children,
19
19
  otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
20
20
  var _otherProps = otherProps || {};
21
- var stickyItems = dataList.filter(function (item) {
22
- return item.isTop;
21
+ var stickyItems = (dataList || []).filter(function (item) {
22
+ return (item === null || item === void 0 ? void 0 : item.isTop) === true;
23
23
  });
24
- var loopItems = dataList.filter(function (item) {
25
- return !item.isTop;
24
+ var loopItems = (dataList || []).filter(function (item) {
25
+ return (item === null || item === void 0 ? void 0 : item.isTop) === false;
26
26
  });
27
27
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
28
28
  className: "notice-bar__panel"
@@ -21,7 +21,7 @@
21
21
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
22
  transition-duration: 250ms;
23
23
  font-size: 12px;
24
- padding: 5px 11px;
24
+ padding: 5px 0;
25
25
 
26
26
  .radio-group-item__text__line {
27
27
  width: 100%;
@@ -15,6 +15,7 @@ function uuid() {
15
15
  return Math.random().toString(36).substring(2);
16
16
  }
17
17
  var RadioGroup = function RadioGroup(_ref) {
18
+ var _options$;
18
19
  var options = _ref.options,
19
20
  _ref$name = _ref.name,
20
21
  name = _ref$name === void 0 ? uuid() : _ref$name,
@@ -36,14 +37,15 @@ var RadioGroup = function RadioGroup(_ref) {
36
37
  children = _ref.children,
37
38
  otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
38
39
  var _otherProps = otherProps || {};
39
- var _useState = (0, _react.useState)(defaultValue || ''),
40
+ var defaultV = (options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value) || defaultValue || '';
41
+ var _useState = (0, _react.useState)(defaultV),
40
42
  selectedValue = _useState[0],
41
43
  setSelectedValue = _useState[1];
42
44
  (0, _react.useEffect)(function () {
43
- if (defaultValue) {
44
- setSelectedValue(defaultValue);
45
+ if (defaultV) {
46
+ handleChange(defaultV);
45
47
  }
46
- }, [defaultValue]);
48
+ }, [defaultV]);
47
49
  var handleChange = function handleChange(value) {
48
50
  setSelectedValue(value);
49
51
  onChange(value);
@@ -1,19 +1,20 @@
1
1
  .tabs__container {
2
2
  display: inline-block;
3
- padding: 7px 15px;
4
- border-radius: 14px;
3
+ padding: 5px 17px;
4
+ border-radius: 19px;
5
5
  background-color: #FFFFFF;
6
6
  color: #666666;
7
7
  font-size: 15px;
8
8
  cursor: pointer;
9
- margin: 0;
9
+ margin-right: 6px;
10
+ letter-spacing: 2px;
10
11
  &--selected {
11
12
  background-color: #ED794A;
12
13
  color: #FFFFFF;
13
14
  }
14
15
  &--small {
15
- padding: 7px 15px;
16
- border-radius: 14px;
16
+ padding: 5px 16px;
17
+ border-radius: 19px;
17
18
  }
18
19
  &--large {
19
20
  padding: 14px 30px;
@@ -38,7 +38,6 @@ const MessageListMeta: IPublicTypeComponentMetadata = {
38
38
  label: '消息数据',
39
39
  value: 'dataList',
40
40
  children: [
41
- { label: '图片链接', value: 'image' },
42
41
  { label: '标题', value: 'title' },
43
42
  { label: '说明', value: 'description' },
44
43
  { label: '发布时间', value: 'gmtCreate' }
@@ -115,13 +114,11 @@ const snippets: IPublicTypeSnippet[] = [
115
114
  ],
116
115
  readDataList: [
117
116
  {
118
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
119
117
  "title": "已读标题名称",
120
118
  "description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
121
119
  "gmtCreate": "2024-05-24 09:24"
122
120
  },
123
121
  {
124
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
125
122
  "title": "已读标题名称",
126
123
  "description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
127
124
  "gmtCreate": "2024-05-24 09:24"
@@ -129,13 +126,11 @@ const snippets: IPublicTypeSnippet[] = [
129
126
  ],
130
127
  unReadDataList: [
131
128
  {
132
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
133
129
  "title": "未读标题名称",
134
130
  "description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
135
131
  "gmtCreate": "2024-05-24 09:24"
136
132
  },
137
133
  {
138
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
139
134
  "title": "未读标题名称",
140
135
  "description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
141
136
  "gmtCreate": "2024-05-24 09:24"
@@ -1,4 +1,3 @@
1
- import noticeIcon from '../../src/assets/icon/notice-bar/notice.png'
2
1
  import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
2
 
4
3
  const NoticeBarMeta: IPublicTypeComponentMetadata = {
@@ -40,8 +39,7 @@ const NoticeBarMeta: IPublicTypeComponentMetadata = {
40
39
  children: [
41
40
  { label: '公告内容', value: 'content' },
42
41
  { label: '是否置顶', value: 'isTop' },
43
- { label: '发布时间', value: 'releaseTime' },
44
- { label: '标签', value: 'tag' }
42
+ { label: '发布时间', value: 'releaseTime' }
45
43
  ]
46
44
  }
47
45
  ]
@@ -111,60 +109,6 @@ const NoticeBarMeta: IPublicTypeComponentMetadata = {
111
109
  "isRequired": false,
112
110
  "initialValue": false
113
111
  }
114
- },
115
- {
116
- "title": {
117
- "label": {
118
- "type": "i18n",
119
- "en-US": "tag",
120
- "zh-CN": "标签"
121
- }
122
- },
123
- "name": "tag",
124
- "setter": {
125
- "componentName": "ObjectSetter",
126
- "props": {
127
- "config": {
128
- "items": [
129
- {
130
- "title": {
131
- "label": {
132
- "type": "i18n",
133
- "en-US": "name",
134
- "zh-CN": "name"
135
- }
136
- },
137
- "name": "name",
138
- "setter": {
139
- "componentName": "StringSetter",
140
- "isRequired": true,
141
- "initialValue": ""
142
- }
143
- },
144
- {
145
- "title": {
146
- "label": {
147
- "type": "i18n",
148
- "en-US": "color",
149
- "zh-CN": "color"
150
- }
151
- },
152
- "name": "color",
153
- "setter": {
154
- "componentName": "StringSetter",
155
- "isRequired": true,
156
- "initialValue": ""
157
- }
158
- }
159
- ],
160
- "extraSetter": {
161
- "componentName": "MixedSetter",
162
- "isRequired": false,
163
- "props": {}
164
- }
165
- }
166
- }
167
- }
168
112
  }
169
113
  ],
170
114
  "extraSetter": {
@@ -181,28 +125,16 @@ const NoticeBarMeta: IPublicTypeComponentMetadata = {
181
125
  "content" : "按需招聘,智能推荐附件测试测试测试测试测试测试测试",
182
126
  "isTop" : true,
183
127
  "releaseTime" : "1小时前",
184
- "tag" : {
185
- "name": "置顶",
186
- "color": "orange"
187
- },
188
128
  },
189
129
  {
190
130
  "content" : "近期,有关部门相继部署有关部门相继部署有关部门相继部署",
191
131
  "isTop" : false,
192
132
  "releaseTime" : "2024-03-26",
193
- "tag" : {
194
- "name": "最新",
195
- "color": "green"
196
- },
197
133
  },
198
134
  {
199
135
  "content" : "测试测试测试测试测试测测试测试测试测试测试测测试测试测试测试测试测",
200
136
  "isTop" : false,
201
137
  "releaseTime" : "2023-10-15",
202
- "tag" : {
203
- "name": "最新",
204
- "color": "red"
205
- },
206
138
  },
207
139
  ]
208
140
  }