| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style/index.less'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| import Card from './Card'; | ||
| export default Card; |
| import './index.less'; |
| import React from 'react'; | ||
| import './style/index.less'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| import Descriptions from './Descriptions'; | ||
| export default Descriptions; |
| import './index.less'; |
| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style/index.css'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| "use strict"; | ||
| function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| import React from "react"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); // import classNames from 'classnames'; | ||
| var card_1 = __importDefault(require("antd/lib/card")); | ||
| var typography_1 = __importDefault(require("antd/lib/typography")); | ||
| require("antd/lib/card/style"); | ||
| require("antd/lib/typography/style"); | ||
| require("./style/index.css"); | ||
| var Paragraph = typography_1.default.Paragraph; | ||
| var DCard = function DCard(_a) { | ||
| var antdProps = _a.antdProps, | ||
| copyText = _a.copyText, | ||
| children = _a.children; | ||
| function renderRightExtra() { | ||
| if (copyText) { | ||
| return React.createElement(Paragraph, { | ||
| style: { | ||
| marginBottom: 0 | ||
| }, | ||
| copyable: true | ||
| }, copyText); | ||
| } | ||
| return false; | ||
| } | ||
| return React.createElement("div", { | ||
| className: "d-card" | ||
| }, React.createElement(card_1.default, _extends({ | ||
| extra: renderRightExtra() | ||
| }, antdProps), children)); | ||
| }; | ||
| exports.default = DCard; |
| import Card from './Card'; | ||
| export default Card; |
| "use strict"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var Card_1 = __importDefault(require("./Card")); | ||
| exports.default = Card_1.default; |
| .d-card { | ||
| position: relative; | ||
| } |
| import './index.css'; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| require("./index.css"); |
| import React from 'react'; | ||
| import './style/index.css'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| "use strict"; | ||
| import React from "react"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); | ||
| require("./style/index.css"); | ||
| var Descriptions = function Descriptions(props) { | ||
| function renderEmpty(content) { | ||
| if (!content || Array.isArray(content) && content.length === 0) { | ||
| return '暂无数据'; | ||
| } | ||
| return null; | ||
| } | ||
| return React.createElement("div", { | ||
| className: "d-desc" | ||
| }, props.title && React.createElement("div", { | ||
| className: "title" | ||
| }, props.title), props.dataSource.map(function (dataItem) { | ||
| return React.createElement("div", { | ||
| key: "desc-" + dataItem.title, | ||
| className: "item" | ||
| }, React.createElement("div", { | ||
| className: "item-title" | ||
| }, dataItem.title), React.createElement("div", { | ||
| className: "item-content" | ||
| }, renderEmpty(dataItem.content), typeof dataItem.content === 'string' ? dataItem.content : dataItem.content.join(','))); | ||
| })); | ||
| }; | ||
| exports.default = Descriptions; |
| import Descriptions from './Descriptions'; | ||
| export default Descriptions; |
| "use strict"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var Descriptions_1 = __importDefault(require("./Descriptions")); | ||
| exports.default = Descriptions_1.default; |
| .d-desc { | ||
| position: relative; | ||
| display: flex; | ||
| flex-direction: column; | ||
| overflow: hidden; | ||
| } | ||
| .d-desc .title { | ||
| margin-bottom: 15px; | ||
| width: 200px; | ||
| text-align: right; | ||
| word-break: break-word; | ||
| font-weight: bold; | ||
| } | ||
| .d-desc .item { | ||
| display: flex; | ||
| margin-bottom: 10px; | ||
| font-size: 12px; | ||
| } | ||
| .d-desc .item .item-title { | ||
| position: relative; | ||
| flex: 0 1 auto; | ||
| width: 200px; | ||
| word-break: break-word; | ||
| text-align: right; | ||
| line-height: 1.8; | ||
| } | ||
| .d-desc .item .item-title:after { | ||
| content: ':'; | ||
| position: absolute; | ||
| top: -0.5px; | ||
| margin: 0 8px 0 4px; | ||
| } | ||
| .d-desc .item .item-content { | ||
| flex: 1; | ||
| width: auto; | ||
| margin-left: 16px; | ||
| word-break: break-word; | ||
| line-height: 1.8; | ||
| } |
| import './index.css'; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| require("./index.css"); |
| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style/index.css'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| "use strict"; | ||
| var _react = _interopRequireDefault(require("react")); | ||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
| function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); // import classNames from 'classnames'; | ||
| var card_1 = __importDefault(require("antd/lib/card")); | ||
| var typography_1 = __importDefault(require("antd/lib/typography")); | ||
| require("antd/lib/card/style"); | ||
| require("antd/lib/typography/style"); | ||
| require("./style/index.css"); | ||
| var Paragraph = typography_1.default.Paragraph; | ||
| var DCard = function DCard(_a) { | ||
| var antdProps = _a.antdProps, | ||
| copyText = _a.copyText, | ||
| children = _a.children; | ||
| function renderRightExtra() { | ||
| if (copyText) { | ||
| return _react.default.createElement(Paragraph, { | ||
| style: { | ||
| marginBottom: 0 | ||
| }, | ||
| copyable: true | ||
| }, copyText); | ||
| } | ||
| return false; | ||
| } | ||
| return _react.default.createElement("div", { | ||
| className: "d-card" | ||
| }, _react.default.createElement(card_1.default, _extends({ | ||
| extra: renderRightExtra() | ||
| }, antdProps), children)); | ||
| }; | ||
| exports.default = DCard; |
| import Card from './Card'; | ||
| export default Card; |
| "use strict"; | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var Card_1 = __importDefault(require("./Card")); | ||
| exports.default = Card_1.default; |
| .d-card { | ||
| position: relative; | ||
| } |
| import './index.css'; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| require("./index.css"); |
| import React from 'react'; | ||
| import './style/index.css'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| "use strict"; | ||
| var _react = _interopRequireDefault(require("react")); | ||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); | ||
| require("./style/index.css"); | ||
| var Descriptions = function Descriptions(props) { | ||
| function renderEmpty(content) { | ||
| if (!content || Array.isArray(content) && content.length === 0) { | ||
| return '暂无数据'; | ||
| } | ||
| return null; | ||
| } | ||
| return _react.default.createElement("div", { | ||
| className: "d-desc" | ||
| }, props.title && _react.default.createElement("div", { | ||
| className: "title" | ||
| }, props.title), props.dataSource.map(function (dataItem) { | ||
| return _react.default.createElement("div", { | ||
| key: "desc-" + dataItem.title, | ||
| className: "item" | ||
| }, _react.default.createElement("div", { | ||
| className: "item-title" | ||
| }, dataItem.title), _react.default.createElement("div", { | ||
| className: "item-content" | ||
| }, renderEmpty(dataItem.content), typeof dataItem.content === 'string' ? dataItem.content : dataItem.content.join(','))); | ||
| })); | ||
| }; | ||
| exports.default = Descriptions; |
| import Descriptions from './Descriptions'; | ||
| export default Descriptions; |
| "use strict"; | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var Descriptions_1 = __importDefault(require("./Descriptions")); | ||
| exports.default = Descriptions_1.default; |
| .d-desc { | ||
| position: relative; | ||
| display: flex; | ||
| flex-direction: column; | ||
| overflow: hidden; | ||
| } | ||
| .d-desc .title { | ||
| margin-bottom: 15px; | ||
| width: 200px; | ||
| text-align: right; | ||
| word-break: break-word; | ||
| font-weight: bold; | ||
| } | ||
| .d-desc .item { | ||
| display: flex; | ||
| margin-bottom: 10px; | ||
| font-size: 12px; | ||
| } | ||
| .d-desc .item .item-title { | ||
| position: relative; | ||
| flex: 0 1 auto; | ||
| width: 200px; | ||
| word-break: break-word; | ||
| text-align: right; | ||
| line-height: 1.8; | ||
| } | ||
| .d-desc .item .item-title:after { | ||
| content: ':'; | ||
| position: absolute; | ||
| top: -0.5px; | ||
| margin: 0 8px 0 4px; | ||
| } | ||
| .d-desc .item .item-content { | ||
| flex: 1; | ||
| width: auto; | ||
| margin-left: 16px; | ||
| word-break: break-word; | ||
| line-height: 1.8; | ||
| } |
| import './index.css'; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| require("./index.css"); |
@@ -47,1 +47,4 @@ .d-desc { | ||
| .d-card { | ||
| position: relative; | ||
| } |
@@ -1,1 +0,1 @@ | ||
| .d-desc{position:relative;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;overflow:hidden}.d-desc .title{margin-bottom:15px;width:200px;text-align:right;word-break:break-word;font-weight:700}.d-desc .item{display:-webkit-box;display:flex;margin-bottom:10px;font-size:12px}.d-desc .item .item-title{position:relative;-webkit-box-flex:0;flex:0 1 auto;width:200px;word-break:break-word;text-align:right;line-height:1.8}.d-desc .item .item-title:after{content:":";position:absolute;top:-.5px;margin:0 8px 0 4px}.d-desc .item .item-content{-webkit-box-flex:1;flex:1;width:auto;margin-left:16px;word-break:break-word;line-height:1.8} | ||
| .d-desc{position:relative;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;overflow:hidden}.d-desc .title{margin-bottom:15px;width:200px;text-align:right;word-break:break-word;font-weight:700}.d-desc .item{display:-webkit-box;display:flex;margin-bottom:10px;font-size:12px}.d-desc .item .item-title{position:relative;-webkit-box-flex:0;flex:0 1 auto;width:200px;word-break:break-word;text-align:right;line-height:1.8}.d-desc .item .item-title:after{content:":";position:absolute;top:-.5px;margin:0 8px 0 4px}.d-desc .item .item-content{-webkit-box-flex:1;flex:1;width:auto;margin-left:16px;word-break:break-word;line-height:1.8}.d-card{position:relative} |
@@ -1,2 +0,2 @@ | ||
| export { default as Descriptions } from './Descriptions'; | ||
| export { default as Card } from './Card'; | ||
| export { default as Descriptions } from './descriptions'; | ||
| export { default as Card } from './card'; |
+2
-2
@@ -1,2 +0,2 @@ | ||
| export { default as Descriptions } from './Descriptions'; | ||
| export { default as Card } from './Card'; | ||
| export { default as Descriptions } from './descriptions'; | ||
| export { default as Card } from './card'; |
+4
-4
@@ -7,8 +7,8 @@ "use strict"; | ||
| var Descriptions_1 = require("./Descriptions"); | ||
| var descriptions_1 = require("./descriptions"); | ||
| exports.Descriptions = Descriptions_1.default; | ||
| exports.Descriptions = descriptions_1.default; | ||
| var Card_1 = require("./Card"); | ||
| var card_1 = require("./card"); | ||
| exports.Card = Card_1.default; | ||
| exports.Card = card_1.default; |
+2
-2
@@ -1,2 +0,2 @@ | ||
| export { default as Descriptions } from './Descriptions'; | ||
| export { default as Card } from './Card'; | ||
| export { default as Descriptions } from './descriptions'; | ||
| export { default as Card } from './card'; |
+4
-4
@@ -7,8 +7,8 @@ "use strict"; | ||
| var Descriptions_1 = require("./Descriptions"); | ||
| var descriptions_1 = require("./descriptions"); | ||
| exports.Descriptions = Descriptions_1.default; | ||
| exports.Descriptions = descriptions_1.default; | ||
| var Card_1 = require("./Card"); | ||
| var card_1 = require("./card"); | ||
| exports.Card = Card_1.default; | ||
| exports.Card = card_1.default; |
+11
-4
| { | ||
| "name": "dantd", | ||
| "version": "1.0.7", | ||
| "version": "1.0.8", | ||
| "description": "react components by antdv3", | ||
@@ -37,3 +37,3 @@ "author": "joking_zhang <496691544@qq.com> (jokingzhang.com)", | ||
| "doc:deploy": "father doc deploy", | ||
| "build": "father build" | ||
| "build": "father build && node ./scripts/moveDeclare.js && node ./scripts/changeLess2Css.js" | ||
| }, | ||
@@ -46,4 +46,6 @@ "peerDependencies": { | ||
| "devDependencies": { | ||
| "babel-plugin-import": "^1.13.0", | ||
| "father": "^2.29.2", | ||
| "babel-plugin-import": "^1.13.0" | ||
| "fs-extra": "^8.1.0", | ||
| "klaw-sync": "^6.0.0" | ||
| }, | ||
@@ -55,3 +57,8 @@ "dependencies": { | ||
| }, | ||
| "sideEffects": false | ||
| "sideEffects": [ | ||
| "dist/*", | ||
| "es/**/style/*", | ||
| "lib/**/style/*", | ||
| "*.less" | ||
| ] | ||
| } |
+42
-1
@@ -1,1 +0,42 @@ | ||
| dantd 一个基于 antd 封装的组件库 (扩展包) | ||
| # dantd | ||
| > dantd 一个基于 antd 封装的组件库 (扩展包) | ||
| ### 安装依赖 | ||
| ``` | ||
| npm install | ||
| ``` | ||
| ### 开发 | ||
| ``` | ||
| npm start | ||
| ``` | ||
| ### 文档构建 | ||
| ``` | ||
| npm run doc:build | ||
| ``` | ||
| ### 文档发布 | ||
| ``` | ||
| npm run doc:deploy | ||
| ``` | ||
| ### npm 构建 | ||
| ``` | ||
| npm run build | ||
| ``` | ||
| ### npm 发布 | ||
| 登录 `npm` 账号 | ||
| 提交所有代码 | ||
| ``` | ||
| npm version patch | ||
| git push | ||
| npm publish | ||
| ``` |
Sorry, the diff of this file is not supported yet
| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style.less'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| import React from 'react'; | ||
| import './style.less'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| export declare const data1: { | ||
| title: string; | ||
| content: string; | ||
| }[]; | ||
| export declare const data2: { | ||
| title: string; | ||
| content: string[]; | ||
| }[]; |
| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style.less'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| "use strict"; | ||
| function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| import React from "react"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); // import classNames from 'classnames'; | ||
| var card_1 = __importDefault(require("antd/lib/card")); | ||
| var typography_1 = __importDefault(require("antd/lib/typography")); | ||
| require("antd/lib/card/style"); | ||
| require("antd/lib/typography/style"); | ||
| require("./style.less"); | ||
| var Paragraph = typography_1.default.Paragraph; | ||
| var DCard = function DCard(_a) { | ||
| var antdProps = _a.antdProps, | ||
| copyText = _a.copyText, | ||
| children = _a.children; | ||
| function renderRightExtra() { | ||
| if (copyText) { | ||
| return React.createElement(Paragraph, { | ||
| style: { | ||
| marginBottom: 0 | ||
| }, | ||
| copyable: true | ||
| }, copyText); | ||
| } | ||
| return false; | ||
| } | ||
| return React.createElement("div", { | ||
| className: "d-card" | ||
| }, React.createElement(card_1.default, _extends({ | ||
| extra: renderRightExtra() | ||
| }, antdProps), children)); | ||
| }; | ||
| exports.default = DCard; |
| .d-card { | ||
| } |
| import React from 'react'; | ||
| import './style.less'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| "use strict"; | ||
| import React from "react"; | ||
| var __importDefault = this && this.__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); | ||
| require("./style.less"); | ||
| var Descriptions = function Descriptions(props) { | ||
| function renderEmpty(content) { | ||
| if (!content || Array.isArray(content) && content.length === 0) { | ||
| return '暂无数据'; | ||
| } | ||
| return null; | ||
| } | ||
| return React.createElement("div", { | ||
| className: "d-desc" | ||
| }, props.title && React.createElement("div", { | ||
| className: "title" | ||
| }, props.title), props.dataSource.map(function (dataItem) { | ||
| return React.createElement("div", { | ||
| key: "desc-" + dataItem.title, | ||
| className: "item" | ||
| }, React.createElement("div", { | ||
| className: "item-title" | ||
| }, dataItem.title), React.createElement("div", { | ||
| className: "item-content" | ||
| }, renderEmpty(dataItem.content), typeof dataItem.content === 'string' ? dataItem.content : dataItem.content.join(','))); | ||
| })); | ||
| }; | ||
| exports.default = Descriptions; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| exports.data1 = [{ | ||
| title: '【番剧推荐】为寻你,吾宁赴深渊——《龙的牙医》', | ||
| content: '呐,龙是用牙齿哭泣的啊——《龙的牙医》' | ||
| }, { | ||
| title: '《紫罗兰永恒花园外传:永远与自动手记人偶》值得看吗?', | ||
| content: '《紫罗兰永恒花园外传:永远与自动手记人偶》已于1月10日登录国内影院。考虑到影片国内刚刚上映没几天,本篇推荐并不会涉及太多剧情上的...' | ||
| }, { | ||
| title: '2020年1月番剧毒奶(个人向)', | ||
| content: '时间已经来到12月末期,一些9月番已经开始步入尾声甚至有的已经完结,而新一个季度的番剧预告已经出炉了。但是这众多的番剧之中应该选择...' | ||
| }, { | ||
| title: '《天气之子》真的有那么糟糕吗?让我们细细品尝。(严重剧透警告)', | ||
| content: '天气之子已经在2019年11月1日星期五上映,本部电影为新海诚引入国内的第二部电影。总体的故事结构和上一部《你的名字》差不多,都是因为...' | ||
| }]; | ||
| exports.data2 = [{ | ||
| title: '82年生的金智英 / 82年生金智英 / Kim Ji-young,Born 1982', | ||
| content: ['2019-10-23(韩国)', '2019-11-07(中国香港)', '郑有美', '孔侑', '金美京', '孔敏晶', '朴成妍', '李凤莲', '金圣喆', '李乌', '李海云', '孙成灿', '金正英', '李娜云', '禹志贤', '廉惠兰', '韩国', '金度英', '118分钟', '82年生的金智英', '剧情', '刘英雅 Yeong-ah Yoo'] | ||
| }, { | ||
| title: ' 小丑 / 小丑起源电影:罗密欧 / Romeo', | ||
| content: ['2019-08-31(威尼斯电影节)', '2019-10-04(美国)', '华金·菲尼克斯', '罗伯特·德尼罗', '马克·马龙', '莎姬·贝兹', '谢伊·惠格姆', '弗兰西丝·康罗伊', '布莱恩·考伦', '布莱恩·泰里·亨利', '布莱特·卡伦', '道格拉斯·霍奇斯', '格伦·弗莱施勒'] | ||
| }]; |
| .d-desc { | ||
| position: relative; | ||
| display: flex; | ||
| flex-direction: column; | ||
| overflow: hidden; | ||
| .title { | ||
| margin-bottom: 15px; | ||
| width: 200px; | ||
| text-align: right; | ||
| word-break: break-word; | ||
| font-weight: bold; | ||
| } | ||
| .item { | ||
| display: flex; | ||
| margin-bottom: 10px; | ||
| font-size: 12px; | ||
| .item-title { | ||
| position: relative; | ||
| flex: 0 1 auto; | ||
| width: 200px; | ||
| word-break: break-word; | ||
| text-align: right; | ||
| line-height: 1.8; | ||
| &:after { | ||
| content: ':'; | ||
| position: absolute; | ||
| top: -0.5px; | ||
| margin: 0 8px 0 4px; | ||
| } | ||
| } | ||
| .item-content { | ||
| flex: 1; | ||
| width: auto; | ||
| margin-left: 16px; | ||
| word-break: break-word; | ||
| line-height: 1.8; | ||
| } | ||
| } | ||
| } | ||
| import React from 'react'; | ||
| import { CardProps } from 'antd/lib/card'; | ||
| import 'antd/lib/card/style'; | ||
| import 'antd/lib/typography/style'; | ||
| import './style.less'; | ||
| export interface IDCardProps { | ||
| antdProps?: CardProps; | ||
| copyText?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
| declare const DCard: React.FC<IDCardProps>; | ||
| export default DCard; |
| "use strict"; | ||
| var _react = _interopRequireDefault(require("react")); | ||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
| function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); // import classNames from 'classnames'; | ||
| var card_1 = __importDefault(require("antd/lib/card")); | ||
| var typography_1 = __importDefault(require("antd/lib/typography")); | ||
| require("antd/lib/card/style"); | ||
| require("antd/lib/typography/style"); | ||
| require("./style.less"); | ||
| var Paragraph = typography_1.default.Paragraph; | ||
| var DCard = function DCard(_a) { | ||
| var antdProps = _a.antdProps, | ||
| copyText = _a.copyText, | ||
| children = _a.children; | ||
| function renderRightExtra() { | ||
| if (copyText) { | ||
| return _react.default.createElement(Paragraph, { | ||
| style: { | ||
| marginBottom: 0 | ||
| }, | ||
| copyable: true | ||
| }, copyText); | ||
| } | ||
| return false; | ||
| } | ||
| return _react.default.createElement("div", { | ||
| className: "d-card" | ||
| }, _react.default.createElement(card_1.default, _extends({ | ||
| extra: renderRightExtra() | ||
| }, antdProps), children)); | ||
| }; | ||
| exports.default = DCard; |
| .d-card { | ||
| } |
| import React from 'react'; | ||
| import './style.less'; | ||
| export interface IDescriptionItem { | ||
| title: string; | ||
| content: string | string[]; | ||
| } | ||
| export interface IDescriptionsProps { | ||
| title?: string; | ||
| dataSource: IDescriptionItem[]; | ||
| } | ||
| declare const Descriptions: React.FC<IDescriptionsProps>; | ||
| export default Descriptions; |
| "use strict"; | ||
| var _react = _interopRequireDefault(require("react")); | ||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
| var __importDefault = void 0 && (void 0).__importDefault || function (mod) { | ||
| return mod && mod.__esModule ? mod : { | ||
| "default": mod | ||
| }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| var react_1 = __importDefault(require("react")); | ||
| require("./style.less"); | ||
| var Descriptions = function Descriptions(props) { | ||
| function renderEmpty(content) { | ||
| if (!content || Array.isArray(content) && content.length === 0) { | ||
| return '暂无数据'; | ||
| } | ||
| return null; | ||
| } | ||
| return _react.default.createElement("div", { | ||
| className: "d-desc" | ||
| }, props.title && _react.default.createElement("div", { | ||
| className: "title" | ||
| }, props.title), props.dataSource.map(function (dataItem) { | ||
| return _react.default.createElement("div", { | ||
| key: "desc-" + dataItem.title, | ||
| className: "item" | ||
| }, _react.default.createElement("div", { | ||
| className: "item-title" | ||
| }, dataItem.title), _react.default.createElement("div", { | ||
| className: "item-content" | ||
| }, renderEmpty(dataItem.content), typeof dataItem.content === 'string' ? dataItem.content : dataItem.content.join(','))); | ||
| })); | ||
| }; | ||
| exports.default = Descriptions; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| exports.data1 = [{ | ||
| title: '【番剧推荐】为寻你,吾宁赴深渊——《龙的牙医》', | ||
| content: '呐,龙是用牙齿哭泣的啊——《龙的牙医》' | ||
| }, { | ||
| title: '《紫罗兰永恒花园外传:永远与自动手记人偶》值得看吗?', | ||
| content: '《紫罗兰永恒花园外传:永远与自动手记人偶》已于1月10日登录国内影院。考虑到影片国内刚刚上映没几天,本篇推荐并不会涉及太多剧情上的...' | ||
| }, { | ||
| title: '2020年1月番剧毒奶(个人向)', | ||
| content: '时间已经来到12月末期,一些9月番已经开始步入尾声甚至有的已经完结,而新一个季度的番剧预告已经出炉了。但是这众多的番剧之中应该选择...' | ||
| }, { | ||
| title: '《天气之子》真的有那么糟糕吗?让我们细细品尝。(严重剧透警告)', | ||
| content: '天气之子已经在2019年11月1日星期五上映,本部电影为新海诚引入国内的第二部电影。总体的故事结构和上一部《你的名字》差不多,都是因为...' | ||
| }]; | ||
| exports.data2 = [{ | ||
| title: '82年生的金智英 / 82年生金智英 / Kim Ji-young,Born 1982', | ||
| content: ['2019-10-23(韩国)', '2019-11-07(中国香港)', '郑有美', '孔侑', '金美京', '孔敏晶', '朴成妍', '李凤莲', '金圣喆', '李乌', '李海云', '孙成灿', '金正英', '李娜云', '禹志贤', '廉惠兰', '韩国', '金度英', '118分钟', '82年生的金智英', '剧情', '刘英雅 Yeong-ah Yoo'] | ||
| }, { | ||
| title: ' 小丑 / 小丑起源电影:罗密欧 / Romeo', | ||
| content: ['2019-08-31(威尼斯电影节)', '2019-10-04(美国)', '华金·菲尼克斯', '罗伯特·德尼罗', '马克·马龙', '莎姬·贝兹', '谢伊·惠格姆', '弗兰西丝·康罗伊', '布莱恩·考伦', '布莱恩·泰里·亨利', '布莱特·卡伦', '道格拉斯·霍奇斯', '格伦·弗莱施勒'] | ||
| }]; |
| .d-desc { | ||
| position: relative; | ||
| display: flex; | ||
| flex-direction: column; | ||
| overflow: hidden; | ||
| .title { | ||
| margin-bottom: 15px; | ||
| width: 200px; | ||
| text-align: right; | ||
| word-break: break-word; | ||
| font-weight: bold; | ||
| } | ||
| .item { | ||
| display: flex; | ||
| margin-bottom: 10px; | ||
| font-size: 12px; | ||
| .item-title { | ||
| position: relative; | ||
| flex: 0 1 auto; | ||
| width: 200px; | ||
| word-break: break-word; | ||
| text-align: right; | ||
| line-height: 1.8; | ||
| &:after { | ||
| content: ':'; | ||
| position: absolute; | ||
| top: -0.5px; | ||
| margin: 0 8px 0 4px; | ||
| } | ||
| } | ||
| .item-content { | ||
| flex: 1; | ||
| width: auto; | ||
| margin-left: 16px; | ||
| word-break: break-word; | ||
| line-height: 1.8; | ||
| } | ||
| } | ||
| } | ||
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
48
50%531
24.07%42
2000%20555
-27.04%4
100%1
Infinity%