tntd 3.0.0-beta.9 → 3.0.2
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/es/array-input/index.js +57 -42
- package/es/array-input/index.js.map +1 -1
- package/es/array-input/index.less +4 -1
- package/es/button/button.js +3 -7
- package/es/button/button.js.map +1 -1
- package/es/button/button.less +17 -12
- package/es/collapse/collapse.less +3 -3
- package/es/date-picker/index.less +6 -6
- package/es/date-picker/style/Calendar.less +1 -1
- package/es/date-picker/style/RangePicker.less +3 -3
- package/es/descriptions/descriptions.js +36 -18
- package/es/descriptions/descriptions.js.map +1 -1
- package/es/descriptions/descriptions.less +6 -2
- package/es/descriptions/style/index.less +1 -0
- package/es/drawer/drawer.js +32 -22
- package/es/drawer/drawer.js.map +1 -1
- package/es/drawer/index.less +13 -14
- package/es/drawer/style/drawer.less +2 -4
- package/es/form/form.less +12 -6
- package/es/form/style/index.less +6 -6
- package/es/handle-icon/index.js +201 -0
- package/es/handle-icon/index.js.map +1 -0
- package/es/handle-icon/index.less +53 -0
- package/es/icon/style/style.less +1 -1
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/input/input.js +10 -6
- package/es/input/input.js.map +1 -1
- package/es/input/style/mixin.less +1 -2
- package/es/locale/en_US.js +3 -0
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +3 -0
- package/es/locale/zh_CN.js.map +1 -1
- package/es/mentions/style/index.less +1 -0
- package/es/modal/style/confirm.less +6 -10
- package/es/modal/style/modal.less +1 -1
- package/es/page-container/index.js +1 -1
- package/es/page-container/index.js.map +1 -1
- package/es/page-container/index.less +1 -0
- package/es/page-loading/index.js +1 -1
- package/es/page-loading/index.js.map +1 -1
- package/es/query-form/Field/SelectInput.js +4 -22
- package/es/query-form/Field/SelectInput.js.map +1 -1
- package/es/query-form/Field/fieldsMap.js +2 -2
- package/es/query-form/Field/fieldsMap.js.map +1 -1
- package/es/query-form/Field/index.js +0 -1
- package/es/query-form/Field/index.js.map +1 -1
- package/es/query-form/index.js +127 -117
- package/es/query-form/index.js.map +1 -1
- package/es/query-form/index.less +9 -12
- package/es/{query-form → query-form-backup}/Field/Composition/index.less +1 -1
- package/es/query-form-backup/index.less +90 -0
- package/es/query-list-scene/QueryForm.js +1 -3
- package/es/query-list-scene/QueryForm.js.map +1 -1
- package/es/select/select.js +5 -3
- package/es/select/select.js.map +1 -1
- package/es/select/select.less +1 -3
- package/es/select/style/index.less +7 -6
- package/es/spin/index.js +3 -2
- package/es/spin/index.js.map +1 -1
- package/es/spin/spin.js +36 -0
- package/es/spin/spin.js.map +1 -0
- package/es/spin/spin.less +9 -0
- package/es/style/themes/default.less +1 -1
- package/es/table/expand.less +49 -0
- package/es/table/hooks/index.js +2 -1
- package/es/table/hooks/index.js.map +1 -1
- package/es/table/hooks/use-expand-fixed.js +80 -0
- package/es/table/hooks/use-expand-fixed.js.map +1 -0
- package/es/table/index.js +1 -0
- package/es/table/index.js.map +1 -1
- package/es/table/style/index.less +58 -88
- package/es/table/table.js +48 -14
- package/es/table/table.js.map +1 -1
- package/es/table/table.less +13 -22
- package/es/table/table.stories.js +413 -2
- package/es/table/table.stories.js.map +1 -1
- package/es/table/utils.js +11 -0
- package/es/table/utils.js.map +1 -1
- package/es/table-container/index.js +1 -1
- package/es/table-container/index.js.map +1 -1
- package/es/table-container/index.less +14 -14
- package/es/tabs/tabs.js +9 -1
- package/es/tabs/tabs.js.map +1 -1
- package/es/tabs/tabs.less +52 -62
- package/es/tabs-container/index.js +1 -1
- package/es/tabs-container/index.js.map +1 -1
- package/es/tag/color.less +28 -18
- package/es/tag/index.js +1 -1
- package/es/tag/index.js.map +1 -1
- package/es/tag/tag.less +41 -5
- package/es/title/index.js +4 -3
- package/es/title/index.js.map +1 -1
- package/es/tntd-action/Action.js +58 -12
- package/es/tntd-action/Action.js.map +1 -1
- package/es/tntd-action/index.less +5 -3
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +5 -11
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/index.less +14 -2
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +3 -2
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/index.js.map +1 -1
- package/es/tntd-form/FormItem/ItemHolder.js +1 -6
- package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
- package/es/tntd-form/FormItemLabel.js +2 -0
- package/es/tntd-form/FormItemLabel.js.map +1 -1
- package/es/tntd-select/index.js +13 -9
- package/es/tntd-select/index.js.map +1 -1
- package/es/tntd-select/index.less +7 -0
- package/es/tooltip/index.js +1 -0
- package/es/tooltip/index.js.map +1 -1
- package/es/tooltip/index.less +1 -2
- package/lib/array-input/index.d.ts +1 -12
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +62 -55
- package/lib/array-input/index.js.map +1 -1
- package/lib/array-input/index.less +4 -1
- package/lib/button/button.d.ts.map +1 -1
- package/lib/button/button.js +3 -15
- package/lib/button/button.js.map +1 -1
- package/lib/button/button.less +17 -12
- package/lib/collapse/collapse.less +3 -3
- package/lib/date-picker/index.less +6 -6
- package/lib/date-picker/style/Calendar.less +1 -1
- package/lib/date-picker/style/RangePicker.less +3 -3
- package/lib/descriptions/descriptions.d.ts.map +1 -1
- package/lib/descriptions/descriptions.js +40 -20
- package/lib/descriptions/descriptions.js.map +1 -1
- package/lib/descriptions/descriptions.less +6 -2
- package/lib/descriptions/style/index.less +1 -0
- package/lib/drawer/drawer.d.ts +3 -0
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +30 -20
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/drawer/index.less +13 -14
- package/lib/drawer/style/drawer.less +2 -4
- package/lib/form/form.less +12 -6
- package/lib/form/style/index.less +6 -6
- package/lib/handle-icon/index.d.ts +7 -0
- package/lib/handle-icon/index.d.ts.map +1 -0
- package/lib/handle-icon/index.js +221 -0
- package/lib/handle-icon/index.js.map +1 -0
- package/lib/handle-icon/index.less +53 -0
- package/lib/icon/style/style.less +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/input/input.js +8 -4
- package/lib/input/input.js.map +1 -1
- package/lib/input/style/mixin.less +1 -2
- package/lib/locale/default.d.ts +3 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +3 -0
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/mentions/style/index.less +1 -0
- package/lib/modal/style/confirm.less +6 -10
- package/lib/modal/style/modal.less +1 -1
- package/lib/page-container/index.js +1 -1
- package/lib/page-container/index.js.map +1 -1
- package/lib/page-container/index.less +1 -0
- package/lib/page-loading/index.js +1 -1
- package/lib/page-loading/index.js.map +1 -1
- package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
- package/lib/query-form/Field/SelectInput.js +3 -15
- package/lib/query-form/Field/SelectInput.js.map +1 -1
- package/lib/query-form/Field/fieldsMap.d.ts +3 -6
- package/lib/query-form/Field/fieldsMap.js +2 -2
- package/lib/query-form/Field/fieldsMap.js.map +1 -1
- package/lib/query-form/Field/index.d.ts.map +1 -1
- package/lib/query-form/Field/index.js +0 -1
- package/lib/query-form/Field/index.js.map +1 -1
- package/lib/query-form/index.d.ts +7 -4
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-form/index.js +149 -143
- package/lib/query-form/index.js.map +1 -1
- package/lib/query-form/index.less +9 -12
- package/lib/{query-form → query-form-backup}/Field/Composition/index.less +1 -1
- package/lib/query-form-backup/index.less +90 -0
- package/lib/query-list-scene/QueryForm.js +2 -3
- package/lib/query-list-scene/QueryForm.js.map +1 -1
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js +4 -2
- package/lib/select/select.js.map +1 -1
- package/lib/select/select.less +1 -3
- package/lib/select/style/index.less +7 -6
- package/lib/spin/index.d.ts +3 -2
- package/lib/spin/index.d.ts.map +1 -1
- package/lib/spin/index.js +4 -6
- package/lib/spin/index.js.map +1 -1
- package/lib/spin/spin.d.ts +9 -0
- package/lib/spin/spin.d.ts.map +1 -0
- package/lib/spin/spin.js +44 -0
- package/lib/spin/spin.js.map +1 -0
- package/lib/spin/spin.less +9 -0
- package/lib/style/themes/default.less +1 -1
- package/lib/table/expand.less +49 -0
- package/lib/table/hooks/index.d.ts +1 -0
- package/lib/table/hooks/index.d.ts.map +1 -1
- package/lib/table/hooks/index.js +11 -0
- package/lib/table/hooks/index.js.map +1 -1
- package/lib/table/hooks/use-expand-fixed.d.ts +4 -0
- package/lib/table/hooks/use-expand-fixed.d.ts.map +1 -0
- package/lib/table/hooks/use-expand-fixed.js +110 -0
- package/lib/table/hooks/use-expand-fixed.js.map +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.d.ts.map +1 -1
- package/lib/table/index.js +1 -0
- package/lib/table/index.js.map +1 -1
- package/lib/table/style/index.less +58 -88
- package/lib/table/table.d.ts +3 -1
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +49 -11
- package/lib/table/table.js.map +1 -1
- package/lib/table/table.less +13 -22
- package/lib/table/table.stories.d.ts +106 -29
- package/lib/table/table.stories.d.ts.map +1 -1
- package/lib/table/table.stories.js +426 -3
- package/lib/table/table.stories.js.map +1 -1
- package/lib/table/utils.d.ts +1 -0
- package/lib/table/utils.d.ts.map +1 -1
- package/lib/table/utils.js +13 -0
- package/lib/table/utils.js.map +1 -1
- package/lib/table-container/index.d.ts.map +1 -1
- package/lib/table-container/index.js +1 -1
- package/lib/table-container/index.js.map +1 -1
- package/lib/table-container/index.less +14 -14
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +8 -0
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tabs/tabs.less +52 -62
- package/lib/tabs-container/index.js +1 -1
- package/lib/tabs-container/index.js.map +1 -1
- package/lib/tag/color.less +28 -18
- package/lib/tag/index.js +1 -1
- package/lib/tag/index.js.map +1 -1
- package/lib/tag/tag.less +41 -5
- package/lib/title/index.d.ts +1 -0
- package/lib/title/index.d.ts.map +1 -1
- package/lib/title/index.js +3 -2
- package/lib/title/index.js.map +1 -1
- package/lib/tntd-action/Action.d.ts +1 -1
- package/lib/tntd-action/Action.js +63 -13
- package/lib/tntd-action/Action.js.map +1 -1
- package/lib/tntd-action/index.less +5 -3
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +5 -11
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/index.less +14 -2
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +3 -2
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/index.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js.map +1 -1
- package/lib/tntd-form/FormItem/ItemHolder.js +1 -6
- package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
- package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
- package/lib/tntd-form/FormItemLabel.js +2 -0
- package/lib/tntd-form/FormItemLabel.js.map +1 -1
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +12 -8
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tntd-select/index.less +7 -0
- package/lib/tooltip/index.d.ts +1 -0
- package/lib/tooltip/index.d.ts.map +1 -1
- package/lib/tooltip/index.js +1 -0
- package/lib/tooltip/index.js.map +1 -1
- package/lib/tooltip/index.less +1 -2
- package/package.json +4 -3
- package/themes/default/variables.less +2 -2
- package/themes/default/variablesVar.less +2 -2
- package/es/array-input/1.png +0 -1
- package/es/array-input/111.gif +0 -0
- package/es/array-input/icon.js +0 -25
- package/es/array-input/icon.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.js +0 -308
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/Select.js +0 -104
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -299
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/utils.js +0 -19
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/array-input/1.png +0 -1
- package/lib/array-input/111.gif +0 -0
- package/lib/array-input/icon.d.ts +0 -4
- package/lib/array-input/icon.d.ts.map +0 -1
- package/lib/array-input/icon.js +0 -32
- package/lib/array-input/icon.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -347
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -128
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -14
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -349
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/utils.d.ts +0 -6
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -27
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- /package/es/{query-form → query-form-backup}/Field/Composition/FieldPopover.less +0 -0
- /package/lib/{query-form → query-form-backup}/Field/Composition/FieldPopover.less +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryForm.js","sourceRoot":"","sources":["../../src/query-list-scene/QueryForm.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,IAAI,MAAM,eAAe,CAAA;AAEhC,MAAM,SAAS,GAAG,8BAA8B,CAAA;AAEhD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK,CAAC,aAAa;IACxD,YAAY,KAAK;QACf,KAAK,CAAC,KAAK,CAAC,CAAA;QA0Cd;;;;mBAAW,CAAC,SAAS,EAAE,EAAE;gBACvB,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;gBACxC,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAA;gBACpC,MAAM,MAAM,iDAAQ,MAAM,GAAK,CAAC,SAAS,IAAI,EAAE,CAAC,KAAE,OAAO,EAAE,CAAC,GAAE,CAAA;gBAE9D,gCAAgC;gBAChC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;gBACnC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;oBAC1B,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAA;oBAC5B,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;gBAChC,CAAC,CAAC,CAAA;YACJ,CAAC;WAAA;QAED;;;;mBAAU,GAAG,EAAE;g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CAAC,CAAA;SAC3C;IACH,CAAC;IA6CD,oBAAoB;QAClB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE9B,OAAO,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;QACvD,OAAO,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,CAAA;IAC7D,CAAC;CACF;AAED,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA","sourcesContent":["import React from 'react'\nimport classnames from 'classnames'\nimport Form from '../query-form'\n\nconst clsPrefix = 'tnt-querylistscene-queryform'\n\nexport default class QueryForm extends React.PureComponent {\n constructor(props) {\n super(props)\n const { actions, form } = props\n\n this.form = form || Form.createForm()\n\n actions.on('setFormData', this.setFormData)\n actions.on('resetFormData', this.resetFormData)\n }\n\n render() {\n const { className, actions, extraActions, extralActions, qlsProps, ...props } = this.props\n\n return (\n <Form\n {...props}\n form={this.form}\n className={classnames(clsPrefix, className)}\n // 前期拼写错误,导致需要兼容错误的api\n extraActions={extraActions || extralActions}\n onChange={this.onChange}\n onSearch={this.onSearch}\n onReset={this.onReset}\n />\n )\n }\n\n componentDidMount() {\n const { initialValues = {}, actions, qlsProps, memory } = this.props\n\n if (qlsProps.memory || memory) {\n actions.setFormData(\n {\n ...initialValues,\n ...actions.getFormData(),\n },\n false\n )\n } else {\n actions.setData('formData', initialValues)\n }\n }\n\n onSearch = (searchObj) => {\n const { onSearch, actions } = this.props\n const values = actions.getFormData()\n const params = { ...values, ...(searchObj || {}), current: 1 }\n\n // memory 与 url解析setForm时 监听事件异步\n actions.setData('formData', values)\n Promise.resolve().then(() => {\n onSearch && onSearch(params)\n actions.emit('search', params)\n })\n }\n\n onReset = () => {\n const { initialValues, onReset, actions } = this.props\n\n actions.setFormData(initialValues, false)\n\n onReset?.(initialValues)\n this.onSearch()\n }\n\n onChange = (newValues, changedInfo, ...rest) => {\n const { onChange, actions } = this.props\n\n actions.setFormData(newValues, false)\n onChange?.(newValues, changedInfo, ...rest)\n }\n\n setFormData = (data, needSearch) => {\n const { actions } = this.props\n actions.setData('formData', data)\n this.form.setValues(data)\n needSearch && this.onSearch()\n }\n\n resetFormData = (needSearch) => {\n const { initialValues, actions } = this.props\n\n actions.setFormData(initialValues, needSearch)\n this.form.resetValues()\n }\n\n componentWillUnmount() {\n const { actions } = this.props\n\n actions.removeListener('setFormData', this.setFormData)\n actions.removeListener('resetFormData', this.resetFormData)\n }\n}\n\nQueryForm.Field = Form.Field\n"]}
|
package/es/select/select.js
CHANGED
|
@@ -24,12 +24,14 @@ export const InternalSelect = forwardRef((_a, ref) => {
|
|
|
24
24
|
borderStyle,
|
|
25
25
|
options,
|
|
26
26
|
fieldNames,
|
|
27
|
-
children
|
|
27
|
+
children,
|
|
28
|
+
placeholder,
|
|
29
|
+
capitalize
|
|
28
30
|
} = _a,
|
|
29
|
-
props = __rest(_a, ["className", "borderStyle", "options", "fieldNames", "children"]);
|
|
31
|
+
props = __rest(_a, ["className", "borderStyle", "options", "fieldNames", "children", "placeholder", "capitalize"]);
|
|
30
32
|
return React.createElement(ConfigConsumer, null, () => {
|
|
31
33
|
return React.createElement(AntdSelect, Object.assign({}, props, {
|
|
32
|
-
placeholder: capitalizeFirstLetter(
|
|
34
|
+
placeholder: capitalizeFirstLetter(placeholder, capitalize),
|
|
33
35
|
className: classNames(className, tntPrefixCls, {
|
|
34
36
|
[`${tntPrefixCls}-outline`]: borderStyle === 'outline',
|
|
35
37
|
[`${tntPrefixCls}-fill`]: borderStyle === 'fill'
|
package/es/select/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src/select/select.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAa,UAAU,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CA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AQ,GAAG,UAAU,CAAC,QAAQ,CAAA;AACrC,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAA","sourcesContent":["import React, { ReactNode, forwardRef } from 'react'\nimport { default as AntdSelect } from 'antd/es/select'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport type { SelectProps as AntdSelectProps } from 'antd/es/select'\nimport classNames from 'classnames'\nimport { get } from 'lodash'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport { capitalizeFirstLetter } from '../utils'\nexport interface SelectProps extends AntdSelectProps {\n // 线框风格\n borderStyle?: 'outline' | 'fill'\n children?: ReactNode\n options?: Array<\n | string\n | number\n | {\n label: string\n value: string | number\n disabled?: boolean\n }\n >\n fieldNames?: {\n label?: string\n value?: string\n options?: string\n }\n readonly?: boolean\n}\n\ninterface SelectComponent\n extends React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<AntdSelect>> {\n OptGroup: typeof AntdSelect.OptGroup\n Option: typeof AntdSelect.Option\n}\n\nconst { Option } = AntdSelect\n\nconst tntPrefixCls = 'tnt-select'\n\nexport const InternalSelect = forwardRef<AntdSelect, SelectProps & { capitalize?: boolean }>(\n (\n { className, borderStyle, options, fieldNames, children, placeholder, capitalize, ...props },\n ref\n ) => (\n <ConfigConsumer>\n {() => {\n return (\n <AntdSelect\n {...props}\n placeholder={capitalizeFirstLetter(placeholder, capitalize)}\n className={classNames(className, tntPrefixCls, {\n [`${tntPrefixCls}-outline`]: borderStyle === 'outline',\n [`${tntPrefixCls}-fill`]: borderStyle === 'fill',\n })}\n ref={ref}\n >\n {children\n ? children\n : options?.map((option) => {\n if (typeof option === 'object') {\n return (\n <Option\n key={get(option, fieldNames?.value || 'value')}\n value={get(option, fieldNames?.value || 'value')}\n disabled={!!option.disabled}\n >\n {get(option, fieldNames?.label || 'label')}\n </Option>\n )\n }\n\n return (\n <Option key={option} value={option}>\n {option}\n </Option>\n )\n })}\n </AntdSelect>\n )\n }}\n </ConfigConsumer>\n )\n) as SelectComponent\n\nexport const Select = connectReadonlyComponent(\n InternalSelect,\n PreviewText.Select\n) as SelectComponent\n\nSelect.OptGroup = AntdSelect.OptGroup\nSelect.Option = AntdSelect.Option\n"]}
|
package/es/select/select.less
CHANGED
|
@@ -59,9 +59,6 @@
|
|
|
59
59
|
// 未选择值的时候的样式
|
|
60
60
|
.@{select-prefix-cls}-selection {
|
|
61
61
|
&__clear {
|
|
62
|
-
width: 16px;
|
|
63
|
-
height: 16px;
|
|
64
|
-
margin-top: -8px;
|
|
65
62
|
color: @bg-color-spotilight-tint-50;
|
|
66
63
|
}
|
|
67
64
|
&:not(:has(.ant-select-selection-selected-value, .ant-select-selection__choice)) {
|
|
@@ -82,6 +79,7 @@
|
|
|
82
79
|
border-color: @bg-grey-default;
|
|
83
80
|
.tntd-anticon {
|
|
84
81
|
font-size: 12px;
|
|
82
|
+
vertical-align: middle;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
}
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
.selection__clear() {
|
|
8
8
|
position: absolute;
|
|
9
9
|
top: 50%;
|
|
10
|
-
right: calc(@control-padding-horizontal -
|
|
10
|
+
right: calc(@control-padding-horizontal - 4px);
|
|
11
11
|
z-index: 1;
|
|
12
12
|
display: inline-block;
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
15
|
-
margin-top: -
|
|
13
|
+
width: 16px;
|
|
14
|
+
height: 16px;
|
|
15
|
+
margin-top: -8px;
|
|
16
16
|
color: @disabled-color;
|
|
17
17
|
font-size: @font-size-sm;
|
|
18
18
|
font-style: normal;
|
|
19
|
-
line-height:
|
|
19
|
+
line-height: 16px;
|
|
20
20
|
text-align: center;
|
|
21
21
|
text-transform: none;
|
|
22
22
|
background: @component-background;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 50%;
|
|
60
|
-
right: calc(@control-padding-horizontal -
|
|
60
|
+
right: calc(@control-padding-horizontal - 4px);
|
|
61
61
|
// margin-top: calc(-@font-size-sm / 2);
|
|
62
62
|
margin-top: -8px;
|
|
63
63
|
color: @disabled-color;
|
|
@@ -476,6 +476,7 @@
|
|
|
476
476
|
overflow: auto;
|
|
477
477
|
list-style: none;
|
|
478
478
|
outline: none;
|
|
479
|
+
border-radius: @border-radius-base;
|
|
479
480
|
|
|
480
481
|
&-item-group-list {
|
|
481
482
|
margin: 0;
|
package/es/spin/index.js
CHANGED
package/es/spin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spin/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spin/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,aAAa,CAAA;AAEpB,cAAc,QAAQ,CAAA;AAEtB,eAAe,IAAI,CAAA","sourcesContent":["import './style'\nimport { Spin } from './spin'\nimport './spin.less'\n\nexport * from './spin'\n\nexport default Spin\n"]}
|
package/es/spin/spin.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
3
|
+
* @Date: 2024-07-19 18:49:24
|
|
4
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
5
|
+
* @LastEditTime: 2024-07-19 18:54:42
|
|
6
|
+
* @FilePath: /tntd/packages/tntd/src/spin/spin.tsx
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
10
|
+
var t = {};
|
|
11
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
import React, { forwardRef } from 'react';
|
|
18
|
+
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
19
|
+
import { default as AntdSpin } from 'antd/es/spin';
|
|
20
|
+
import classNames from 'classnames';
|
|
21
|
+
import './spin.less';
|
|
22
|
+
export const Spin = forwardRef((props, ref) => {
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
wrapperClassName
|
|
26
|
+
} = props,
|
|
27
|
+
restProps = __rest(props, ["className", "wrapperClassName"]);
|
|
28
|
+
return React.createElement(ConfigConsumer, null, () => {
|
|
29
|
+
return React.createElement(AntdSpin, Object.assign({
|
|
30
|
+
wrapperClassName: classNames('tnt-spin-nested', wrapperClassName || ''),
|
|
31
|
+
className: classNames('tnt-spin', className || '')
|
|
32
|
+
}, restProps, {
|
|
33
|
+
ref: ref
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spin.js","sourceRoot":"","sources":["../../src/spin/spin.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;;;;;;AAEH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,aAAa,CAAA;AAKpB,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrE,MAAM,EAAE,SAAS,EAAE,gBAAgB,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAArD,iCAA6C,CAAQ,CAAA;IAC3D,OAAO,CACL,oBAAC,cAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,oBAAC,QAAQ,kBACP,gBAAgB,EAAE,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,IAAI,EAAE,CAAC,EACvE,SAAS,EAAE,UAAU,CAAC,UAAU,EAAE,SAAS,IAAI,EAAE,CAAC,IAC9C,SAAS,IACb,GAAG,EAAE,GAAG,IACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAkB,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-07-19 18:49:24\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-07-19 18:54:42\n * @FilePath: /tntd/packages/tntd/src/spin/spin.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n\nimport React, { forwardRef } from 'react'\nimport type { SpinProps as AntdSpinProps } from 'antd/es/spin'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdSpin } from 'antd/es/spin'\nimport classNames from 'classnames'\n\nimport './spin.less'\n\ninterface SpinComponent\n extends React.ForwardRefExoticComponent<AntdSpinProps & React.RefAttributes<AntdSpin>> {}\n\nexport const Spin = forwardRef<AntdSpin, AntdSpinProps>((props, ref) => {\n const { className, wrapperClassName, ...restProps } = props\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdSpin\n wrapperClassName={classNames('tnt-spin-nested', wrapperClassName || '')}\n className={classNames('tnt-spin', className || '')}\n {...restProps}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n}) as SpinComponent\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@table-prefix-cls: ~'@{ant-prefix}-table';
|
|
2
|
+
|
|
3
|
+
// .@{table-prefix-cls} {
|
|
4
|
+
.tnt-table-wrapper {
|
|
5
|
+
// customize the fixed of table
|
|
6
|
+
&.@{table-prefix-cls}-sticky {
|
|
7
|
+
.@{table-prefix-cls}-scroll,
|
|
8
|
+
.@{table-prefix-cls}-default {
|
|
9
|
+
.@{table-prefix-cls}-body table {
|
|
10
|
+
table-layout: fixed;
|
|
11
|
+
|
|
12
|
+
tr.@{table-prefix-cls}-expanded-row.@{table-prefix-cls}-expanded-row-level-1 {
|
|
13
|
+
position: relative;
|
|
14
|
+
z-index: 10;
|
|
15
|
+
|
|
16
|
+
> td:not([colspan]) {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 兼容低版本浏览器
|
|
21
|
+
> td[colspan] {
|
|
22
|
+
position: relative;
|
|
23
|
+
z-index: 100;
|
|
24
|
+
padding: 0;
|
|
25
|
+
|
|
26
|
+
> .@{table-prefix-cls}-expanded-row-fixed {
|
|
27
|
+
position: sticky;
|
|
28
|
+
left: 0px;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
padding: 0px 16px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.@{table-prefix-cls}-fixed-left table, .@{table-prefix-cls}-fixed-right table {
|
|
38
|
+
width: fit-content;
|
|
39
|
+
|
|
40
|
+
tr.@{table-prefix-cls}-expanded-row.@{table-prefix-cls}-expanded-row-level-1 {
|
|
41
|
+
> td {
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
}
|
package/es/table/hooks/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './use-column-setting';
|
|
1
|
+
export * from './use-column-setting';
|
|
2
|
+
export * from './use-expand-fixed';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA","sourcesContent":["export * from './use-column-setting'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './use-column-setting'\nexport * from './use-expand-fixed'\n"]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { makeRandomCode } from '../utils';
|
|
3
|
+
export const useExpandFixed = () => {
|
|
4
|
+
const curTableKey = useRef(makeRandomCode());
|
|
5
|
+
const activeKeyRef = useRef(null);
|
|
6
|
+
const oldActiveKeyRef = useRef({
|
|
7
|
+
main: null,
|
|
8
|
+
right: null,
|
|
9
|
+
left: null
|
|
10
|
+
});
|
|
11
|
+
const container = useRef(null);
|
|
12
|
+
const observer = useRef(null);
|
|
13
|
+
const getDom = key => {
|
|
14
|
+
const main = document.querySelector(`.${curTableKey.current} .ant-table-scroll [data-row-key="${key}-extra-row"]`) || document.querySelector(`.${curTableKey.current} .ant-table-default [data-row-key="${key}-extra-row"]`);
|
|
15
|
+
const right = document.querySelector(`.${curTableKey.current} .ant-table-fixed-right [data-row-key="${key}-extra-row"]`);
|
|
16
|
+
const left = document.querySelector(`.${curTableKey.current} .ant-table-fixed-left [data-row-key="${key}-extra-row"]`);
|
|
17
|
+
return [main, right, left];
|
|
18
|
+
};
|
|
19
|
+
const expand = async () => {
|
|
20
|
+
const [main, right, left] = getDom(String(activeKeyRef.current) || '');
|
|
21
|
+
const border = 2;
|
|
22
|
+
const height = (main === null || main === void 0 ? void 0 : main.offsetHeight) - border || 0;
|
|
23
|
+
if (right) {
|
|
24
|
+
right.setAttribute('style', `display: inline-block; height: ${height}px; overflow: hidden;`);
|
|
25
|
+
}
|
|
26
|
+
if (left) {
|
|
27
|
+
left.setAttribute('style', `display: inline-block; height: ${height}px; overflow: hidden;`);
|
|
28
|
+
}
|
|
29
|
+
if (main) {
|
|
30
|
+
// 解决 expandIconAsCell为true 且 iconCell的td元素为display: none;时, 展开内容滚动到最右边,会多出一部分iconCell所占据的空间 的问题
|
|
31
|
+
const td = main.childNodes[1];
|
|
32
|
+
const colspan = td.getAttribute('colspan') || 0;
|
|
33
|
+
const Oldcolspan = td.getAttribute('oldcolspan') || 0;
|
|
34
|
+
const newColspan = Oldcolspan ? Oldcolspan : Number(colspan) + 1 + '';
|
|
35
|
+
if (!Oldcolspan) td.setAttribute('oldcolspan', newColspan);
|
|
36
|
+
td.setAttribute('colspan', newColspan);
|
|
37
|
+
//
|
|
38
|
+
}
|
|
39
|
+
oldActiveKeyRef.current = {
|
|
40
|
+
main,
|
|
41
|
+
right,
|
|
42
|
+
left
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
const ob = () => {
|
|
46
|
+
const classname = curTableKey.current;
|
|
47
|
+
if (!classname) return;
|
|
48
|
+
container.current = document.querySelector(`.${classname}.ant-table-wrapper.collapse-panel > .ant-spin-nested-loading > .ant-spin-container > .ant-table`);
|
|
49
|
+
observer.current = new MutationObserver(expand);
|
|
50
|
+
if (container.current) {
|
|
51
|
+
observer.current.observe(container.current, {
|
|
52
|
+
childList: true,
|
|
53
|
+
attributes: true
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const setChangedKey = key => {
|
|
58
|
+
activeKeyRef.current = key;
|
|
59
|
+
};
|
|
60
|
+
const trigger = key => {
|
|
61
|
+
setChangedKey(key);
|
|
62
|
+
const className = curTableKey.current;
|
|
63
|
+
if (!className) return;
|
|
64
|
+
const dom = document === null || document === void 0 ? void 0 : document.querySelector(`.${className}.ant-table-wrapper.collapse-panel > .ant-spin-nested-loading > .ant-spin-container > .ant-table`);
|
|
65
|
+
dom === null || dom === void 0 ? void 0 : dom.setAttribute('c-data', 'Mutation');
|
|
66
|
+
};
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
ob();
|
|
69
|
+
}, [curTableKey.current]);
|
|
70
|
+
return [curTableKey.current, trigger];
|
|
71
|
+
};
|
|
72
|
+
export const findRowKey = (record, rowKey) => {
|
|
73
|
+
let res = '';
|
|
74
|
+
if (typeof rowKey === 'function') {
|
|
75
|
+
res = [record].map(rowKey)[0];
|
|
76
|
+
} else if (typeof rowKey === 'string') {
|
|
77
|
+
res = record[rowKey];
|
|
78
|
+
}
|
|
79
|
+
return res;
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-expand-fixed.js","sourceRoot":"","sources":["../../../src/table/hooks/use-expand-fixed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAUzC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,WAAW,GAAG,MAAM,CAAU,cAAc,EAAE,CAAC,CAAA;IACrD,MAAM,YAAY,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAA;IAChD,MAAM,eAAe,GAAG,MAAM,CAAS;QACrC,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;KACX,CAAC,CAAA;IACF,MAAM,SAAS,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAA;IACrD,MAAM,QAAQ,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAA;IAEtD,MAAM,MAAM,GAAG,CAAC,GAAgC,EAAE,EAAE;QAClD,MAAM,IAAI,GACP,QAAQ,CAAC,aAAa,CACrB,IAAI,WAAW,CAAC,OAAO,qCAAqC,GAAG,c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AAE,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IACzC,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,EAAE,EAAE,CAAA;IACN,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;IAEzB,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,OAAgC,CAAU,CAAA;AACzE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,MAAW,EACX,MAAyD,EACzD,EAAE;IACF,IAAI,GAAG,GAAoB,EAAE,CAAA;IAC7B,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;QAChC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;KAC9B;SAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QACrC,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;KACrB;IAED,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA","sourcesContent":["import { useEffect, useRef } from 'react'\nimport { makeRandomCode } from '../utils'\n\nexport type keyType = string | number | null\n\ninterface OldDom {\n main: HTMLDivElement | null\n right: HTMLDivElement | null\n left: HTMLDivElement | null\n}\n\nexport const useExpandFixed = () => {\n const curTableKey = useRef<keyType>(makeRandomCode())\n const activeKeyRef = useRef<string | null>(null)\n const oldActiveKeyRef = useRef<OldDom>({\n main: null,\n right: null,\n left: null,\n })\n const container = useRef<HTMLDivElement | null>(null)\n const observer = useRef<MutationObserver | null>(null)\n\n const getDom = (key: string | number | undefined) => {\n const main =\n (document.querySelector(\n `.${curTableKey.current} .ant-table-scroll [data-row-key=\"${key}-extra-row\"]`\n ) as HTMLDivElement) ||\n (document.querySelector(\n `.${curTableKey.current} .ant-table-default [data-row-key=\"${key}-extra-row\"]`\n ) as HTMLDivElement)\n const right = document.querySelector(\n `.${curTableKey.current} .ant-table-fixed-right [data-row-key=\"${key}-extra-row\"]`\n ) as HTMLDivElement\n const left = document.querySelector(\n `.${curTableKey.current} .ant-table-fixed-left [data-row-key=\"${key}-extra-row\"]`\n ) as HTMLDivElement\n return [main, right, left]\n }\n\n const expand = async () => {\n const [main, right, left] = getDom(String(activeKeyRef.current) || '')\n const border = 2\n const height = main?.offsetHeight - border || 0\n if (right) {\n right.setAttribute('style', `display: inline-block; height: ${height}px; overflow: hidden;`)\n }\n\n if (left) {\n left.setAttribute('style', `display: inline-block; height: ${height}px; overflow: hidden;`)\n }\n\n if (main) {\n // 解决 expandIconAsCell为true 且 iconCell的td元素为display: none;时, 展开内容滚动到最右边,会多出一部分iconCell所占据的空间 的问题\n const td = main.childNodes[1] as HTMLDivElement\n\n const colspan = td.getAttribute('colspan') || 0\n const Oldcolspan = td.getAttribute('oldcolspan') || 0\n const newColspan = Oldcolspan ? Oldcolspan : Number(colspan) + 1 + ''\n if (!Oldcolspan) td.setAttribute('oldcolspan', newColspan)\n\n td.setAttribute('colspan', newColspan)\n //\n }\n\n oldActiveKeyRef.current = {\n main,\n right,\n left,\n }\n }\n\n const ob = () => {\n const classname = curTableKey.current\n if (!classname) return\n\n container.current = document.querySelector(\n `.${classname}.ant-table-wrapper.collapse-panel > .ant-spin-nested-loading > .ant-spin-container > .ant-table`\n ) as HTMLDivElement\n\n observer.current = new MutationObserver(expand)\n if(container.current) {\n observer.current.observe(container.current, {\n childList: true, // 子节点的变动\n attributes: true,\n })\n }\n }\n\n const setChangedKey = (key: string) => {\n activeKeyRef.current = key\n }\n\n const trigger = (key: string) => {\n setChangedKey(key)\n const className = curTableKey.current\n if (!className) return\n const dom = document?.querySelector(\n `.${className}.ant-table-wrapper.collapse-panel > .ant-spin-nested-loading > .ant-spin-container > .ant-table`\n )\n dom?.setAttribute('c-data', 'Mutation')\n }\n\n useEffect(() => {\n ob()\n }, [curTableKey.current])\n\n return [curTableKey.current, trigger as (key: string) => void] as const\n}\n\nexport const findRowKey = (\n record: any,\n rowKey: string | ((record: any, index: number) => string)\n) => {\n let res: string | number = ''\n if (typeof rowKey === 'function') {\n res = [record].map(rowKey)[0]\n } else if (typeof rowKey === 'string') {\n res = record[rowKey]\n }\n\n return res\n}\n"]}
|
package/es/table/index.js
CHANGED
package/es/table/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,cAAc,CAAA;AACrB,OAAO,eAAe,CAAA;AAEtB,cAAc,SAAS,CAAA;AAEvB,eAAe,KAAK,CAAA","sourcesContent":["import './style'\nimport { Table } from './table'\nimport './table.less'\nimport './expand.less'\n\nexport * from './table'\n\nexport default Table\n"]}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
.@{table-prefix-cls}-column-sorter-up,
|
|
96
96
|
.@{table-prefix-cls}-column-sorter-down {
|
|
97
97
|
.iconfont-size-under-12px(11px);
|
|
98
|
-
|
|
98
|
+
font-size: 12px !important;
|
|
99
99
|
display: block;
|
|
100
100
|
height: 1em;
|
|
101
101
|
line-height: 1em;
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
transition: all 0.3s, height 0s;
|
|
234
234
|
&.@{table-prefix-cls}-row-hover,
|
|
235
235
|
&:hover {
|
|
236
|
-
&:not(.@{table-prefix-cls}-expanded-row)
|
|
236
|
+
&:not(.@{table-prefix-cls}-expanded-row) {
|
|
237
237
|
box-shadow: 0px 0px 5px -5px rgba(0, 0, 0, 0.05), 0px 0px 25px 0px rgba(0, 0, 0, 0.1);
|
|
238
238
|
position: relative;
|
|
239
239
|
> td {
|
|
@@ -243,45 +243,16 @@
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
&-thead > tr,
|
|
247
|
-
&-tbody > tr {
|
|
248
|
-
transition: all 0.3s, height 0s;
|
|
249
|
-
// &.@{table-prefix-cls}-row-hover,
|
|
250
|
-
// &:hover {
|
|
251
|
-
// &:not(.@{table-prefix-cls}-expanded-row):not(.@{table-prefix-cls}-row-selected) {
|
|
252
|
-
// box-shadow: 0px 0px 5px -5px rgba(0, 0, 0, 0.05), 0px 0px 25px 0px rgba(0, 0, 0, 0.1);
|
|
253
|
-
// position: relative;
|
|
254
|
-
// > td {
|
|
255
|
-
// background: @table-row-hover-bg;
|
|
256
|
-
// }
|
|
257
|
-
// }
|
|
258
|
-
// }
|
|
259
|
-
&.@{table-prefix-cls}-row-selected > td {
|
|
260
|
-
&.@{table-prefix-cls}-column-sort {
|
|
261
|
-
background: @table-body-selected-sort-bg;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
&:hover {
|
|
265
|
-
&.@{table-prefix-cls}-row-selected > td {
|
|
266
|
-
background: @table-selected-row-hover-bg;
|
|
267
|
-
&.@{table-prefix-cls}-column-sort {
|
|
268
|
-
background: @table-body-selected-sort-bg;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
246
|
&-thead > tr:hover {
|
|
275
247
|
background: none;
|
|
276
248
|
}
|
|
277
249
|
|
|
278
250
|
&-footer {
|
|
279
|
-
position: relative;
|
|
251
|
+
// position: relative;
|
|
280
252
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
281
253
|
color: @table-footer-color;
|
|
282
254
|
background: @table-footer-bg;
|
|
283
255
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
284
|
-
border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
|
|
285
256
|
&::before {
|
|
286
257
|
position: absolute;
|
|
287
258
|
top: -1px;
|
|
@@ -293,26 +264,25 @@
|
|
|
293
264
|
}
|
|
294
265
|
}
|
|
295
266
|
|
|
296
|
-
&.@{table-prefix-cls}-bordered &-footer {
|
|
297
|
-
|
|
298
|
-
}
|
|
267
|
+
// &.@{table-prefix-cls}-bordered &-footer {
|
|
268
|
+
// border: @border-width-base @border-style-base @border-color-split;
|
|
269
|
+
// }
|
|
299
270
|
|
|
300
271
|
&-title {
|
|
301
|
-
position: relative;
|
|
302
|
-
top: 1px;
|
|
272
|
+
// position: relative;
|
|
273
|
+
// top: 1px;
|
|
303
274
|
padding: @table-padding-vertical 0;
|
|
304
|
-
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
305
275
|
}
|
|
306
276
|
|
|
307
277
|
&.@{table-prefix-cls}-bordered &-title {
|
|
308
278
|
padding-right: @table-padding-horizontal;
|
|
309
279
|
padding-left: @table-padding-horizontal;
|
|
310
|
-
border: @border-width-base @border-style-base @border-color-split;
|
|
280
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
311
281
|
}
|
|
312
282
|
|
|
313
283
|
&-title + &-content {
|
|
314
284
|
position: relative;
|
|
315
|
-
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
285
|
+
// border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
316
286
|
|
|
317
287
|
.@{table-prefix-cls}-bordered & {
|
|
318
288
|
&,
|
|
@@ -336,8 +306,22 @@
|
|
|
336
306
|
}
|
|
337
307
|
|
|
338
308
|
&-tbody > tr.@{table-prefix-cls}-row-selected td {
|
|
339
|
-
color: @table-selected-row-color;
|
|
340
|
-
background: @table-selected-row-bg;
|
|
309
|
+
// color: @table-selected-row-color;
|
|
310
|
+
// background: @table-selected-row-bg;
|
|
311
|
+
&.@{table-prefix-cls}-selection-column {
|
|
312
|
+
position: relative;
|
|
313
|
+
&::after {
|
|
314
|
+
content: ' ';
|
|
315
|
+
width: 4px;
|
|
316
|
+
height: calc(100% - 10px);
|
|
317
|
+
background: @blue-5;
|
|
318
|
+
display: block;
|
|
319
|
+
position: absolute;
|
|
320
|
+
top: 5px;
|
|
321
|
+
left: 0;
|
|
322
|
+
border-radius: 0 4px 4px 0;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
341
325
|
}
|
|
342
326
|
|
|
343
327
|
&-thead > tr > th.@{table-prefix-cls}-column-sort {
|
|
@@ -397,41 +381,26 @@
|
|
|
397
381
|
}
|
|
398
382
|
|
|
399
383
|
&-bordered {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
.@{table-prefix-cls}-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.@{table-prefix-cls}-fixed-right table {
|
|
414
|
-
.@{table-prefix-cls}-hide-cell-borders & {
|
|
415
|
-
border-left: 0;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.@{table-prefix-cls}-body > table {
|
|
420
|
-
border-radius: @border-radius-base;
|
|
421
|
-
}
|
|
384
|
+
border: @border-width-base @border-style-base @border-color-split;
|
|
385
|
+
border-radius: @border-radius-base;
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
// .@{table-prefix-cls}-header > table,
|
|
388
|
+
// .@{table-prefix-cls}-body > table,
|
|
389
|
+
// .@{table-prefix-cls}-fixed-left table,
|
|
390
|
+
// .@{table-prefix-cls}-fixed-right table {
|
|
391
|
+
// border: @border-width-base @border-style-base @border-color-split;
|
|
392
|
+
// border-right: 0;
|
|
393
|
+
// border-bottom: 0;
|
|
394
|
+
// }
|
|
422
395
|
|
|
423
396
|
&.@{table-prefix-cls}-empty {
|
|
424
397
|
.@{table-prefix-cls}-body > table {
|
|
425
398
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
426
399
|
}
|
|
427
400
|
.@{table-prefix-cls}-placeholder {
|
|
428
|
-
border: @border-width-base @border-style-base @border-color-split;
|
|
429
|
-
border-
|
|
430
|
-
border-
|
|
431
|
-
.@{table-prefix-cls}-has-footer & {
|
|
432
|
-
border-bottom: none;
|
|
433
|
-
border-radius: 0;
|
|
434
|
-
}
|
|
401
|
+
// border-right: @border-width-base @border-style-base @border-color-split;
|
|
402
|
+
// border-left: @border-width-base @border-style-base @border-color-split;
|
|
403
|
+
border-bottom: 0;
|
|
435
404
|
}
|
|
436
405
|
}
|
|
437
406
|
|
|
@@ -459,24 +428,27 @@
|
|
|
459
428
|
.@{table-prefix-cls}-tbody > tr > td {
|
|
460
429
|
border-right: @border-width-base @border-style-base @border-color-split;
|
|
461
430
|
&:last-child {
|
|
462
|
-
border-right:
|
|
431
|
+
border-right: 0;
|
|
463
432
|
}
|
|
464
433
|
}
|
|
465
|
-
.@{table-prefix-cls}-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
&:
|
|
469
|
-
border-
|
|
434
|
+
.@{table-prefix-cls}-fixed-left {
|
|
435
|
+
.@{table-prefix-cls}-thead > tr > th,
|
|
436
|
+
.@{table-prefix-cls}-tbody > tr > td {
|
|
437
|
+
&:last-child {
|
|
438
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
470
439
|
}
|
|
471
440
|
}
|
|
472
441
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
442
|
+
.@{table-prefix-cls}-content:has(.@{table-prefix-cls}-fixed-right) .@{table-prefix-cls}-scroll {
|
|
443
|
+
.@{table-prefix-cls}-thead > tr > th {
|
|
444
|
+
&:last-child {
|
|
445
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
446
|
+
}
|
|
478
447
|
}
|
|
479
448
|
}
|
|
449
|
+
.@{table-prefix-cls}-tbody > tr:last-child > td {
|
|
450
|
+
border-bottom: 0;
|
|
451
|
+
}
|
|
480
452
|
}
|
|
481
453
|
|
|
482
454
|
&-placeholder {
|
|
@@ -488,12 +460,9 @@
|
|
|
488
460
|
font-size: @font-size-base;
|
|
489
461
|
text-align: center;
|
|
490
462
|
background: @component-background;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
border-radius: @border-radius-base;
|
|
494
|
-
.@{table-prefix-cls}-has-footer & {
|
|
495
|
-
border-radius: 0;
|
|
496
|
-
}
|
|
463
|
+
border-top: @border-width-base @border-style-base @border-color-split;
|
|
464
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
465
|
+
// border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
497
466
|
}
|
|
498
467
|
|
|
499
468
|
&-pagination.@{ant-prefix}-pagination {
|
|
@@ -681,6 +650,7 @@
|
|
|
681
650
|
&-scroll {
|
|
682
651
|
overflow: auto;
|
|
683
652
|
overflow-x: hidden;
|
|
653
|
+
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
684
654
|
table {
|
|
685
655
|
min-width: 100%;
|
|
686
656
|
|